Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Models
- PMID: 36751405
- PMCID: PMC7614148
Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Models
Abstract
A large number of neural network models of associative memory have been proposed in the literature. These include the classical Hopfield networks (HNs), sparse distributed memories (SDMs), and more recently the modern continuous Hopfield networks (MCHNs), which possess close links with self-attention in machine learning. In this paper, we propose a general framework for understanding the operation of such memory networks as a sequence of three operations: similarity, separation, and projection. We derive all these memory models as instances of our general framework with differing similarity and separation functions. We extend the mathematical framework of Krotov & Hopfield (2020) to express general associative memory models using neural network dynamics with local computation, and derive a general energy function that is a Lyapunov function of the dynamics. Finally, using our framework, we empirically investigate the capacity of using different similarity functions for these associative memory models, beyond the dot product similarity measure, and demonstrate empirically that Euclidean or Manhattan distance similarity metrics perform substantially better in practice on many tasks, enabling a more robust retrieval and higher memory capacity than existing models.
Figures




Similar articles
-
In Search of Dispersed Memories: Generative Diffusion Models Are Associative Memory Networks.Entropy (Basel). 2024 Apr 29;26(5):381. doi: 10.3390/e26050381. Entropy (Basel). 2024. PMID: 38785630 Free PMC article.
-
Network Dynamics Governed by Lyapunov Functions: From Memory to Classification.Trends Neurosci. 2020 Jul;43(7):453-455. doi: 10.1016/j.tins.2020.04.002. Epub 2020 May 5. Trends Neurosci. 2020. PMID: 32386741
-
Input-driven dynamics for robust memory retrieval in Hopfield networks.Sci Adv. 2025 Apr 25;11(17):eadu6991. doi: 10.1126/sciadv.adu6991. Epub 2025 Apr 23. Sci Adv. 2025. PMID: 40267196 Free PMC article.
-
Memory capacities for synaptic and structural plasticity.Neural Comput. 2010 Feb;22(2):289-341. doi: 10.1162/neco.2009.08-07-588. Neural Comput. 2010. PMID: 19925281 Review.
-
Boltzmann Machines as Generalized Hopfield Networks: A Review of Recent Results and Outlooks.Entropy (Basel). 2020 Dec 29;23(1):34. doi: 10.3390/e23010034. Entropy (Basel). 2020. PMID: 33383716 Free PMC article. Review.
Cited by
-
A generative model of memory construction and consolidation.Nat Hum Behav. 2024 Mar;8(3):526-543. doi: 10.1038/s41562-023-01799-z. Epub 2024 Jan 19. Nat Hum Behav. 2024. PMID: 38242925 Free PMC article.
-
Sequential Memory with Temporal Predictive Coding.Adv Neural Inf Process Syst. 2023;36:44341-44355. Adv Neural Inf Process Syst. 2023. PMID: 38606302 Free PMC article.
-
A sparse quantized hopfield network for online-continual memory.Nat Commun. 2024 May 2;15(1):3722. doi: 10.1038/s41467-024-46976-4. Nat Commun. 2024. PMID: 38697981 Free PMC article.
References
-
- Abbott LF, Arian Y. Storage capacity of generalized networks. Physical Review A. 1987;36(10):5091 - PubMed
-
- Abu-Mostafa Y, Jacques JS. Information capacity of the Hopfield model. IEEE Transactions on Information Theory. 1985;31(4):461–464.
-
- Bahdanau D, Cho K, Bengio Y. Neural machine translation by jointly learning to align and translate. arXiv preprint. 2014:arXiv:1409.0473
-
- Baldi P, Venkatesh SS. Number of stable points for spin-glasses and neural networks of higher orders. Physical Review Letters. 1987;58(9):913. - PubMed
-
- Bonetti L, Brattico E, Carlomagno F, Donati G, Cabral J, Haumann N, Deco G, Vuust P, Kringelbach M. Rapid encoding of musical tones discovered in wholebrain connectivity. NeuroImage. 2021;245:118735. - PubMed
Grants and funding
LinkOut - more resources
Full Text Sources
Other Literature Sources