Universality of certifiably 1-Lipschitz ReLU networks

Alexis GoujonarXiv 2026

TL;DR

For years, machine learning folklore and empirical disappointments suggested that if you constrain every layer of a standard ReLU network to be non-expansive (to guarantee robustness), you fatally cripple its expressivity. This paper proves the exact opposite: plain, layer-wise constrained ReLU networks can actually approximate any smooth-enough (1-Lipschitz) vector-valued function to arbitrary precision. Better yet, there is zero room to doubt the math—the entire proof has been formally verified in Lean 4.

What Problem Does This Paper Address?

If you want a neural network that won't wildly overreact to tiny perturbations in its input (like adversarial attacks), you want it to be 1-Lipschitz—meaning the distance between two outputs is never greater than the distance between their inputs. Unfortunately, calculating the exact Lipschitz constant of even a two-layer network is NP-hard.

The standard workaround is a layer-wise certificate: force every individual weight matrix to have a spectral norm ($\ell^2$ norm) of at most 1. Because the ReLU activation ($\max(t, 0)$) is also 1-Lipschitz, stacking them guarantees the whole network is 1-Lipschitz.

Here’s the catch: in practice, these networks struggle. Intuitively, ReLU trades slope for nonlinearity. To bend a function, data must hit the flat, zero-slope part of the ReLU. Once a signal is squashed, subsequent norm-constrained layers aren't allowed to amplify it back up! Because they can't even represent a simple absolute value function $x \mapsto |x|$ exactly, researchers largely abandoned plain ReLU in this setting, inventing specialized activations (like GroupSort) or residual architectures instead. Yet, whether plain spectral-norm-constrained ReLU networks are universal approximators for general vector-to-vector maps ($\mathbb{R}^d \to \mathbb{R}^m$) remained an open question.

Methods

Instead of training networks, the author constructs an explicit mathematical bridge from any target 1-Lipschitz function to a valid ReLU network, using tools from convex analysis:

  • Discretization: Because both the target function and the networks are 1-Lipschitz, the author only needs to show a network can map a dense, finite set of input points $x_i$ arbitrarily close to their target outputs $y_i = f(x_i)$.
  • A Chain of Proximal Steps: You can't jump straight from $(x_i, 0)$ to $(0, y_i)$ in one go using simple convex building blocks. Instead, the author breaks the journey into $J$ tiny steps, gradually rotating the data from the input space to the output space. Each tiny step is designed as a proximal map (an implicit gradient step) of a convex, piecewise-linear function.
  • Halpern Iteration & Projections: How do you build a proximal map out of neural network layers? You approximate it by projecting onto the function's epigraph (the region above its graph), which is an intersection of halfspaces. Using classical Halpern anchored iterations (from 1967!), the author shows that composing halfspace projections converges to the desired step.
  • Compiling to ReLU: Each halfspace projection is just a rotation (orthogonal matrix, norm = 1), a coordinate-wise clipping/identity activation, and a rotation back. Finally, on any bounded (compact) set, clipping and identity functions can be rewritten using standard ReLUs via simple shifts and sign flips.

Datasets

Not discussed in the paper. (This is a purely theoretical work; no empirical datasets or benchmarks are used.)

Key Insights and Ideas

  • Exact representation $\neq$ Approximation: It is true that norm-constrained ReLU networks cannot represent $|x|$ exactly. The "aha" moment here is that in the limit of infinite depth, they can still approximate it—and any other 1-Lipschitz map—arbitrarily well.
  • Taking tiny rotational steps avoids "shrinking" your signal: Moving data via proximal maps requires the steps to be "firmly non-expansive," which forces the data to shrink by a factor of $\cos(\pi / 2J)$ at each of the $J$ steps. Compounded over $J$ steps, the total shrinkage is $\cos(\pi / 2J)^J$. As you take more, smaller steps ($J \to \infty$), this factor magically approaches $1$—meaning zero signal loss in the limit!
  • Euclidean ($\ell^2$) geometry is the secret sauce: Under $\ell^\infty$ constraints, ReLU networks genuinely fail to be universal. Here, the $\ell^2$ spectral norm is essential because it allows weight matrices to perform arbitrary orthogonal rotations without paying a norm penalty.
  • AI-Assisted Formal Math: Both the mathematical construction, the Lean 4 formalization, and the manuscript draft were created with assistance from a large language model, culminating in a machine-checked proof relying only on standard mathematical axioms.

Key Results

  • Theorem 1 & Corollary 2: Standard feed-forward ReLU networks with layer-wise spectral norm $\le 1$ are dense (uniformly on compact sets) in the space of all 1-Lipschitz functions from $\mathbb{R}^d \to \mathbb{R}^m$, for any input dimension $d$ and output dimension $m$.
  • Zero Unverified Gaps: The entire proof is formally verified in Lean 4 (with Mathlib v4.33.0) and open-sourced on GitHub.

Limitations and Future Work

The author is refreshingly candid about what universality actually means:

  • Uncontrolled Size: The mathematical construction requires composing many Halpern iterations across many proximal steps, meaning both network width and depth can grow arbitrarily large as the desired error $\varepsilon \to 0$.
  • Approximation vs. Optimization: Knowing a network exists says nothing about whether gradient descent can find it. This paper resolves the expressivity debate, shifting the blame for poor practical performance squarely onto optimization difficulties or finite-depth bottlenecks—leaving trainability and size bounds as open challenges.

Summary updated

BibTeX
@misc{goujon2026universality,
  author = {Alexis Goujon},
  title = {{Universality of certifiably 1-Lipschitz ReLU networks}},
  year = {2026},
  eprint = {2611.37762},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37762},
}
Figure