NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Low-dimensional topology of deep neural networks

Junyu Ren, Lek-heng Lim

Introduction

While Universal Approximation Theorems guarantee that "sufficiently wide" neural networks can represent almost any function, they offer little guidance on why specific architectures—such as ResNets or Transformers—outperform standard feedforward networks when width is constrained.

This paper investigates this phenomenon through the lens of the manifold hypothesis, which posits that real-world data concentrates near low-dimensional surfaces embedded in high-dimensional space. If these surfaces are "topologically entangled" (for instance, interlocking rings known as a Hopf link), a neural network must geometrically untangle them to achieve linear separability for classification. By restricting networks to a width of $d=3$ (operating in $\mathbb{R}^3$), the authors isolate the effects of depth and activation functions from width, allowing them to track how different architectures manipulate low-dimensional topological invariants.

Topological Constraints and Architectural "Folding"

The researchers employ low-dimensional topology, specifically focusing on the linking number—an integer that quantifies how two closed curves intertwine in 3D space. Their theoretical framework reveals a stark contrast in the expressivity of different network components:

  • The Barrier of Monotonicity: Standard width-$d$ feedforward networks with monotonic activations (like ReLU, Sigmoid, or Tanh) are topologically rigid. They preserve the linking number of the input data. Mathematically, these networks act as a "link homotopy," meaning they can stretch and deform the data space but cannot "cut and reglue" it to unlink entangled components. This creates an expressivity ceiling where the network cannot achieve perfect accuracy on entangled data, regardless of its depth.
  • Skip Connections and Attention as Geometric Tools: Architectures like ResNets and Transformers possess a structural advantage: they can synthesize non-monotonic "folding" operations. For example, a ResNet block utilizing skip connections can express an absolute value function ($|x| = x + 2\text{ReLU}(-x)$). This folding mechanism allows the network to collapse coordinates and effectively "unlink" the data. Similarly, even a simple two-token attention mechanism in Transformers can approximate a V-shaped fold, suggesting their success is partly due to their ability to resolve topological obstructions.
  • Width as a Topological Bypass: The authors mathematically demonstrate that once a network's width exceeds $d+1$ (where $d$ is the input dimension), these topological obstructions vanish. The network can "lift" the data into a higher dimension where the link can be trivially undone, much like how any 3D knot can be untied in 4D space.

Empirical Validation

To validate their theoretical claims, the authors introduced a novel algorithm to detect topological linking in point-cloud data using $k$-nearest neighbor ($k$-NN) graphs to find cycles and calculate the Gauss linking integral. They tested their hypotheses across synthetic and real-world datasets:

  1. Synthetic Hopf Link: On a task classifying interlocking circles in $\mathbb{R}^3$ (thickened into volumetric tori), plain ReLU networks hit a hard accuracy ceiling of ~92.8%, failing to break the topological barrier. In contrast, ResNets and networks using non-monotonic activations (like GELU) consistently achieved 100% accuracy.
  2. Higher-Dimensional Generalization: The theory was successfully tested on two 2-spheres ($S^2$) linked in $\mathbb{R}^5$, proving the topological constraints and folding solutions generalize beyond 3D.
  3. Real-World Data (CIFAR-10): To test practical relevance, CIFAR-10 classes were projected into 3D using PCA. The algorithm detected a reproducible linking signal between specific class pairs, such as "bird" and "deer." In binary classification tasks on these linked pairs, non-monotonic activations (GELU, Swish) outperformed monotonic ones (ReLU, ELU) by a significant +1.2% margin. Crucially, this performance gap disappeared on unlinked "control" pairs (e.g., "frog" vs. "ship").

Limitations and Future Directions

While the paper establishes a robust topological framework for understanding network expressivity, it acknowledges several limitations. First, while the theory generalizes to higher dimensions, the detection algorithm and intuitive visualizations are currently optimized for low dimensions (3D/5D). Detecting topological linking directly in native high-dimensional pixel space (e.g., 3072D for CIFAR-10) remains an open challenge.

Furthermore, the study primarily addresses expressivity—what these networks are theoretically capable of representing—rather than optimization, leaving open the question of whether gradient descent will reliably find these unlinking solutions in practice. Finally, the authors note that the linking number is only the beginning of this topological map; future work will explore richer invariants, such as knot types and Milnor’s $\bar{\mu}$-invariants, to further decode the geometric mechanics of deep learning.

Summary updated

BibTeX
@inproceedings{ren2026low,
  author = {Junyu Ren and Lek-heng Lim},
  title = {{Low-dimensional topology of deep neural networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=yZAbtq7Srt},
}
Figure