Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Models
Not on the map. Why?
Abstract (arXiv)
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 possesses 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 et al (2020) to express general associative memory models using neural network dynamics with only second-order interactions between neurons, 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.
Key facts. Cited by 55 papers in the map (data through 14 Oct 2026). Builds on 20 of its 52 references that are in the map. First posted on arXiv 9 Feb 2022.
Builds on
20 of 52 references.
References · 20
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2020Efficient Transformers: A Surveycited by 790
- 2020Hopfield Networks is All You Needcited by 475
- 2016Dense Associative Memory for Pattern Recognitioncited by 236
- 2020Large Associative Memory Problem in Neurobiology and Machine Learningcited by 112
8 more
- 2019Augmenting Self-attention with Persistent Memorycited by 93
- 2021Memory-efficient Transformers via Top-k Attentioncited by 60
- 2019Overparameterized Neural Networks Implement Associative Memorycited by 45
- 2021Associative Memories via Predictive Codingcited by 44
- 2021Hierarchical Associative Memorycited by 34
- 2021Attention Approximates Sparse Distributed Memorycited by 29
- 2021A remark on a paper of Krotov and Hopfield [arXiv:2008.06996]cited by 11
- 2020Associative Memory in Iterated Overparameterized Sigmoid Autoencoderscited by 9
Built on by
Citing papers per year: 2022: 4; 2023: 11; 2024: 19; 2025: 11; 2026: 10.
55 papers.
Sort:
By area:
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 74
- 2023On Sparse Modern Hopfield Modelcited by 42
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2023STanHop: Sparse Tandem Hopfield Model for Memory-Enhanced Time Series Predictioncited by 35
- 2023Brain-inspired Computational Intelligence via Predictive Codingcited by 30
- 2024Fundamental Problems With Model Editing: How Should Rational Belief Revision Work in LLMs?cited by 24
- 2025Key-value memory in the braincited by 24
- 2023Simplicial Hopfield networkscited by 16
- 2023Sequential Memory with Temporal Predictive Codingcited by 16
- 2023End-to-end Differentiable Clustering with Associative Memoriescited by 15
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformerscited by 15
- 2022BayesPCN: A Continually Learnable Predictive Coding Associative Memorycited by 14
38 more
- 2023Memory in Plain Sight: Surveying the Uncanny Resemblances of Associative Memories and Diffusion Modelscited by 13
- 2023In-Context Exemplars as Clues to Retrieving from Large Associative Memorycited by 13
- 2024Sparse and Structured Hopfield Networkscited by 13
- 2024Tree Attention: Topology-aware Decoding for Long-Context Attention on GPU clusterscited by 13
- 2024Beyond Scaling Laws: Understanding Transformer Performance with Associative Memorycited by 12
- 2023Sparse Distributed Memory is a Continual Learnercited by 11
- 2022In-memory factorization of holographic perceptual representationscited by 10
- 2024Dense Associative Memory Through the Lens of Random Featurescited by 8
- 2025Fast weight programming and linear transformers: from machine learning to neurobiologycited by 8
- 2025In-context denoising with one-layer transformers: connections between attention and associative memory retrievalcited by 7
- 2023A Sparse Quantized Hopfield Network for Online-Continual Memorycited by 5
- 2024Bridging Associative Memory and Probabilistic Modelingcited by 5
- 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breakingcited by 5
- 2022On the Relationship Between Variational Inference and Auto-Associative Memorycited by 4
- 2024Zero-Shot Generalization of Vision-Based RL Without Data Augmentationcited by 4
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Modelscited by 4
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecturecited by 3
- 2025DAM-Seg: Anatomically accurate cardiac segmentation using Dense Associative Networkscited by 3
- 2026Sharp Capacity Thresholds in Linear Associative Memory: From Top-1 Retrieval to Tail-Average Learningcited by 3
- 2024Associative Memories in the Feature Spacecited by 2
- 2024Semantically-correlated memories in a dense associative modelcited by 2
- 2025Siamese Network with Dual Attention for EEG-Driven Social Learning: Bridging the Human-Robot Gap in Long-Tail Autonomous Drivingcited by 2
- 2025Memory-Integrated Reconfigurable Adapters: A Unified Framework for Settings with Multiple Taskscited by 2
- 2022Learning to Control Rapidly Changing Synaptic Connections: An Alternative Type of Memory in Sequence Processing Artificial Neural Networkscited by 1
- 2024Associative memory and dead neuronscited by 1
- 2025Adaptive Hopfield Network: Rethinking Similarities in Associative Memorycited by 1
- 2025On the Role of Hidden States of Modern Hopfield Network in Transformercited by 1
- 2026Hybrid Associative Memoriescited by 1
- 2026Energy-Based Dynamical Models for Neurocomputation, Learning, and Optimizationcited by 1
- 2026Finite-size scaling of hetero-associative retrieval in continuous-signal-driven Ising spin systemscited by 1
- 2023Neural Network Layer Matrix Decomposition reveals Latent Manifold Encoding and Memory Capacitycited by 0
- 2024Improved Robustness and Hyperparameter Selection in the Dense Associative Memorycited by 0
- 2024Modern Hopfield Networks meet Encoded Neural Representations -- Addressing Practical Considerationscited by 0
- 2024Predictive Attractor Modelscited by 0
- 2024AH-OCDA: Amplitude-based Curriculum Learning and Hopfield Segmentation Model for Open Compound Domain Adaptationcited by 0
- 2025Topological constraints on self-organisation in locally interacting systemscited by 0
- 2025A General Close-loop Predictive Coding Framework for Auditory Working Memorycited by 0
- 2026Scalable Analytic Classifiers with Associative Drift Compensation for Class-Incremental Learning of Vision Transformerscited by 0
50 most cited of 55 All 55 (JSON)
- 2026DeltaNet-PC: Test-Time Memory Without Backpropagation Through Time10 Oct 2026
- 2026Active Adversarial Perturbation-driven Associative Memory Retrieval for RGB-Event Visual Object Tracking24 Jun 2026
- 2026Controlled Dynamics Attractor Transformer13 Jun 2026
- 2026Finite-size scaling of hetero-associative retrieval in continuous-signal-driven Ising spin systems13 May 2026
- 2026Sharp Capacity Thresholds in Linear Associative Memory: From Top-1 Retrieval to Tail-Average Learning6 May 2026
- 2026Benchmarking local Hebbian learning rules for memory storage and prototype extraction1 May 2026
- 2026Energy-Based Dynamical Models for Neurocomputation, Learning, and Optimization6 Apr 2026
- 2026Sinkhorn Based Associative Memory Retrieval Using Spherical Hellinger Kantorovich Dynamics21 Mar 2026
- 2026Hybrid Associative Memories20 Mar 2026
- 2026Scalable Analytic Classifiers with Associative Drift Compensation for Class-Incremental Learning of Vision Transformers29 Jan 2026
- 2025Memory-Integrated Reconfigurable Adapters: A Unified Framework for Settings with Multiple Tasks30 Nov 2025
- 2025Adaptive Hopfield Network: Rethinking Similarities in Associative Memory25 Nov 2025
38 more
- 2025On the Role of Hidden States of Modern Hopfield Network in Transformer24 Nov 2025
- 2025Fast weight programming and linear transformers: from machine learning to neurobiology11 Aug 2025
- 2025Siamese Network with Dual Attention for EEG-Driven Social Learning: Bridging the Human-Robot Gap in Long-Tail Autonomous Driving14 Apr 2025
- 2025A General Close-loop Predictive Coding Framework for Auditory Working Memory16 Mar 2025
- 2025DAM-Seg: Anatomically accurate cardiac segmentation using Dense Associative Networks21 Feb 2025
- 2025In-context denoising with one-layer transformers: connections between attention and associative memory retrieval7 Feb 2025
- 2025Topological constraints on self-organisation in locally interacting systems22 Jan 2025
- 2025Test-time regression: a unifying framework for designing sequence models with associative memory21 Jan 2025
- 2025Key-value memory in the brain6 Jan 2025
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture19 Dec 2024
- 2024AH-OCDA: Amplitude-based Curriculum Learning and Hopfield Segmentation Model for Open Compound Domain Adaptation3 Dec 2024
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Models26 Nov 2024
- 2024Dense Associative Memory Through the Lens of Random Features31 Oct 2024
- 2024Zero-Shot Generalization of Vision-Based RL Without Data Augmentation9 Oct 2024
- 2024Predictive Attractor Models3 Oct 2024
- 2024Associative memory and dead neurons2 Oct 2024
- 2024Modern Hopfield Networks meet Encoded Neural Representations -- Addressing Practical Considerations24 Sep 2024
- 2024Tree Attention: Topology-aware Decoding for Long-Context Attention on GPU clusters7 Aug 2024
- 2024Fundamental Problems With Model Editing: How Should Rational Belief Revision Work in LLMs?27 Jun 2024
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers26 Jun 2024
- 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breaking18 Jun 2024
- 2024Improved Robustness and Hyperparameter Selection in the Dense Associative Memory29 May 2024
- 2024Beyond Scaling Laws: Understanding Transformer Performance with Associative Memory14 May 2024
- 2024Semantically-correlated memories in a dense associative model10 Apr 2024
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models4 Apr 2024
- 2024Sparse and Structured Hopfield Networks21 Feb 2024
- 2024Associative Memories in the Feature Space16 Feb 2024
- 2024Bridging Associative Memory and Probabilistic Modeling15 Feb 2024
- 2023STanHop: Sparse Tandem Hopfield Model for Memory-Enhanced Time Series Prediction28 Dec 2023
- 2023In-Context Exemplars as Clues to Retrieving from Large Associative Memory6 Nov 2023
- 2023Memory in Plain Sight: Surveying the Uncanny Resemblances of Associative Memories and Diffusion Models28 Sep 2023
- 2023On Sparse Modern Hopfield Model22 Sep 2023
- 2023Neural Network Layer Matrix Decomposition reveals Latent Manifold Encoding and Memory Capacity12 Sep 2023
- 2023Brain-inspired Computational Intelligence via Predictive Coding15 Aug 2023
- 2023A Sparse Quantized Hopfield Network for Online-Continual Memory27 Jul 2023
- 2023End-to-end Differentiable Clustering with Associative Memories5 Jun 2023
- 2023Sequential Memory with Temporal Predictive Coding19 May 2023
- 2023Simplicial Hopfield networks9 May 2023
50 newest of 55 All 55 (JSON)
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 74
- 2023On Sparse Modern Hopfield Modelcited by 42
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2023STanHop: Sparse Tandem Hopfield Model for Memory-Enhanced Time Series Predictioncited by 35
- 2023Brain-inspired Computational Intelligence via Predictive Codingcited by 30
- 2024Fundamental Problems With Model Editing: How Should Rational Belief Revision Work in LLMs?cited by 24
- 2025Key-value memory in the braincited by 24
- 2023Simplicial Hopfield networkscited by 16
- 2023Sequential Memory with Temporal Predictive Codingcited by 16
- 2023End-to-end Differentiable Clustering with Associative Memoriescited by 15
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformerscited by 15
- 2022BayesPCN: A Continually Learnable Predictive Coding Associative Memorycited by 14
12 most cited of 53 All 53 (JSON)
- 2026DeltaNet-PC: Test-Time Memory Without Backpropagation Through Time10 Oct 2026
- 2026Active Adversarial Perturbation-driven Associative Memory Retrieval for RGB-Event Visual Object Tracking24 Jun 2026
- 2026Controlled Dynamics Attractor Transformer13 Jun 2026
- 2026Finite-size scaling of hetero-associative retrieval in continuous-signal-driven Ising spin systems13 May 2026
- 2026Sharp Capacity Thresholds in Linear Associative Memory: From Top-1 Retrieval to Tail-Average Learning6 May 2026
- 2026Benchmarking local Hebbian learning rules for memory storage and prototype extraction1 May 2026
- 2026Energy-Based Dynamical Models for Neurocomputation, Learning, and Optimization6 Apr 2026
- 2026Sinkhorn Based Associative Memory Retrieval Using Spherical Hellinger Kantorovich Dynamics21 Mar 2026
- 2026Hybrid Associative Memories20 Mar 2026
- 2026Scalable Analytic Classifiers with Associative Drift Compensation for Class-Incremental Learning of Vision Transformers29 Jan 2026
- 2025Memory-Integrated Reconfigurable Adapters: A Unified Framework for Settings with Multiple Tasks30 Nov 2025
- 2025Adaptive Hopfield Network: Rethinking Similarities in Associative Memory25 Nov 2025
12 newest of 53 All 53 (JSON)