Sharp bounds for the number of regions of maxout networks and vertices of Minkowski sums

Guido Montúfar, Yue Ren, Leon Zhang

Abstract

We present results on the number of linear regions of the functions that can be represented by artificial feedforward neural networks with maxout units. A rank-$k$ maxout unit is a function computing the maximum of $k$ linear functions. For networks with a single layer of maxout units, the linear regions correspond to the upper vertices of a Minkowski sum of polytopes. We obtain face counting formulas in terms of the intersection posets of tropical hypersurfaces or the number of upper faces of partial Minkowski sums, along with explicit sharp upper bounds for the number of regions for any input dimension, any number of units, and any ranks, in the cases with and without biases. Based on these results we also obtain asymptotically sharp upper bounds for networks with multiple layers.

Introduction

Neural networks with piecewise linear activation functions, such as ReLU or the more general maxout unit, partition their input space into distinct "linear regions." The number of these regions serves as a proxy for the network's expressivity—its capacity to model complex, non-linear functions. While the linear regions of ReLU networks have been extensively studied, maxout networks—which compute the maximum of $k$ linear functions—have remained less understood. Prior to this work, a significant mathematical gap existed between known lower and upper bounds for the maximum number of regions a maxout network could produce. This paper closes that gap by providing exact, mathematically sharp upper bounds for maxout networks across any input dimension, unit count, and rank.

Geometric Correspondence and Methods

The paper's core contribution lies in translating the problem of counting linear regions into the language of tropical geometry and combinatorics. A maxout unit can be viewed as a tropical polynomial, and its decision boundaries form a tropical hypersurface. Consequently, a layer of maxout units creates a "maxout arrangement," a complex generalization of standard hyperplane arrangements.

Correspondence between maxout units, tropical hypersurfaces, and Minkowski sums.

As illustrated in the figure above, the authors demonstrate that counting the linear regions of a shallow maxout network is mathematically equivalent to counting the "upper vertices" of a Minkowski sum of polytopes (specifically, lifted Newton polytopes). The figure shows how two maxout units (red and blue) and their respective tropical arrangements combine. The union of these arrangements in the input space corresponds to the Minkowski sum of their associated polytopes. Crucially, only the vertices visible from "above" in the Minkowski sum correspond to the linear regions of the resulting maxout function.

To derive exact counts, the authors extend Zaslavsky’s theorem—originally used for standard hyperplane arrangements—to maxout arrangements using intersection posets, Euler characteristics, and Möbius inversion. They also generalize Weibel's counting formulas for Minkowski sums to handle arbitrary dimensions.

Key Results and Insights

Exact Formulas for Shallow Networks

The authors derived a sharp, exact formula for the maximum number of regions in a shallow maxout network with biases: $$\sum_{j=0}^n \sum_{S \in \binom{[m]}{j}} \prod_{i \in S} (k_i - 1)$$ where $n$ is the input dimension, $m$ is the number of units, and $k_i$ is the rank of each unit. For networks without biases, the bound is strictly smaller: $$\binom{m'-1}{n-1} + \sum_{j=0}^{n-1} \sum_{S \in \binom{[m]}{j}} \prod_{i \in S} (k_i - 1)$$ These formulas completely close the theoretical gap in previous literature, which previously only estimated bounds between $\Omega(k^n)$ and $O((mk^2)^n)$.

Deep Network Bounds

By recursively applying the results from shallow networks, the authors established asymptotically sharp upper bounds for deep maxout networks. They show that the maximum number of regions scales as $O(\prod_{l=1}^L (n_l k)^{n_0})$, where $L$ is the number of layers and $n_0$ is the input dimension.

Theoretical Implications

  • Polynomial Growth: For shallow networks where the number of units $m$ exceeds the input dimension $n$, the maximum number of regions grows polynomially with respect to $m$, not exponentially.
  • The Role of Biases: The geometric framework quantifies how removing biases restricts the arrangement to a "central" configuration, significantly reducing the network's expressivity.
  • Contribution to Pure Mathematics: Beyond deep learning, the generalization of Zaslavsky's theorem and the solution for counting upper vertices of Minkowski sums in arbitrary dimensions represent significant contributions to combinatorial geometry.

Limitations and Future Work

While this work provides the absolute maximum possible number of regions, it does not address the expected number of regions for a network with randomly initialized weights. Estimating this average case would require studying Minkowski sums of random polytopes. Additionally, while the bounds for deep networks are asymptotically sharp, a closed-form exact counting formula for deep architectures remains an open challenge. Future research could also adapt these formulas for structured architectures like Convolutional Neural Networks (CNNs) or Graph Neural Networks (GNNs), where arrangements are non-simple due to parameter sharing.

Summary updated

Abstract

We present results on the number of linear regions of the functions that can be represented by artificial feedforward neural networks with maxout units. A rank-k maxout unit is a function computing the maximum of $k$ linear functions. For networks with a single layer of maxout units, the linear regions correspond to the upper vertices of a Minkowski sum of polytopes. We obtain face counting formulas in terms of the intersection posets of tropical hypersurfaces or the number of upper faces of partial Minkowski sums, along with explicit sharp upper bounds for the number of regions for any input dimension, any number of units, and any ranks, in the cases with and without biases. Based on these results we also obtain asymptotically sharp upper bounds for networks with multiple layers.
BibTeX
@inproceedings{montufar2022sharp,
  author = {Guido Montúfar and Yue Ren and Leon Zhang},
  title = {{Sharp bounds for the number of regions of maxout networks and vertices of Minkowski sums}},
  booktitle = {SIAM},
  year = {2022},
  doi = {10.1137/21m1413699},
}
Figure