math.AGOct 15, 2026
SaveDeep Learning of Topological Equivalence Classes
Abstract
We demonstrate an application of deep learning to the problem of identifying whether two generating vectors correspond to topologically equivalent finite group actions on Riemann surfaces, showing how architectures developed for semantic understanding have use for pure mathematical problems. In doing so we discuss how desired algebraic structure influences model design, and explore which structural properties of topological equivalence classes the model has successfully learnt.
Figures & tables
Figure 1. The twin network architecture. The model has two identical halves, each half processing one generating vector. A tokenised element of a generating vector is passed through three identical processing blocks (with distinct weights) in series: the output of a convolutional encoder is concatenated with the block input, an alignment layer relates the encodings to those of the corresponding generating vector in the opposite half, and the outputs are fused and pooled over blocks. Each element of the generating vector is processed in parallel through this multiblock structure (aligning with its corresponding element in the opposite generating vector). These vectors are augmented by adding residuals constructed by passing them through a 1d convolution and GeLU activation, and the maximum over elements gives a feature vector for each generating vector as input for a prediction layer, answering the question whether two generating vectors lie in the same topological equivalence class.
| Signature Length | Accuracy | |
|---|---|---|
| Random Embedding | Matrix Embedding | |
Table 1. Model accuracy on test pairs when trained on pairs with unrestricted and varying range for . ∗ indicates that identity padding was used.
| Training Pairs | Accuracy |
|---|---|
Table 2. Accuracy against training set size (train , test )
| Subclass | Accuracy | Number of Pairs |
|---|---|---|
| all pairs | ||
| cross-group | ||
| same-group non-abelian | ||
| same-group cyclic | ||
| same-group other abelian | ||
| same-group -group |
Table 3. Model accuracy on subclasses of generating vector pairs
Figure 2. ROC curves for the model classifying pairs as in the same equivalence class. Subclasses are labelled by the AUC.
Figure 3. ROC curves for the model classifying pairs as the confidence threshold is varied. Subclasses are labelled by the AUC.
Figure 4. Dimensional reduction of the absolute elementwise difference in the generating vector features of a pair, stratified by subclass
Figure 5. Dimensional reduction of the elementwise product of the generating vector features of a pair, stratified by subclass
We study the grokking phenomenon through the lens of topology. Using persistent homology on point clouds derived from the embedding matrices of a range of models trained on modular arithmetic with varying primes, we identify a clear and consistent topological signature of grokking: a sharp increase in both the maximum and total persistence of first homology (). Persistence diagrams reveal the emergence of a dominant long-lived topological feature together with increasingly structured secondary features, reflecting the underlying cyclic structure of the task. Compared to existing spectral and geometric diagnostics -- specifically, Fourier analysis and local intrinsic dimension -- persistent homology provides a unified geometric and topological characterization of representation learning, capturing both local and global multi-scale structure. Ablations across data regimes and control settings show that these topological transitions are tied to generalization rather than memorization. Our results suggest that persistent homology offers a principled and interpretable framework for analyzing how neural networks internalize latent structure during training.
Quantitative Approximation Rates for Group Equivariant Learning
The universal approximation theorem establishes that neural networks can approximate any continuous function on a compact set. Later works in approximation theory provide quantitative approximation rates for ReLU networks on the class of -Hölder functions . The goal of this paper is to provide similar quantitative approximation results in the context of group equivariant learning, where the learned -Hölder function is known to obey certain group symmetries. While there has been much interest in the literature in understanding the universal approximation properties of equivariant models, very few quantitative approximation results are known for equivariant models. In this paper, we bridge this gap by deriving quantitative approximation rates for several prominent group-equivariant and invariant architectures. The architectures that we consider include: the permutation-invariant Deep Sets architecture; the permutation-equivariant Sumformer and Transformer architectures; joint invariance to permutations and rigid motions using invariant networks based on frame averaging; and general bi-Lipschitz invariant models. Overall, we show that equally-sized ReLU MLPs and equivariant architectures are equally expressive over equivariant functions. Thus, hard-coding equivariance does not result in a loss of expressivity or approximation power in these models.
No Triangulation Without Representation: Generalization in Topological Deep Learning
Despite an ever-increasing interest in topological deep learning models that target higher-order datasets, there is no consensus on how to evaluate such models. This is exacerbated by the fact that topological objects permit operations, such as structural refinements, that are not appropriate for graph data. In this work, we extend MANTRA, a benchmark dataset containing manifold triangulations, to a larger class of manifolds with more diverse homeomorphism types. We show that, unlike prior claims, both graph neural networks (GNNs) and higher-order message passing (HOMP) methods can saturate the benchmark. However, we find that this is contingent on the right representation and feature assignment, emphasizing their importance in baseline models. We thus provide a novel evaluation protocol based on representational diversity and triangulation refinement. Surprisingly, we find no indication that existing models are capable of generalizing beyond the combinatorial structure of the data. This points towards a research gap in developing models that understand topological structure independent of scale. Our work thus provides the necessary scaffolding to evaluate future models and enable the development of topology-aware inductive biases.