English

The Exponential Capacity of Dense Associative Memories

Disordered Systems and Neural Networks 2024-02-14 v4 Information Theory math.IT

Abstract

Recent generalizations of the Hopfield model of associative memories are able to store a number PP of random patterns that grows exponentially with the number NN of neurons, P=exp(αN)P=\exp(\alpha N). Besides the huge storage capacity, another interesting feature of these networks is their connection to the attention mechanism which is part of the Transformer architectures widely applied in deep learning. In this work, we study a generic family of pattern ensembles using a statistical mechanics analysis which gives exact asymptotic thresholds for the retrieval of a typical pattern, α1\alpha_1, and lower bounds for the maximum of the load α\alpha for which all patterns can be retrieved, αc\alpha_c, as well as sizes of attraction basins. We discuss in detail the cases of Gaussian and spherical patterns, and show that they display rich and qualitatively different phase diagrams.

Keywords

Cite

@article{arxiv.2304.14964,
  title  = {The Exponential Capacity of Dense Associative Memories},
  author = {Carlo Lucibello and Marc Mézard},
  journal= {arXiv preprint arXiv:2304.14964},
  year   = {2024}
}

Comments

Version accepted on Physics Review Letters