Attention Approximates Sparse Distributed Memory
Not on the map. Why?
Abstract (arXiv)
While Attention has come to be an important mechanism in deep learning, there remains limited intuition for why it works so well. Here, we show that Transformer Attention can be closely related under certain data conditions to Kanerva's Sparse Distributed Memory (SDM), a biologically plausible associative memory model. We confirm that these conditions are satisfied in pre-trained GPT2 Transformer models. We discuss the implications of the Attention-SDM map and provide new computational and biological interpretations of Attention.
Key facts. Cited by 29 papers in the map (data through 14 Oct 2026). Builds on 33 of its 86 references that are in the map. First posted on arXiv 10 Nov 2021.
Builds on
33 of 86 references.
References · 33
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2017Neural Discrete Representation Learningcited by 4,712
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2020On Layer Normalization in the Transformer Architecturecited by 922
21 more
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2020Hopfield Networks is All You Needcited by 475
- 2020Query-Key Normalization for Transformerscited by 280
- 2016Dense Associative Memory for Pattern Recognitioncited by 236
- 2021Pretrained Transformers as Universal Computation Enginescited by 162
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
- 2020The Language Interpretability Tool: Extensible, Interactive Visualizations and Analysis for NLP Modelscited by 125
- 2020Large Associative Memory Problem in Neurobiology and Machine Learningcited by 112
- 2017Building machines that adapt and compute like brainscited by 99
- 2019Augmenting Self-attention with Persistent Memorycited by 93
- 2019Shaping Belief States with Generative Environment Models for RLcited by 66
- 2015Why Neurons Have Thousands of Synapses, A Theory of Sequence Memory in Neocortexcited by 45
- 2016Associative Long Short-Term Memorycited by 37
- 2018The Sparse Manifold Transformcited by 36
- 2018The Kanerva Machine: A Generative Distributed Memorycited by 14
- 2018Learning Attractor Dynamics for Generative Memorycited by 6
- 2019Do Transformer Attention Heads Provide Transparency in Abstractive Summarization?cited by 6
- 2020Product Kanerva Machines: Factorized Bayesian Memorycited by 5
- 202050 years since the Marr, Ito, and Albus models of the cerebellumcited by 3
Built on by
Citing papers per year: 2021: 1; 2022: 7; 2023: 8; 2024: 7; 2025: 2; 2026: 4.
29 papers.
Sort:
By area:
- 2023Birth of a Transformer: A Memory Viewpointcited by 161
- 2021A Survey on Hyperdimensional Computing aka Vector Symbolic Architectures, Part II: Applications, Cognitive Models, and Challengescited by 69
- 2022Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Modelscited by 55
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 27
- 2022Decoupled Context Processing for Context Augmented Language Modelingcited by 24
- 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 24
- 2023Assessing Knowledge Editing in Language Models via Relation Perspectivecited 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
- 2023In-Context Exemplars as Clues to Retrieving from Large Associative Memorycited by 13
- 2023Sparse Distributed Memory is a Continual Learnercited by 11
- 2022O-ViT: Orthogonal Vision Transformercited by 10
17 more
- 2024Bridging Associative Memory and Probabilistic Modelingcited by 5
- 2022Should attention be all we need? The epistemic and ethical implications of unification in machine learningcited by 4
- 2022On the Relationship Between Variational Inference and Auto-Associative Memorycited by 4
- 2023Inverse distance weighting attentioncited by 4
- 2023Large Language Models are In-context Teachers for Knowledge Reasoningcited 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
- 2022Memory-Augmented Graph Neural Networks: A Brain-Inspired Reviewcited by 2
- 2024Associative Memories in the Feature Spacecited by 2
- 2023Hopfield-Enhanced Deep Neural Networks for Artifact-Resilient Brain State Decodingcited by 1
- 2024On Design Choices in Similarity-Preserving Sparse Randomized Embeddingscited by 1
- 2025From Memories to Maps: Mechanisms of In-Context Reinforcement Learning in Transformerscited by 1
- 2026MultiHashFormer: Hash-based Generative Language Modelscited by 1
- 2023A Framework for Analyzing Cross-correlators using Price's Theorem and Piecewise-Linear Decompositioncited by 0
- 2025Attention as Conditioning: What Classical Learning Theory Predicts About Linear Transformerscited by 0
- 2026Controlled Dynamics Attractor Transformercited by 0
- 2026When Does Depth Matter For In-Context Learning? Adaptive Inference in Deep Transformerscited by 0
- 2026MultiHashFormer: Hash-based Generative Language Models26 Jun 2026
- 2026When Does Depth Matter For In-Context Learning? Adaptive Inference in Deep Transformers15 Jun 2026
- 2026Controlled Dynamics Attractor Transformer13 Jun 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2025Attention as Conditioning: What Classical Learning Theory Predicts About Linear Transformers5 Aug 2025
- 2025From Memories to Maps: Mechanisms of In-Context Reinforcement Learning in Transformers24 Jun 2025
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture19 Dec 2024
- 2024HashAttention: Semantic Sparsity for Faster Inference19 Dec 2024
- 2024On Design Choices in Similarity-Preserving Sparse Randomized Embeddings12 Dec 2024
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Models26 Nov 2024
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers26 Jun 2024
- 2024Associative Memories in the Feature Space16 Feb 2024
17 more
- 2024Bridging Associative Memory and Probabilistic Modeling15 Feb 2024
- 2023Assessing Knowledge Editing in Language Models via Relation Perspective15 Nov 2023
- 2023Large Language Models are In-context Teachers for Knowledge Reasoning12 Nov 2023
- 2023In-Context Exemplars as Clues to Retrieving from Large Associative Memory6 Nov 2023
- 2023Hopfield-Enhanced Deep Neural Networks for Artifact-Resilient Brain State Decoding6 Nov 2023
- 2023Inverse distance weighting attention28 Oct 2023
- 2023Birth of a Transformer: A Memory Viewpoint1 Jun 2023
- 2023A Framework for Analyzing Cross-correlators using Price's Theorem and Piecewise-Linear Decomposition18 Apr 2023
- 2023Sparse Distributed Memory is a Continual Learner20 Mar 2023
- 2022On the Relationship Between Variational Inference and Auto-Associative Memory14 Oct 2022
- 2022Decoupled Context Processing for Context Augmented Language Modeling11 Oct 2022
- 2022Memory-Augmented Graph Neural Networks: A Brain-Inspired Review22 Sep 2022
- 2022BayesPCN: A Continually Learnable Predictive Coding Associative Memory20 May 2022
- 2022Should attention be all we need? The epistemic and ethical implications of unification in machine learning9 May 2022
- 2022Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Models9 Feb 2022
- 2022O-ViT: Orthogonal Vision Transformer28 Jan 2022
- 2021A Survey on Hyperdimensional Computing aka Vector Symbolic Architectures, Part II: Applications, Cognitive Models, and Challenges12 Nov 2021
- 2023Birth of a Transformer: A Memory Viewpointcited by 161
- 2021A Survey on Hyperdimensional Computing aka Vector Symbolic Architectures, Part II: Applications, Cognitive Models, and Challengescited by 69
- 2022Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Modelscited by 55
- 2022Decoupled Context Processing for Context Augmented Language Modelingcited by 24
- 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 24
- 2023Assessing Knowledge Editing in Language Models via Relation Perspectivecited 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
- 2023In-Context Exemplars as Clues to Retrieving from Large Associative Memorycited by 13
- 2023Sparse Distributed Memory is a Continual Learnercited by 11
- 2022O-ViT: Orthogonal Vision Transformercited by 10
- 2024Bridging Associative Memory and Probabilistic Modelingcited by 5
12 most cited of 26 All 26 (JSON)
- 2026MultiHashFormer: Hash-based Generative Language Models26 Jun 2026
- 2026When Does Depth Matter For In-Context Learning? Adaptive Inference in Deep Transformers15 Jun 2026
- 2026Controlled Dynamics Attractor Transformer13 Jun 2026
- 2025Attention as Conditioning: What Classical Learning Theory Predicts About Linear Transformers5 Aug 2025
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture19 Dec 2024
- 2024HashAttention: Semantic Sparsity for Faster Inference19 Dec 2024
- 2024On Design Choices in Similarity-Preserving Sparse Randomized Embeddings12 Dec 2024
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Models26 Nov 2024
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers26 Jun 2024
- 2024Associative Memories in the Feature Space16 Feb 2024
- 2024Bridging Associative Memory and Probabilistic Modeling15 Feb 2024
- 2023Assessing Knowledge Editing in Language Models via Relation Perspective15 Nov 2023
12 newest of 26 All 26 (JSON)