Long Sequence Hopfield Memory
Hamza Tahir Chaudhry, Jacob A. Zavatone-Veth, Dmitry Krotov, Cengiz Pehlevan
Abstract
Sequence memory is an essential attribute of natural and artificial intelligence that enables agents to encode, store, and retrieve complex sequences of stimuli and actions. Computational models of sequence memory have been proposed where recurrent Hopfield-like neural networks are trained with temporally asymmetric Hebbian rules. However, these networks suffer from limited sequence capacity (maximal length of the stored sequence) due to interference between the memories. Inspired by recent work on Dense Associative Memories, we expand the sequence capacity of these models by introducing a nonlinear interaction term, enhancing separation between the patterns. We derive novel scaling laws for sequence capacity with respect to network size, significantly outperforming existing scaling laws for models based on traditional Hopfield networks, and verify these theoretical results with numerical simulation. Moreover, we introduce a generalized pseudoinverse rule to recall sequences of highly correlated patterns. Finally, we extend this model to store sequences with variable timing between states’ transitions and describe a biologically-plausible implementation, with connections to motor neuroscience.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
9 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model cites Semantically-correlated memories in a dense associative model
- BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model cites Hopfield Networks is All You Need
- BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model cites Large Associative Memory Problem in Neurobiology and Machine Learning
- BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model cites Outlier-Efficient Hopfield Layers for Large Transformer-Based Models
- Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model
- Semantically-correlated memories in a dense associative model cites Hopfield Networks is All You Need
- Semantically-correlated memories in a dense associative model cites Relating transformers to models and neural representations of the hippocampal formation
- Hopfield Networks is All You Need cites Large Associative Memory Problem in Neurobiology and Machine Learning
- Large Associative Memory Problem in Neurobiology and Machine Learning cites Hopfield Networks is All You Need
- Sequential Memory with Temporal Predictive Coding cites Hopfield Networks is All You Need
- Resurrecting Recurrent Neural Networks for Long Sequences cites Efficiently Modeling Long Sequences with Structured State Spaces
- Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites Semantically-correlated memories in a dense associative model
- Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites Hopfield Networks is All You Need
- Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites Large Associative Memory Problem in Neurobiology and Machine Learning
- Dense Associative Memory Through the Lens of Random Features cites Hopfield Networks is All You Need
- Dense Associative Memory Through the Lens of Random Features cites Large Associative Memory Problem in Neurobiology and Machine Learning
Cited by top-tier papers9
- Outlier-Efficient Hopfield Layers for Large Transformer-Based ModelsJerry Yao-Chieh Hu, Pei-Hsuan Chang, Haozheng Luo, Hong-Yu Chen et al.ICML 2024 · 46 citations
- Sequential Memory with Temporal Predictive CodingMufeng Tang, Helen Barron, Rafal BogaczNeurIPS 2023 · 30 citations
- BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield ModelChenwei Xu, Yu-Chao Huang, Jerry Yao-Chieh Hu, Weijian Li et al.ICML 2024 · 26 citations
- Dense Associative Memory Through the Lens of Random FeaturesBenjamin Hoover, Duen Horng Chau, Hendrik Strobelt, Parikshit Ram et al.NeurIPS 2024 · 18 citations
- Semantically-correlated memories in a dense associative modelThomas F. BurnsICML 2024 · 8 citations
Builds on7
- Efficiently Modeling Long Sequences with Structured State SpacesAlbert Gu, Karan Goel, Christopher RéICLR 2022 · 3,482 citations
- Hopfield Networks is All You NeedHubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl et al.ICLR 2021 · 620 citations
- Resurrecting Recurrent Neural Networks for Long SequencesAntonio Orvieto, Samuel L. Smith, Albert Gu, Anushan Fernando et al.ICML 2023 · 474 citations
- Large Associative Memory Problem in Neurobiology and Machine LearningDmitry Krotov, John J. HopfieldICLR 2021 · 202 citations
- Relating transformers to models and neural representations of the hippocampal formationJames C. R. Whittington, Joseph Warren, Tim E. J. BehrensICLR 2022 · 110 citations
Related papers
- Biological key-value memory networksDanil Tyulmankov, Ching Fang, Annapurna Vadaparty, Guangyu Robert YangNeurIPS 2021 · 3 citations
- Biologically Plausible Sequence Learning with Spiking Neural NetworksZuozhu Liu, Thiparat Chotibut, Christopher Hillar, Shaowei LinAAAI 2020 · 2 citations
- Exponential Dynamic Energy Network for High Capacity Sequence MemoryArjun Karuvally, Pichsinee Lertsaroj, Terrence J. Sejnowski, Hava T. SiegelmannNeurIPS 2025 · 5 citations
- General Sequential Episodic Memory ModelArjun Karuvally, Terrence J. Sejnowski, Hava T. SiegelmannICML 2023 · 9 citations
- Simplicial Hopfield networksThomas F. Burns, Tomoki FukaiICLR 2023 · 1 citation
