Skip to content
Preprint

Representing MAX functions using two-hidden-layer ReLU networks

Aug 2026 · 1 citation · ⚡ 1 influential · 7 references
Computer Science Mathematics

TL;DR

The techniques share most of the high-level ideas presented in [Ruess et al., 2026], but there are also some minor differences which may be of interest for future research on this problem.

Abstract

We study exact representations of $\mathrm{MAX}_N(x)=\max{x_1,\ldots,x_N}$ using two-hidden-layer ReLU neural networks. This problem has been studied in recent years in an attempt to characterize the exact number of hidden layers required to represent continuous piecewise linear functions. The best lower bound is 2, while the current upper bound is logarithmic in $N$. It remains completely open if the right answer is a constant number of hidden layers (possibly even 2!) or not. In fact, a recent breakthrough was the representation of $\mathrm{MAX}_5$ as a two-hidden-layer ReLU function obtained in [Bakaev et al., 2026], and the case of $\mathrm{MAX}_N$ was stated as open for $N\geq 6$ in that paper. Using a careful computer assisted search, we obtain two-hidden-layer ReLU representations of $\mathrm{MAX}_5, \mathrm{MAX}_6, \mathrm{MAX}_7$, and $\mathrm{MAX}_8$. We obtain these by considering rational linear combinations of terms of the form $\max\{\sum_{r=1}^{s}\max(x_{a_r},x_{b_r}),\sum_{r=1}^{s}\max(x_{c_r},x_{d_r})\}$, where $a_r,b_r,c_r,d_r\in\{1,\ldots,N\}$. Each inner maximum of two coordinates can be computed in a first hidden layer, and the outer maximum of the two side-sums can be computed in a second hidden layer. Consequently, every finite linear combination of these terms has a two-hidden-layer ReLU realization. An identity for $\mathrm{MAX}_N$ in this form therefore gives an exact two-hidden-layer ReLU representation of $\mathrm{MAX}_N$. Very recently, two-hidden-layer representations of $\mathrm{MAX}_N$ of the above form were obtained for all $N\leq 10$ in [Ruess et al., 2026]. Our representations are different and were developed independently. While our techniques share most of the high-level ideas presented in [Ruess et al., 2026], there are also some minor differences which may be of interest for future research on this problem.

View source

Similar papers

Jul 2026

Shallower ReLU Network Representations via Exact Linear Algebra

It is proved that $\max_n(x)$ is exactly representable with two hidden layers for every $n\leq 12$, and these results improve upon [Bakaev, Brunck, Hertrich, Stade, Yehudayoff, STOC'26], who proved analogous logarithmic bounds with base three.

Kilian Ruess, G. Averkov, Florestan Brunck et al. · 2 citations · ⚡1
#machine learning Preprint Sep 2026

Nearly Tight Rademacher Bounds for Sparsely Activated Neural Networks

A spherical-cap construction proves the latter claim without assuming sparsity merely on the sampling support without assuming sparsity merely on the sampling support, and obtains agnostic minimax excess-risk bounds of order up to logarithms.

Xiao-Yu Li, Zhizhou Sha, Jiao-Jiao Jiang et al. · 0 citations
#machine learning Preprint Sep 2026

Shallow neural network approximation in mixed Sobolev spaces

We investigate the best $L_2$ approximation of mixed Sobolev spaces by shallow neural networks with $n$ neurons and general activation functions. We first establish an activation-independent Fourier-block principle: if an activation has univariate approximation order $\rho$ in the sense of the Fourier-block property, t...

Yuwen Li, Guozhi Zhang · 0 citations
Sep 2026

Approximation Capabilities of Deep Neural Network Interpolation Operators

This paper introduces deep neural network operators based on a special class of sigmoidal functions, using a constructive approximation approach, and establishes Bernstein-type inequality for the derivative of a two-hidden-layer neural network operator.

Aaqib Ayoub Bhat, Asif Khan · 0 citations
Preprint Jul 2026

Landscape analysis for shallow neural networks: Complete classification of critical points for cubic activation and affine target functions

This paper shows that the infimum of the loss is always zero and achievable with at least $d$ active and visible hidden neurons -- that is, hidden neurons with non-zero inner and outer weights -- with pairwise distinct pivots, and provides for arbitrary activation degree $d$ a sharp existence/non-existence criterion fo...

Shokhrukh Ibragimov, Ilkhom Mukhammadiev, Diyora Salimova · 0 citations
Preprint Aug 2026

Convex Networks Remain Hard to Certify: Dimension-Accuracy Barriers for Lipschitz Constants

The lifted-selector reduction has an inverse-polynomial radial gap, proved through a quantitative theorem for rational cyclic zonogons, and the results apply to Euclidean zonotope radius and positive-semidefinite binary quadratic maximization parameterized by rank.

Pahan Dewasurendra, Subhashini Jayawardhana · 2 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.