NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Minimum width for universal approximation using ReLU networks on compact domain

Namjun Kim, Chanho Min, Sejun Park

TL;DR

This paper settles a fundamental question in neural network theory: what is the absolute minimum width required for a deep ReLU network to approximate any function? The authors prove that on a compact domain (like a unit cube), the minimum width for $L^p$ approximation is exactly $\max\{d_x, d_y, 2\}$, where $d_x$ and $d_y$ are the input and output dimensions. This reveals that approximating functions on bounded domains requires less "breathing room" than on infinite ones, and establishes a sharp distinction between average-case ($L^p$) and worst-case (uniform) approximation.

The Minimum Width Problem

The Universal Approximation Theorem (UAT) is a cornerstone of deep learning, traditionally stating that a network can approximate any continuous function if it is "wide enough." Recently, research has flipped the script: if we have an infinitely deep network, how narrow can it be while remaining a universal approximator?

While we knew that a width of $d_x + 1$ was sufficient for ReLU networks on the entire Euclidean space $\mathbb{R}^{d_x}$, the exact "critical width" for compact domains—like the bounded datasets we actually use in practice—remained elusive. Furthermore, there was a lack of clarity on whether this minimum width changed depending on the error metric used ($L^p$ vs. uniform norm) or the specific activation function (ReLU vs. GELU or Softplus).

Methods: The Encoder-Decoder Scheme

To prove their upper bounds, the authors employ a sophisticated Encoder-Decoder coding scheme.

Encoder-Decoder Scheme

The strategy works in two main stages:

  1. The Encoder: A narrow ReLU sub-network maps the high-dimensional input $x \in [0, 1]^{d_x}$ into a single scalar "codeword" $c$. By exploiting the compactness of the domain, they show they can "pack" the input information more efficiently than previous methods, requiring only width $d_x$ (or 2, whichever is larger).
  2. The Decoder: Another sub-network takes this scalar codeword and maps it to the desired output vector in $\mathbb{R}^{d_y}$ with width $\max\{d_y, 2\}$.

For the lower bounds—proving a network cannot approximate a function if it's too narrow—they use topological arguments. Specifically, they use Brouwer’s fixed-point theorem to show that if a network is too narrow, it creates "collisions" or forced intersections that prevent it from accurately mimicking certain target functions.

Key Insights and Results

  • The Compactness Bonus: The most striking insight is that the "extra" neuron ($+1$) required for approximation on $\mathbb{R}^{d_x}$ is a tax paid for the domain being unbounded. On a compact domain, you can achieve universal approximation with exactly $d_x$ neurons.
  • Exact Minimum Width: For $L^p$ approximation using ReLU or ReLU-like activations on a compact domain, the minimum width is exactly $w_{\min} = \max\{d_x, d_y, 2\}$.
  • The $L^p$ vs. Uniform Dichotomy: The paper proves that $L^p$ approximation is fundamentally "easier" than uniform approximation. If the output dimension $d_y$ is larger than the input $d_x$, you need more width to guarantee the error is small everywhere (uniform) than you do to guarantee it is small on average ($L^p$). They prove a new lower bound for uniform approximation: $w_{\min} \ge d_y + 1$ when $d_x < d_y \le 2d_x$.
  • ReLU-Like Universality: The authors define a class of "ReLU-like" functions (including GELU, Softplus, ELU, and Swish/SiLU). They show that the same minimum width rules apply to almost all modern activation functions used in industry.
  • RNN Hidden States: They extend these results to Recurrent Neural Networks, showing that the minimum width of the hidden state is independent of the sequence length $T$.

Limitations and Future Work

While this work closes several major gaps in approximation theory, some questions remain:

  • The Uniform Approximation Gap: While they found the exact value for $L^p$, the exact minimum width for uniform approximation is still not fully characterized for all ratios of $d_x$ and $d_y$.
  • Trainability vs. Expressivity: This paper proves that these narrow networks exist. However, in practice, training a network at the absolute minimum width is notoriously difficult due to vanishing gradients and a highly non-convex loss landscape. The authors note that their construction is an existence proof, not a recommendation for architecture design.
  • Activation Constraints: For some complex activations like GELU or MISH, their proof requires $d_x + d_y \ge 3$, leaving a tiny edge case for very low-dimensional problems.

Summary updated

BibTeX
@inproceedings{kim2024minimum,
  author = {Namjun Kim and Chanho Min and Sejun Park},
  title = {{Minimum width for universal approximation using ReLU networks on compact domain}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=dpDw5U04SU},
}
Figure