mlsanityData to 7 Oct 2026

Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer

arXiv 2506.01115 ↗First posted 1 Jun 2025cs.LG cs.CLcited by 12

On the map: LLM reasoning → Test-time compute and efficient thinking

Abstract (arXiv)

The transformer architecture is central to the success of modern Large Language Models (LLMs), in part due to its surprising ability to perform a wide range of tasks - including mathematical reasoning, memorization, and retrieval - using only gradient-based learning on next-token prediction. While the core component of a transformer is the self-attention mechanism, we question how much, and which aspects, of the performance gains can be attributed to it. To this end, we compare standard transformers to variants in which either the MLP layers or the attention weights are frozen at initialization. Surprisingly, we find that attention with frozen key and query weights is not only able to form induction heads, but can also perform competitively on language modeling. We formalize this by proving a new expressivity result for transformer models with frozen key and query weights. To further isolate the contribution of attention, we design MixiT, an architecture with entirely random attention scores, with provably stable signal propagation that overcomes prior depth-wise scaling challenges in random transformers. We use the successes and failures of MixiT to understand the role each transformer component plays, such as attention being largely responsible for in-context reasoning, and MLPs being responsible for, but collaborates with attention, on knowledge storage. Our results suggest that the transformer architecture has a built-in inductive bias towards forming specialized circuits, as it does even without learnable attention weights.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 54 of its 61 references that are in the map. First posted on arXiv 1 Jun 2025.

Builds on

54 of 61 references.

References · 54

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  6. 2016Pointer Sentinel Mixture Modelscited by 2,992
  7. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  8. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  9. 2016Understanding deep learning requires rethinking generalizationcited by 1,657
  10. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  11. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
  12. 2017A Closer Look at Memorization in Deep Networkscited by 936
38 more
  1. 2022In-context Learning and Induction Headscited by 930
  2. 2020On Layer Normalization in the Transformer Architecturecited by 906
  3. 2017Deep Neural Networks as Gaussian Processescited by 617
  4. 2021Knowledge Neurons in Pretrained Transformerscited by 590
  5. 2019On Exact Computation with an Infinitely Wide Neural Netcited by 572
  6. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
  7. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
  8. 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
  9. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  10. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  11. 2021FNet: Mixing Tokens with Fourier Transformscited by 343
  12. 2016Exponential expressivity in deep neural networks through transient chaoscited by 260
  13. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
  14. 2016Deep Information Propagationcited by 194
  15. 2023Birth of a Transformer: A Memory Viewpointcited by 154
  16. 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 137
  17. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
  18. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
  19. 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 115
  20. 2023Mechanistically analyzing the effects of fine-tuning on procedurally defined taskscited by 110
  21. 2023Language Models Implement Simple Word2Vec-style Vector Arithmeticcited by 97
  22. 2017Mean Field Residual Networks: On the Edge of Chaoscited by 83
  23. 2024Transformers, parallel computation, and logarithmic depthcited by 75
  24. 2024Knowledge Circuits in Pretrained Transformerscited by 60
  25. 2024Mechanistic Design and Scaling of Hybrid Architecturescited by 57
  26. 2021Rapid training of deep neural networks without skip connections or normalization layers using Deep Kernel Shapingcited by 51
  27. 2022Transformers generalize differently from information stored in context vs in weightscited by 49
  28. 2023The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limitcited by 47
  29. 2024Induction Heads as an Essential Mechanism for Pattern Matching in In-context Learningcited by 46
  30. 2022The Neural Covariance SDE: Shaped Infinite Depth-and-Width Networks at Initializationcited by 41
  31. 2024Summing Up the Facts: Additive Mechanisms Behind Factual Recall in LLMscited by 39
  32. 2023Scaling MLPs: A Tale of Inductive Biascited by 37
  33. 2023Simplifying Transformer Blockscited by 37
  34. 2022Deep Learning without Shortcuts: Shaping the Kernel with Tailored Rectifierscited by 28
  35. 2023Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Taskscited by 21
  36. 2022How Much Does Attention Actually Attend? Questioning the Importance of Attention in Pretrained Transformerscited by 20
  37. 2024Algorithmic Capabilities of Random Transformerscited by 17
  38. 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionariescited by 17

50 most cited of 54 All 54 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 11.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024RecurFormer: Not All Transformer Heads Need Self-Attention
  2. 2026Linear Predictability of Attention Heads in Large Language Models
  3. 2026SpotAttention: Plug-In Block-Sparse Routing for Pretrained Long-Context Transformers
  4. 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models
  5. 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attention
  6. 2023Attention Alignment and Flexible Positional Embeddings Improve Transformer Length Extrapolation
  7. 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention
  8. 2026Hidden Decoding at Scale: Latent Computation Scaling for Large Language Models