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

Topological Expressivity of ReLU Neural Networks

Ekin Ergen, Moritz Grillo

Abstract

We study the expressivity of ReLU neural networks in the setting of a binary classification problem from a topological perspective. Recently, empirical studies showed that neural networks operate by changing topology, transforming a topologically complicated data set into a topologically simpler one as it passes through the layers. This topological simplification has been measured by Betti numbers, which are algebraic invariants of a topological space. We use the same measure to establish lower and upper bounds on the topological simplification a ReLU neural network can achieve with a given architecture. We therefore contribute to a better understanding of the expressivity of ReLU neural networks in the context of binary classification problems by shedding light on their ability to capture the underlying topological structure of the data. In particular the results show that deep ReLU neural networks are exponentially more powerful than shallow ones in terms of topological simplification. This provides a mathematically rigorous explanation why deeper networks are better equipped to handle complex and topologically rich data sets.

Introduction

In binary classification, neural networks are typically viewed as mechanisms for defining boundaries between classes. However, real-world data often exhibits significant "topological complexity"—for instance, intertwined rings or nested structures. Empirical observations suggest that neural networks operate by progressively "untangling" these shapes through successive layers.

While the Universal Approximation Theorem guarantees that a single hidden layer can approximate any continuous function, it provides no insight into the efficiency of such approximations for topologically complex data. This research addresses a fundamental question: How much topological change can a specific network architecture achieve? The authors quantify this using Betti numbers—mathematical invariants that count connected components ($\beta_0$), circular holes ($\beta_1$), and higher-dimensional voids—of the network's decision regions.

Methods

The study establishes theoretical bounds on topological expressivity through two primary lenses:

Lower Bounds via Construction

The researchers explicitly construct ReLU networks that generate highly complex decision regions. This involves a "folding" technique where the network repeatedly mirrors and scales the input space. By "carving" out specific regions at the corners of these folds, they create architectures where the number of holes and components grows exponentially with depth.

The hat function primitive used as a building block for constructing complex decision regions.

Upper Bounds via Combinatorics

To determine the theoretical maximum, the authors utilize polyhedral geometry. As ReLU networks are continuous piecewise linear (CPWL) functions, their decision boundaries consist of flat faces. The maximum possible Betti numbers are linked to the total number of "linear regions" the network can partition, resulting in a polynomial bound relative to width but an exponential bound relative to depth.

Stability Analysis

The authors further prove that these constructions are "topologically stable," ensuring that the complex structures created do not vanish under small perturbations of the network's weights.

Key Insights: The Exponential Gap

The most significant finding is the "exponential gap" between shallow and deep architectures. Increasing the width of a network with constant depth only yields polynomial growth in topological complexity. Conversely, increasing depth results in exponential growth.

Illustration of the 'carving' technique creating multiple decision regions to increase topological complexity.

This suggests that topological expressivity acts as a "bottleneck." If a dataset contains $2^n$ holes but a shallow network can only represent $n^2$, misclassification is mathematically inevitable. Each additional layer effectively acts as a folding mechanism, doubling the complexity of the preceding layer, which explains why deep learning is uniquely suited for high-dimensional, topologically rich data.

Key Results

  • Lower Bound: For a network of depth $L+1$, the $k$-th Betti number $\beta_k$ can reach the order of $\Omega(M^k \cdot n_L)$, where $M$ relates to layer width, confirming exponential scaling with depth.
  • Upper Bound: Betti numbers for a network with width $n_i$ are bounded by $O((\prod n_i)^{d^2})$.
  • Conjecture Proof: The paper formally proves and generalizes a conjecture by Guss and Salakhutdinov (2018) regarding lower bounds for connected components across all dimensions.

Limitations and Future Work

The current proofs are specific to the piecewise linear nature of ReLU activations. While similar bounds likely apply to smooth sigmoidal networks, they would require different mathematical frameworks. Additionally, these results focus on maximum expressivity (worst-case) rather than the "average-case" ease with which standard optimization like SGD can find these solutions. Future research may also explore finer topological invariants beyond Betti numbers, such as cohomology rings.

Summary updated

BibTeX
@inproceedings{ergen2024topological,
  author = {Ekin Ergen and Moritz Grillo},
  title = {{Topological Expressivity of ReLU Neural Networks}},
  booktitle = {Conference on Learning Theory},
  year = {2024},
  url = {https://openreview.net/forum?id=tunXPghTF5},
}
Figure