Memory flows: geometry and dynamics of sequential retrieval in input-driven Hopfield networks

Betteti, Simone, Martin, Matteo, Pedersen, Morten Gram, Zampieri, Sandro, Baggio, Giacomo

–arXiv.org Artificial Intelligence 

Associative memory has been a foundational concept in theoretical neuroscience and machine learning for over four decades. In its classical formulation, associative memory retrieval is modeled as convergence toward stable equilibria of an energy landscape [Hopfield, 1982, Cohen and Grossberg, 1983, Hopfield, 1984], whereby a corrupted cue relaxes to a stored pattern through recurrent dynamics, providing a canonical example of distributed computation in neural networks. A large body of work has focused on characterizing the memory capacity of such models [Amit et al., 1987, McEliece et al., 1987, Tsodyks and Feigel'man, 1988], revealing a fundamental limitation of the original Hopfield network, whose capacity scales sub-linearly with the number of neurons. Modern Hopfield models [Krotov and Hopfield, 2016, 2020, Demircigil et al., 2017] overcome this limitation by achieving exponential capacity within an energy-based framework, and have been linked to contemporary architectures such as Transformers [Ramsauer et al., 2021, Hoover et al., 2023a] and diffusion models [Hoover et al., 2023b, Ambrogioni, 2024].