Abstract
This work establishes the exact minimum width required for deep neural networks to achieve universal approximation across a broad class of "squashable" activation functions. We prove that for most scenarios, a hidden layer width of $\max\{d_x, d_y, 2\}$ is both necessary and sufficient to approximate any $L^p$ function, significantly generalizing previous results that were primarily restricted to ReLU. Our findings provide a unified theoretical framework for understanding the expressive power of narrow, deep networks.
Introduction
The Universal Approximation Theorem is a cornerstone of deep learning theory, traditionally stating that a network with a single, infinitely wide hidden layer can approximate any continuous function. However, modern deep learning architectures prioritize depth over width. This shift raises a fundamental question: how narrow can a network be while remaining a universal approximator if we allow it to be infinitely deep?
While the minimum width for ReLU networks was previously established, the answer for general activation functions like Sigmoid, Tanh, or Swish remained elusive. This paper closes that gap by defining "squashable" functions and proving tight width bounds for them.
Squashable Activation Functions
The authors introduce the concept of squashable activation functions. A function is considered squashable if, through repeated composition with affine transformations (scaling and shifting), it can approximate two fundamental primitives: the identity function and the binary step function.
Almost all practically used non-linear functions are squashable, including non-affine analytic functions (Sigmoid, Tanh, Sine, Exp) and many piecewise linear ones (Leaky-ReLU, HardSwish).
The Encoder-Decoder Construction
The core proof relies on a sophisticated encoder-decoder construction. The network "squashes" a high-dimensional input ($d_x$) into a scalar value using a $\delta$-filling curve—a variation of space-filling curves. Subsequently, the network "unpacks" this scalar back into the desired high-dimensional output ($d_y$).
By demonstrating that squashable functions can implement these space-filling curves using very few neurons, the authors show that the bottleneck of the network only needs to be as wide as the largest dimension involved (input or output), with a floor of 2 to maintain the necessary internal state.
Key Results
The paper establishes that for a squashable activation function $\sigma$, the minimum width $w_{min}$ for universal approximation of $L^p$ functions from $[0, 1]^{d_x}$ to $\mathbb{R}^{d_y}$ is:
- $w_{min} = \max\{d_x, d_y, 2\}$ (assuming $d_x$ or $d_y \ge 2$).
- If $d_x = d_y = 1$, the minimum width is 2 if the function is monotone.
This result is "tight," meaning it is impossible to go any narrower without losing universal approximation capabilities. It unifies years of disparate research into a single framework, breaking the previously suggested $d_x + 1$ barrier for ReLU by showing that general squashable functions can more efficiently represent the "jumps" needed for space-filling constructions.
Limitations and Future Work
While these results provide a definitive theoretical bound, several open questions remain:
- Domain Constraints: The results focus on functions defined on compact domains (e.g., the unit hypercube). Extending these bounds to unbounded domains is an ongoing challenge.
- Approximation Spaces: The focus is on $L^p$ approximation (average error). For uniform error ($C(X, Y)$), the required width is typically higher (around $d_x + d_y$).
- Trainability: The existence of these narrow networks does not guarantee they can be found using standard optimization techniques like Gradient Descent. In practice, extremely narrow, deep networks often suffer from vanishing or exploding gradients.
Summary updated