mlsanityData to 14 Oct 2026

Understanding Transformer from the Perspective of Associative Memory

arXiv 2505.19488 ↗First posted 26 May 2025cs.LG cs.AIcited by 34

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  6. 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 4,057
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  8. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  9. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  10. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  11. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  12. 2020GLU Variants Improve Transformercited by 1,804
30 more
  1. 2019Root Mean Square Layer Normalizationcited by 1,480
  2. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  3. 2022Toy Models of Superpositioncited by 971
  4. 2022In-context Learning and Induction Headscited by 964
  5. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  6. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  7. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
  8. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
  9. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  10. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  11. 2020Hopfield Networks is All You Needcited by 475
  12. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
  13. 2024Titans: Learning to Memorize at Test Timecited by 328
  14. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  15. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 198
  16. 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
  17. 2024The Illusion of State in State-Space Modelscited by 187
  18. 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 166
  19. 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
  20. 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvaluescited by 101
  21. 2021NormFormer: Improved Transformer Pretraining with Extra Normalizationcited by 83
  22. 2025DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Productscited by 75
  23. 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 74
  24. 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 67
  25. 2025It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimizationcited by 64
  26. 2024Mechanistic Design and Scaling of Hybrid Architecturescited by 59
  27. 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 53
  28. 2024Length Generalization of Causal Transformers without Position Encodingcited by 47
  29. 2024Chain and Causal Attention for Efficient Entity Trackingcited by 8
  30. 2024KV Shifting Attention Enhances Language Modelingcited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 12; 2026: 22.

34 papers.

Sort:

By area:

  1. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
  2. 2025Scaling Latent Reasoning via Looped Language Modelscited by 165
  3. 2026Attention Residualscited by 65
  4. 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 15
  5. 2026Fast-weight Product Key Memorycited by 13
  6. 2026Test-Time Training with KV Binding Is Secretly Linear Attentioncited by 13
  7. 2025Short window attention enables long-term memorizationcited by 11
  8. 2025Understanding the Mixture-of-Experts with Nadaraya-Watson Kernelcited by 6
  9. 2026FLARE: Diffusion for Hybrid Language Modelcited by 6
  10. 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 6
  11. 2025T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoderscited by 4
  12. 2025Local Linear Attention: An Optimal Interpolation of Linear and Softmax Attention For Test-Time Regressioncited by 4
22 more
  1. 2026Stateful Token Reduction for Long-Video Hybrid VLMscited by 4
  2. 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attentioncited by 4
  3. 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Modelscited by 3
  4. 2026More Expressive Feedforward Layers: Part I. Token-Adaptive Mixing of Activationscited by 3
  5. 2026Kernelized Linear Attention: Breaking the Capacity Wall with Symmetric Conescited by 3
  6. 2025Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Studycited by 2
  7. 2025Distributed Associative Memory via Online Convex Optimizationcited by 2
  8. 2025Higher-order Linear Attentioncited by 2
  9. 2026PriorEye: Geospatial Visual Priors for End-to-End Autonomous Drivingcited by 2
  10. 2026Hybrid Associative Memoriescited by 1
  11. 2026FlowNar: Scalable Streaming Narration for Long-Form Videoscited by 1
  12. 2026When Good Enough Is Optimal: Multiplication-Only Matrix Inversion Approximation for Quantized Gated DeltaNetcited by 1
  13. 2026Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attentioncited by 1
  14. 2026MLPs are Hebbians: Constructing Efficient Fact-Storing MLPs for Transformerscited by 1
  15. 2026Kalman Delta Networks: Uncertainty-aware Associative Memorycited by 1
  16. 2025Bridging Compositional and Distributional Semantics: A Survey on Latent Semantic Geometry via AutoEncodercited by 0
  17. 2025Distributed Dynamic Associative Memory via Online Convex Optimizationcited by 0
  18. 2026The Devil is in the Condition Numbers: Why is GLU Better than non-GLU Structure?cited by 0
  19. 2026Fast and Stable Triangular Inversion for Delta-Rule Linear Transformerscited by 0
  20. 2026Squeezing More from Limited Data with Recursive Transformerscited by 0
  21. 2026Mechanics of Long-Context Hybrid Models Part 1.1: From Hybrid Attention to Hybrid Positioncited by 0
  22. 2026Optimizing Large Language Models with Chained LMOscited by 0