cs.CCMay 22, 2025

The Computational Complexity of Counting Linear Regions in ReLU Neural Networks

Authors: Moritz Stargalla, Christoph Hertrich, Daniel Reichman

Organizations: University of Technology Nuremberg · Worcester Polytechnic Institute

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 NP- and #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.

Figures & tables

Explore similar work

CardsList
  1. NP-Hardness of Minimizing Neurons in Two-Hidden-Layer ReLU Neural Networks

    Oct 8, 2026Sangrock LeeReLU Neural NetworksNeural Network Approximation Theory

  2. Characterizing the Discrete Geometry of ReLU Networks

    Jun 5, 2026Blake B. Gaines, Jinbo BiNeural Representation GeometryReLU Neural Networks

  3. Shallower ReLU Network Representations via Exact Linear Algebra

    Jul 22, 2026Kilian Rueß, Gennadiy Averkov, Florestan Brunck +7Shallow Neural NetworksReLU Neural Networks