mlsanityData to 14 Oct 2026

Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Models

arXiv 2202.04557 ↗First posted 9 Feb 2022cs.NE cs.AI cs.LGcited by 55

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  5. 2020Reformer: The Efficient Transformercited by 1,668
  6. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  7. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
  8. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  9. 2020Efficient Transformers: A Surveycited by 790
  10. 2020Hopfield Networks is All You Needcited by 475
  11. 2016Dense Associative Memory for Pattern Recognitioncited by 236
  12. 2020Large Associative Memory Problem in Neurobiology and Machine Learningcited by 112
8 more
  1. 2019Augmenting Self-attention with Persistent Memorycited by 93
  2. 2021Memory-efficient Transformers via Top-k Attentioncited by 60
  3. 2019Overparameterized Neural Networks Implement Associative Memorycited by 45
  4. 2021Associative Memories via Predictive Codingcited by 44
  5. 2021Hierarchical Associative Memorycited by 34
  6. 2021Attention Approximates Sparse Distributed Memorycited by 29
  7. 2021A remark on a paper of Krotov and Hopfield [arXiv:2008.06996]cited by 11
  8. 2020Associative Memory in Iterated Overparameterized Sigmoid Autoencoderscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 4; 2023: 11; 2024: 19; 2025: 11; 2026: 10.

55 papers.

Sort:

By area:

  1. 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 74
  2. 2023On Sparse Modern Hopfield Modelcited by 42
  3. 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
  4. 2023STanHop: Sparse Tandem Hopfield Model for Memory-Enhanced Time Series Predictioncited by 35
  5. 2023Brain-inspired Computational Intelligence via Predictive Codingcited by 30
  6. 2024Fundamental Problems With Model Editing: How Should Rational Belief Revision Work in LLMs?cited by 24
  7. 2025Key-value memory in the braincited by 24
  8. 2023Simplicial Hopfield networkscited by 16
  9. 2023Sequential Memory with Temporal Predictive Codingcited by 16
  10. 2023End-to-end Differentiable Clustering with Associative Memoriescited by 15
  11. 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformerscited by 15
  12. 2022BayesPCN: A Continually Learnable Predictive Coding Associative Memorycited by 14
38 more
  1. 2023Memory in Plain Sight: Surveying the Uncanny Resemblances of Associative Memories and Diffusion Modelscited by 13
  2. 2023In-Context Exemplars as Clues to Retrieving from Large Associative Memorycited by 13
  3. 2024Sparse and Structured Hopfield Networkscited by 13
  4. 2024Tree Attention: Topology-aware Decoding for Long-Context Attention on GPU clusterscited by 13
  5. 2024Beyond Scaling Laws: Understanding Transformer Performance with Associative Memorycited by 12
  6. 2023Sparse Distributed Memory is a Continual Learnercited by 11
  7. 2022In-memory factorization of holographic perceptual representationscited by 10
  8. 2024Dense Associative Memory Through the Lens of Random Featurescited by 8
  9. 2025Fast weight programming and linear transformers: from machine learning to neurobiologycited by 8
  10. 2025In-context denoising with one-layer transformers: connections between attention and associative memory retrievalcited by 7
  11. 2023A Sparse Quantized Hopfield Network for Online-Continual Memorycited by 5
  12. 2024Bridging Associative Memory and Probabilistic Modelingcited by 5
  13. 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breakingcited by 5
  14. 2022On the Relationship Between Variational Inference and Auto-Associative Memorycited by 4
  15. 2024Zero-Shot Generalization of Vision-Based RL Without Data Augmentationcited by 4
  16. 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Modelscited by 4
  17. 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecturecited by 3
  18. 2025DAM-Seg: Anatomically accurate cardiac segmentation using Dense Associative Networkscited by 3
  19. 2026Sharp Capacity Thresholds in Linear Associative Memory: From Top-1 Retrieval to Tail-Average Learningcited by 3
  20. 2024Associative Memories in the Feature Spacecited by 2
  21. 2024Semantically-correlated memories in a dense associative modelcited by 2
  22. 2025Siamese Network with Dual Attention for EEG-Driven Social Learning: Bridging the Human-Robot Gap in Long-Tail Autonomous Drivingcited by 2
  23. 2025Memory-Integrated Reconfigurable Adapters: A Unified Framework for Settings with Multiple Taskscited by 2
  24. 2022Learning to Control Rapidly Changing Synaptic Connections: An Alternative Type of Memory in Sequence Processing Artificial Neural Networkscited by 1
  25. 2024Associative memory and dead neuronscited by 1
  26. 2025Adaptive Hopfield Network: Rethinking Similarities in Associative Memorycited by 1
  27. 2025On the Role of Hidden States of Modern Hopfield Network in Transformercited by 1
  28. 2026Hybrid Associative Memoriescited by 1
  29. 2026Energy-Based Dynamical Models for Neurocomputation, Learning, and Optimizationcited by 1
  30. 2026Finite-size scaling of hetero-associative retrieval in continuous-signal-driven Ising spin systemscited by 1
  31. 2023Neural Network Layer Matrix Decomposition reveals Latent Manifold Encoding and Memory Capacitycited by 0
  32. 2024Improved Robustness and Hyperparameter Selection in the Dense Associative Memorycited by 0
  33. 2024Modern Hopfield Networks meet Encoded Neural Representations -- Addressing Practical Considerationscited by 0
  34. 2024Predictive Attractor Modelscited by 0
  35. 2024AH-OCDA: Amplitude-based Curriculum Learning and Hopfield Segmentation Model for Open Compound Domain Adaptationcited by 0
  36. 2025Topological constraints on self-organisation in locally interacting systemscited by 0
  37. 2025A General Close-loop Predictive Coding Framework for Auditory Working Memorycited by 0
  38. 2026Scalable Analytic Classifiers with Associative Drift Compensation for Class-Incremental Learning of Vision Transformerscited by 0

50 most cited of 55 All 55 (JSON)