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 points that satisfy a mild separability assumption using parameters. Known VC-dimension upper bounds imply that memorizing samples requires parameters, and hence our construction is optimal up to logarithmic factors. We also give a generalized construction for networks with depth bounded by , for memorizing samples using 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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 2df35b3b-33cb-48a0-9d93-aa07ae5de2a5Cited by top-tier papers24
- 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
- Training Fully Connected Neural Networks is ∃R-CompleteDaniel Bertschinger, Christoph Hertrich, Paul Jungeblut, Tillmann Miltzow et al.NeurIPS 2023 · 39 citations
- 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
- Memorization Capacity of Multi-Head Attention in TransformersSadegh Mahdavi, Renjie Liao, Christos ThrampoulidisICLR 2024 · 34 citations
- Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?Tokio Kajitsuka, Issei SatoICLR 2024 · 31 citations
Builds on7
- Deep Double Descent: Where Bigger Models and More Data HurtPreetum Nakkiran, Gal Kaplun, Yamini Bansal, Tristan Yang et al.ICLR 2020 · 1,108 citations
- A Universal Law of Robustness via IsoperimetrySébastien Bubeck, Mark SellkeNeurIPS 2021 · 260 citations
- Neural Networks Learning and Memorization with (almost) no Over-ParameterizationAmit DanielyNeurIPS 2020 · 38 citations
- An Exponential Improvement on the Memorization Capacity of Deep Threshold NetworksShashank Rajput, Kartik Sreenivasan, Dimitris S. Papailiopoulos, Amin KarbasiNeurIPS 2021 · 28 citations
- Sharp Representation Theorems for ReLU Networks with Precise Dependence on DepthGuy Bresler, Dheeraj NagarajNeurIPS 2020 · 27 citations
Related papers
- Optimal robust Memorization with ReLU Neural NetworksLijia Yu, Xiao-Shan Gao, Lijun ZhangICLR 2024 · 4 citations
- The Cost of Robustness: Tighter Bounds on Parameter Complexity for Robust Memorization in ReLU NetsYujun Kim, Chaewon Moon, Chulhee YunNeurIPS 2025
- Generalizablity of Memorization Neural NetworkLijia Yu, Xiao-Shan Gao, Lijun Zhang, Yibo MiaoNeurIPS 2024 · 5 citations
- 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
- How many samples are needed to train a deep neural network?Pegah Golestaneh, Mahsa Taheri, Johannes LedererICLR 2025
