Shallower ReLU Network Representations via Exact Linear Algebra

Kilian Rueß, Gennadiy Averkov, Florestan Brunck, Moritz Grillo, Christoph Hertrich, Georg Loho, Jack Stade, Moritz Stargalla, Matthew Sun, Martin WinterarXiv 2026

TL;DR

This paper shatters previous depth limits for ReLU networks exactly representing the maximum function, proving that two hidden layers are sufficient for up to 12 inputs (up from the previously known limit of 5). By leveraging exact linear algebra and symmetry reductions, the authors establish a new base-6 logarithmic depth bound for scaling to arbitrary dimensions, demonstrating that rational weights offer a fundamental expressivity advantage over decimal fractions.

What Problem Does This Paper Address?

While Rectified Linear Unit (ReLU) networks are widely celebrated as universal approximators, this paper tackles a stricter geometric question: what happens when we require a network to exactly represent a function across its entire domain without any approximation error?

Every ReLU network computes a continuous piecewise-linear (CPWL) function, and conversely, any CPWL function can be exactly represented by a sufficiently deep ReLU network. The core question is determining the minimum number of hidden layers required for this exact representation. This problem directly reduces to representing the maximum function: $\max_n(x) = \max\{x_1, \dots, x_n\}$. A classic binary-tree approach yields a depth scaling logarithmically with base 2. Recent breakthroughs pushed this to a base-3 scaling, showing that $\max_5$ could be achieved in just two hidden layers. This paper investigates how much further the boundaries of shallow networks can be pushed using exact computational methods.

Methods

The authors transform an infinite-dimensional function search into a finite, exact linear algebra problem. They employ a rank-2 maxout network ansatz, where the first hidden layer is restricted to computing only pairwise maxima ($\max\{x_i, x_j\}$).

To make the search space computationally tractable, they introduce a powerful symmetry reduction. Because the maximum function is permutation-invariant, they average candidate solutions over the symmetric group $S_n$. This mathematical formulation allows them to restrict verification exclusively to the "sorted cone" ($x_1 \le x_2 \le \dots \le x_n$), where the maximum function simplifies to the single coordinate projection $x_n$.

On this cone, the nonlinear ReLU terms must perfectly cancel out, and the remaining linear terms must sum exactly to $x_n$. This sets up a finite system of linear equations over the rational numbers ($\mathbb{Q}$), which the authors solve exactly. Finally, they introduce a structured substitution technique to recursively nest these shallow architectures, allowing them to scale up to larger inputs more efficiently than standard tree-like compositions.

Datasets

Not discussed in the paper. This is a purely theoretical and algebraic work utilizing computer-assisted proofs and exact linear systems rather than empirical datasets.

Key Insights and Ideas

  • The Expressive Advantage of Rational Weights: Previous lower bounds established that if network weights are restricted to decimal fractions (similar to standard floating-point representations), you cannot beat a base-3 logarithmic depth scaling. By finding exact rational solutions, this paper proves that general rational weights are fundamentally more expressive, unlocking base-6 scaling.
  • Symmetry as a Dimensionality Reducer: Averaging over coordinate permutations collapses a massive, continuous search space into a highly structured, finite system of linear equations.
  • Pairwise Maxima Suffice: Structuring the first hidden layer to compute only pairwise maxima provides a clean, modular framework. This specific structure enables highly efficient recursive substitution into deeper networks, bypassing traditional binary-tree limitations.

Key Results

  • Two-Layer Sufficiency up to $n=12$: The authors prove that $\max_n$ can be exactly represented with just two hidden layers for all $n \le 12$, a massive leap from the prior limit of $n \le 5$.
  • Base-6 Logarithmic Scaling: For larger inputs, the structured substitution yields an exact representation with at most $\lceil \log_6(n/2) \rceil + 1$ hidden layers.
  • CPWL Universality: As a consequence, any CPWL function on $\mathbb{R}^d$ can be exactly represented with just two hidden layers for dimensions $d \le 11$.

The significant reduction in required hidden layers compared to prior literature is highlighted in Table 1:

Comparison of maximum arity representable at each depth across different methods.

The scale of the exact linear system search across different input sizes ($n$) is detailed in Table 3:

Computational statistics for the exact linear system search up to n=12.

Limitations and Future Work

  • Combinatorial Explosion: The size of the linear system grows rapidly with $n$. For $n=13$, the computation exceeded available resources, leaving it an open question whether the underlying mathematical ansatz fails at that point or simply ran out of computational memory and time.
  • Factorial Width Trade-off: While the network depth is optimized to be incredibly shallow, the width of the second hidden layer explodes factorially due to the full symmetrization process. The authors note that finding sparse or nonsymmetric solutions is a crucial next step to make these networks practically viable.
  • The Ultimate Two-Layer Conjecture: The authors conjecture that every CPWL function in any dimension can be exactly represented by a ReLU network with just two hidden layers (Conjecture 1.4). Proving or disproving this remains the ultimate open challenge in the field of deep learning expressivity.

Summary updated

BibTeX
@misc{rue2026shallower,
  author = {Kilian Rueß and Gennadiy Averkov and Florestan Brunck and Moritz Grillo and Christoph Hertrich and Georg Loho and Jack Stade and Moritz Stargalla and Matthew Sun and Martin Winter},
  title = {{Shallower ReLU Network Representations via Exact Linear Algebra}},
  year = {2026},
  eprint = {2607.21651},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.21651},
}
Figure