Introduction
While we know that ReLU neural networks partition their input space into an astronomical number of linear regions, the exact way these regions connect and interact has remained largely a mystery. This paper proves that the "neighborhood" of a typical region is surprisingly small: the average number of neighbors is bounded by twice the input dimension, regardless of how deep or wide the network is. By providing a new algorithmic way to map this hidden geometric structure, the authors offer fresh insights into the "black box" of deep learning.
The Geometry of ReLU Networks
Deep learning models are often called "black boxes," but networks using ReLU (Rectified Linear Unit) activations are actually giant, high-dimensional mosaics. Every ReLU network represents a continuous piecewise-linear function. This means the input space is sliced into many "polyhedral regions"—think of them as multi-dimensional shards or cells. Inside each shard, the network operates as a simple linear equation.
Researchers have spent a decade counting these shards (which grow exponentially in number), but they haven't been able to fully describe their connectivity—how these shards are glued together. Understanding this "discrete geometry" is crucial because the network only becomes non-linear at the boundaries where these shards meet. To understand model expressivity, explainability, or how a model generalizes from a training point to a test point, we need a map of these connections.
Mapping the Complex
To analyze this structure, the authors represent the network's geometry as a connectivity graph, where each node is a polyhedral region and an edge exists if two regions share a face.
- Sign Sequences: They use "sign sequences" (vectors of 1s, 0s, and -1s representing whether each neuron is active, inactive, or on the boundary) to uniquely identify every cell in the complex.
- Theoretical Proofs: Using mathematical induction and combinatorial geometry, they prove upper bounds on the average degree (number of neighbors) and the diameter (the "longest shortest path") of this graph.
- Breadth-First Search Traversal: They introduce a BFS algorithm to enumerate these regions. To find a neighbor, the algorithm "relaxes" a linear constraint and solves a Linear Program (LP) to see if crossing a specific boundary leads to a valid adjacent region.
Key Geometric Properties
The authors validated their theory using synthetic data (isotropic Gaussians), the California Housing dataset, and standard image classification datasets (MNIST & CIFAR-10) via pre-trained feature extractors. Their analysis revealed several striking properties:
- The "2d" Rule: The most significant finding is that the average number of neighbors for any region is at most $2d$ (where $d$ is the input dimension). This is a "universal" property—whether a network has 10 layers or 1,000, the local connectivity is constrained purely by the dimensionality of the input space.
- Dimension-Independent Diameter: While the number of regions grows exponentially with the input dimension, the diameter of the graph (how many boundaries you must cross to get from one side of the space to the other) does not depend on the dimension. It is upper-bounded by $(m+1)^\ell$, where $m$ is width and $\ell$ is depth.
- The "Data Magnet" Effect: In trained networks, regions that actually contain training data points tend to have significantly more neighbors than "empty" regions. The network effectively concentrates its geometric complexity around the data it was fed.
- Unimodal Connectivity: The distribution of neighbors isn't random; it follows a clear unimodal curve that peaks just below the $2d$ limit.
Limitations and Future Directions
While these findings provide a strong theoretical foundation for understanding ReLU networks, the current proofs only apply to fully-connected architectures. More complex structures like Convolutional layers (CNNs), Skip-connections (ResNets), or Maxout activations might exhibit different geometric behaviors.
Additionally, even with efficient LP solvers, enumerating every single region in a high-dimensional network remains computationally expensive. Finally, while the paper observes that data-rich regions are more connected, it does not yet provide a formal theoretical explanation for why the optimization process (SGD) pushes data into these highly-connected shards. Unraveling the mechanics behind this "data magnet" effect remains a highly promising area for future research.
Summary updated