Shallower ReLU Network Representations via Exact Linear Algebra
Abstract
We prove that the maximum of real numbers is exactly representable by a ReLU network with two hidden layers for every . The constructions are obtained by reducing the problem to exact rational linear algebra: after a symmetry reduction, the necessary cancellations are encoded in finite linear systems over , which we solve and verify computationally. The representation of has a structured first hidden layer consisting only of pairwise maxima, a feature that allows it to be recursively substituted into larger networks. We use this to show that for every , the maximum can be exactly represented with hidden layers. Via the generalized hinging-hyperplane representation [Wang, Sun, IEEE Trans. Inf. Theory 2005], the same depth bound holds for all continuous piecewise-linear functions on , with in place of . In particular, every continuous piecewise-linear function on for admits a two-hidden-layer ReLU representation. Our results improve on [Bakaev, Brunck, Hertrich, Stade, Yehudayoff, STOC'26]. In that work, the authors established a two-hidden-layer representation for and an upper bound of hidden layers for .
Cite
@article{arxiv.2607.21651,
title = {Shallower ReLU Network Representations via Exact Linear Algebra},
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},
journal= {arXiv preprint arXiv:2607.21651},
year = {2026}
}