English

Memory capacity of two layer neural networks with smooth activations

Machine Learning 2024-07-25 v3 Optimization and Control

Abstract

Determining the memory capacity of two layer neural networks with mm hidden neurons and input dimension dd (i.e., md+2mmd+2m total trainable parameters), which refers to the largest size of general data the network can memorize, is a fundamental machine learning question. For activations that are real analytic at a point and, if restricting to a polynomial there, have sufficiently high degree, we establish a lower bound of md/2\lfloor md/2\rfloor and optimality up to a factor of approximately 22. All practical activations, such as sigmoids, Heaviside, and the rectified linear unit (ReLU), are real analytic at a point. Furthermore, the degree condition is mild, requiring, for example, that (k+d1d1)n\binom{k+d-1}{d-1}\ge n if the activation is xkx^k. Analogous prior results were limited to Heaviside and ReLU activations -- our result covers almost everything else. In order to analyze general activations, we derive the precise generic rank of the network's Jacobian, which can be written in terms of Hadamard powers and the Khatri-Rao product. Our analysis extends classical linear algebraic facts about the rank of Hadamard powers. Overall, our approach differs from prior works on memory capacity and holds promise for extending to deeper models and other architectures.

Keywords

Cite

@article{arxiv.2308.02001,
  title  = {Memory capacity of two layer neural networks with smooth activations},
  author = {Liam Madden and Christos Thrampoulidis},
  journal= {arXiv preprint arXiv:2308.02001},
  year   = {2024}
}

Comments

V3: the result was generalized to activations which are real analytic at a point by including a bias vector. The presentation and rigor were also improved

R2 v1 2026-06-28T11:47:41.740Z