Characterizing the Discrete Geometry of ReLU Networks

Blake Gaines, Jinbo Bi

International Conference on Learning Representations 2026 · Oral

Overview

This talk, presented by Blake Gaines and co-authored with Jinbo Bi, delves into the fundamental mathematical properties of feed-forward neural networks that exclusively utilize the Rectified Linear Unit (ReLU) activation function. Titled "Characterizing the Discrete Geometry of ReLU Networks," the research explores the intricate, piecewise linear nature of these ubiquitous models, specifically focusing on the structure and arrangement of their "linear regions" in the input space. The talk provides a rigorous theoretical framework, complemented by empirical validation, to understand how the expressivity of ReLU networks arises from the geometric partitioning of their input domain.

Watch on SlidesLive

Visual summary for Characterizing the Discrete Geometry of ReLU Networks by Blake Gaines, Jinbo Bi
Visual summary for Characterizing the Discrete Geometry of ReLU Networks by Blake Gaines, Jinbo Bi

Key moments

  1. 0:00 Introduction to ReLU networks and piecewise linearity
  2. 2:20 Activation regions as polyhedra and bent hyperplanes
  3. 3:50 Theorem: Bounding path length between linear regions
  4. 5:00 Empirical validation: bound's independence from input dimension
  5. 6:30 Theorem: Face count bounds independent of architecture
  6. 8:10 Introducing Relucent Python package for network analysis
  7. 10:30 Q&A: Limited prescriptive insights for architecture design

Characterizing the Discrete Geometry of ReLU Networks

Speakers: Blake Gaines, Jinbo Bi

Conference: ICLR 2026

YouTube: https://slideslive.com/39062182

Overview

This talk, presented by Blake Gaines and co-authored with Jinbo Bi, delves into the fundamental mathematical properties of feed-forward neural networks that exclusively utilize the Rectified Linear Unit (ReLU) activation function. Titled "Characterizing the Discrete Geometry of ReLU Networks," the research explores the intricate, piecewise linear nature of these ubiquitous models, specifically focusing on the structure and arrangement of their "linear regions" in the input space. The talk provides a rigorous theoretical framework, complemented by empirical validation, to understand how the expressivity of ReLU networks arises from the geometric partitioning of their input domain.

The work is significant because ReLU networks form the backbone of most modern deep learning architectures. While their empirical success is undeniable, a deep theoretical understanding of why they work so well, particularly concerning their representational capacity, remains an active area of research. By characterizing the discrete geometry—the arrangement of polyhedral regions where the network behaves linearly—Gaines and Bi offer novel insights into the internal mechanisms and limitations of these networks. Their findings challenge some intuitive assumptions about how network architecture and input dimension influence expressivity, providing a more nuanced perspective on the design and analysis of deep learning models.

Background

▶ Watch: Introduction to ReLU networks and piecewise linearity (0:00)

ReLU networks are characterized by their piecewise linear and continuous nature. This property stems directly from the ReLU function, defined as max(input, 0), and the fact that neural networks are compositions of this non-linear activation with affine transformations. Each layer applies a linear transformation followed by the element-wise ReLU function. The result is a complex function that, while globally non-linear, behaves as a simple affine map within specific subregions of the input space. These subregions are known as linear regions.

The definition of these linear regions is crucial. A neuron in a ReLU network can be either active (outputting a non-negative value) or inactive (outputting zero). The activation state of the entire network refers to the on/off state of every neuron. If the activation state is fixed for a given input, the non-linear ReLU operations effectively "zero out" certain rows in the affine transformations, allowing the entire network to collapse into a single, equivalent affine map for that specific region. The boundaries between these linear regions occur where one or more neurons transition from active to inactive, or vice versa.

Mathematically, these boundaries are defined by systems of linear inequalities. For a single neuron, the condition for its activation state to remain fixed translates into a set of linear inequalities. The intersection of these half-spaces forms a polyhedron, which is precisely what each linear region represents in the input space. For shallow networks—those with only one hidden layer—the boundaries of individual neurons are simple hyperplanes. However, for deeper networks, the situation becomes more complex. The boundaries of neurons in subsequent layers depend on the activation states of preceding layers. This leads to what the authors term "bent hyperplanes," which can be disconnected, compact, and exhibit other non-trivial geometric properties, significantly complicating the overall geometric arrangement.

A common measure of a ReLU network's expressivity is the sheer number of linear regions it can define. More regions generally imply a greater capacity to approximate complex functions. However, simply counting regions doesn't tell the whole story about how these regions are arranged or how far apart they are in a functional sense. This talk expands on this concept by investigating the discrete geometry of these arrangements, seeking to understand the spatial relationship between these regions and the functional "distance" between different input points as perceived by the network.

Key Findings

▶ Watch: Theorem: Bounding path length between linear regions (3:50)

The research presents two primary theoretical findings that significantly contribute to understanding the discrete geometry of ReLU networks, along with empirical validation that highlights their practical implications.

The first key finding concerns the "distance" between two points in the input space as measured by the network's internal structure. The authors establish an upper bound on the number of neuron boundaries one must traverse to move from one arbitrary point in the input space to another. This quantity is equivalent to the diameter of the dual graph, where each node represents a linear region (an affine map), and an edge connects two nodes if their corresponding regions share a common face. Crucially, this bound is shown to scale with the network's architecture (specifically, its width and depth) but, counter-intuitively, is independent of the input dimension. This implies that while increasing the input dimension drastically increases the number of linear regions, it does not necessarily increase the functional "distance" or complexity required to transition between different network behaviors. The empirical results strongly validate this theoretical insight, showing consistent alignment between the theoretical bound and the actual measured dual graph diameter across varying input dimensions (2D, 3D, 4D, 5D) for different synthetic datasets and network initializations.

The second major contribution extends a classic result from Komafukuda (1989) regarding hyperplane arrangements to deep ReLU networks. Komafukuda's original theorem states that for a hyperplane arrangement (which characterizes shallow ReLU networks), the average number of faces per region is at most 2D, where D is the input dimension. Gaines and Bi demonstrate that this bound holds for almost all ReLU networks in the measure-theoretic sense within the parameter space, regardless of their depth or width. This is a profound finding because it suggests that, on average, the local complexity of each linear region—how many boundaries it has—is primarily dictated by the input dimension, not the network's architectural specifics. The empirical analysis, using histograms of face counts per region, corroborates this consistency, showing remarkably similar distributions across different randomly initialized and trained networks, reinforcing the universality of the 2D bound across diverse network configurations.

Technical Deep Dive

▶ Watch: Empirical validation: bound's independence from input dimension (5:00)

The theoretical underpinnings of this work are rooted in the piecewise linear nature of ReLU networks. A ReLU network f(x) is a composition of affine transformations A_i(x) = W_i x + b_i and the element-wise ReLU activation function ρ(z) = max(z, 0). Specifically, f(x) = A_L(ρ(A_{L-1}(...ρ(A_1(x))...))). The continuity and piecewise linearity of ρ(z) ensures that the overall network function f(x) inherits these properties.

The core concept is the activation state of the network. For any input x, each neuron j in layer k has an output z_j^(k). If z_j^(k) > 0, the neuron is active; if z_j^(k) <= 0, it is inactive (or at the hinge point). The specific combination of active/inactive states across all neurons defines a unique activation pattern. For a fixed activation pattern, the ReLU operations become linear (either y=x or y=0), effectively collapsing the non-linear network into a single, equivalent affine map.

The input space is partitioned into linear regions, within each of which the network realizes a specific affine map. These regions are polyhedra, defined by a system of linear inequalities. For an input x, the system ensures that for every neuron j in every layer k, either z_j^(k) > 0 (neuron active) or z_j^(k) <= 0 (neuron inactive), corresponding to the fixed activation pattern.

The geometry of the boundaries between these regions is critical. For neurons in the first hidden layer, their boundaries (where W_1 x + b_1 = 0) are simple hyperplanes in the input space. However, for neurons in subsequent layers, say layer k, their boundary condition z_j^(k) = 0 involves the outputs of previous layers, z_j^(k) = W_k ρ(A_{k-1}(...)) + b_k = 0. Since ρ(A_{k-1}(...)) is itself piecewise linear, these higher-layer boundaries are generally not hyperplanes. The authors refer to them as "bent hyperplanes," highlighting their potentially complex, non-flat, and even disconnected nature.

The first major theoretical result utilizes the concept of a dual graph. In this graph, each node corresponds to a unique linear region (and thus a unique affine map). An edge connects two nodes if their corresponding polyhedral regions share a common face. The diameter of this dual graph is the longest shortest path between any two nodes, representing the maximum number of region boundaries one must cross to connect any two distinct behaviors of the network. The finding that this diameter is bounded by architectural parameters (width and depth) but not input dimension challenges the intuition that higher-dimensional inputs necessarily lead to geometrically "deeper" or more complex traversals within the network's functional landscape.

The second key theoretical contribution extends Komafukuda's theorem from 1989. This theorem applies to hyperplane arrangements, which are the geometric structures formed by a set of hyperplanes partitioning a space. For shallow ReLU networks, the neuron boundaries indeed form a hyperplane arrangement. Komafukuda showed that for such an arrangement in D dimensions, the average number of faces bounding each region is at most 2D. The critical extension by Gaines and Bi demonstrates that this 2D bound holds for deep ReLU networks as well, for "almost all" networks. The term "almost all" is used in a measure-theoretic sense, implying that the set of networks for which this does not hold has measure zero in the parameter space, making the result broadly applicable to randomly initialized and trained networks. This implies a surprising regularity in the local complexity of linear regions, irrespective of the network's depth or width.

Experimental Setup & Results

▶ Watch: Introducing Relucent Python package for network analysis (8:10)

To validate their theoretical findings, the researchers conducted a series of empirical experiments using synthetic datasets. The primary goal was to observe how the geometric characteristics of ReLU networks behaved under varying conditions, particularly regarding input dimension and network architecture.

For the first theorem concerning the diameter of the dual graph, the team trained a "bunch of networks" with different initializations and on various synthetic datasets. They then measured the actual diameter of the dual graph for these networks and compared it against their derived theoretical upper bound. The results were presented in plots where each data point represented a trained network. A key observation was the remarkable consistency of these plots as the input dimension was varied from two to five dimensions (2D, 3D, 4D, 5D). Despite the inherent increase in the total number of linear regions with higher dimensions, the relationship between the theoretical bound and the actual diameter remained robustly similar, strongly validating the theoretical claim that the "distance" between network behaviors, as measured by the dual graph diameter, is largely independent of the input dimension. The plots showed the solid line representing the theoretical bound closely aligning with the empirically derived diameters, with dotted lines indicating error bounds.

For the second theorem, which extended Komafukuda's bound on the average number of faces per region, the researchers again used the same set of networks trained on synthetic data. They generated histograms illustrating the distribution of face counts across all identified activation regions for these networks. The most striking result was the consistency of these distributions. Even when averaged over five distinct networks, each randomly initialized and trained on different datasets, the histograms displayed very similar patterns of face counts. This empirical observation strongly supported the theoretical prediction that the average local complexity of the regions (how many faces they have) is bounded by 2D and is largely independent of the specific network architecture (width and depth).

To facilitate their research and potentially aid other researchers, the team developed a Python package called Relucent. This package is designed to analyze PyTorch networks, enabling users to:

  • Find activation regions in parallel.
  • Calculate decision boundaries.
  • Visualize these geometric structures.

The availability of such a tool underscores the practical applicability of their theoretical work and provides a platform for further exploration.

A particularly interesting finding, though not directly related to the main theorems, emerged during discussions about network generalization. The researchers investigated whether their geometric metrics could differentiate between "good" and "bad" networks. They were "disappointed not very much," finding that many of the measured metrics did not significantly change over the course of training. However, one notable exception was that data points tended to lie on regions with a higher than average number of faces. This suggests that regions associated with training data might exhibit greater local complexity, though the implications for generalization remain to be fully explored.

Practical Implications

▶ Watch: Q&A: Limited prescriptive insights for architecture design (10:30)

The findings presented in "Characterizing the Discrete Geometry of ReLU Networks" offer several practical implications for practitioners, infrastructure teams, model builders, and deployers, albeit with some nuanced interpretations.

Firstly, the research pushes the understanding of expressivity beyond simple region counting. While the number of linear regions is a common metric for a network's capacity, this work highlights that how these regions are arranged geometrically also matters. The insight that the maximum path length between any two network behaviors (dual graph diameter) is largely independent of input dimension, and primarily dependent on architecture, suggests that simply increasing input dimensionality might not increase the functional separation between different network responses as much as one might intuitively expect. This could inform decisions about feature engineering or input representations, suggesting that architectural choices (width and depth) might be more critical than raw input size for certain aspects of functional complexity.

Secondly, the talk reveals a somewhat "negative result" regarding architectural guidance. The authors initially hoped their bounds would provide clear prescriptions for designing networks, for instance, trading off width for depth. However, the observed independence of key geometric metrics (dual graph diameter from input dimension, and average face count from architecture) indicates that these specific measures might not be sensitive enough to offer direct, prescriptive advice on optimal network topology. This implies that other, perhaps more nuanced, geometric or topological properties might be necessary to derive concrete architectural principles. Model builders should be aware that while these bounds provide fundamental insights, they don't immediately translate into a simple "recipe" for better architectures.

Thirdly, the finding that data points tend to reside in regions with a higher number of faces is intriguing. While the direct link to generalization is not yet clear, it suggests that the training process might converge to solutions where the relevant data lies in more "complex" or highly partitioned parts of the input space. This could be a starting point for future research into how training dynamics interact with the network's geometry, potentially leading to new regularization techniques or insights into adversarial robustness.

Finally, the theoretical framework extends beyond just the standard ReLU function. The speakers note that the theory can be applied to general piecewise linear activation functions, as these can often be represented as compositions of ReLU neurons. This broadens the applicability of their geometric characterizations to a wider range of neural network variants, including those with custom or more complex activation functions. For infra teams and deployers, understanding these fundamental geometric properties can contribute to more robust analysis tools for model behavior, potentially aiding in debugging, interpretability, and performance prediction, especially in safety-critical applications where understanding all possible network behaviors is paramount. However, the limitations in providing direct architectural guidance mean that current practical design choices will likely continue to rely on empirical validation and established heuristics.

Key Takeaways

  • ReLU networks are piecewise linear and continuous: Their input space is partitioned into polyhedral "linear regions" where the network behaves as a simple affine map.
  • Activation states define regions: The specific on/off state of all neurons determines which affine map is realized within a given linear region.
  • Dual graph diameter is dimension-independent: The maximum number of region boundaries one must cross between any two points in the input space (the diameter of the dual graph) scales with network architecture (width, depth) but surprisingly not with input dimension.
  • Average face count is bounded by 2D: For almost all ReLU networks, the average number of faces bounding each linear region is at most 2D (twice the input dimension), regardless of the network's specific architecture. This extends a classic result for hyperplane arrangements.
  • Geometric metrics show consistency, not architectural guidance: While empirical results consistently validate the theoretical bounds, these specific metrics (diameter, average face count) did not offer strong prescriptive guidance for designing optimal network architectures or differentiating between "good" and "bad" networks.
  • Data points favor complex regions: During training, data points tend to reside in linear regions characterized by a higher-than-average number of faces, suggesting a potential area for future research into training dynamics and geometry.

About the Speaker(s)

Blake Gaines is the presenter of this work, which he conducted with his advisor, Jinbo Bi. His presentation demonstrates a deep understanding of the mathematical and geometric properties of neural networks, particularly those employing the ReLU activation function. His research focuses on characterizing the discrete geometry of these networks, exploring their expressivity and the arrangement of their linear regions.

Jinbo Bi is Blake Gaines's advisor and a co-author of the presented work. While not directly presenting, their guidance and collaboration are integral to the theoretical and empirical contributions discussed in the talk.

Reviews

  • Maya Iyer (Theoretical ML Researcher) — MUST SEE ★★★★★

→ Top-rated talks at International Conference on Learning Representations 2026

All talks from International Conference on Learning Representations 2026