ResNet with one-neuron hidden layers is a Universal Approximator

Hongzhou Lin, Stefanie Jegelka

Introduction

The Universal Approximation Theorem is a cornerstone of deep learning theory, traditionally establishing that a neural network with a single, infinitely wide hidden layer can approximate any continuous function. However, as modern deep learning shifts toward "tall and thin" architectures—networks that are very deep but have limited width—the theoretical focus has shifted. A critical question emerges: if we fix the width and let the depth go to infinity, can we still approximate any function?

This paper proves that very deep Residual Networks (ResNets) are indeed universal approximators even when their hidden layers contain only a single neuron. This finding stands in stark contrast to standard fully connected networks (FCNs), which require a width of at least $d+1$ (where $d$ is the input dimension) to achieve universality.

The Width Bottleneck

Previous research identified a "width bottleneck" for standard FCNs: if the width is less than or equal to the input dimension $d$, the network fails to represent bounded shapes, such as a ball, regardless of its depth. The authors investigate whether the ResNet architecture—characterized by adding the input of a layer back to its output via an identity mapping—can bypass this fundamental limitation.

Methodology: ResNet as a Sequential Processor

The authors provide a mathematical proof by construction using a simplified ResNet where each residual block consists of a single hidden neuron with a ReLU activation function.

A single-neuron ResNet block featuring a ReLU activation and an identity skip connection.

The Identity Map as Memory

The most profound insight is that ResNet’s skip connections allow the network to "remember" the original input while the single neuron in each layer performs a tiny, incremental update. In an FCN with one neuron, the $d$-dimensional input is immediately collapsed into a 1D scalar, resulting in an irreversible loss of information. In contrast, the ResNet uses its identity mapping as a memory buffer.

Sequential Construction

The proof focuses on representing piecewise constant functions, which can approximate any integrable function. The authors show how to stack residual blocks to create "trapezoid" functions that act as indicators for specific regions of the input space. By leveraging depth, they "fold" and "shift" these functions one by one to build a complex global function, effectively carving out the target function cell-by-cell.

Empirical Validation: The Unit Ball Problem

As a theoretical work, the paper utilizes a synthetic 2D classification dataset to provide empirical proof of the theory. The "Unit Ball Problem" involves a training set in $\mathbb{R}^2$ where points inside a circle (radius 1) are labeled +1 and points outside (radius 2 to 3) are labeled -1.

This toy example is crucial because it is mathematically impossible for a narrow FCN (width 2) to solve it. In testing, the authors observed:

  • Fully Connected Networks (width 2): Produced "streaky," unbounded decision boundaries that failed to improve with added depth.
  • ResNets (hidden width 1): Successfully captured the circular shape of the unit ball, with the approximation becoming visibly more accurate as more layers were added.
A narrow ResNet successfully approximating the circular decision boundary of the unit ball.

Key Results and Insights

  • Theoretical Universality: The paper formally proves that ResNets with one-neuron hidden layers can uniformly approximate any Lebesgue integrable function in $d$ dimensions.
  • Breaking the $d+1$ Barrier: While FCNs need a width of $d+1$ to be universal, ResNets only need a hidden width of 1. This suggests that the residual structure is fundamentally more efficient at representing complex functions in narrow regimes.
  • Efficiency Gains: While a width-$(d+1)$ FCN has $O(d^2)$ parameters per layer, the ResNet construction only uses $O(d)$ parameters per layer, representing a "compressed" version of a universal approximator.

Limitations and Future Work

While the paper proves universality is possible, the specific construction requires a number of layers proportional to the number of "grid cells" needed to approximate the function. For high-dimensional data, this depth would be astronomically large ($O(1/r^d)$). Furthermore, the proof guarantees that a solution exists within the architecture, but it does not guarantee that standard training algorithms like Stochastic Gradient Descent (SGD) will successfully converge to that solution. Future work may explore how smoothness constraints on target functions might reduce the required depth for these narrow ResNets.

Summary updated

BibTeX
@inproceedings{lin2018resnet,
  author = {Hongzhou Lin and Stefanie Jegelka},
  title = {{ResNet with one-neuron hidden layers is a Universal Approximator}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=ByZW6v-OWr},
}
Figure