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

Finite sample expressive power of small-width ReLU networks

Chulhee Yun, Suvrit Sra, Ali Jadbabaie · OpenReview

Abstract

We study finite sample expressivity, i.e., memorization power of ReLU networks. Recent results require $N$ hidden nodes to memorize/interpolate arbitrary $N$ data points. In contrast, by exploiting depth, we show that 3-layer ReLU networks with $\Omega(\sqrt{N})$ hidden nodes can perfectly memorize most datasets with $N$ points. We also prove that width $\Theta(\sqrt{N})$ is necessary and sufficient for memorizing $N$ data points, proving tight bounds on memorization capacity. The sufficiency result can be extended to deeper networks; we show that an $L$-layer network with $W$ parameters in the hidden layers can memorize $N$ data points if $W = \Omega(N)$. Combined with a recent upper bound $O(WL\log W)$ on VC dimension, our construction is nearly tight for any fixed $L$. Subsequently, we analyze memorization capacity of residual networks under a general position assumption; we prove results that substantially reduce the known requirement of $N$ hidden nodes. Finally, we study the dynamics of stochastic gradient descent (SGD), and show that when initialized near a memorizing global minimum of the empirical risk, SGD quickly finds a nearby point with much smaller empirical risk.

Introduction

In deep learning theory, "memorization" refers to a network's ability to perfectly fit a finite training dataset, achieving zero training error. Understanding the minimum size a network needs to achieve this—its memorization capacity—is a fundamental question. Historically, most theoretical results suggested a linear requirement: to memorize $N$ points, a network needed a hidden layer with roughly $N$ nodes.

This paper challenges that convention by demonstrating that depth can be leveraged to significantly reduce the required width. By moving from a 2-layer (single hidden layer) architecture to a 3-layer architecture, the authors show that the number of neurons required drops from $N$ to $\sqrt{N}$.

The Power of Depth: The $\sqrt{N}$ Threshold

The core insight of this work is that depth acts as a multiplier for memorization power. In a standard 2-layer network, each neuron essentially handles a single data point. However, in a 3-layer network, the neurons in the two hidden layers interact like coordinates in a grid. This allows $M$ neurons to "address" $M^2$ data points.

Through a combination of constructive proofs and complexity analysis, the authors establish that for 3-layer networks, a width of $\Theta(\sqrt{N})$ is both necessary and sufficient. This is a "tight" bound, closing the gap between theoretical possibility and impossibility.

Methodological Approach

To prove these bounds, the authors utilize two primary techniques:

  1. Construction: They explicitly construct weight matrices and bias vectors that project high-dimensional data onto a line. The first hidden layer partitions this data, and the second hidden layer assigns values, effectively creating a high-capacity lookup table within the network weights.
  2. Piecewise Linear Analysis: Since ReLU networks are continuous piecewise linear functions, the authors use "piece-counting" arguments to show that a network with fewer than $\sqrt{N}$ nodes lacks the necessary "bends" to interpolate $N$ arbitrary points.

Scaling to Deep Networks and ResNets

The sufficiency results extend to deeper architectures. For an $L$-layer network, the authors show that the total number of parameters $W$ must be $\Omega(N)$ to memorize $N$ points. This construction is nearly tight for any fixed $L$ when compared against known VC dimension upper bounds.

The General Position Assumption

For Residual Networks (ResNets), the authors introduce a "general position" assumption—the idea that no $d+1$ points in the dataset lie on the same hyperplane. Under this assumption, the required number of neurons scales with $N/d_x$, where $d_x$ is the input dimension.

This has significant practical implications for high-dimensional data like images:

  • CIFAR-10: While previous theories suggested 50,000 ReLU nodes were needed to memorize the 50,000 images in CIFAR-10, this ResNet analysis shows it can be achieved with just 126 ReLUs.
  • ImageNet: A 4-layer Feedforward Neural Network (FNN) could theoretically memorize the 1.2 million images of ImageNet using only a few thousand neurons per layer.

Optimization Dynamics

While proving the existence of small, powerful memorizers is a theoretical milestone, it raises the question of whether standard optimization algorithms can find them. The authors analyze the trajectory of Stochastic Gradient Descent (SGD) using Taylor expansions and projection matrices. They prove that if SGD is initialized near a memorizing global minimum, it does not diverge; instead, it quickly hones in on a point with even lower empirical risk ($O(\epsilon^4)$ where $\epsilon$ is the initial distance).

Conclusion and Future Work

This research provides a rigorous foundation for understanding why deep networks are so effective at fitting complex data, even when they appear relatively small compared to the dataset size. However, the authors note several remaining challenges:

  • Global Convergence: While SGD works well near a minimum, proving it will always find that neighborhood from a standard random initialization remains an open problem.
  • Generalization: The focus here is strictly on memorization capacity. How these small, high-capacity memorizers perform on unseen test data—and how this relates to the "double descent" phenomenon—is a subject for future exploration.

Summary updated

BibTeX
@inproceedings{yun2019finite,
  author = {Chulhee Yun and Suvrit Sra and Ali Jadbabaie},
  title = {{Finite sample expressive power of small-width ReLU networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=nbEMQeoKzFc},
}
Figure