New Research Shows Shallower ReLU Networks for Max Function

Kilian Rue{\ss}, Gennadiy Averkov, Florestan Brunck, Moritz Grillo, Christoph Hertrich, Georg Loho, Jack Stade, Moritz Stargalla, Matthew Sun, Martin Winter· July 27, 2026 View original

Summary

This paper proves that the maximum of up to 10 real numbers can be exactly represented by a ReLU network with only two hidden layers, and provides improved depth bounds for larger numbers. The findings suggest that continuous piecewise-linear functions can be represented with fewer hidden layers than previously thought.

The complexity of representing certain mathematical functions using Rectified Linear Unit (ReLU) neural networks is a fundamental question in deep learning theory. This research focuses on the maximum function, which is a building block for many complex operations. The authors demonstrate a significant theoretical breakthrough by proving that the maximum of up to ten real numbers can be precisely represented by a ReLU network using only two hidden layers. This is achieved through a novel approach that reduces the problem to exact rational linear algebra, leveraging computational verification. A key insight from their construction for the maximum of ten numbers is a structured first hidden layer composed solely of pairwise maximum operations. This structural property allows for recursive application, leading to improved depth bounds for representing the maximum of an arbitrary number of inputs. Specifically, for any number of inputs greater than ten, the maximum function can be represented with fewer hidden layers than prior state-of-the-art methods. These findings extend beyond the maximum function itself. Through the generalized hinging-hyperplane representation, the same improved depth bounds apply to all continuous piecewise-linear functions. This implies that for continuous piecewise-linear functions on up to nine dimensions, a two-hidden-layer ReLU representation is achievable, significantly improving upon previous theoretical limits.

Why it matters

Understanding the representational power and depth requirements of neural networks helps engineers design more efficient and compact models, potentially reducing computational resources and improving interpretability for certain types of functions.

How to implement this in your domain

  1. 1Review existing neural network architectures for tasks involving piecewise-linear functions or maximum operations.
  2. 2Explore the theoretical implications of shallower ReLU networks for model compression and efficiency.
  3. 3Investigate if the structural properties of the proposed max function representation can be applied to specific network layers.
  4. 4Consider how these theoretical bounds might influence the design of custom activation functions or network modules.
  5. 5Stay updated on practical implementations or libraries that leverage these new theoretical insights for more efficient model design.

Who benefits

AI/ML DevelopmentSoftware EngineeringResearch & DevelopmentRobotics

Key takeaways

  • Max function for up to 10 inputs can be represented by a 2-hidden-layer ReLU network.
  • Improved depth bounds are achieved for representing max functions with more inputs.
  • The findings apply to all continuous piecewise-linear functions.
  • This research contributes to understanding neural network representational power and efficiency.

Original post by Kilian Rue{\ss}, Gennadiy Averkov, Florestan Brunck, Moritz Grillo, Christoph Hertrich, Georg Loho, Jack Stade, Moritz Stargalla, Matthew Sun, Martin Winter

"arXiv:2607.21651v1 Announce Type: new Abstract: We prove that the maximum of $n$ real numbers is exactly representable by a ReLU network with two hidden layers for every $n\le 10$. The constructions are obtained by reducing the problem to exact rational linear algebra: after a sy…"

View on X

Originally posted by Kilian Rue{\ss}, Gennadiy Averkov, Florestan Brunck, Moritz Grillo, Christoph Hertrich, Georg Loho, Jack Stade, Moritz Stargalla, Matthew Sun, Martin Winter on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses

More in AI Research

AI ResearchAI Engineering & DevTools

StageGuard Improves Sleep Staging by Enforcing Physiological Constraints

StageGuard is a new framework that enhances automated sleep staging by integrating physiology-informed priors, ensuring that deep learning models produce hypnograms that adhere to known biological rules. It significantly reduces physiologically implausible transitions and fragmentation while maintaining or improving accuracy.

Juntang Wang, Yihan Wang, Hao Wu, Jiayu Gao, Shixin Xu, Dongmian ZouJul 28, 2026
AI ResearchAI Engineering & DevToolsAI News & Tools

AI Model Improves Trustworthy Flood Prediction with Explainability

Researchers developed Context-Aware Concept Distillation (CACD), a framework that distills opaque Deep Learning models into interpretable, hydrology-aware surrogates for flood prediction. This method provides verifiable causal narratives required by disaster response authorities, achieving high fidelity and outperforming black-box baselines globally.

Eli Levinkopf, Efrat Morin, Claudia V. GoldmanJul 28, 2026
AI ResearchAI Engineering & DevTools

Diffusion Models' Generative Quality Gets Comprehensive Theoretical Analysis

This research provides a unified theoretical framework for understanding the generalization and convergence of score-based diffusion models. It decomposes the total generative error into four interpretable components, quantifying how training data, discretization, and optimization affect sample fidelity.

Jinshu Huang, Yiming Jiang, Chunlin WuJul 28, 2026