The Computational Complexity of Counting Linear Regions in ReLU Neural Networks
Moritz Stargalla, Christoph Hertrich, Daniel Reichman
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.
39th Conference on Neural Information Processing Systems (NeurIPS 2025).
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 2749ac80-66cc-4029-bf73-664ee00b0d47Cited by top-tier papers2
- Depth-Bounds for Neural Networks via the Braid ArrangementMoritz Grillo, Christoph Hertrich, Georg LohoNeurIPS 2025 · 15 citations
- Parameterized Hardness of Zonotope Containment and Neural Network VerificationVincent Froese, Moritz Grillo, Christoph Hertrich, Moritz StargallaICLR 2026 · 9 citations
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
- Characterizing the Discrete Geometry of ReLU NetworksBlake Gaines, Jinbo BiICLR 2026 · 2 citations
- TropEx: An Algorithm for Extracting Linear Terms in Deep Neural NetworksMartin Trimmel, Henning Petzka, Cristian SminchisescuICLR 2021 · 15 citations
