Skip to main content
QUICK REVIEW

[Paper Review] Small ReLU networks are powerful memorizers: a tight analysis of memorization capacity

Chulhee Yun, Suvrit Sra|arXiv (Cornell University)|Oct 17, 2018
Stochastic Gradient Optimization TechniquesComputer Science40 references16 citations
TL;DR

This paper demonstrates that small 3-layer ReLU networks with Ω(√N) hidden units can perfectly memorize N data points, proving that width Θ(√N) is both necessary and sufficient for memorization capacity. It establishes tight theoretical bounds, extends results to deeper and residual networks, and shows SGD rapidly converges to low-loss solutions near memorizing minima.

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 $Ω(\sqrt{N})$ hidden nodes can perfectly memorize most datasets with $N$ points. We also prove that width $Θ(\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 = Ω(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.

Motivation & Objective

  • Understand the finite sample expressivity and memorization capacity of ReLU networks, especially in comparison to VC dimension.
  • Address the gap in existing theory that requires N hidden nodes for N data points, which is impractical for large N.
  • Provide tight theoretical bounds on the minimum width required for memorization, showing Θ(√N) is both necessary and sufficient for 3-layer networks.
  • Extend results to deeper networks and residual networks under general position assumptions, reducing the required width.
  • Analyze the dynamics of SGD near memorizing global minima, showing rapid convergence to low-loss solutions.

Proposed method

  • Use a geometric construction based on ReLU activation properties to show that 3-layer networks with hidden widths d₁, d₂ satisfying d₁d₂ ≥ 4Nd_y can memorize any dataset.
  • Prove a matching upper bound on memorization capacity for shallow networks (2–3 layers), establishing tightness of the lower bound.
  • Extend the analysis to deeper networks by analyzing the sum of edge products across adjacent layers, showing W = Ω(N) parameters suffice for memorization.
  • Apply a general position assumption to analyze residual networks, showing reduced width requirements compared to prior work.
  • Use second-order Taylor expansion of the loss around a memorizing global minimum to analyze SGD dynamics.
  • Decompose the gradient and function perturbations into parallel and orthogonal components relative to the gradient direction, enabling precise loss change bounds.

Experimental results

Research questions

  • RQ1What is the minimal width of a 3-layer ReLU network required to memorize N arbitrary data points?
  • RQ2Can the memorization capacity of shallow ReLU networks be characterized with tight upper and lower bounds?
  • RQ3How does depth affect the parameter efficiency of memorization in fully connected networks?
  • RQ4What is the memorization capacity of residual networks under general position assumptions?
  • RQ5How quickly does SGD converge to low-loss solutions when initialized near a memorizing global minimum?

Key findings

  • A 3-layer ReLU network with hidden widths d₁ = d₂ = 2√N can memorize any dataset of size N with scalar outputs, requiring only Θ(√N) total hidden units.
  • The width requirement of Θ(√N) is both necessary and sufficient for 3-layer ReLU networks, proving tight bounds on memorization capacity.
  • For classification with d_y classes, a 4-layer ReLU network with widths 2k–2k–4k can memorize 10⁶ data points in 10³ classes, demonstrating practical feasibility.
  • For deeper networks, W = Ω(N) parameters in the hidden layers are sufficient for memorizing N data points, nearly matching the upper bound of O(WL log W) on VC dimension.
  • Under a general position assumption, residual networks require significantly fewer hidden units than N for memorization, improving over prior results.
  • SGD initialized near a memorizing global minimum rapidly converges to a nearby point with substantially lower empirical risk, due to favorable curvature and gradient structure.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.