Abstract
Training shallow ReLU neural networks is subject to "topological obstructions"—mathematical barriers in the parameter space that can render the global optimum unreachable. By applying algebraic topology, we demonstrate that for networks with a single output, certain initializations trap the model in disconnected regions of the loss landscape. This prevents neurons from flipping the signs of their weights even when the target function requires it. We identify "pathological" neurons whose output signs are fixed by conservation laws, leading to a fragmented parameter space where gradient-based optimization may fail.
Introduction: The Geometry of Training
In the standard mental model of neural network training, we imagine a ball rolling down a complex, hilly loss surface toward a global minimum. However, this intuition often ignores "observational equivalence": the property where distinct sets of parameters represent the exact same mathematical function. These symmetries—such as rescaling weights or swapping neuron indices—create a specific geometric structure in the parameter space.
This research investigates whether the path from a random initialization to an optimal solution is always topologically open. Specifically, we examine the connectivity of the parameter space. If the space is partitioned into separate "islands" (connected components), and the global optimum resides on a different island than the starting point, gradient-based optimization will inevitably fail.
Methods and Symmetry Analysis
The study focuses on two-layer (shallow) neural networks using the Rectified Linear Unit (ReLU) activation function. The methodology combines calculus with algebraic topology to characterize the training landscape.
Conservation Laws and Hyperquadrics
Because the ReLU function is positive-homogeneous ($ReLU(\alpha x) = \alpha ReLU(x)$ for $\alpha > 0$), the training dynamics under Gradient Flow (the continuous limit of gradient descent) obey specific conservation laws. For each neuron $k$, the difference between the squared norm of its input weights $||w_k||^2$ and its output weight $v_k^2$ remains constant: $$c_k = ||w_k||^2 - v_k^2 = \text{constant}$$ This restriction forces the training trajectory to remain on a surface called a hyperquadric. The total searchable space is the product of these surfaces across all neurons.
Topological Connectivity
To quantify the fragmentation of this space, we calculate the 0-th Betti number ($\beta_0$), which counts the number of connected components. If $\beta_0 > 1$, the space is disconnected. We further account for network symmetries—rescaling ($T_\alpha$) and permutation ($P_\pi$)—to identify "effective components," which represent truly unique functional regions rather than mere re-orderings of the same parameters.
Key Insights: Pathological Neurons
A critical discovery is the existence of "pathological" neurons. These occur when a neuron is initialized such that $c_k < 0$. In this state, the conservation law implies $v_k^2 = ||w_k||^2 - c_k \ge -c_k > 0$. Consequently, the output weight $v_k$ can never reach zero and thus can never change its sign during training.
If a task requires a negative output but all neurons are trapped in a positive-output state (or vice versa), the network is topologically obstructed. This obstruction is most severe for single-output networks (common in binary classification). In multi-output settings ($e > 1$), neurons have additional degrees of freedom to "rotate" through other dimensions, potentially bypassing these barriers.
Experimental Results
The theoretical findings were validated using both synthetic and real-world data:
- Synthetic Toy Dataset: A network was tasked with learning a simple linear function $F(x_1, x_2) = -(x_1 + x_2)$. Initializations that placed neurons in the "wrong" topological component resulted in the loss plateauing at high values, while "good" initializations converged to near-zero loss.
- Breast Cancer Wisconsin Dataset: On this binary classification benchmark, performance degraded linearly as the number of non-pathological ("healthy") neurons decreased. Interestingly, the obstruction depends on the absolute number of healthy neurons rather than their proportion relative to the network's width.
Discussion and Limitations
While these topological barriers are significant, "safety in width" provides a practical buffer. As the input dimension ($d$) and hidden layer width ($l$) increase, the probability of a standard initialization (like Kaiming or Xavier) falling into a pathological state approaches zero.
However, several limitations remain:
- Architecture: The analysis is currently limited to one-hidden-layer networks. Deep networks involve coupled hyperquadrics across layers, significantly complicating the topology.
- Optimization Noise: Discrete Stochastic Gradient Descent (SGD) with large learning rates or adaptive optimizers like Adam may provide enough numerical noise to "jump" across topological boundaries.
- Regularization: Weight decay ($L_2$ regularization) breaks ReLU's homogeneity, meaning these conservation laws only hold approximately.
Future work will extend this topological lens to deeper architectures and investigate how different optimization strategies interact with these fundamental geometric boundaries.
Summary updated