How Many Neurons Does it Take to Approximate the Maximum?
Itay Safran, Daniel Reichman, Paul Valiant
Abstract
We study the size of a neural network needed to approximate the maximum function over d inputs, in the most basic setting of approximating with respect to the L 2 norm, for continuous distributions, for a network that uses ReLU activations. We provide new lower and upper bounds on the width required for approximation across various depths. Our results establish new depth separations between depth 2 and 3, and depth 3 and 5 networks, as well as providing a depth O(log(log(d))) and width O(d) construction which approximates the maximum function. Our depth separation results are facilitated by a new lower bound for depth 2 networks approximating the maximum function over the uniform distribution, assuming an exponential upper bound on the size of the weights. Furthermore, we are able to use this depth 2 lower bound to provide tight bounds on the number of neurons needed to approximate the maximum by a depth 3 network. Our lower bounds are of potentially broad interest as they apply to the widely studied and used max function, in contrast to many previous results that base their bounds on specially constructed or pathological functions and distributions.
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.
Cited by top-tier papers4
- Better Neural Network Expressivity: Subdividing the SimplexEgor Bakaev, Florestan Brunck, Christoph Hertrich, Jack Stade et al.STOC 2026 · 16 citations
- Depth-Bounds for Neural Networks via the Braid ArrangementMoritz Grillo, Christoph Hertrich, Georg LohoNeurIPS 2025 · 15 citations
- On the Expressiveness of Rational ReLU Neural Networks With Bounded DepthGennadiy Averkov, Christopher Hojny, Maximilian MerkertICLR 2025
- Decomposition Polyhedra of Piecewise Linear FunctionsMarie-Charlotte Brandenburg, Moritz Leo Grillo, Christoph HertrichICLR 2025
Builds on2
Related papers
- Minimum width for universal approximation using ReLU networks on compact domainNamjun Kim, Chanho Min, Sejun ParkICLR 2024 · 19 citations
- Minimum Width for Universal ApproximationSejun Park, Chulhee Yun, Jaeho Lee, Jinwoo ShinICLR 2021 · 148 citations
- The Implicit Bias of Minima Stability in Multivariate Shallow ReLU NetworksMor Shpigel Nacson, Rotem Mulayoff, Greg Ongie, Tomer Michaeli et al.ICLR 2023 · 3 citations
- On Enhancing Expressive Power via Compositions of Single Fixed-Size ReLU NetworkShijun Zhang, Jianfeng Lu, Hongkai ZhaoICML 2023 · 9 citations
- Depth Separation with Multilayer Mean-Field NetworksYunwei Ren, Mo Zhou, Rong GeICLR 2023
