The Computational Complexity of Counting Linear Regions in ReLU Neural Networks
Abstract
An established measure of the expressive power of a given ReLU neural network is the number of linear regions into which it partitions the input space. There exist many different, non-equivalent definitions of what a linear region actually is. We systematically assess which papers use which definitions and discuss how they relate to each other. We then analyze the computational complexity of counting the number of such regions for the various definitions. Generally, this turns out to be an intractable problem. We prove NPand #P-hardness results already for networks with one hidden layer and strong hardness of approximation results for two or more hidden layers. Finally, on the algorithmic side, we demonstrate that counting linear regions can at least be achieved in polynomial space for some common definitions.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Depth-Bounds for Neural Networks via the Braid Arrangement cites Training Fully Connected Neural Networks is ∃R-Complete
- Depth-Bounds for Neural Networks via the Braid Arrangement cites Parameterized Hardness of Zonotope Containment and Neural Network Verification
- Depth-Bounds for Neural Networks via the Braid Arrangement cites Towards Lower Bounds on the Depth of ReLU Neural Networks
- Improved Bounds on Neural Complexity for Representing Piecewise Linear Functions cites Reverse-engineering deep ReLU networks
- Improved Bounds on Neural Complexity for Representing Piecewise Linear Functions cites Towards Lower Bounds on the Depth of ReLU Neural Networks
- Towards Lower Bounds on the Depth of ReLU Neural Networks cites Improved Bounds on Neural Complexity for Representing Piecewise Linear Functions
- Training Fully Connected Neural Networks is ∃R-Complete cites Towards Lower Bounds on the Depth of ReLU Neural Networks
- Parameterized Hardness of Zonotope Containment and Neural Network Verification cites Exactly Computing the Local Lipschitz Constant of ReLU Networks
Cited by top-tier papers2
Builds on9
- Exactly Computing the Local Lipschitz Constant of ReLU NetworksMatt Jordan, Alexandros G. DimakisNeurIPS 2020 · 156 citations
- Reverse-engineering deep ReLU networksDavid Rolnick, Konrad P. KordingICML 2020 · 121 citations
- Towards Lower Bounds on the Depth of ReLU Neural NetworksChristoph Hertrich, Amitabh Basu, Marco Di Summa, Martin SkutellaNeurIPS 2021 · 70 citations
- Training Fully Connected Neural Networks is ∃R-CompleteDaniel Bertschinger, Christoph Hertrich, Paul Jungeblut, Tillmann Miltzow et al.NeurIPS 2023 · 39 citations
- Improved Bounds on Neural Complexity for Representing Piecewise Linear FunctionsKuan-Lin Chen, Harinath Garudadri, Bhaskar D. RaoNeurIPS 2022 · 36 citations
Related papers
- On the Number of Linear Regions of Convolutional Neural NetworksHuan Xiong, Lei Huang, Mengyang Yu, Li Liu et al.ICML 2020 · 80 citations
- Better Neural Network Expressivity: Subdividing the SimplexEgor Bakaev, Florestan Brunck, Christoph Hertrich, Jack Stade et al.STOC 2026 · 16 citations
- Empirical Bounds on Linear Regions of Deep Rectifier NetworksThiago Serra, Srikumar RamalingamAAAI 2020 · 46 citations
- TropEx: An Algorithm for Extracting Linear Terms in Deep Neural NetworksMartin Trimmel, Henning Petzka, Cristian SminchisescuICLR 2021 · 15 citations
- Characterizing the Discrete Geometry of ReLU NetworksBlake Gaines, Jinbo BiICLR 2026 · 2 citations
