Lune

ICLR2022Top-tier venue

On the Optimal Memorization Power of ReLU Neural Networks

Gal Vardi, Gilad Yehudai, Ohad Shamir

Abstract

We study the memorization power of feedforward ReLU neural networks. We show that such networks can memorize any NN points that satisfy a mild separability assumption using O~(N)\tilde{O}\left(\sqrt{N}\right) parameters. Known VC-dimension upper bounds imply that memorizing NN samples requires Ω(N)\Omega(\sqrt{N}) parameters, and hence our construction is optimal up to logarithmic factors. We also give a generalized construction for networks with depth bounded by 1≤L≤N1 \leq L \leq \sqrt{N}, for memorizing NN samples using O~(N/L)\tilde{O}(N/L) parameters. This bound is also optimal up to logarithmic factors. Our construction uses weights with large bit complexity. We prove that having such a large bit complexity is both necessary and sufficient for memorization with a sub-linear number of parameters.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

24 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Memorization Capacity of Multi-Head Attention in Transformers cites An Exponential Improvement on the Memorization Capacity of Deep Threshold Networks
  • Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators? cites Memorization Capacity of Multi-Head Attention in Transformers
  • Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators? cites An Exponential Improvement on the Memorization Capacity of Deep Threshold Networks
  • Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators? cites Deep Double Descent: Where Bigger Models and More Data Hurt
  • A Universal Law of Robustness via Isoperimetry cites Deep Double Descent: Where Bigger Models and More Data Hurt
  • Why Robust Generalization in Deep Learning is Difficult: Perspective of Expressive Power cites An Exponential Improvement on the Memorization Capacity of Deep Threshold Networks
  • Why Robust Generalization in Deep Learning is Difficult: Perspective of Expressive Power cites A Universal Law of Robustness via Isoperimetry
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers24

  1. One Fits All: Power General Time Series Analysis by Pretrained LMTian Zhou, Peisong Niu, Xue Wang, Liang Sun et al.NeurIPS 2023 · 1,178 citations
  2. Training Fully Connected Neural Networks is ∃R-CompleteDaniel Bertschinger, Christoph Hertrich, Paul Jungeblut, Tillmann Miltzow et al.NeurIPS 2023 · 39 citations
  3. Why Robust Generalization in Deep Learning is Difficult: Perspective of Expressive PowerBinghui Li, Jikai Jin, Han Zhong, John E. Hopcroft et al.NeurIPS 2022 · 37 citations
  4. Memorization Capacity of Multi-Head Attention in TransformersSadegh Mahdavi, Renjie Liao, Christos ThrampoulidisICLR 2024 · 34 citations
  5. Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?Tokio Kajitsuka, Issei SatoICLR 2024 · 31 citations

Builds on7

  1. Deep Double Descent: Where Bigger Models and More Data HurtPreetum Nakkiran, Gal Kaplun, Yamini Bansal, Tristan Yang et al.ICLR 2020 · 1,108 citations
  2. A Universal Law of Robustness via IsoperimetrySébastien Bubeck, Mark SellkeNeurIPS 2021 · 260 citations
  3. Neural Networks Learning and Memorization with (almost) no Over-ParameterizationAmit DanielyNeurIPS 2020 · 38 citations
  4. An Exponential Improvement on the Memorization Capacity of Deep Threshold NetworksShashank Rajput, Kartik Sreenivasan, Dimitris S. Papailiopoulos, Amin KarbasiNeurIPS 2021 · 28 citations
  5. Sharp Representation Theorems for ReLU Networks with Precise Dependence on DepthGuy Bresler, Dheeraj NagarajNeurIPS 2020 · 27 citations

Related papers

  1. Optimal robust Memorization with ReLU Neural NetworksLijia Yu, Xiao-Shan Gao, Lijun ZhangICLR 2024 · 4 citations
  2. The Cost of Robustness: Tighter Bounds on Parameter Complexity for Robust Memorization in ReLU NetsYujun Kim, Chaewon Moon, Chulhee YunNeurIPS 2025
  3. Generalizablity of Memorization Neural NetworkLijia Yu, Xiao-Shan Gao, Lijun Zhang, Yibo MiaoNeurIPS 2024 · 5 citations
  4. Network size and size of the weights in memorization with two-layers neural networksSébastien Bubeck, Ronen Eldan, Yin Tat Lee, Dan MikulincerNeurIPS 2020 · 28 citations
  5. How many samples are needed to train a deep neural network?Pegah Golestaneh, Mahsa Taheri, Johannes LedererICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines