Low-dimensional topology of deep neural networks cover

Low-dimensional topology of deep neural networks

Junyu Ren $^{1}$
Lek-Heng Lim $^{1}$

$^{1}$ University of Chicago, Chicago, IL, USA. Correspondence to: Junyu Ren [email protected].

Abstract

We study layered models, including feedforward networks, ResNets, and transformers, by limiting each layer to a width of $d = 3$, i.e., $\mathbb{R}^3$ as representation space. This allows us to track how a neural network changes low-dimensional topological invariants through its layers. Just about any topological structure may be simplified or even trivialized by simply increasing dimension; e.g., any knot is equivalent to an unknot in $\mathbb{R}^4$. By restricting to $\mathbb{R}^3$, we not only isolate the effects of activation and depth from that of width, we work in a space that lends itself to easy visualization. We focus on linking number here, deferring other invariants like link groups, Milnor's $\bar{\mu}$-invariants, knot types, ambient cobordisms, to a sequel. We provide full proofs and empirical experiments to justify the following insights: When measured by their power to effect changes in linking numbers, the layer-skipping feature in ResNets is as powerful as the attention mechanism in transformers; both ResNets and transformers are strictly more powerful than feedforward neural networks with monotonic activations, which are in turn more powerful than invertible and flow-based models; but replacing monotonic activation with a nonmonotonic one elevates a feedforward network into the same expressivity class as ResNets and transformers. These results suggest that low-dimensional topology can be a useful tool to guide designs of AI architectures. We also generalize our results from $d = 3$ to arbitrary $d > 3$.

Executive Summary: Neural networks must often transform entangled data representations into linearly separable ones for accurate classification. When class manifolds are linked in low-dimensional space, this requires changing topological invariants such as the linking number, which counts how many times one closed curve or manifold winds through another. The work examines this constraint by restricting network width to three dimensions throughout, allowing direct tracking of linking numbers layer by layer while isolating the effects of depth, activation choice, and architectural features.

The analysis proves that width-three feedforward networks using monotonic activations such as ReLU, sigmoid, or tanh preserve linking numbers exactly. Invertible affine layers act as homeomorphisms that maintain the invariant up to sign, and monotonic activations permit straight-line homotopies that keep the images of linked components disjoint. Consequently, no depth of such a network can unlink data whose linking number is nonzero, imposing an accuracy ceiling on classification tasks. In contrast, ResNets synthesize nonmonotonic folding operations through skip connections, pure transformers approximate the same folds via attention, and nonmonotonic activations such as GELU or Swish perform folding directly. All three mechanisms break the homotopy argument and enable unlinking at the same narrow width.

Experiments on thickened Hopf links and linked spheres in higher dimensions confirm the theoretical ceilings: monotonic feedforward networks never exceed roughly 92 percent accuracy regardless of depth, while ResNets and nonmonotonic activations routinely reach 100 percent on the same tasks. On CIFAR-10 projected to three dimensions, pairs of classes with detectable linking are measurably harder for monotonic networks, and the performance gap concentrates near the detected entanglement regions. These patterns hold after controlling for optimization effects and appear consistently across dozens of random seeds.

The findings indicate that architectural superiority on topologically nontrivial data stems from an explicit capacity to alter extrinsic topology rather than from generic improvements in information flow or stability. For practitioners, the results supply concrete guidance: in any layer or bottleneck whose effective width is at most one more than the intrinsic dimension of the data, monotonic feedforward layers should be supplemented by skip connections, nonmonotonic activations, or attention. Width expansion beyond this threshold removes the obstruction entirely, but when width must remain constrained, the listed mechanisms are interchangeable in topological power.

The theoretical claims rest on exhaustive case analysis of layer types and hold for any continuous coordinatewise monotonic activation. The CIFAR-10 observations rely on PCA projections and are therefore correlational; they demonstrate consistency with the theory but do not prove causation on the native high-dimensional manifold. Follow-up work could test additional topological invariants and develop scalable link-detection methods for full-dimensional data.

1. Introduction

Section Summary: Recent advances in understanding the shapes of three- and four-dimensional spaces have produced powerful mathematical tools that can also explain why some neural network designs succeed or fail on complex data. The paper uses a simple case of two interlocked rings to show that ordinary feedforward networks with standard activation functions cannot separate data whose classes are topologically entangled, because they preserve a quantity called the linking number; modern features such as skip connections, attention, and non-monotonic activations overcome this barrier by allowing the network to “fold” its representation and thereby unlink the classes. Experiments and a new measurement technique further demonstrate that these topological constraints limit accuracy on both synthetic and real-world data such as CIFAR-10.

The last 50 years in topology has arguably been the half-century of low-dimensional topology, with many astounding groundbreaking advances in the topology of $3$-manifolds [1, 2, 3] and $4$-manifolds [4, 5]. We will show how innovative topological invariants developed to study low-dimensional (i.e., $3$- or $4$-dimensional) manifolds may be put to good use in the analysis and design of modern AI models.

We begin with a simple example. Consider two interlocking rings in $\mathbb{R}^3$, the Hopf link. Can a neural network learn to classify points on these rings into their respective connected components? This deceptively simple question reveals deep connections between topology and machine learning. Under the manifold hypothesis ([6]), real-world data concentrates near low-dimensional manifolds embedded in high-dimensional space. When class manifolds are topologically entangled, like in a Hopf link, classification requires one to geometrically "untangle" them. We will see how such topological obstructions impose fundamental constraints on neural network architectures. Due to space constraints, we limit ourselves to one specific invariant, the linking number, to illustrate our general framework of using low-dimensional topological invariants to study neural network architectures. A companion paper treats more sophisticated invariants in detail [7].

We emphasize that dimension itself is a powerful, if not all-powerful, attribute in machine learning [8, 9] — there is almost nothing that one cannot do through simply increasing dimension, including effecting topological changes; although curse-of-dimensionality often also accompanies a dimension increase. The flip side of this coin is that dimension is a factor that masks the effects of all other aspects of a neural network architecture. Our approach removes this confounding factor by fixing width throughout, first at $d = 3$, and only increasing $d$ later for comparison.

Existing neural network theory largely ignores topological structure other than dimension (a topological invariant). Universal approximation theorems ([10, 11]) show that sufficiently wide networks approximate any function, but say nothing about which architectures succeed on which data. Depth–width tradeoffs ([12, 13]) and approximation rates ([14, 15]) characterize function complexity, not data complexity. Topological data analysis ([16]) studies intrinsic data shape but not how embeddings in ambient space constrain learning. Meanwhile, practitioners have observed that certain architectural features like skip connections, nonmonotonic activations, attention, etc, consistently outperform alternatives. Engineering reasons have been proffered for some of these: training stability, information flow, incremental layer-wise transformations, etc. We will provide a topological perspective.

When does topological structure create fundamental barriers for neural networks, and which mechanisms overcome them? The Hopf link (Figure 1) provides a canonical example: two interlocking circles with linking number $\operatorname{link} = 1$, measuring how many times one curve winds through the other. Linear separability requires $\operatorname{link} = 0$. Indeed, if a hyperplane separates two curves, each curve can be continuously contracted to a point inside its own half-space without ever leaving it, yielding a link homotopy to a disjoint pair of points whose linking number is zero. We prove that width-3 feedforward networks with ReLU activations preserve linking numbers: invertible affine layers preserve $\operatorname{link}$ as homeomorphisms, and monotonic activations preserve $\operatorname{link}$ via straight-line homotopies. Since the Hopf link has $\operatorname{link} = 1 \neq 0$, no such network can achieve linear separability, regardless of depth. Similarly, decision regions cannot be made disjoint and convex, so logit-based classifiers cannot achieve perfect accuracy.

How do modern architectures escape from such topological traps? The key is folding: coordinatewise nonmonotonic transformations like the absolute value $|x|$. A ResNet block can synthesize $|x| = x + 2\cdot\text{ReLU}(-x)$ using only ReLU and skip connections. Nonmonotonic activations (GELU, Swish) fold directly. Attention mechanisms create input-dependent convex combinations that locally approximate folding. These mechanisms break the homotopy argument underlying our impossibility theorems, enabling topological transformations that monotonic networks cannot perform.

Our contributions. We study the expressivity and learnability of neural network with low-dimensional topology:

  1. Topology–ML connection. We prove that classification of linked data requires unlinking before a linear readout (Proposition 6).
  2. Topological expressivity. We prove that width-$d$ feedforward networks with continuous coordinatewise monotonic activations cannot separate linked manifolds in $\mathbb{R}^d$ (Section 3–Section 4). As a corollary, universal approximation with such activations requires width at least $d+1$. We then show that skip connections, attention, nonmonotonic activations, and width expansion all provide ways to fold the data representation and thereby unlink linked manifolds (Section 5).
  3. Learnability beyond expressivity. Experiments on Hopf links and higher-dimensional linked spheres show that limited topological expressivity imposes an accuracy ceiling under our training protocol. Further experiments on synthetic data and CIFAR-10 show that architectures with folding mechanisms gain a classification advantage, and this advantage is more pronounced at data points near the links (Section 6).
  4. Extrinsic TDA. We present an algorithm for estimating linking between class manifolds from point-cloud samples, using spatial graphs, cycle bases, and Gauss integrals. Applied to CIFAR-10, the algorithm shows that class pairs with stronger linking tend to be harder for topologically less expressive architectures to classify (Section 6.6).

: Table 1: Topological expressivity of width-$d$ architectures, scored on the linking/folding transformations studied here. ✗ = cannot perform under our hypotheses; ✓ = can perform via the construction we give. AH: Ambient homeomorphism (flow-based models, Neural ODEs). FM: Feedforward monotonic (ReLU, sigmoid, tanh). AE: Autoencoder with width-$d$ bottleneck. FN: Feedforward nonmonotonic (GELU, Swish). R: ResNet. T: Pure transformer (two-token attention construction of Theorem 17).

Topological Transformation AH FM AE FN R T
Deform shapes (no topological change)
Merge connected components
Fill up holes
Unlink 2-component link

Table 1 offers a preview of our main expressivity results: which architectures can perform which topological transformations under width constraints. We will develop the theory in Section 3–Section 5, validate predictions experimentally in Section 6, and demonstrate real-world relevance via CIFAR-10 linking detection in Section 6.6.

2. Related Work

Section Summary: Topological data analysis uses tools like persistent homology to identify intrinsic shape features such as holes and connected components in data. Prior studies have examined how neural networks alter these intrinsic properties or highlighted other topological limits on what networks can detect, whereas this work focuses on how narrow networks preserve extrinsic invariants like linking numbers that depend on the embedding of data in space, connecting to ideas of networks untangling data and explaining why practical models often expand to higher dimensions. It also contrasts with width-based limits on function approximation by showing that even deep narrow networks cannot separate certain linked structures.

Topological data analysis extracts intrinsic shape features (holes, connected components) via persistent homology ([16, 17, 18]). [19] study how deep networks change Betti numbers of data manifolds; we study how narrow networks preserve linking numbers, an extrinsic invariant depending on how manifolds are embedded in an ambient space, not an intrinsic invariant of a manifold itself like the Betti numbers. This extrinsic perspective connects to early intuitions about neural networks "untangling" data ([20]). Recent works have identified other topological limitations: higher-order message-passing cannot compute homology ([21]), E(3)-invariant GNNs cannot distinguish enantiomers ([22]), and topological obstructions constrain generative models ([23]). These concern what networks can detect; we study what they can transform, a question also relevant to world models that must represent geometric structure ([24]). Width bounds for universal approximation ([25, 26, 27]) show that width-$d$ networks cannot approximate all functions on $\mathbb{R}^d$; we on the other hand show that arbitrarily deep width-$d$ networks cannot separate linked data in $\mathbb{R}^d$. Neural networks for molecular dynamics lift $\mathbb{R}^3$ coordinates to 64- to 384-dimensional features ([28, 29, 30]); our theory offers a topological rationale for this practice.

3. The Hopf Link: An Intuitive Example

Section Summary: The section uses the Hopf link—two interlinked circles in 3D space—as a simple example to show how narrow neural networks are limited by topology. It argues that the linking number, which quantifies how intertwined the curves are, is preserved by the affine maps and ReLU activations in a width-3 network, so the curves cannot be transformed into linearly separable sets without unwanted intersections. As a result, such networks cannot achieve perfect classification of points on the two circles.

Consider two interlinked circles in 3D space forming the Hopf link (for topological background, see [31, 32]).

Question: Can a width-3 ReLU network classify points on these circles into separate classes?

Here a width-$d$ feedforward network is $F = A_L \circ \sigma \circ \cdots \circ \sigma \circ A_1$ with affine $A_i(x) = W_i x + b_i$, $W_i \in \mathbb{R}^{d \times d}$, and coordinatewise activation $\sigma$, e.g., ReLU. Our results apply to any architecture whose intermediate representations have dimensions $\leq d$ after flattening any spatial axes and whose nonlinearities are coordinatewise. This includes CNNs, since convolutional layers are affine maps and the flattened representation size $C \cdot H \cdot W$ is the operative width, as well as bottleneck autoencoders with width-$d$ bottlenecks.

########## {caption="Example 1: Hopf link"}

The Hopf link consists of two interlinked circles in $\mathbb{R}^3$ given parametrically by

$ \begin{aligned} X(t) &= (\cos(t), \sin(t), 0), \ Y(s) &= (1 + \cos(s), 0, \sin(s)), \end{aligned} $

for $t, s \in [0, 2\pi]$. These two circles are topologically linked with $\operatorname{link}(X, Y) = 1$, meaning they cannot be separated without cutting one of the curves.

Classifying samples from the two Hopf link circles exposes a topological constraint on narrow neural networks; we develop the argument step by step, leaving technical details to Appendix C.

3.1 Linking Numbers

The core of our argument is a topological invariant that quantifies how two closed curves are intertwined in 3D space.

########## {caption="Definition 2: Linking number"}

Let $X, Y \subset \mathbb{R}^3$ be two disjoint, oriented, simple closed curves. The linking number $\operatorname{link}(X, Y)$ is defined by the Gauss integral:

$ \operatorname{link}(X, Y) = \frac{1}{4\pi} \oint_{X} \oint_{Y} \frac{(x - y) \cdot (dx \times dy)}{|x - y|^3}. $

This measures the degree of the Gauss map $G: X \times Y \to \mathbb{S}^2$ given by $G(x, y) = (x - y)/\lVert x - y \rVert$. The linking number is always an integer. For the Hopf link, $\operatorname{link}(X, Y) = \pm 1$.

There is an equivalent combinatorial formula: For any regular projection $\pi: \mathbb{R}^3 \to \mathbb{R}^2$,

$ \operatorname{link}(X, Y) = \frac{1}{2} \sum_{p \in \pi(X) \cap \pi(Y)} \epsilon_p $

where $\epsilon_p = \pm 1$ is the sign of each crossing.

3.2 Network Operations and Linking Number Preservation

We analyze each layer type in a width-3 ReLU network through the following key lemmas.

########## {caption="Definition 3: Homotopy"}

A homotopy between two continuous maps $f, g: X \to Z$ is a continuous function $H: X \times [0,1] \to Z$ such that $H(x,0) = f(x)$ and $H(x,1) = g(x)$ for all $x \in X$. Intuitively, $H$ provides a continuous "interpolation" from $f$ to $g$, deforming $f(X)$ to $g(X)$ within $Z$. The straight-line homotopy $H_t(x) = (1-t)f(x) + tg(x)$ is the simplest example when $Z = \mathbb{R}^n$.

########## {caption="Lemma 4: Homotopy invariance"}

If $X'$ is homotopic to $X$ via a homotopy avoiding $Y$, then

$ \operatorname{link}(X', Y) = \operatorname{link}(X, Y). $

Proof sketch: The function $t \mapsto \operatorname{link}(X_t, Y)$ is continuous and integer-valued on $[0,1]$, hence constant.

########## {caption="Lemma 5: Rank-deficient intersection"}

Let $X, Y \subset \mathbb{R}^3$ be disjoint curves with $\operatorname{link}(X, Y) \neq 0$. For any rank-deficient affine $f: \mathbb{R}^3 \to \mathbb{R}^3$, we have $f(X) \cap f(Y) \neq \varnothing$.

Proof sketch: Reduce via SVD to projection. If projected curves were disjoint, the combinatorial formula gives $\operatorname{link} = 0$, contradiction.

**Figure 2:** Rank-deficient transformations force intersection.

3.3 Classification Requires Unlinking

Linear separability is the goal of representation learning for classification: the final layer (classifier head) applies a linear transformation to features, so perfect classification requires that class representations become linearly separable. The task imposes a strict topological constraint:

########## {caption="Proposition 6: Linear readouts require unlinking"}

Let $X, Y \subset \mathbb{R}^3$ be disjoint oriented closed curves with $\operatorname{link}(X, Y) \neq 0$. If a continuous feature map $F: \mathbb{R}^3 \to \mathbb{R}^3$ makes $F(X)$ and $F(Y)$ linearly separable, then $\operatorname{link}(F(X), F(Y)) = 0$; the feature map must unlink the classes.

Proof: A separating hyperplane $H$ puts $F(X)$ in one open half-space and $F(Y)$ in the other. Each half-space is convex, so straight-line contractions of $F(X)$ and $F(Y)$ to points $p$ and $q$ inside their respective half-spaces stay disjoint. This gives a link homotopy to two point components. At the endpoint, the Gauss map is constant, hence has degree zero; by link-homotopy invariance, $\operatorname{link}(F(X), F(Y)) = 0$.

This exposes the conflict: to classify the Hopf link perfectly, a network must change the linking number from $\pm 1$ to $0$.

3.4 Separation Impossibility for the Hopf Link

########## {caption="Theorem 7: Link separation impossibility"}

Let $X, Y \subset \mathbb{R}^3$ be disjoint simple closed curves with $\operatorname{link}(X, Y) \neq 0$. Let $F: \mathbb{R}^3 \to \mathbb{R}^3$ be any width-3 feedforward network with affine transformations and ReLU activations. Then $F(X)$ and $F(Y)$ are not linearly separable, and perfect classification is impossible.

Proof sketch: Assume for contradiction that linear separability is achieved. Proposition 6 gives $\operatorname{link}(F(X), F(Y)) = 0$; moreover, any intermediate collision between the two class images would propagate through later layers and prevent final linear separation, so the class images stay disjoint throughout the network. We analyze each layer:

Invertible affine layers: Homeomorphisms of $\mathbb{R}^3$ preserve linking numbers (up to sign).

ReLU activations: We apply homotopies one coordinate at a time. For coordinate $i$, define $H^{(i)}_t$ that interpolates $x_i \to \operatorname{ReLU}(x_i)$ while other coordinates stay fixed. Suppose paths collide: $H^{(i)}_t(x)_i = H^{(i)}_t(y)_i$ for some $t$. If $x_i \geq 0$, the path is constant at $x_i$; if $x_i < 0$, it traverses $[x_i, 0]$. In all cases, collision implies $\operatorname{ReLU}(x_i) = \operatorname{ReLU}(y_i)$. Since $\sigma(X) \cap \sigma(Y) = \varnothing$ by assumption, no collision occurs. Concatenating $H^{(1)}, H^{(2)}, H^{(3)}$ gives $\operatorname{link}(\sigma(X), \sigma(Y)) = \operatorname{link}(X, Y)$.

Rank-deficient layers: By Lemma 5, these create intersections when $\operatorname{link} \neq 0$.

Since ReLU preserves $\operatorname{link}$ and invertible affines preserve it up to sign, changing it from non-zero to zero requires rank-deficient layers. But these force intersections.

This example demonstrates the core mechanism: linking numbers create barriers that narrow monotonic networks cannot overcome, regardless of depth. The next section generalizes to higher-dimensional linked manifolds and arbitrary coordinatewise monotonic activations.

4. Higher Dimension, More Activations

Section Summary: This section generalizes the linking idea from the basic Hopf link of curves to higher-dimensional manifolds sitting in spaces of matching dimension, where a nonzero linking number still blocks linear separation. It shows that any width-d network built from affine layers and coordinatewise monotonic activations (ReLU, sigmoid, tanh, etc.) must preserve this linking number up to sign, because invertible linear maps act as homeomorphisms and the activations permit a simultaneous “link homotopy” that keeps the two sets disjoint. Consequently, linked manifolds remain unseparable by a hyperplane after the whole network, so perfect classification is impossible regardless of the specific monotonic activation chosen.

The Hopf link example gives the core mechanism in a visual setting. In this section we switch notation from the curves $X,Y \subset \mathbb{R}^3$ of Section 3 to manifolds $M^m,N^n \subset \mathbb{R}^d$ (dimensions $m,n$ indicated when needed), and generalize from ReLU to arbitrary coordinatewise monotonic activations.

4.1 Higher-Dimensional Linking Numbers

The concept of linking generalizes from curves to higher-dimensional manifolds. For two closed, oriented, disjoint manifolds $M^m$ and $N^n$ in ambient space $\mathbb{R}^d$ where $d = m + n + 1$, the linking number is well-defined via degree.

In the layerwise arguments below, $F$ denotes the composition of the first $j$ network layers, for some $j$, applied to both manifolds. The images $F(M)$ and $F(N)$ may no longer be manifolds; whenever they remain disjoint, $\operatorname{link}(F(M), F(N))$ means the linking number of the maps $F\circ\iota_M$ and $F\circ\iota_N$ parametrizing the images $F(M)$ and $F(N)$.

########## {caption="Definition 8: Higher-dimensional linking number"}

For two disjoint, closed, oriented manifolds $M^m$ and $N^n$ in $\mathbb{R}^{d}$ where $d=m+n+1$, the linking number $\operatorname{link}(M, N)$ is defined via the Gauss map $G: M \times N \to \mathbb{S}^{d-1}$ given by $G(x,y) = (x-y)/|x-y|$:

$ \operatorname{link}(M, N) = \deg(G) $

where $\deg(G)$ is the topological degree.

########## {caption="Example 9: Higher Hopf links: $\mathbb{S}^n \sqcup \mathbb{S}^n$ in $\mathbb{R}^{2n+1}

quot;}

Two $n$-spheres can be linked in $\mathbb{R}^{2n+1}$ with $\operatorname{link} = \pm 1$. For $n=1$, this recovers the classical Hopf link ($\mathbb{S}^1 \sqcup \mathbb{S}^1 \subset \mathbb{R}^3$). For $n=2$, we obtain linked 2-spheres $\mathbb{S}^2 \sqcup \mathbb{S}^2 \subset \mathbb{R}^5$, which we use in experiments (Section 6.5). The construction embeds each sphere into complementary coordinate subspaces via stereographic projection.

The key lemmas from Section 3 generalize:

########## {caption="Lemma 10: Higher-dimensional homotopy invariance"}

Let $M^m, N^n \subset \mathbb{R}^d$ (with $d=m+n+1$) be disjoint manifolds. If $M'$ is homotopic to $M$ via a homotopy avoiding $N$, then $\operatorname{link}(M', N) = \operatorname{link}(M, N)$.

########## {caption="Lemma 11: Higher-dimensional linear separability"}

If $M^m$ and $N^n$ in $\mathbb{R}^d$ (with $d=m+n+1$) are linearly separable, then $\operatorname{link}(M, N) = 0$.

########## {caption="Theorem 12: Higher-dimensional separation impossibility"}

Let $M^m$ and $N^n$ be disjoint, closed, oriented manifolds in $\mathbb{R}^d$ (with $d=m+n+1$) such that $\operatorname{link}(M, N) \neq 0$. Then no width-$d$ feedforward network with affine transformations and coordinatewise monotonic activations can linearly separate $M$ and $N$, and perfect classification is impossible.

Proof sketch: The argument follows Theorem 7: invertible affine maps preserve $\operatorname{link}$ up to sign as homeomorphisms; monotonic activations preserve $\operatorname{link}$ via the same straight-line homotopy argument (which works in any dimension); rank-deficient transformations force intersections when $\operatorname{link} \neq 0$.

4.2 General Monotonic Activations

The Hopf link analysis used ReLU, but the impossibility extends to any coordinatewise monotonic activation $\sigma(x) = (\sigma_1(x_1), \ldots, \sigma_n(x_n))$ where each $\sigma_i$ is continuous and monotonic, e.g., sigmoid, tanh, Leaky ReLU, ELU. This shows the obstruction is fundamental to monotonicity, not an artifact of ReLU's piecewise-linear form.

**Figure 3:** Monotonic (top) vs nonmonotonic (bottom) activations.

The key to generalizing beyond ReLU is the concept of link homotopy: a simultaneous continuous deformation of multiple components that keeps them disjoint throughout. Unlike single-component homotopy, where one set moves while others stay fixed, link homotopy moves all components together via the same formula $H_t(x) = (1-t)x + t\sigma(x)$. This simultaneity is essential: if only one component moves, it can collide with stationary components even for nondecreasing activations.

########## {caption="Lemma 13: Monotonic activation preservation"}

Let $\sigma: \mathbb{R}^d \to \mathbb{R}^d$ be coordinatewise monotonic with $r$ nonincreasing coordinates. If $M, N \subset \mathbb{R}^d$ are disjoint compact manifolds such that $\sigma(M)$ and $\sigma(N)$ remain disjoint, then:

$ \operatorname{link}(\sigma(M), \sigma(N)) = (-1)^r \operatorname{link}(M, N). $

Proof sketch: The straight-line homotopy $H_t(x) = (1-t)x + t\sigma(x)$ applied simultaneously to both $M$ and $N$ defines a link homotopy when $\sigma$ is nondecreasing: if $x_i < y_i$, then monotonicity gives $\sigma_i(x_i) \le \sigma_i(y_i)$, so $H_t(x)_i < H_t(y)_i$ for $t \in [0,1)$, and the assumed disjointness $\sigma(M) \cap \sigma(N) = \varnothing$ at $t=1$ rules out a collision at the endpoint. For nonincreasing coordinates, we decompose $\sigma = R \circ \sigma'$ where $\sigma'$ is nondecreasing and $R$ is the output reflection negating those coordinates; reflections contribute the sign factor $(-1)^r$.

########## {caption="Theorem 14: General impossibility theorem"}

Let $M^m, N^n \subset \mathbb{R}^d$ be disjoint closed oriented submanifolds with complementary dimension $m + n + 1 = d$ and $\operatorname{link}(M, N) \neq 0$. Let $F: \mathbb{R}^d \to \mathbb{R}^d$ be any width-$d$ feedforward network with affine transformations and coordinatewise monotonic activations. Then $F(M)$ and $F(N)$ are not linearly separable, and perfect classification is impossible.

Proof sketch: By Lemma 13, monotonic activations preserve $\operatorname{link}$ up to sign via link homotopy. The proof structure of Theorem 7 carries through: invertible affines preserve $\operatorname{link}$ up to sign, monotonic activations preserve $\operatorname{link}$ up to sign, and since $\operatorname{link} \neq 0$ implies $\pm \operatorname{link} \neq 0$, rank-deficient layers are required to achieve $\operatorname{link} = 0$. But rank-deficient layers force intersections.

The result applies equally to smooth activations (sigmoid, tanh) and piecewise-linear activations (ReLU): the crucial property is monotonicity, not differentiability. Thus the topological barrier is intrinsic to the coordinatewise monotonic structure.

**Figure 4:** Hopf link unlinking via $|x|$ activations (full resolution: Figure 9).{width=100%}

5. Breaking Topological Constraints: Architectural Mechanisms

Section Summary: Architectural modifications can sidestep the topological limits of narrow, feedforward networks that use only monotonic activations. Non-monotonic functions such as GELU or Swish introduce local “folds” that break linking constraints, while residual skip connections and attention layers achieve similar coordinate-wise folding even when restricted to ReLU, by expressing absolute-value-like operations or smoothed V-shaped nonlinearities. These techniques, together with the observation that width at least one greater than the input dimension removes obstructions altogether, let networks perform the necessary topological rearrangements without expanding every layer.

The impossibility results in Section 3–Section 4 demonstrate fundamental limitations of narrow networks with coordinatewise monotonic activations. These constraints can be overcome through architectural approaches while preserving narrow width. We explore four complementary mechanisms, with supporting constructions in Appendix D and Appendix F.

5.1 Non-Monotonic Activation Functions

The first approach removes the monotonicity constraint underlying our impossibility theorems. While ReLU and other monotonic activations preserve topological rigidity, nonmonotonic functions create the geometric flexibility needed to overcome linking obstructions.

Important nonmonotonic activations (Figure 3, bottom) include GELU [33] ($x \cdot \Phi(x)$, standard in transformers), Swish/SiLU [34, 35] ($x \cdot \sigma(x)$), and Mish [36] ($x \cdot \tanh(\text{softplus}(x))$). The impossibility results critically depend on Lemma 4: monotonic activations preserve linking numbers via straight-line homotopies that avoid intersections. This fails for nonmonotonic functions.

########## {caption="Example 15: Nonmonotonic unlinking"}

Coordinatewise $|x|$ can unlink the Hopf link through "folding" operations that collapse signed coordinates into the positive octant. By translating data appropriately, each folding layer affects only one coordinate at a time: $(x_1, x_2, x_3) \mapsto (|x_1|, x_2, x_3) \mapsto (|x_1|, |x_2|, x_3) \mapsto \cdots$. Figure 4 illustrates.

The same recipe extends to any activation $\sigma$ that has a strict local extremum on an open interval $I \subset \mathbb{R}$, e.g., GELU near $-0.5$, Swish near $-1.3$, Mish near a similar point: For compact data, affine layers rescale the relevant coordinate into $I$, and the nonmonotonicity of $\sigma|_I$ breaks the same homotopy-disjointness argument that fails for $|\cdot|$.

**Figure 5:** Mechanisms for expressing non-monotonicity in coordinates with monotonic activation functions.{width=80%}

5.2 Skip Connections and Residual Networks

Residual networks [37] maintain monotonic activations but violate the purely feedforward constraint via skip connections. The key insight is that ResNet can express nonmonotonic functions:

########## {caption="Theorem 16: ResNet topological expressivity"}

Width-$n$ ResNet architectures using only ReLU activations can perform the same topological transformations as networks with nonmonotonic activations, including unlinking.

Proof sketch: ResNet blocks $\mathcal{F}(x) = x + \mathcal{G}(x)$ can express absolute value via the identity

$ |x| = x + 2 \operatorname{ReLU}(-x). $

Setting $\mathcal{G}(x) = 2 \operatorname{ReLU}(-x)$ yields $\mathcal{F}(x) = |x|$. This enables the same coordinatewise folding operations as nonmonotonic activations.

While ResNets may be viewed as discretizations of neural ODEs [38], the discrete formulation is strictly more expressive for topological transformations. Neural ODEs generate continuous flows (diffeomorphisms) that must preserve topological invariants. On the other hand, discrete ResNet blocks are capable of changing these invariants; the caveat being that the identity Equation 1 relies crucially on discrete, non-infinitesimal residuals.

5.3 Attention Mechanisms

The transformer architecture ([39]) introduces self-attention mechanisms enabling global information routing. For simplicity, we study the topological expressivity of attention by considering pure transformers.

########## {caption="Theorem 17: Two-token attention as a coordinate fold"}

For each input coordinate $x_i$ there is a single-head two-token attention layer, with distinct positional encodings $(p_1, p_2)$ and scalar query/key/value/output weights, that approximates $|x_i|$ near the origin. Applying this construction coordinatewise yields a pure-transformer realization of the coordinatewise fold used in our unlinking construction.

Proof sketch: Use a two-token input $(x_i, x_i)$ or a copy-token preamble. With distinct positional encodings the second-position attention weight reduces to a sigmoid in $q_2(k_1 - k_2)$. Then pick appropriate scalar weights.

In other words, keeping all other coordinates constant, the function in $x_i$ has a strict local minimum at $x_i = 0$ and is monotonically decreasing on a left interval and monotonically increasing on a right interval, giving a smoothed V-shape (Figure 5b). To be pedantic, we need an affine pre-shift that rescales the data into the V-shape's effective region. This construction is a per-coordinate local surrogate for $|\cdot|$, not a global approximation; it suffices for topological transformation because the unlinking construction depends only on the existence of a coordinatewise nonmonotonic fold on the data domain, not on exact equality with $|\cdot|$.

5.4 Width Threshold and Design Implications

Width $\geq d+1$ eliminates topological obstruction. Our impossibility results are tight: width-$(d+1)$ ReLU networks achieve universal approximation on compact subsets of $\mathbb{R}^d$ [25], with improved minimum-width thresholds for ReLU, leaky-ReLU, and compact-domain settings in ([40, 41, 42, 43]). Consequently, any disjoint configuration of class manifolds may be mapped into disjoint scalar class labels, achieving linear separability. No ambient topological operation like "unlinking" is involved here, only the approximation of a continuous label function.

Design guidance. In effecting topological changes, the variation of widths over layers matters: A wide model may contain narrow layers, e.g., a latent bottleneck, the reduced channel inside a bottleneck residual block, or the $d_{\mathrm{model}}\to d_k$ and $d_v$ projections in an attention head. In such settings, one has the option of employing mechanisms that change topology directly rather than relying on dimension expansion, for instance, (i) expand MLP width slightly beyond input dimension before narrowing; (ii) use nonmonotonic activations like GELU, SiLU, Mish in bottleneck layers; (iii) skip connections; or (iv) leverage attention.

6. Experiments

Section Summary: Experiments on classifying linked shapes in 3D and higher dimensions confirm that standard neural networks with monotonic activations like ReLU face a hard limit on accuracy due to topology, with performance worsening as networks grow deeper because of added optimization challenges. In contrast, networks using non-monotonic activations such as GELU or those incorporating skip connections like ResNets can reach perfect accuracy at moderate depths by effectively "unlinking" the shapes through folding operations. Tests in higher dimensions with multiple linked pairs further show these architectural choices help overcome the barriers, though very deep networks still encounter instability regardless of the approach.

We validate our theoretical results with experiments on the Hopf link classification task, providing empirical evidence for the impossibility results in Section 4 and the mechanisms in Section 5. Details are in Appendix G–Appendix I.

6.1 Experimental Setup

Thickened Hopf link. We construct volumetric data by sampling points from two thickened interlinked tori. Each curve is thickened by adding small perturbations normal to the curve surface. Dataset: 6000 points (3000 per class), split 80/20 train/validation.

Training protocol. Adam/AdamW with learning rate $10^{-3}$, up to 800 epochs with early stopping (patience 100–200). Cross-entropy loss.

6.2 ReLU vs GELU on Hopf Link

We compare monotonic (ReLU) versus nonmonotonic (GELU) activations across twelve depths (3–20 layers) with thirty random seeds each (720 total experiments).

: Table 2: Held-out accuracy (%) on Hopf link classification across depths, ReLU vs GELU (30 seeds per cell). Rows report mean, standard deviation, and maximum over seeds.

Model Stat 3 5 8 12 16 20
mean 84.3 77.1 63.1 57.7 53.5 50.3
ReLU std dev 9.1 18.7 18.1 15.1 9.9 1.8
max 92.8 92.5 92.6 91.6 91.4 54.4
mean 89.3 90.0 91.1 91.2 72.8 52.8
GELU std dev 2.6 2.8 3.1 2.0 19.7 9.8
max 92.9 100.0 100.0 100.0 92.6 90.1

Table 2 confirms our theory: ReLU's performance is limited by the topological ceiling (Theorem 7), and degrades further with depth as as optimization difficulty becomes significant, compounding the expressivity barrier. GELU averages $\sim$90% at moderate depths and its best runs reach $100.0%$ at depths 5–12, overcoming the barrier. At extreme depths ($\geq 16$), both activations suffer optimization instability (large standard deviations). Across 30 seeds, ReLU never exceeds $92.8%$ at any depth, matching our prediction.

6.3 ResNet vs Plain ReLU

We compare plain ReLU feedforward networks against ReLU ResNets, both at width 3.

: Table 3: Held-out accuracy (%) on Hopf link classification across depths, plain ReLU vs ResNet (30 seeds per cell). Rows report mean, standard deviation, and maximum over seeds.

Model Stat 3 4 5 6 7 8
mean 83.9 76.5 74.3 69.9 64.8 66.2
Plain std dev 10.1 15.2 18.1 19.9 18.7 19.0
max 92.0 92.3 91.2 91.9 91.5 91.5
mean 97.5 97.3 98.5 96.6 97.5 97.5
ResNet std dev 4.4 3.6 2.4 3.8 3.1 3.0
max 100.0 100.0 100.0 100.0 100.0 100.0

Across 30 seeds, ResNet reaches a 100% best run at every depth from 3 to 8, and mean accuracy stays at $96.6$–$98.5%$ across all depths. Plain ReLU never exceeds $92.3%$ and has much lower means with high seed variance, confirming both an expressivity barrier and depth-dependent optimization difficulty. Skip connections provide a mechanism to overcome topological barriers even with monotonic activations, as predicted by Theorem 16.

6.4 Mechanistic Interpretability: How ResNet Unlinks a Point/Circle Pair in $\mathbb{R}^2$

The disk-annulus separation task is the ambient-dimension $d = 2$ instance of our linking framework, given by Theorem 14 with $m=0$, $n=1$, and $d=2$: a point inside the annulus and the annulus' inner boundary circle form a $0$-manifold/$1$-manifold link with $| \operatorname{link}| = 1$, equivalently, winding number $\pm 1$. By our theory, width-$2$ monotonic feedforward networks cannot linearly separate them, but a width-$2$ ResNet can.

Figure 6 shows the layer-by-layer transformation. ResNet implements "folding" operations via Equation 1, enabling nonmonotonic transformations that separate the topologically linked components.

**Figure 6:** ResNet skip connection implementing $|x| = x + 2 \operatorname{ReLU}(-x)$ on a linked disk and annulus, respectively thickenings of a point and a circle that link in $\mathbb{R}^2$ ($m = 0$, $n = 1$ in Theorem 14). Here the linking number reduces to the winding number of the circle around the point. (a) Input $x$. (b) Residual branch $f(x) \approx 2 \operatorname{ReLU}(-x)$. (c) Output $x + f(x)$ shows that folding separates components.

6.5 Higher-Dimensional Linking: $\mathbb{S}^n \sqcup \mathbb{S}^n$ in $\mathbb{R}^{2n+1}$

We extend our experiments to higher dimensions using linked hyperspheres: two $n$-spheres embedded in $\mathbb{R}^{2n+1}$ with linking number $\pm 1$. For $n=2$, this gives $\mathbb{S}^2 \sqcup \mathbb{S}^2 \subset \mathbb{R}^5$ classified by width-5 networks. This embedding is not easy to visualize, which is another reason we favored $d = 3$. We stress that it is not one copy of $\mathbb{S}^2$ enclosed in another.

We quantify topological difficulty via linking number. A single link has only one local entanglement region; so networks can achieve high accuracy by being wrong only in that small patch. Placing $k$ disjoint translated copies of the linked pair removes this loophole by forcing the network to handle larger entanglement regions (Table 4).

\begin{tabular}{@lcccccc@}
\toprule
Model & $k{=}1$ & $k{=}2$ & $k{=}5$ & $k{=}10$ & $k{=}20$ & $k{=}50$ \\
\midrule
ReLU & 98.6 & 98.0 & 93.5 & 87.9 & 84.5 & 80.2 \\
ReLU+Skip & \textbf{100.0} & \textbf{98.7} & \textbf{94.1} & 85.4 & 83.6 & 80.9 \\
GELU & 98.8 & 98.4 & 92.5 & 91.1 & 88.6 & \textbf{84.8} \\
Swish & 97.0 & 98.2 & 92.0 & \textbf{91.6} & \textbf{88.9} & 84.3 \\
\bottomrule
\end{tabular}

At small $k$, monotonic architectures with skip connections reach the expressivity ceiling (ReLU+Skip attains 100% at $k=1$, 98.7% at $k=2$). As $k$ increases, the best nonmonotonic architectures are GELU and Swish, which hold a $3$–$4$pp accuracy advantage over the best monotonic architecture at $k\geq 10$, consistent with our expectation that nonmonotonic activations have the ability to resolve each local entanglement separately. The scale of the accuracy advantage of nonmonotonic activations and skip connections is smaller at a single link here than in the Hopf-link experiments: compare $k=1$ in Table 4 ($n=2$) with Table 2 ($n=1$). We offer a geometric interpretation: a monotonic network is forced into errors only near the entanglement region, whose volume fraction decreases with ambient dimension; a single link thus depresses the accuracy ceiling less in $\mathbb{R}^5$ than in $\mathbb{R}^3$, and larger $k$ is needed to expose the obstruction (Appendix G.5).

6.6 Linking in Real Data: CIFAR-10

As a proof-of-concept, we investigate whether topological linking detectable by our algorithm corresponds to classification difficulty in real image data. We emphasize that the evidence below is correlational rather than causal: Classification on real images involves many confounding factors beyond ambient topology, and the construction relies on 3D PCA projection rather than the native data manifold. Using our linking detection algorithm, we analyze CIFAR-10 class manifolds projected to 3D via PCA.

Link detection. With 20$\times$ data augmentation (1.05M samples) and $k$-NN graph construction ($k=15$, mutual edges), we detect linked cycles between bird and deer classes at $\varepsilon = 0.034$ (0.22% of the 3D bounding box diagonal). The witness cycles have linking number $\operatorname{link} = -1$ with Gauss integral $-1.004$ (Figure 7). This binary search only locates the onset scale; the all-pair consistency study uses fixed thresholds, and detected graph-cycle witnesses persist as $\varepsilon$ increases because the filtered $k$-NN edge set only grows. This is a reproducible linking signal in PCA-3D, not a claim about linking of the full $3072$D pixel manifold.

**Figure 7:** Linked cycles in CIFAR-10: bird (blue) and deer (red) with $\operatorname{link} = -1$ at $\varepsilon = 0.034$.

Ten-class linking consistency. Running detection eleven times across all 45 class pairs yields a linking-consistency summary. Of the 45 pairs, 27 are strongly linked (

gt;$70% consistency), 8 are weak or unlinked (
lt;$30%), and 10 are ambiguous. High examples include deer–dog (91%), bird–cat (91%), cat–dog (82%), and automobile–truck (91%); low controls include frog–ship (18%), airplane–horse (18%), and cat–ship (27%).

Classification experiments. We train width-bounded CNNs (all intermediate layers $\leq 3072$D) on both binary and ten-class classification tasks, comparing monotonic (ReLU, ELU, SELU, LeakyReLU) versus nonmonotonic (GELU, Swish, Mish) activations.

\begin{tabular}{lcccc}
\toprule
 {} & \multicolumn{2}{c}{Linked (deer--dog)} & \multicolumn{2}{c}{Unlinked (frog--ship)} \\
\cmidrule(lr){2-3} \cmidrule(lr){4-5}
Activation & Type & Acc (\%) & Type & Acc (\%) \\
\midrule
GELU & NONM & \textbf{90.8} & NONM & 97.9 \\
Mish & NONM & \textbf{90.8} & NONM & 97.7 \\
Swish & NONM & 90.1 & NONM & 97.8 \\
ReLU & MONO & 89.6 & MONO & 97.8 \\
LeakyReLU & MONO & 89.6 & MONO & 97.7 \\
ELU & MONO & 89.1 & MONO & 97.2 \\
SELU & MONO & 87.4 & MONO & 97.6 \\
\midrule
\textbf{Gap} & \multicolumn{2}{c}{+1.2\%} & \multicolumn{2}{c}{+0.1\%} \\
\bottomrule
\end{tabular}

At L8 no-skip (Table 5), all nonmonotonic activations outperform all monotonic activations on the linked deer–dog pair (+1.2% gap), while no such pattern exists on the unlinked frog–ship pair (control). With skip connections, the effect disappears: monotonic networks match nonmonotonic ones, as predicted by Theorem 16. As a localization diagnostic, we retrained bird–deer L8 no-skip ReLU/GELU classifiers, detected one PCA-3D link witness, and stratified the unaugmented test set by distance to that witness. The activation gap is largest near the witness and decays with distance (Table 6); this is diagnostic rather than causal evidence, as distance is measured in PCA-3D and can mix topology with local geometry. PCA-3D linking consistency also correlates with within-CIFAR class-pair confusion ($r \approx 0.48$, $p < 0.001$), outperforming pixel-space distance metrics.

\begin{tabular}{lrrrr}
\toprule
Subset & $n$ & ReLU (\%) & GELU (\%) & Gap (pp) \\
\midrule
lt;10\varepsilon$ & 31 & 90.6 & 97.1 & +6.5 \\
lt;20\varepsilon$ & 243 & 89.4 & 92.3 & +2.9 \\
lt;50\varepsilon$ & 1191 & 89.3 & 91.4 & +2.1 \\ All & 2000 & 89.9 & 91.6 & +1.6 \\
gt;50\varepsilon$ & 809 & 90.6 & 91.4 & +0.8 \\ \bottomrule \end{tabular}

Expressivity vs optimization. Our theoretical results concern expressivity, i.e., what functions network architectures can represent, not optimization, i.e., what stochastic gradient descent actually finds. Even when two architectures have identical expressivity, they may exhibit different training dynamics: convergence speed, sensitivity to learning rate, propensity to find particular local minima, etc. The observed CIFAR-10 gaps thus reflect a combination of (i) the topological expressivity barrier predicted by our theory, and (ii) optimization dynamics that our theory does not address.

7. Conclusion

Section Summary: This paper presents a new way to evaluate neural networks by examining the specific geometric folds and topological changes they can perform on data embedded in space, instead of focusing only on whether they can approximate target functions. It highlights that architectures differ in their ability to overcome topological barriers, as monotonic activations create limits that skip connections, attention mechanisms, and nonmonotonic activations can overcome through folding. The framework draws on extrinsic topological measures that reflect how data is positioned in its surrounding space, opening connections between low-dimensional topology and machine learning.

We provide a new approach to analyze neural network expressivity. Rather than asking if a network can approximate a target function, we ask what geometric operations on embedded data it can perform and what topological changes it can effect. In this work, we focus on folding for the former and linking number for the latter.

The key insight is that it does not matter that different architectures may all have the universal approximation property; they differ from each other in their efficacies to change topology. We show that a monotonic activation imposes a topological barrier in this regard but mechanisms like skip connections, attention mechanisms, and nonmonotonic activations can all break this barrier by supplying the capability to "fold" embedded data.

To do this, our framework requires extrinsic topological invariants that capture the geometry of data embedded in an ambient space. This is fundamentally different from topological data analysis, which studies intrinsic topological invariants. For a case in point, the linking number of two manifolds depends on how they are embedded in $\mathbb{R}^n$, not just on the manifolds themselves. This extrinsic perspective reflects algorithmic reality: neural networks must transform data within the ambient space; its embedded geometry is often more important than its intrinsic geometry.

We are hopeful that this work would provide a conduit for low-dimensional topology and geometric topology to be applied in machine learning. In a companion paper [7], we go beyond linking number to show how more sophisticated invariants from link theory and knot theory, such as Milnor's $\bar{\mu}$-invariants and knot types, may be similarly employed. In addition, the relation between unlinking and classification discussed in this article hints at a broader pattern, as yet unexplored.

Impact Statement

Section Summary: This research explores the power and limits of neural networks through both theory and experiments, highlighting basic weaknesses in certain designs that could guide more thoughtful ways to build them. It also introduces an algorithm to detect connections that reveal the underlying structural complexity of data sets. Together these contributions may help researchers better understand network capabilities and assess the difficulty of different data problems.

This paper presents theoretical and empirical work on neural network expressivity. We identify fundamental limitations of certain architectures, which may inform more principled architecture design. We also propose a link detection algorithm that characterizes topological complexity in datasets, which may inform dataset difficulty analysis.

Acknowledgments

JR and LH are partially supported by a Vannevar Bush Faculty Fellowship ONR N000142312863.

Appendix

Section Summary: The appendix defines several neural network architectures, such as width-limited feedforward nets, ResNets, pure transformers, and bottleneck autoencoders, then proves that autoencoders whose narrowest layer matches the dimension of linked input manifolds cannot produce linearly separable outputs without merging the sets. It further shows that standard classifier heads succeed exactly when the preceding features are linearly separable, and it examines invertible models that act as ambient homeomorphisms preserving topological properties including connectedness and linking numbers. These results establish fundamental limits on what restricted architectures can achieve with topologically nontrivial data.

A. Network Architecture

This appendix collects the network-architecture definitions used in the main text (§ A.1) and the classifier-head/linear-separability equivalence (§ A.2).

A.1 Network Architectures

########## {caption="Definition 18: Width-$d$ feedforward network"}

A width-$d$ feedforward network with activation $\sigma$ is $F = A_L \circ \sigma \circ A_{L-1} \circ \sigma \circ \cdots \circ \sigma \circ A_1$, where each $A_i(x) = W_i x + b_i$ is affine with $W_i \in \mathbb{R}^{d \times d}$, $b_i \in \mathbb{R}^d$, and $\sigma$ is applied coordinatewise. All intermediate representations lie in $\mathbb{R}^d$.

########## {caption="Definition 19: Width-$d$ ResNet"}

A width-$d$ ResNet is $F = B_L \circ \cdots \circ B_1$ where each block $B_i(x) = x + R_i(x)$ and $R_i = A_{i,2} \circ \sigma \circ A_{i,1}$ is a width-$d$ feedforward sublayer with monotonic $\sigma$ (typically ReLU).

########## {caption="Definition 20: Pure transformer"}

A pure transformer is a transformer with residual connections and layer normalization removed: each block applies self-attention $\operatorname{Attention}(X) = \operatorname{softmax}\bigl(\tfrac{XW_Q(XW_K)^{\scriptscriptstyle\mathsf{T}}}{\sqrt{d_k}}\bigr) XW_V$, then an affine layer, then a coordinatewise activation. The width constraint requires all intermediate dimensions $\leq n$.

########## {caption="Definition 21: Autoencoder with bottleneck $d

quot;}

An autoencoder with bottleneck $d$ is $F = D \circ E$ where the encoder $E: \mathbb{R}^n \to \mathbb{R}^d$ projects via an initial affine $A_1: \mathbb{R}^n \to \mathbb{R}^d$ followed by width-$d$ monotonic-feedforward layers, and the decoder $D: \mathbb{R}^d \to \mathbb{R}^n$ symmetrically expands via width-$d$ layers and a final $A_L: \mathbb{R}^d \to \mathbb{R}^n$.

########## {caption="Corollary 22: Autoencoder topological impossibility"}

Let $X, Y \subset \mathbb{R}^n$ be disjoint compact manifolds contained in a $d$-dimensional affine subspace $H \subset \mathbb{R}^n$ with $\operatorname{link}(X, Y) \neq 0$. No autoencoder with bottleneck $d$ and coordinatewise monotonic activations can transform $(X, Y)$ into linearly separable images while preserving disjointness.

Proof: After an appropriate rotation, assume $H = \mathbb{R}^d \times {0}^{n-d}$. Let $G: H \cong \mathbb{R}^d \to \mathbb{R}^d$ denote the pre-final-decoder feature map, i.e., the composition of the encoder restricted to $H$ with all width-$d$ decoder layers except the final affine $A_L: \mathbb{R}^d \to \mathbb{R}^n$. Then $G$ is a width-$d$ feedforward network in $\mathbb{R}^d$ with monotonic activations, and $F|_H = A_L \circ G$.

Suppose for contradiction that $F(X), F(Y) \subset \mathbb{R}^n$ are linearly separable by a hyperplane $\pi^{\scriptscriptstyle\mathsf{T}} z = \alpha$. Pulling back through $A_L$, the linear functional $(A_L^{\scriptscriptstyle\mathsf{T}} \pi)$ on $\mathbb{R}^d$ satisfies $(A_L^{\scriptscriptstyle\mathsf{T}} \pi)^{\scriptscriptstyle\mathsf{T}} G(x) + (\pi^{\scriptscriptstyle\mathsf{T}} A_L(0) - \alpha) = \pi^{\scriptscriptstyle\mathsf{T}} F(x) - \alpha$, which is positive on $G(X)$ and negative on $G(Y)$. Hence $G(X)$ and $G(Y)$ are linearly separable in $\mathbb{R}^d$. But $\operatorname{link}(X, Y) \neq 0$, so by Theorem 14 no width-$d$ feedforward network with monotonic activations can render $X, Y \subset \mathbb{R}^d$ linearly separable, a contradiction.

The bottleneck dimension $d$ alone determines the topological constraint; the input dimension $n$ is irrelevant. To break the obstruction one must widen the bottleneck or place full-width nonmonotonic/skip-augmented layers before compression.

A.2 Classifier Heads and Linear Separability

A standard classifier head maps features $z \in \mathbb{R}^d$ to logits $\ell = Wz + b \in \mathbb{R}^c$, predicting $\hat{y} = \arg\max_i \ell_i$. The class-$i$ decision region $D_i = {z \in \mathbb{R}^c : z_i > z_j \text{ for all } j \neq i}$ is the intersection of $c-1$ open half-spaces, hence convex, and the ${D_i}$ are pairwise disjoint.

########## {caption="Proposition 23: Binary classification equivalence"}

For $c = 2$, $\hat{y} = \arg\max{\ell_0, \ell_1} = \mathbf{1}\bigl[(w_0 - w_1)^{\scriptscriptstyle\mathsf{T}} z + (b_0 - b_1) > 0\bigr]$. Two classes are perfectly classified by such a head iff their feature representations are linearly separable.

Hence proving that a width-$d$ network cannot separate linked components is equivalent to proving that no classifier head achieves perfect accuracy on them.

B. Invertible Architectures and Ambient Homeomorphisms

An ambient homeomorphism of $\mathbb{R}^d$ is a continuous bijection $h: \mathbb{R}^d \to \mathbb{R}^d$ with continuous inverse. By the invariance of domain (Brouwer 1912; ([44], Thm. 36.5)), any continuous injective map $f: U \to \mathbb{R}^d$ on an open $U \subseteq \mathbb{R}^d$ is an open map onto its image, hence a homeomorphism onto $f(U)$, though not in general an ambient homeomorphism of $\mathbb{R}^d$. The architectures we analyze in this appendix (flow-based models, Neural ODEs, normalizing flows) are constructed to be ambient homeomorphisms by design: their forward maps are explicit continuous bijections $\mathbb{R}^d \to \mathbb{R}^d$ with continuous inverses. For such architectures, the lemmas below apply globally; for a continuous injective width-$d$ feedforward network, they apply on the image of the data manifold under that network, which suffices for the linking-preservation conclusion.

########## {caption="Lemma 24: Ambient homeomorphisms preserve component count and intrinsic invariants"}

For disjoint compact connected sets $X_1, \ldots, X_k \subset \mathbb{R}^n$ and any ambient homeomorphism $h: \mathbb{R}^n \to \mathbb{R}^n$, the images $h(X_1), \ldots, h(X_k)$ are $k$ pairwise disjoint compact connected sets, and every intrinsic topological invariant of each $X_i$ (homotopy type, homology, knot complement type, etc.) is preserved.

Proof: Continuity preserves connectedness, bijectivity preserves disjointness, and $h$ restricted to each $X_i$ is a homeomorphism onto $h(X_i)$, so every homotopy- or homeomorphism-invariant of $X_i$ transfers. This justifies the "cannot merge connected components" and "cannot fill holes" rows of the AH (ambient homeomorphism) column in Table 1; the "cannot unlink" row uses the companion linking-preservation result (Lemma 25).

########## {caption="Lemma 25: Ambient homeomorphisms preserve linking numbers"}

For disjoint simple closed curves $X, Y \subset \mathbb{R}^3$ and any ambient homeomorphism $h: \mathbb{R}^3 \to \mathbb{R}^3$, $\operatorname{link}(h(X), h(Y)) = \pm \operatorname{link}(X, Y)$ ($+$ if $h$ is orientation-preserving, $-$ otherwise).

Proof: The linking number is the degree of the Gauss map $\Gamma: X \times Y \to \mathbb{S}^2$ (Definition 26); $h$ induces a self-map of $X \times Y$ preserving degree up to the orientation sign.

B.1 Invertible Architectures in Machine Learning

Invertible architectures whose forward map is an ambient homeomorphism therefore cannot change linking number at any depth. This includes reversible residual networks (RevNet ([45]), i-RevNet ([46])) and normalizing flows ([47, 48]), which are invertible by construction; and ODE-based flows (Neural ODEs ([38]), FFJORD ([49]), Flow Matching ([50])), whose ODE integration of a Lipschitz vector field produces a diffeomorphism. [51] verify this constraint empirically on concentric-ring classification with Neural ODEs; their augmented variant works precisely by lifting to higher dimension (width expansion). Discrete-time ResNets are not subject to this constraint: their layer-by-layer composition need not be a homeomorphism, and a discrete block can implement $|x| = x + 2 \operatorname{ReLU}(-x)$ (Theorem 16), which is not invertible. One-step direct evaluators, e.g., MeanFlow ([52]), similarly escape the homeomorphism constraint by avoiding ODE integration entirely.

C. Proofs for Section 3 and Section 4: Linking-Number Preservation

This appendix proves the main linking-preservation and impossibility theorems for both the $\mathbb{R}^3$/ReLU setting of Section 3 and the general width-$d$/coordinatewise-monotonic setting of Section 4. The general results subsume the $\mathbb{R}^3$/ReLU special case; we present the general proofs and indicate where the elementary $\mathbb{R}^3$ argument specializes.

C.1 Linking number and link homotopy

########## {caption="Definition 26: Link and linking number in $\mathbb{R}^3

quot;}

A link is a finite collection of disjoint simple closed curves in $\mathbb{R}^3$. For disjoint oriented simple closed curves $X, Y \subset \mathbb{R}^3$ the linking number $\operatorname{link}(X, Y) \in \mathbb{Z}$ is the Gauss integral

$ \operatorname{link}(X, Y) = \frac{1}{4\pi} \oint_{X}\oint_{Y} \frac{(x - y) \cdot (dx \times dy)}{|x - y|^3}, $

equivalently the signed crossing-count $\tfrac{1}{2}\sum_{p \in \pi(X) \cap \pi(Y)} \epsilon_p$ for any regular projection $\pi: \mathbb{R}^3 \to \mathbb{R}^2$.

########## {caption="Definition 27: Degree and higher-dimensional linking number"}

The degree of a continuous map $G: X \to \mathbb{S}^k$ from a closed oriented $k$-manifold $X$ is $\deg(G) = \sum_{x \in G^{-1}(y)} \operatorname{sign}(\det DG_x)$ at any regular value $y \in \mathbb{S}^k$. For disjoint closed oriented manifolds $M^m, N^n \subset \mathbb{R}^d$ with $d = m + n + 1$, the linking number $\operatorname{link}(M, N)$ is the degree of the Gauss map $G(x,y) = (x-y)/|x-y|: M \times N \to \mathbb{S}^{d-1}$; for $m = n = 1$, $d = 3$ this recovers Definition 26.

########## {caption="Definition 28: Link homotopy"}

A link homotopy of disjoint compact subsets $X_1, \ldots, X_k \subset \mathbb{R}^n$ is a continuous map $H: \bigsqcup_i X_i \times [0,1] \to \mathbb{R}^n$ with $H(\cdot, 0)$ the inclusion and $H(X_i, t) \cap H(X_j, t) = \varnothing$ for all $t \in [0,1]$ and $i \neq j$. Two configurations are link homotopic if connected by such a homotopy.

########## {caption="Remark 29: Parametrized-image convention"}

In the layerwise arguments below, notation such as $X^{(j)}$ and $Y^{(j)}$ denotes the images of the composed maps

$ f_j = F_j\circ\cdots\circ F_1\circ \iota_X : M \to \mathbb{R}^d, \qquad g_j = F_j\circ\cdots\circ F_1\circ \iota_Y : N \to \mathbb{R}^d, $

with the parametrizing maps left implicit. Thus $\operatorname{link}(X^{(j)},Y^{(j)})$ means the Gauss map degree of

$ (u,v)\mapsto \frac{f_j(u)-g_j(v)}{|f_j(u)-g_j(v)|}, $

which is well-defined whenever $f_j(M)\cap g_j(N)=\varnothing$, even if one component has self-intersections or the composed maps are not embeddings ([31], Ch. 5); see also ([32], Sec. 2.2). A link homotopy is likewise a homotopy of these maps, equivalently $h_t\circ f_j$ and $h_t\circ g_j$ when written using an ambient homotopy $h_t: \mathbb{R}^d\to \mathbb{R}^d$. We keep the set notation as a standard abuse of notation, with the underlying composed maps understood.

########## {caption="Lemma 30: Link homotopy invariance"}

If $(M', N')$ is link homotopic to $(M, N)$ in $\mathbb{R}^d$ ($d = m + n + 1$), then $\operatorname{link}(M', N') = \operatorname{link}(M, N)$.

Proof: The Gauss map varies continuously with $t$ along the link homotopy (disjointness keeps it well-defined), and degree is a homotopy invariant; equivalently, $t \mapsto \operatorname{link}(H_M(M,t), H_N(N,t))$ is a continuous $\mathbb{Z}$-valued function on $[0,1]$, hence constant.

########## {caption="Lemma 31: Linear separability implies $\operatorname{link} = 0

quot;}

If two disjoint closed oriented manifolds $M^m, N^n \subset \mathbb{R}^d$ ($d = m + n + 1$) are linearly separable, then $\operatorname{link}(M, N) = 0$.

Proof: A separating hyperplane partitions $\mathbb{R}^d$ into disjoint open half-spaces $H^+ \ni M$ and $H^- \ni N$. Straight-line contractions of $M$ to a point $p \in H^+$ and $N$ to a point $q \in H^-$ stay in their respective half-spaces and so remain disjoint, defining a link homotopy. At the endpoint of the homotopy, the Gauss map $M \times N \to \mathbb{S}^{d-1}$ is the constant map sending $(x, y)$ to $(p - q)/|p - q|$, hence has degree zero; by Lemma 30 this degree equals $\operatorname{link}(M, N)$, so $\operatorname{link}(M, N) = 0$.

C.2 Preservation under monotonic activations

########## {caption="Lemma 32: Monotonic-activation linking preservation"}

Let $\sigma: \mathbb{R}^d \to \mathbb{R}^d$ be coordinatewise monotonic, with $r$ nonincreasing coordinates. If disjoint compact manifolds $M, N \subset \mathbb{R}^d$ satisfy $\sigma(M) \cap \sigma(N) = \varnothing$, then

$ \operatorname{link}(\sigma(M), \sigma(N)) = (-1)^r \operatorname{link}(M, N). $

Proof: Decompose $\sigma = R \circ \sigma'$ coordinatewise as follows. For each coordinate $i$, set $\sigma'_i = \sigma_i$ if $\sigma_i$ is nondecreasing and $\sigma'_i = -\sigma_i$ if $\sigma_i$ is nonincreasing; then every $\sigma'_i$ is nondecreasing. Let $R: \mathbb{R}^d \to \mathbb{R}^d$ be the diagonal reflection that negates each output coordinate $i$ where $\sigma_i$ was nonincreasing ($R$ has $r_i = -1$ for those $r$ coordinates and $r_i = +1$ for the rest). Then $R_i(\sigma'_i(t)) = \sigma_i(t)$ for every $i$ and every $t$, so $\sigma = R \circ \sigma'$.

Stage 1: link homotopy via $\sigma'$. The straight-line interpolation $H_t(x) = (1-t)x + t\sigma'(x)$, applied simultaneously to $M$ and $N$, is a link homotopy. Suppose $H_t(x) = H_t(y)$ with $x \in M$, $y \in N$. Pick coordinate $i$ with $x_i \neq y_i$ (exists since $M \cap N = \varnothing$); WLOG $x_i < y_i$. Since $\sigma'_i$ is nondecreasing, $\sigma'_i(x_i) \le \sigma'_i(y_i)$, so $H_t(x)_i = (1-t)x_i + t\sigma'_i(x_i) < (1-t)y_i + t\sigma'_i(y_i) = H_t(y)_i$ for $t \in [0,1)$. At $t = 1$ equality would require $\sigma'(x) = \sigma'(y)$; applying $R$ gives $\sigma(x) = \sigma(y)$, contradicting $\sigma(M) \cap \sigma(N) = \varnothing$. By Lemma 30, $\operatorname{link}(\sigma'(M), \sigma'(N)) = \operatorname{link}(M, N)$.

Stage 2: reflection. $R$ is a homeomorphism of $\mathbb{R}^d$ with $\det R = (-1)^r$. Under $R$, the Gauss map $G: M \times N \to \mathbb{S}^{d-1}$ (Definition 27) for any disjoint $M, N \subset \mathbb{R}^d$ becomes $G_R(x,y) = R(x-y)/|R(x-y)|$; since $R$ is an isometry of $\mathbb{R}^d$ restricted to a degree-$(-1)^r$ self-map of $\mathbb{S}^{d-1}$, the degree of the Gauss map is multiplied by $(-1)^r$. Hence $\operatorname{link}(R(\sigma'(M)), R(\sigma'(N))) = (-1)^r \operatorname{link}(\sigma'(M), \sigma'(N)) = (-1)^r \operatorname{link}(M, N)$, as claimed.

For the $\mathbb{R}^3$/ReLU special case with curves $X,Y$, the same conclusion admits an elementary one-coordinate-at-a-time argument: write $\sigma = G_3 \circ G_2 \circ G_1$ where $G_j$ applies ReLU only to coordinate $j$, and homotope $X$ then $Y$ through each $G_j$ in turn. A collision $H^X_t(x) = y$ would force $G_j(x) = G_j(y)$ at the endpoint, contradicting $\sigma(X) \cap \sigma(Y) = \varnothing$. We refer to this elementary form below as the sequential ReLU homotopy.

**Figure 8:** Kernel translation argument. If a rank-deficient affine map with $v$ in its kernel does not create intersections, we can slide components along $v$ (unchanged by $f$) to achieve linear separation, then contract each to a point, forcing $\operatorname{link} = 0$.

C.3 Rank-deficient transformations force intersection

########## {caption="Lemma 33: Rank-deficient intersection, general $\mathbb{R}^d

quot;}

Let $M^m, N^n \subset \mathbb{R}^d$ be disjoint closed oriented submanifolds with $m + n + 1 = d$ and $\operatorname{link}(M, N) \neq 0$. For any rank-deficient affine $f: \mathbb{R}^d \to \mathbb{R}^d$, $f(M) \cap f(N) \neq \varnothing$.

Proof: Suppose not. Write $f(x) = Ax + b$ with $\operatorname{rank}(A) < d$ and pick a unit vector $v \in \ker(A)$. Since $M, N$ are compact, choose $L$ large enough that $M$ and $N + Lv$ lie in disjoint open half-spaces normal to $v$ (hence are linearly separable).

Translation along $v$ commutes with $f$: $f(N + tv) = AN + Atv + b = AN + b = f(N)$ for every $t$, so $f(M) \cap f(N + tv) = f(M) \cap f(N) = \varnothing$ for all $t \in [0, L]$. Hence any putative collision $x = y + tv$ during the translation would force $f(x) = f(y)$, contradicting $f(M) \cap f(N) = \varnothing$. So $t \mapsto (M, N + tv)$ is a link homotopy. By Lemma 30, $\operatorname{link}(M, N + Lv) = \operatorname{link}(M, N) \neq 0$. But $(M, N + Lv)$ is linearly separable, so Lemma 31 gives $\operatorname{link}(M, N + Lv) = 0$, a contradiction.

In $\mathbb{R}^3$, every rank-deficient affine map factors through a rank-$2$ orthogonal projection $P: \mathbb{R}^3 \to \mathbb{R}^2$; the combinatorial linking formula then equates $\operatorname{link}(X, Y)$ with a signed sum over $P(X) \cap P(Y)$, so non-zero linking forces a non-empty projection intersection. This is the special case used to prove Theorem 7.

C.4 Main impossibility theorems

Proof of Theorem 14 (general impossibility): Suppose a width-$d$ feedforward network $F = A_L \circ \sigma_{L-1} \circ A_{L-1} \circ \cdots \circ \sigma_1 \circ A_1$ with coordinatewise monotonic $\sigma_i$ achieves linear separability of $M, N \subset \mathbb{R}^d$ with $\operatorname{link}(M, N) \neq 0$. Here $M^{(j)}, N^{(j)}$ are understood in the parametrized-image sense of Remark 29. Linear separability forces $M^{(j)} \cap N^{(j)} = \varnothing$ at every layer (else collision propagates). We prove by induction on $j$ that $\operatorname{link}(M^{(j)}, N^{(j)}) = \pm \operatorname{link}(M, N) \neq 0$: invertible affine layers preserve $\operatorname{link}$ up to sign (ambient homeomorphisms preserve degree); monotonic activations preserve $\operatorname{link}$ up to sign by Lemma 32; rank-deficient affine layers would create an intersection by Lemma 33, contradicting disjointness. Therefore $\operatorname{link}(F(M), F(N)) = \pm \operatorname{link}(M, N) \neq 0$. But linear separability requires $\operatorname{link} = 0$ by Lemma 31. Contradiction.

Proof of Theorem 7 ($\mathbb{R}^3$/ReLU): The same argument with $d = 3$ and $\sigma_i = \operatorname{ReLU}$; the sequential ReLU homotopy substitutes for Lemma 32.

Proof of Theorem 12 (higher-dimensional): The same argument with general $d = m + n + 1$; Lemma 31 and Lemma 32 apply verbatim.

D. Width Upper Bound for Topological Unlinking

This section shows that width $d+1$ is sufficient to eliminate the classification obstruction: a width-$(d+1)$ ReLU network can linearly separate any disjoint compact configuration in $\mathbb{R}^d$ regardless of linking. The construction does not unlink the classes as ambient subsets of $\mathbb{R}^d$; it maps them into disjoint scalar intervals, which is the operation classification actually requires.

########## {caption="Theorem 34: Unlinking via width-$(d+1)$ networks"}

Let $X_1, \ldots, X_k \subset \mathbb{R}^d$ be disjoint compact subsets in any linking configuration. For any $\varepsilon \in (0, 1/2)$, there exists a feedforward network $F: \mathbb{R}^d \to \mathbb{R}$ with ReLU activations and width $d+1$ such that $|F(x) - i| < \varepsilon$ for every $x \in X_i$, so the images $F(X_i) \subset (i - \tfrac{1}{2}, i + \tfrac{1}{2})$ lie in disjoint convex intervals.

Proof: Disjoint compact sets in $\mathbb{R}^d$ admit disjoint open neighborhoods $U_i \supset X_i$ together with Urysohn cutoffs $\psi_i: \mathbb{R}^d \to [0,1]$ with $\psi_i \equiv 1$ on $X_i$ and $\psi_i \equiv 0$ outside $U_i$. The target $\tilde{f}(x) = \sum_{i=1}^{k} i \cdot \psi_i(x)$ is continuous and equals $i$ on $X_i$. By the Hanin–Sellke width-$(d+1)$ universal approximation theorem [25], $\tilde{f}$ can be uniformly $\varepsilon$-approximated on the compact set $\bigcup_i \overline{U_i}$ by a width-$(d+1)$ ReLU network $F$. Then $|F(x) - i| < \varepsilon < \tfrac{1}{2}$ on each $X_i$, separating the images into disjoint intervals. To keep input and output dimensions equal, extend $F$ to $G(x) = (F(x), 0, \ldots, 0)$.

Width $d+1$ is therefore tight: width $d$ is impossible by the lower bound below, while width $d+1$ suffices.

E. Width Lower Bound for Universal Approximation

########## {caption="Theorem 35: Width lower bound for universal approximation"}

For any continuous coordinatewise monotonic activation (ReLU, leaky-ReLU, sigmoid, tanh, etc.), the minimum width $w_{\min}$ for which width-$w_{\min}$ feedforward networks $F: \mathbb{R}^d \to \mathbb{R}$ are uniform universal approximators on compact sets satisfies $w_{\min} \ge d + 1$.

Proof: Suppose for contradiction that width-$d$ networks with some monotonic $\sigma$ are dense in $C(K)$ for every compact $K \subset \mathbb{R}^d$. We treat the three cases $d = 1$, $d = 2$, $d \ge 3$ in turn.

$d = 1$. A width-$1$ feedforward network is a composition of monotonic scalar maps (affine $\mathbb{R} \to \mathbb{R}$ composed with monotonic $\sigma: \mathbb{R} \to \mathbb{R}$); such a composition is itself monotonic. Monotonic functions on $\mathbb{R}$ are not dense in $C([0, 1])$ (they cannot approximate any nonmonotonic continuous function), contradicting universal approximation. Hence $w_{\min} \ge 2$.

$d = 2$. Take $M = {p_0}$ a point and $N$ a smooth simple closed curve in $\mathbb{R}^2$ encircling $p_0$ once, so $\operatorname{link}(M, N) = 1$ (the winding number / degree of the Gauss map $M \times N \to \mathbb{S}^1$). The function $f|_M = 0$, $f|_N = 1$ extends continuously to all of $\mathbb{R}^2$ by Tietze extension; a width-$2$ uniform approximation on the compact $M \cup N$ would give a linear separator, contradicting Theorem 14 with $(m, n, d) = (0, 1, 2)$.

$d \ge 3$. Write $d = m + n + 1$ with $m, n \ge 1$ and take a non-trivially linked pair $(M^m, N^n) \subset \mathbb{R}^d$ with $\operatorname{link}(M, N) = 1$: the Hopf link for $d = 3$, the linked-spheres construction of Appendix G.4 for $d > 3$. Same Tietze + Theorem 14 argument applies.

In all three cases, $w_{\min} \ge d + 1$.

The contribution here is the proof technique, not the bound itself. Prior width-$d$ insufficiency results constrain either the activation class or its regularity: [25] (ReLU, level-set components), [26] (activations approximable by injections, level-set topology), [40, 41, 42, 43] (ReLU, leaky-ReLU, and compact-domain minimum-width analyses), and [27] (monotone Lipschitz activations, approximation-theoretic). Our argument requires only continuous coordinatewise monotonic activations, with no Lipschitz regularity, smoothness, or approximation by injections, and obtains the bound as a direct corollary of ambient topological invariance, complementing the width-$(d+1)$ upper bound of Appendix D.

F. Detailed Constructions Breaking Topological Constraints

F.1 Why nonmonotonic activations break homotopy preservation

The monotonic-activation preservation lemma (Lemma 32) used the straight-line homotopy $H_t(x) = (1-t)x + t\sigma(x)$, which is a link homotopy precisely because monotonicity rules out coordinatewise collisions during interpolation. For $\sigma(x) = |x|$, the same straight-line interpolation crosses the fold line $x_i = 0$ from negative to positive sides: distinct points with mirror-image coordinates can collide on the fold. Thus $\operatorname{link}(\sigma(M), \sigma(N))$ need not equal $\operatorname{link}(M, N)$, and the rigidity that drives the impossibility theorems disappears.

F.2 Hopf link unlinking via absolute value activations

We give an explicit five-step construction (Figure 9) that takes the Hopf link $X(t) = (\cos t, \sin t, 0)$, $Y(s) = (0, 1+\cos s, \sin s)$ (the same Hopf link as in Example 1, with the $X$-axis offset of the main text swapped to the $Y$-axis by a $90^\circ$ rotation of coordinates, chosen so the first fold acts on $y$) to a linearly separable configuration in $\mathbb{R}^3$ using only coordinatewise $|\cdot|$ and affine maps:

  1. Apply $|\cdot|$ to the $y$-coordinate: $X \mapsto (\cos t, |\sin t|, 0)$.
  2. Affine $(x,y,z) \mapsto (x, 1-y, z)$: now $X = (\cos t, 1 - |\sin t|, 0)$ and $Y = (0, -\cos s, \sin s)$.
  3. Apply $|\cdot|$ to the $x$- and $y$-coordinates.
  4. Apply $|\cdot|$ to the $z$-coordinate.

After step 4, both curves lie in the positive octant; an explicit hyperplane (shaded in Figure 9) separates them.

Extension to activations with a local extremum. The recipe generalizes to any activation $\sigma: \mathbb{R} \to \mathbb{R}$ with a strict local extremum on an open interval $I \subset \mathbb{R}$, e.g., the local minimum of GELU near $-0.5$, of Swish/SiLU near $-1.3$, of Mish near a similar point: since the data is compact, an affine pre-shift $x \mapsto ax + b$ rescales the relevant data coordinate into $I$, on which $\sigma|_I$ is nonmonotonic. The straight-line homotopy $t \mapsto (1-t)x + t\sigma(x)$ on $I$ admits a fold-line collision in exactly the same way as $|\cdot|$ does on $\mathbb{R}$, so the same disjoint-tube argument fails and the same unlinking construction goes through with $\sigma|_I$ in place of $|\cdot|$. We do not require $\sigma|_I$ to equal $|\cdot|$, only to fold the rescaled data into a region with reduced crossing structure.

**Figure 9:** Hopf link unlinking via absolute value activations.

F.3 ResNet absolute-value synthesis

Proof of Theorem 16 (ResNet topological expressivity): The single identity

$ |x| = x + 2, \operatorname{ReLU}(-x) $

realizes coordinatewise absolute value as one ResNet block: take residual branch $\mathcal{G}(x) = 2, \operatorname{ReLU}(-x)$ (a width-$d$ ReLU sublayer with input weight $-I_d$ and output weight $2 I_d$), then $\mathcal{F}(x) = x + \mathcal{G}(x) = |x|$. Translated folds $x \mapsto c + |x - c|$ follow by composing affine shifts. Iterating coordinatewise yields the unlinking construction of Figure 9, so a width-$d$ ReLU ResNet inherits the topological expressivity of absolute-value activations.

F.4 Transformer absolute-value synthesis

Proof of Theorem 17 (transformer topological expressivity): Process each coordinate $x_i$ independently as a two-token sequence $(x_i, x_i)$ with distinct positional encodings $(p_1, p_2)$. With scalar query/key/value/output weights and biases $(w_q, w_k, w_v, w_o, b_q, b_k, b_v, b_o)$, the second-position attention weight reduces to a sigmoid:

$ \alpha_{21} = \mathrm{softmax}(q_2 k_1, q_2 k_2)_1 = \operatorname{sigmoid}\bigl(q_2 (k_1 - k_2)\bigr), $

giving output $g(x_i) = w_o,[\alpha_{21} v_1 + (1 - \alpha_{21}) v_2] + b_o$. Choosing for instance $w_q = -5$, $w_k = 5$, $w_v = w_o = 1$, $p_1 = 0$, $p_2 = 1$, $b_q = 4.3$, $b_k = b_v = b_o = 0$ produces a function with a local minimum near $x = 0$, decreasing for $x < 0$ and increasing for $x > 0$, a smoothed V-shape that locally resembles $|x|$ near the origin.

This construction is a per-coordinate local surrogate for $|\cdot|$, not a global approximation. For the unlinking sequence of Figure 9, an affine pre-shift first rescales the compact data into the V-shape's effective neighborhood; the resulting attention map then implements a nonmonotonic coordinate fold close enough to $|\cdot|$ for the topological transformation, since the construction depends only on the existence of a coordinatewise fold (any nonmonotonic surrogate with the required folding behavior on the rescaled data domain suffices), not on exact equality with $|\cdot|$. Composing this attention-fold step with the affine transformations from each step of the unlinking sequence gives a pure-attention realization of the same topological transformation, breaking the linking obstruction.

G. Experimental Details

G.1 Hopf Link Parametrization and Thickening

Hopf link parametrization. $X(t) = (\cos t, \sin t, 0)$ and $Y(s) = (1 + \cos s,, 0,, \sin s)$.

Thickening procedure. Sample points as $\gamma(t) + \varepsilon \cdot \mathbf{n}(t)$ where $\mathbf{n}(t)$ is a unit normal to the curve, $\varepsilon \sim \mathcal{U}(0, r)$ with $r = 0.15$, and high-frequency oscillations $0.3\sin(100t)$ are added to preserve topology.

G.2 Network Architectures and Training Protocol

All architectures use width $3$. FFNs are fully connected with depths $3$–$20$; ReLU ResNets use residual blocks $x \mapsto x + g(x)$ with 2-layer width-$3$ subnetworks $g$. We train with Adam for FFNs and AdamW for ResNets at learning rate $10^{-3}$, batch size $128$, up to $800$ epochs, early stopping with patience $100$–$200$, and cross-entropy loss on $6000$ points ($3000$ per class) split $80/20$ for train/validation. Code: github.com/7pocheR/low_dimensional_topology.

G.3 ReLU vs GELU: Detailed Observations

Table 2 reveals three patterns. (i) Across 30 seeds, ReLU's best run never exceeds the $\sim$90% topological ceiling at any depth (max $92.8%$ at depth 3); mean accuracy is bounded above by the ceiling and additionally degrades with depth as optimization difficulty compounds the expressivity barrier, consistent with Theorem 7. (ii) GELU mean accuracy stays at $89$–$91%$ for depths 3–12 and the best run achieves $100%$ at depths 5–12, confirming that nonmonotonic activations escape the constraint (§ 5.1). (iii) At extreme depths ($\geq 16$) both activations suffer optimization instability (large stds); depth alone cannot compensate. Unlike standard universal-approximation results where depth substitutes for width, here depth provides no escape from the topological barrier.

G.4 Higher-Dimensional Linked Spheres Construction

For the higher-dimensional experiments (Section 6.5), we construct two $n$-spheres linked in $\mathbb{R}^{2n+1}$ with linking number $\pm 1$. The construction uses explicit parametrizations $\tilde{A}, \tilde{B}: \mathbb{S}^n \to \mathbb{R}^{2n+1}$ derived from stereographic projection.

Parametrization. For $u = (u_0, u') \in \mathbb{S}^n \subset \mathbb{R}^{n+1}$ with $u' = (u_1, \dots, u_n)$, set $a = 1 - u_0/\sqrt{2}$ and define $\tilde{A}(u) = (u'/a,, -u_0/(\sqrt{2},a),, \mathbf{0}_n) \in \mathbb{R}^n \times \mathbb{R} \times \mathbb{R}^n = \mathbb{R}^{2n+1}$, where $\mathbf{0}_n$ is the zero vector in $\mathbb{R}^n$. Symmetrically, for $v = (v_0, v') \in \mathbb{S}^n$ set $b = 1 - v_0/\sqrt{2}$ and define $\tilde{B}(v) = (\mathbf{0}_n,, v_0/(\sqrt{2},b),, v'/b)$. The images $\tilde{A}(\mathbb{S}^n), \tilde{B}(\mathbb{S}^n)$ are disjoint $n$-spheres in $\mathbb{R}^{2n+1}$ with $\operatorname{link}(\tilde{A}(\mathbb{S}^n), \tilde{B}(\mathbb{S}^n)) = 1$ (verified numerically via the higher-dimensional Gauss linking integral).

Geometric structure. The embedding places $\tilde{A}(\mathbb{S}^n)$ in the $X$-$Z$ subspace (first $n$ coordinates plus middle coordinate, with $Y=\mathbf{0}$) and $\tilde{B}(\mathbb{S}^n)$ in the $Z$-$Y$ subspace (middle coordinate plus last $n$ coordinates, with $X=\mathbf{0}$). These coordinate subspaces intersect only along the shared middle coordinate axis, and the linking arises from the spheres' interlocking configuration around this axis.

Minimum separation. The minimum distance between points on the two spheres is $d_{\min} = 2(\sqrt{2} - 1) \approx 0.828$, independent of $n$. This ensures the spheres remain well-separated.

Targeted thickening. To create training data with non-trivial volume, we use targeted thickening: each sphere is thickened within its complementary (normal) subspace to preserve the linking structure. In the $(X, Z, Y)$ split with $X, Y \in \mathbb{R}^n$, $Z \in \mathbb{R}$: $\tilde{A}$ lies in the $X$-$Z$ subspace ($Y = 0$) and is thickened in the $Y$-direction as $\tilde{A}\rho(u, \eta) = \tilde{A}(u) + (0, 0, \eta)$; $\tilde{B}$ lies in the $Z$-$Y$ subspace ($X = 0$) and is thickened in the $X$-direction as $\tilde{B}\rho(v, \zeta) = \tilde{B}(v) + (\zeta, 0, 0)$, with $\eta, \zeta \sim \text{Uniform}(B_n(\rho))$ on the $n$-dimensional radius-$\rho$ ball. Our experiments use $\rho = 0.5$.

Multi-copy placement. To amplify the topological barrier (Section 6.5), we place $k$ disjoint copies of the linked pair using $L^1$-ordered grid placement: copy centers are integer lattice points in $\mathbb{Z}^{2n+1}$ enumerated in nondecreasing $L^1$ norm order, scaled by spacing $s = 10$. Specifically, we enumerate shells ${v \in \mathbb{Z}^{2n+1} : |v|_1 = m}$ for $m = 0, 1, 2, \ldots$ and take the first $k$ vectors. This spreads copies isotropically rather than along a single axis, preventing networks from exploiting directional biases. Each copy contributes an independent entanglement region, so networks must overcome $k$ local obstructions simultaneously.

G.5 Linking Scaling Experiments: Variance and Dimensional Effect

For the higher-dimensional linking experiments (Table 4, $\mathbb{S}^2 \sqcup \mathbb{S}^2$ in $\mathbb{R}^5$ with $k$ disjoint copies), we tracked accuracy variance across 100 seeds in addition to best-case ceilings. At small $k$, ReLU+Skip is both the most reliable and reaches the best ceiling: at $k=1$ it attains $100%$ best and a $97.0\pm 3.5$ mean test accuracy, whereas plain ReLU's mean is $89.4\pm 11.4$ with seeds occasionally collapsing far below the topological ceiling. As $k$ grows, monotonic ceilings (ReLU, ReLU+Skip) decline faster than nonmonotonic ceilings (GELU, Swish): the nonmonotonic-minus-monotonic best-case gap is mildly negative for $k\leq 5$, becoming $+3.7, +4.4, +3.9$pp at $k=10, 20, 50$. The pattern is consistent with skip connections resolving the single entanglement at $k=1$, while nonmonotonic activations are required to resolve each of many local entanglements at larger $k$. Mean accuracies decline for all architectures as $k$ grows, but nonmonotonic mean accuracies remain $4$–$6$pp above monotonic at $k\geq 10$, e.g., GELU mean $81.0\pm 3.7$ vs. ReLU+Skip mean $76.4\pm 3.9$ at $k=10$.

Why higher dimensions need larger $k$. At $n=1$ ($\mathbb{S}^1 \sqcup \mathbb{S}^1$ in $\mathbb{R}^3$) the topological advantage of skip/nonmonotonic architectures is visible at $k=1$ (Table 2); at $n=2$ ($\mathbb{S}^2 \sqcup \mathbb{S}^2$ in $\mathbb{R}^5$) one needs $k > 5$ to see it. The reason is geometric: monotonic networks can achieve high accuracy by sacrificing accuracy on a small overlap region of characteristic size $\varepsilon$ near each linked location, whose volume fraction scales as $\Theta(\varepsilon^{2n+1})$ in ambient $\mathbb{R}^{2n+1}$. For $n=1$ that fraction is $\sim 10%$; for $n=2$ the same $\varepsilon$ gives $\sim \varepsilon^2$ smaller (the $\sim 90% \to \sim 99%$ drop at $k=1$ implies $\varepsilon \approx 0.3$). Real high-dimensional datasets are expected to compensate by having more linking opportunities (volume growing as $\Theta(\mathrm{poly}(n))$); our multi-copy design synthetically restores the cumulative obstruction so the experiment remains controlled across $n$.

G.6 ResNet Skip Connection Visualization

Figure 10 shows the full resolution visualization of the ResNet skip connection mechanism on the disk-annulus ($\mathbb{S}^0$-$\mathbb{S}^1$) separation task. This experiment demonstrates that a depth-3 width-2 ResNet with ReLU activations learns to implement the folding operation $|x| = x + 2 \operatorname{ReLU}(-x)$ predicted by Theorem 16.

**Figure 10:** **Full resolution ResNet skip connection visualization.** (a) **Input $x$**: The nested disk (inner) and annulus (outer) form an $\mathbb{S}^0$- $\mathbb{S}^1$ link with $\operatorname{link} = \pm 1$. Each point is assigned a color based on its angular position in the input space; this color is preserved across all three panels, allowing one to track where each input point is mapped by the network. Since colors vary continuously with position, a point's trajectory can be identified by locating the dot (or small patch of similar color) in each panel. (b) **Residual branch output $f(x)$**: The learned transformation approximates $2 \operatorname{ReLU}(-x)$, "folding" negative coordinate values toward zero. Note the characteristic triangular shape created by the ReLU. (c) **Skip connection output $x + f(x)$**: Adding the residual to the input implements $|x|$, folding the configuration and separating the two components into vertically disjoint regions. The disk and annulus are now linearly separable. This experiment validates that ResNet can overcome topological barriers through the skip connection mechanism.

Training details. The ResNet architecture uses 3 residual blocks with width-2 hidden layers. Training uses Adam optimizer with learning rate 0.001 for 5000 epochs on 50, 000 points per class. The visualization shows the block 1 transformation (input $\to$ first residual block output). Multiple random seeds (including seed 103 shown) consistently learn similar folding transformations, demonstrating that the theoretical mechanism is reliably discovered by gradient descent.

G.7 Width Expansion Eliminates the Obstruction

Theorem 34 predicts that increasing width past the critical $d+1$ threshold removes the topological barrier. We verify this in $\mathbb{R}^7$ on $\mathbb{S}^3 \sqcup \mathbb{S}^3$ with $k = 10$ copies, depth $5$, $15$ seeds per width (Table 7). Critical width $d = 7$ caps at $\approx 88%$ (mean) / $93%$ (max), and accuracy improves overall as width is expanded (with small finite-seed nonmonotonicities), saturating near $99{-}100%$ around width $\approx 5d$. The same pattern holds in $\mathbb{R}^5$ ($k = 10$, depth $5$): plain ReLU at width $20$ already reaches $98.5%$ mean, and adding nonmonotonic activations or skip connections only marginally changes this, confirming that the architectural mechanisms (folding, skip) are most valuable when width is constrained below the critical threshold and become substitutable with width when width is relaxed.

\begin{tabular}{lcccccccc}
\toprule
Width & 7 & 8 & 10 & 14 & 21 & 28 & 35 & 49 \\
Multiplier of $d$ & $1\times$ & $1.1\times$ & $1.4\times$ & $2\times$ & $3\times$ & $4\times$ & $5\times$ & $7\times$ \\
\midrule
Mean (\%) & 87.9 & 86.7 & 91.2 & 95.4 & 98.8 & 99.4 & 99.6 & 99.7 \\
Max (\%) & 93.1 & 93.9 & 94.8 & 98.0 & 99.2 & 99.7 & 100.0 & 99.9 \\
\bottomrule
\end{tabular}

G.8 Layer-by-Layer Linking-Number and Min-Distance Tracking

To verify mechanistically that the impossibility theorem reflects what the network actually does, we track both the Gauss linking integral $\operatorname{link}$ and the minimum inter-class distance $d_{\min}$ layer-by-layer for a width-$3$, depth-$5$ network on the Hopf link, comparing ReLU, GELU, and ReLU+skip (Table 8).

\begin{tabular}{lccccccc}
\toprule
 {} & Input & $L_0$ & $L_1$ & $L_2$ & $L_3$ & $L_4$ & $L_5$ \\
\midrule
ReLU $\operatorname{link}$ & $-1$ & $0.50^*$ & $0.18^*$ & $0$ & $0$ & $0$ & $0$ \\
ReLU $d_{\min}$ & $0.83$ & $0.06$ & $0.00$ & $0.00$ & $0.00$ & $0.00$ & $0.00$ \\
\midrule
GELU $\operatorname{link}$ & $-1$ & $0$ & $0$ & $0$ & $0$ & $0$ & $0$ \\
GELU $d_{\min}$ & $0.83$ & $0.11$ & $0.17$ & $0.63$ & $1.01$ & $1.32$ & $1.41$ \\
\midrule
ReLU+skip $\operatorname{link}$ & $-1$ & $0$ & $0$ & $0$ & $0$ & $0$ & $0$ \\
ReLU+skip $d_{\min}$ & $0.83$ & $0.38$ & $0.46$ & $1.05$ & $2.21$ & $3.04$ & $3.73$ \\
\bottomrule
\end{tabular}

Interpretation. ReLU forces the two curves into intersection by $L_1$ (minimum distance collapses to $0$); the apparent fractional $\operatorname{link}$ values at $L_0$, $L_1$ are not meaningful linking numbers but artifacts of the Gauss integral becoming ill-conditioned as $|x - y| \to 0$ (linking number is only defined for disjoint curves). After $L_1$, the network has destroyed the geometric structure rather than resolved the topology, consistent with Lemma 5 and the impossibility theorem. GELU and ReLU+skip, by contrast, achieve $\operatorname{link} = 0$ while keeping the curves disjoint: after the first unlinking layer ($d_{\min}$ small but positive), subsequent layers increase $d_{\min}$ steadily, implementing the genuine unlinking that monotonic feedforward networks cannot.

H. Linking Detection Algorithm for Point Cloud Data

This section gives the algorithm used to detect topological linking between two finite point clouds $\mathcal{X}, \mathcal{Y} \subset \mathbb{R}^d$. The pipeline is: (i) project to $\mathbb{R}^3$ via PCA, (ii) build $k$-NN spatial graphs per class, (iii) extract a fundamental cycle basis per graph, (iv) compute Gauss linking numbers over pairs of basis cycles.

H.1 Graph construction

For each class $\mathcal{X} = {x_1, \dots, x_n} \subset \mathbb{R}^3$, the $\varepsilon$-filtered $k$-NN graph $G$ has vertex set ${1, \dots, n}$ and edge $(i,j)$ whenever $j$ is among the $k$ nearest neighbors of $x_i$ and $|x_i - x_j| \le \varepsilon$. The threshold $\varepsilon$ (typically a percentile of nearest-neighbor distances) suppresses spurious long edges. For fixed point cloud and $k$-NN relation, the edge set is monotone in $\varepsilon$: increasing $\varepsilon$ only adds eligible $k$-NN edges, so already detected witness cycles remain graph cycles at larger thresholds. The mutual variant additionally requires $i \in \mathrm{kNN}(j)$, yielding sparser but more symmetric graphs robust to density variation.

H.2 Fundamental cycle basis via spanning forest

########## {caption="Definition: Fundamental cycle basis"}

For a graph $G = (V, E)$ with $|V| = n$, $|E| = m$, and $c$ connected components, fix a spanning forest $T \subset E$ ($n - c$ edges). Each of the $m - n + c$ non-tree edges $e = (u, v)$ adds a unique cycle $C_e$ consisting of $e$ plus the unique $T$-path from $u$ to $v$. The collection ${C_e}$ is the fundamental cycle basis.

########## {caption="Proposition 36: Cycle-basis sufficiency"}

The fundamental cycle basis generates $H_1(G; \mathbb{Z})$, so every cycle is an integer linear combination of basis cycles. Linking number extends bilinearly to $H_1$, so $\mathcal{X}, \mathcal{Y}$ exhibit detectable linking iff some basis pair $(C_i, D_j)$ has $\operatorname{link}(C_i, D_j) \neq 0$.

This reduces detection from a search over infinitely many cycle pairs to a finite computation over $O(\beta_\mathcal{X} \cdot \beta_\mathcal{Y})$ basis pairs, where $\beta = m - n + c$ is the first Betti number.

H.3 Gauss linking number

For disjoint piecewise-linear cycles $C_1, C_2 \subset \mathbb{R}^3$, we evaluate the Gauss integral $\operatorname{link}(C_1, C_2) = \frac{1}{4\pi} \oint_{C_1} \oint_{C_2} \frac{(x - y) \cdot (dx \times dy)}{|x - y|^3}$ via midpoint quadrature on subdivided edges. Algorithm 1 packages the full detection pipeline.

Require: Point clouds $\mathcal{X}, \mathcal{Y} \subset \mathbb{R}^d$; parameters $k$, $\varepsilon$, subdivision $N_{\mathrm{sub}}$
Ensure: Linked decision + witness cycle pair if linked
Project $\mathcal{X} \cup \mathcal{Y}$ to $\mathbb{R}^3$ via PCA
Build $\varepsilon$-filtered $k$-NN graphs $G_\mathcal{X}, G_\mathcal{Y}$
Compute spanning forests via BFS; extract fundamental cycle bases $\mathcal{C}_\mathcal{X}, \mathcal{C}_\mathcal{Y}$
if $\mathcal{C}_\mathcal{X} = \varnothing$ or $\mathcal{C}_\mathcal{Y} = \varnothing$ then
  return (Not linked: insufficient cycles)
end if
for $C \in \mathcal{C}_\mathcal{X}$, $D \in \mathcal{C}_\mathcal{Y}$ do
  $\ell \leftarrow$ midpoint-quadrature Gauss integral over $C \times D$ with $N_{\mathrm{sub}}$ subdivisions, rounded to nearest integer
  if $\ell \neq 0$ then
    return (Linked, witness $(C, D, \ell)$)
  end if
end for
return (Not linked, all $|\mathcal{C}_\mathcal{X}| \cdot |\mathcal{C}_\mathcal{Y}|$ basis pairs checked)

H.4 Parameters and complexity

Typical choices: $k \in [6, 15]$ (denser $k$ exposes more cycles at the cost of compute), $\varepsilon$ at the 70th percentile of nearest-neighbor distances, $N_{\mathrm{sub}} \in {4, 8}$ subdivisions per edge, and minimum cycle length $\ge 4$ (smaller cycles are construction artifacts). Use mutual $k$-NN for heterogeneous density.

Complexity: $k$-NN graph in $O(n \log n)$ via $k$-d trees; spanning forest and cycle-basis extraction in $O(n + m) = O(kn)$; Gauss integral per cycle pair in $O(L_1 L_2 N_{\mathrm{sub}}^2)$ for cycle lengths $L_1, L_2$. Total: $O(n \log n + \beta_\mathcal{X} \beta_\mathcal{Y} L^2 N_{\mathrm{sub}}^2)$. For our CIFAR-10 setting ($n \sim 10^4$, $\beta \sim 10^2$, $L \sim 20$) the algorithm runs in tens of seconds per class pair.

I. CIFAR-10 Linking Experiments: Details

This appendix gives the data-preparation, detection-parameter, and architectural details for the suggestive CIFAR-10 linking analysis of Section 6.6. We emphasize throughout that the evidence here is correlational, not causal, and rests on a 3D PCA projection rather than the native data manifold; the synthetic experiments (Appendix G) are the primary validation of the theory.

I.1 Data preparation and link detection

Augmentation and projection. We apply $20\times$ training-set augmentation (random horizontal flip, random crop with 4-pixel padding, color jitter $\pm 0.2$ for brightness/contrast/saturation) to CIFAR-10 (yielding $1{,}050{,}000$ samples; $105{,}000$ per class), flatten + standardize, and project to $\mathbb{R}^3$ via PCA on the combined augmented dataset.

Detection parameters. We run Algorithm 1 with $k = 15$ mutual nearest neighbors and minimum cycle length $30$. For the displayed bird–deer witness, we separately binary-search the threshold $\varepsilon$ to locate the smallest scale at which any pair of class cycles links. At $\varepsilon = 0.0338$ ($0.22%$ of the 3D bounding-box diagonal $15.555$), the bird (58-vertex) and deer (40-vertex) classes form interlocked cycles with $\operatorname{link} = -1$ (Gauss integral $-1.0036$); see Figure 11.

**Figure 11:** Linked cycles detected in CIFAR-10 PCA-3D: bird (blue, $58$ points) and deer (red, $40$ points) interlock with $\operatorname{link} = -1$ at $\varepsilon = 0.034$.

Linking-consistency definition. For a class pair $(X_i, X_j)$ and $N$ independent runs (each regenerating the augmented dataset with a fresh random seed and recomputing graphs/cycles), the linking consistency is $\mathrm{consistency}(X_i, X_j) = \tfrac{1}{N} \sum_r \mathbf{1}[| \operatorname{link}_r(X_i, X_j)| \ge 1]$. Variation across runs stems from augmentation randomness, sampling-dependent $k$-NN structure, and cycle-vertex placement; consistency measures how robustly a pair's linking survives sampling variability rather than being a property of the underlying manifold.

The consistency runs do not binary-search $\varepsilon$ independently for each pair. They use the same pre-arranged threshold sequence for all $45$ pairs, $(0.11, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.3, 1.0, 30.0)$. Because the $\varepsilon$-filtered graph is monotone in $\varepsilon$, a detected witness remains available at larger thresholds; the sequence therefore measures how small a scale suffices for detection, rather than whether some tuned threshold exists.

I.2 Ten-class linking consistency

Eleven runs across all $45$ CIFAR-10 class pairs give a deliberately coarse robustness measure rather than a definitive topological classification. The distribution is still informative: $27/45$ pairs are strongly linked (consistency $\ge 0.7$), $8/45$ are weak or unlinked ($\le 0.3$), and the remaining $10/45$ are ambiguous. Representative high-consistency pairs include deer–dog (91%), bird–cat (91%), cat–deer (91%), cat–dog (82%), and automobile–truck (91%). Representative low-consistency pairs include frog–ship (18%), airplane–horse (18%), airplane–automobile (27%), cat–ship (27%), and deer–truck (27%). We use this summary, rather than the full $45$-entry matrix, because the point is robustness of the signal across augmentation seeds and not a claim that each CIFAR-10 pair has an intrinsic binary linked/unlinked label.

I.3 CNN architecture

To probe whether the bounded-width topological obstruction applies to CNNs on CIFAR-10, we use width-bounded CNNs whose every intermediate representation has flattened dimension $\le 3072$ (matching the input). Each spatial-resolution stage quadruples channels while halving each spatial dimension, preserving the $C \cdot H \cdot W = 3072$ budget: $3 \times 32^2 \to 12 \times 16^2 \to 48 \times 8^2 \to 192 \times 4^2$. Depth variants L5/L8/L11 use 1/2/3 ConvBlocks per stage; ConvBlocks are $3 \times 3$ convs followed by activation (no batch normalization). When enabled, skip connections span each conv block: $x \mapsto x + \mathcal{G}(x)$. Training: Adam at $10^{-3}$, batch size $128$, up to $100$ epochs with patience-$15$ early stopping on the standard CIFAR-10 train/test split.

I.4 Ten-class confusion vs. linking

For each of $42$ trained models (7 activations $\times$ 3 depths $\times$ 2 skip settings) we compute the Spearman rank correlation between the linking-consistency scores and the symmetric confusion rate $\mathrm{conf}(i,j) = P(\hat{y}=j \mid y=i) + P(\hat{y}=i \mid y=j)$ across all $45$ class pairs. The pattern is stable across L5/L8/L11 and across activation choice: mean Spearman $r \approx 0.47$ with $p < 0.003$ throughout. Representative L11/no-skip values are ReLU $r=0.436$ ($p=0.0028$), GELU $r=0.501$ ($p=0.0005$), and Mish $r=0.497$ ($p=0.0005$).

The same runs show a large separation in confusion rates. High-link pairs (consistency $\ge 0.7$) have about $3\times$ the confusion of low-link pairs (consistency $\le 0.3$): ReLU gives $6.4%$ vs. $2.1%$, GELU gives $6.0%$ vs. $1.8%$, and Mish gives $5.9%$ vs. $2.1%$. We report representative values rather than the full per-activation table because the rows are redundant; the relevant observation is that the correlation persists across architectures and activations.

I.5 Distance-metric and projection controls

A natural concern is whether linking consistency simply measures inter-class distance. We compared linking consistency against two pixel-space distance metrics (mean Spearman $|r|$ across all $42$ models): linking consistency reaches $\mathbf{0.479}$, average pairwise distance $0.412$, minimum-distance $0.356$. Linking is therefore not reducible to a simple distance proxy; it captures additional signal about how class manifolds are intertwined rather than merely how far apart they sit on average.

We also repeated detection under $20$ random 3D projections. In the same projection-control protocol, PCA detected links in $21/45$ class pairs, while random projections detected $31$–$43/45$ pairs depending on the projection. Per-pair random-projection frequency ranged from $11/20$ (frog–ship) to $20/20$ (deer–dog), preserving the same weak/strong ordering but with less discrimination than PCA consistency ($55$–$100%$ vs. $18$–$91%$). These random-projection frequencies vary projection subspaces, whereas the linking-consistency summary above varies augmentation seeds, so they should be read as complementary controls rather than the same estimator.

Caveats. The evidence above is suggestive, not causal. (i) Linking is detected in 3D PCA space, not the native $3072$D pixel space, so some detected linking may be projection artifacts and some genuine high-dimensional linking will be invisible after PCA. (ii) The linked-pair gap on the binary task is modest ($1.2%$) and concentrated on the few hundred points that participate in detected cycles ($\sim 0.1%$ of each class). (iii) The ten-class confusion correlation is robust but partially confounded by semantic similarity; the within-dataset comparison controls factors like resolution and collection methodology but cannot disentangle topology from semantic similarity entirely. Multi-projection aggregation and higher-dimensional topological data analysis are natural next steps for stronger conclusions.

References

Section Summary: This section compiles a list of academic citations spanning pure mathematics and modern machine learning. It includes classic surveys of major mathematical advances, foundational papers on neural networks and statistical learning, and recent works that apply ideas from topology to analyze or improve deep learning models. The references range from books on knots and algebraic topology to studies of network expressivity, activation functions, and applications such as protein structure prediction.

[1] Wall, C. T. C. (1984). On the work of W. Thurston. In Proceedings of the International Congress of Mathematicians (Warsaw, 1983). pp. 11–14.

[2] Birman, Joan S. (1991). The work of Vaughan F. R. Jones. In Proceedings of the International Congress of Mathematicians (Kyoto, 1990). pp. 9–18.

[3] Lott, John (2007). The work of Grigory Perelman. doi:10.4171/022-1/2. https://doi.org/10.4171/022-1/2.

[4] Atiyah, Michael (1987). On the work of Simon Donaldson. In Proceedings of the International Congress of Mathematicians (Berkeley, Calif., 1986). pp. 3–6.

[5] Milnor, John (1987). The work of M. H. Freedman. In Proceedings of the International Congress of Mathematicians (Berkeley, Calif., 1986). pp. 13–15.

[6] Bengio et al. (2013). Representation learning: A review and new perspectives. IEEE Trans. Pattern Anal. Mach. Intell.. 35(8). pp. 1798–1828. doi:10.1109/TPAMI.2013.50.

[7] Ren, Junyu and Lim, Lek-Heng (2026). Topology of Deep Neural Networks II. Preprint.

[8] Cover, Thomas M. (1965). Geometrical and statistical properties of systems of linear inequalities with applications in pattern recognition. IEEE Transactions on Electronic Computers. EC-14(3). pp. 326–334. doi:10.1109/PGEC.1965.264137.

[9] Cortes, Corinna and Vapnik, Vladimir (1995). Support-vector networks. Machine Learning. 20(3). pp. 273–297. doi:10.1007/BF00994018.

[10] Cybenko, George (1989). Approximation by superpositions of a sigmoidal function. Math. Control Signals Systems. 2(4). pp. 303–314. doi:10.1007/BF02551274.

[11] Hornik et al. (1989). Multilayer feedforward networks are universal approximators. Neural Networks. 2(5). pp. 359–366. doi:10.1016/0893-6080(89)90020-8.

[12] Telgarsky, Matus (2016). Benefits of depth in neural networks. In Conference on Learning Theory (COLT). pp. 1517–1539.

[13] Eldan, Ronen and Shamir, Ohad (2016). The power of depth for feedforward neural networks. In Conference on Learning Theory (COLT). pp. 907–940.

[14] Barron, Andrew R. (1993). Universal approximation bounds for superpositions of a sigmoidal function. IEEE Trans. Inform. Theory. 39(3). pp. 930–945. doi:10.1109/18.256500.

[15] Yarotsky, Dmitry (2017). Error bounds for approximations with deep ReLU networks. Neural Networks. 94. pp. 103–114. doi:10.1016/j.neunet.2017.07.002.

[16] Carlsson, Gunnar (2009). Topology and data. Bull. Amer. Math. Soc. (N.S.). 46(2). pp. 255–308. doi:10.1090/S0273-0979-09-01249-X.

[17] Edelsbrunner, Herbert and Harer, John L. (2010). Computational Topology: An Introduction. American Mathematical Society.

[18] Cang, Zixuan and Wei, Guo-Wei (2017). TopologyNet: Topology based deep convolutional and multi-task neural networks for biomolecular property predictions. PLOS Computational Biology. 13(7). pp. e1005690. doi:10.1371/journal.pcbi.1005690.

[19] Naitzat et al. (2020). Topology of deep neural networks. J. Mach. Learn. Res.. 21(184). pp. 1–40.

[20] Olah, Christopher (2014). Neural Networks, Manifolds, and Topology. https://colah.github.io/posts/2014-03-NN-Manifolds-Topology/.

[21] Eitan et al. (2025). Topological Blindspots: Understanding and Extending Topological Deep Learning Through the Lens of Expressivity. In International Conference on Learning Representations (ICLR).

[22] Dumitrescu et al. (2025). E(3)-equivariant models cannot learn chirality: Field-based molecular generation. In International Conference on Learning Representations (ICLR).

[23] Esmaeili et al. (2023). Topological Obstructions and How to Avoid Them. In Advances in Neural Information Processing Systems (NeurIPS).

[24] LeCun, Yann (2022). A path towards autonomous machine intelligence. OpenReview. Version 0.9.2, 2022-06-27. https://openreview.net/pdf?id=BZ5a1r-kVsf.

[25] Hanin, Boris and Sellke, Mark (2017). Approximating continuous functions by ReLU nets of minimal width. arXiv:1710.11278.

[26] Johnson, Jesse (2019). Deep, skinny neural networks are not universal approximators. In International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=ryGgSsAcFQ.

[27] Rochau et al. (2024). New advances in universal approximation with neural networks of minimal width. arXiv:2411.08735.

[28] Schütt et al. (2017). SchNet: A continuous-filter convolutional neural network for modeling quantum interactions. In Advances in Neural Information Processing Systems. pp. 991–1001.

[29] Satorras et al. (2021). E(n) equivariant graph neural networks. In International Conference on Machine Learning (ICML). pp. 9323–9332.

[30] Jumper et al. (2021). Highly accurate protein structure prediction with AlphaFold. Nature. 596(7873). pp. 583–589. doi:10.1038/s41586-021-03819-2.

[31] Rolfsen, Dale (1976). Knots and Links. Publish or Perish, Inc..

[32] Hatcher, Allen (2002). Algebraic Topology. Cambridge University Press.

[33] Hendrycks, Dan and Gimpel, Kevin (2016). Gaussian error linear units (GELUs). arXiv:1606.08415.

[34] Ramachandran et al. (2017). Searching for activation functions. arXiv:1710.05941.

[35] Elfwing et al. (2018). Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural Networks. 107. pp. 3–11. doi:10.1016/j.neunet.2017.12.012.

[36] Misra, Diganta (2020). Mish: A self regularized non-monotonic activation function. In British Machine Vision Conference (BMVC).

[37] He et al. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). pp. 770–778. doi:10.1109/CVPR.2016.90.

[38] Chen et al. (2018). Neural ordinary differential equations. In Advances in Neural Information Processing Systems. pp. 6571–6583.

[39] Vaswani et al. (2017). Attention is all you need. In Advances in Neural Information Processing Systems. pp. 5998–6008.

[40] Park et al. (2021). Minimum Width for Universal Approximation. In International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=O-XJwyoIF-k.

[41] Cai, Yongqiang (2023). Achieve the Minimum Width of Neural Networks for Universal Approximation. In International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=hgSOMSDnXKM.

[42] Li et al. (2023). Minimum Width of Leaky-ReLU Neural Networks for Uniform Universal Approximation. In Proceedings of the 40th International Conference on Machine Learning. pp. 19460–19470. https://proceedings.mlr.press/v202/li23g.html.

[43] Kim et al. (2024). Minimum Width for Universal Approximation Using ReLU Networks on Compact Domain. In International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=dpDw5U04SU.

[44] Munkres, James R. (2000). Topology. Prentice Hall.

[45] Gomez et al. (2017). The reversible residual network: Backpropagation without storing activations. In Advances in Neural Information Processing Systems. pp. 2214–2224.

[46] Jacobsen et al. (2018). i-RevNet: Deep invertible networks. In International Conference on Learning Representations (ICLR).

[47] Dinh et al. (2017). Density estimation using Real NVP. In International Conference on Learning Representations (ICLR).

[48] Kingma, Diederik P. and Dhariwal, Prafulla (2018). Glow: Generative flow with invertible 1x1 convolutions. In Advances in Neural Information Processing Systems. pp. 10215–10224.

[49] Grathwohl et al. (2019). FFJORD: Free-form continuous dynamics for scalable reversible generative models. In International Conference on Learning Representations (ICLR).

[50] Lipman et al. (2023). Flow matching for generative modeling. In International Conference on Learning Representations (ICLR).

[51] Dupont et al. (2019). Augmented Neural ODEs. In Advances in Neural Information Processing Systems.

[52] Geng et al. (2025). Mean flows for one-step generative modeling. arXiv:2505.13447.