Understanding Transformer from the Perspective of Associative Memory
Not on the map. Why?
Abstract (arXiv)
In this paper, we share our reflections and insights on understanding Transformer architectures through the lens of associative memory--a classic psychological concept inspired by human cognition. We start with the basics of associative memory (think simple linear attention) and then dive into two dimensions: Memory Capacity: How much can a Transformer really remember, and how well? We introduce retrieval SNR to measure this and use a kernel perspective to mathematically reveal why Softmax Attention is so effective. We also show how FFNs can be seen as a type of associative memory, leading to insights on their design and potential improvements. Memory Update: How do these memories learn and evolve? We present a unified framework for understanding how different Transformer variants (like DeltaNet and Softmax Attention) update their "knowledge base". This leads us to tackle two provocative questions: 1. Are Transformers fundamentally limited in what they can express, and can we break these barriers? 2. If a Transformer had infinite context, would it become infinitely intelligent? We want to demystify Transformer architecture, offering a clearer understanding of existing designs. This exploration aims to provide fresh insights and spark new avenues for Transformer innovation.
Key facts. Cited by 34 papers in the map (data through 14 Oct 2026). Builds on 42 of its 51 references that are in the map. First posted on arXiv 26 May 2025.
Builds on
42 of 51 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 4,057
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020GLU Variants Improve Transformercited by 1,804
30 more
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2022Toy Models of Superpositioncited by 971
- 2022In-context Learning and Induction Headscited by 964
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2020Hopfield Networks is All You Needcited by 475
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2024Titans: Learning to Memorize at Test Timecited by 328
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 198
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2024The Illusion of State in State-Space Modelscited by 187
- 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 166
- 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
- 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvaluescited by 101
- 2021NormFormer: Improved Transformer Pretraining with Extra Normalizationcited by 83
- 2025DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Productscited by 75
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 74
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 67
- 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimizationcited by 64
- 2024Mechanistic Design and Scaling of Hybrid Architecturescited by 59
- 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 53
- 2024Length Generalization of Causal Transformers without Position Encodingcited by 47
- 2024Chain and Causal Attention for Efficient Entity Trackingcited by 8
- 2024KV Shifting Attention Enhances Language Modelingcited by 8
Built on by
Citing papers per year: 2025: 12; 2026: 22.
34 papers.
Sort:
By area:
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2025Scaling Latent Reasoning via Looped Language Modelscited by 165
- 2026Attention Residualscited by 65
- 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 15
- 2026Fast-weight Product Key Memorycited by 13
- 2026Test-Time Training with KV Binding Is Secretly Linear Attentioncited by 13
- 2025Short window attention enables long-term memorizationcited by 11
- 2025Understanding the Mixture-of-Experts with Nadaraya-Watson Kernelcited by 6
- 2026FLARE: Diffusion for Hybrid Language Modelcited by 6
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 6
- 2025T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoderscited by 4
- 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regressioncited by 4
22 more
- 2026Stateful Token Reduction for Long-Video Hybrid VLMscited by 4
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attentioncited by 4
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Modelscited by 3
- 2026More Expressive Feedforward Layers: Part I. Token-Adaptive Mixing of Activationscited by 3
- 2026Kernelized Linear Attention: Breaking the Capacity Wall with Symmetric Conescited by 3
- 2025Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Studycited by 2
- 2025Distributed Associative Memory via Online Convex Optimizationcited by 2
- 2025Higher-order Linear Attentioncited by 2
- 2026PriorEye: Geospatial Visual Priors for End-to-End Autonomous Drivingcited by 2
- 2026Hybrid Associative Memoriescited by 1
- 2026FlowNar: Scalable Streaming Narration for Long-Form Videoscited by 1
- 2026When Good Enough Is Optimal: Multiplication-Only Matrix Inversion Approximation for Quantized Gated DeltaNetcited by 1
- 2026Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attentioncited by 1
- 2026MLPs are Hebbians: Constructing Efficient Fact-Storing MLPs for Transformerscited by 1
- 2026Kalman Delta Networks: Uncertainty-aware Associative Memorycited by 1
- 2025Bridging Compositional and Distributional Semantics: A Survey on Latent Semantic Geometry via AutoEncodercited by 0
- 2025Distributed Dynamic Associative Memory via Online Convex Optimizationcited by 0
- 2026The Devil is in the Condition Numbers: Why is GLU Better than non-GLU Structure?cited by 0
- 2026Fast and Stable Triangular Inversion for Delta-Rule Linear Transformerscited by 0
- 2026Squeezing More from Limited Data with Recursive Transformerscited by 0
- 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Positioncited by 0
- 2026Optimizing Large Language Models with Chained LMOscited by 0
- 2026Optimizing Large Language Models with Chained LMOs7 Oct 2026
- 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Position7 Oct 2026
- 2026Kalman Delta Networks: Uncertainty-aware Associative Memory7 Sep 2026
- 2026Squeezing More from Limited Data with Recursive Transformers27 Aug 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026Kernelized Linear Attention: Breaking the Capacity Wall with Symmetric Cones19 Jul 2026
- 2026MLPs are Hebbians: Constructing Efficient Fact-Storing MLPs for Transformers10 Jul 2026
- 2026PriorEye: Geospatial Visual Priors for End-to-End Autonomous Driving30 Jun 2026
- 2026Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attention24 Jun 2026
- 2026When Good Enough Is Optimal: Multiplication-Only Matrix Inversion Approximation for Quantized Gated DeltaNet4 Jun 2026
- 2026FLARE: Diffusion for Hybrid Language Model1 Jun 2026
- 2026FlowNar: Scalable Streaming Narration for Long-Form Videos30 May 2026
22 more
- 2026More Expressive Feedforward Layers: Part I. Token-Adaptive Mixing of Activations26 May 2026
- 2026Fast and Stable Triangular Inversion for Delta-Rule Linear Transformers20 May 2026
- 2026The Devil is in the Condition Numbers: Why is GLU Better than non-GLU Structure?20 May 2026
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attention7 May 2026
- 2026Hybrid Associative Memories20 Mar 2026
- 2026Attention Residuals16 Mar 2026
- 2026Stateful Token Reduction for Long-Video Hybrid VLMs27 Feb 2026
- 2026Test-Time Training with KV Binding Is Secretly Linear Attention24 Feb 2026
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models3 Feb 2026
- 2026Fast-weight Product Key Memory2 Jan 2026
- 2025Distributed Dynamic Associative Memory via Online Convex Optimization28 Nov 2025
- 2025Higher-order Linear Attention31 Oct 2025
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2025Scaling Latent Reasoning via Looped Language Models29 Oct 2025
- 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regression1 Oct 2025
- 2025Understanding the Mixture-of-Experts with Nadaraya-Watson Kernel30 Sep 2025
- 2025Short window attention enables long-term memorization29 Sep 2025
- 2025Distributed Associative Memory via Online Convex Optimization26 Sep 2025
- 2025Bridging Compositional and Distributional Semantics: A Survey on Latent Semantic Geometry via AutoEncoder25 Jun 2025
- 2025Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Study24 Jun 2025
- 2025T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoders18 Jun 2025
- 2025Comba: Improving Bilinear RNNs with Closed-loop Control3 Jun 2025
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2026FlowNar: Scalable Streaming Narration for Long-Form Videos30 May 2026
- 2026Stateful Token Reduction for Long-Video Hybrid VLMscited by 4
- 2026Stateful Token Reduction for Long-Video Hybrid VLMs27 Feb 2026
- 2026Attention Residualscited by 65
- 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 15
- 2026Fast-weight Product Key Memorycited by 13
- 2026Test-Time Training with KV Binding Is Secretly Linear Attentioncited by 13
- 2025Short window attention enables long-term memorizationcited by 11
- 2026FLARE: Diffusion for Hybrid Language Modelcited by 6
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 6
- 2025T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoderscited by 4
- 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regressioncited by 4
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attentioncited by 4
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Modelscited by 3
- 2026More Expressive Feedforward Layers: Part I. Token-Adaptive Mixing of Activationscited by 3
12 most cited of 26 All 26 (JSON)
- 2026Optimizing Large Language Models with Chained LMOs7 Oct 2026
- 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Position7 Oct 2026
- 2026Kalman Delta Networks: Uncertainty-aware Associative Memory7 Sep 2026
- 2026Squeezing More from Limited Data with Recursive Transformers27 Aug 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026Kernelized Linear Attention: Breaking the Capacity Wall with Symmetric Cones19 Jul 2026
- 2026MLPs are Hebbians: Constructing Efficient Fact-Storing MLPs for Transformers10 Jul 2026
- 2026Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attention24 Jun 2026
- 2026When Good Enough Is Optimal: Multiplication-Only Matrix Inversion Approximation for Quantized Gated DeltaNet4 Jun 2026
- 2026FLARE: Diffusion for Hybrid Language Model1 Jun 2026
- 2026More Expressive Feedforward Layers: Part I. Token-Adaptive Mixing of Activations26 May 2026
- 2026Fast and Stable Triangular Inversion for Delta-Rule Linear Transformers20 May 2026
12 newest of 26 All 26 (JSON)