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

Empirical Bounds on Linear Regions of Deep Rectifier Networks

Thiago Serra, Srikumar Ramalingam

Introduction

Deep neural networks utilizing Rectified Linear Units (ReLUs) function as complex piecewise-linear mappings. A key measure of their expressiveness is the number of linear regions—the distinct linear "pieces" that constitute the function in the input space. However, characterizing this expressiveness in practice faces two major hurdles: exact counting is a #P-complete computational problem, and existing theoretical upper bounds are often too loose because they ignore the specific values of trained weights.

This paper bridges the gap between theory and practice by introducing empirical bounds that reflect the actual state of a trained network, providing a fast and accurate proxy for measuring expressiveness.

Methodology: Bounding Expressiveness

The authors propose two complementary approaches to bound the number of linear regions.

MIPBound: A Probabilistic Lower Bound

To estimate the number of regions from below, the authors introduce MIPBound. This method formulates the network as a Mixed-Integer Linear Program (MILP). By employing universal hash functions encoded as XOR constraints, they can statistically estimate the total number of valid activation patterns. Unlike previous SAT-based methods, MIPBound leverages MILP solver callbacks to test multiple constraints efficiently, making it significantly faster than exact counting.

Refined Upper Bound

The authors improve standard analytical upper bounds by incorporating the "internal mechanics" of trained layers:

  • Stable Units: Identifying neurons that remain "stably active" or "stably inactive" across input domains. These units do not contribute to space splitting.
  • Bottleneck Effects: Formalizing how narrow layers (layers with few units) restrict the maximum number of regions subsequent layers can generate.

Key Results: Tightness and Efficiency

The empirical upper bound significantly narrows the gap between theoretical maximums and actual region counts. In cases with extreme bottlenecks, the new bound reduces this gap by 44.5% to 98.3%.

Empirical bounds on MAPS and computational efficiency of MIPBound.

As shown in the figure above, the Empirical UB (red line) tracks the Exact values (black dots) much more closely than the architecture-only Configuration UB (black line). Furthermore, the lower plot demonstrates that MIPBound (approximation) is orders of magnitude faster than exact counting for complex networks, where exact methods would take days.

Insights and Predictive Power

A central contribution of the paper is the proposal of MAPS ($\eta = \log_2 N$, where $N$ is the number of regions) as a practical metric for model complexity. The researchers found that the expressiveness of a network is not merely a function of its "blueprint" (architecture) but is deeply tied to its trained weights.

Correlation between the number of linear regions (MAPS) and model test error.

Crucially, the number of linear regions correlates strongly with network performance. As illustrated in the figure above, there is a clear negative correlation between MAPS and test error, suggesting that these empirical bounds can serve as a reliable proxy for how well a model has learned the underlying data distribution.

Conclusion

By moving beyond worst-case theoretical limits, this work provides tools to quantify the actual expressiveness of trained ReLU networks. While calculating stability coefficients for very large networks remains a challenge, the introduction of MIPBound and refined empirical bounds offers a significant step toward making expressiveness metrics a standard part of the deep learning evaluation pipeline.

Summary updated

BibTeX
@inproceedings{serra2020empirical,
  author = {Thiago Serra and Srikumar Ramalingam},
  title = {{Empirical Bounds on Linear Regions of Deep Rectifier Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6016},
}
Figure