Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer
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
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2016Understanding deep learning requires rethinking generalizationcited by 1,657
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2017A Closer Look at Memorization in Deep Networkscited by 936
38 more
- 2022In-context Learning and Induction Headscited by 930
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2017Deep Neural Networks as Gaussian Processescited by 617
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2019On Exact Computation with an Infinitely Wide Neural Netcited by 572
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2016Exponential expressivity in deep neural networks through transient chaoscited by 260
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2016Deep Information Propagationcited by 194
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 137
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
- 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 115
- 2023Mechanistically analyzing the effects of fine-tuning on procedurally defined taskscited by 110
- 2023Language Models Implement Simple Word2Vec-style Vector Arithmeticcited by 97
- 2017Mean Field Residual Networks: On the Edge of Chaoscited by 83
- 2024Transformers, parallel computation, and logarithmic depthcited by 75
- 2024Knowledge Circuits in Pretrained Transformerscited by 60
- 2024Mechanistic Design and Scaling of Hybrid Architecturescited by 57
- 2021Rapid training of deep neural networks without skip connections or normalization layers using Deep Kernel Shapingcited by 51
- 2022Transformers generalize differently from information stored in context vs in weightscited by 49
- 2023The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limitcited by 47
- 2024Induction Heads as an Essential Mechanism for Pattern Matching in In-context Learningcited by 46
- 2022The Neural Covariance SDE: Shaped Infinite Depth-and-Width Networks at Initializationcited by 41
- 2024Summing Up the Facts: Additive Mechanisms Behind Factual Recall in LLMscited by 39
- 2023Scaling MLPs: A Tale of Inductive Biascited by 37
- 2023Simplifying Transformer Blockscited by 37
- 2022Deep Learning without Shortcuts: Shaping the Kernel with Tailored Rectifierscited by 28
- 2023Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Taskscited by 21
- 2022How Much Does Attention Actually Attend? Questioning the Importance of Attention in Pretrained Transformerscited by 20
- 2024Algorithmic Capabilities of Random Transformerscited by 17
- 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionariescited by 17
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2025: 1; 2026: 11.
12 papers.
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Datacited by 10
- 2026Distinct mechanisms underlying in-context learning in transformerscited by 3
- 2026Training-Free Universal Approximation by Prompting Random Transformerscited by 1
- 2025Resting Neurons, Active Insights: Robustifying Activation Sparsity in LLMs via Spontaneitycited by 0
- 2026Deep Learning for BioImaging: What Are We Really Learning?cited by 0
- 2026Sparsity Moves Computation: How FFN Architecture Reshapes Attention in Small Transformerscited by 0
- 2026Fixed Universal Transformerscited by 0
- 2026Activation-Based Active Learning for In-Context Learning: Challenges and Insightscited by 0
- 2026Where Grokking Happens: Distributed Utility and Fourier Recoding Without a Module Switchcited by 0
- 2026QSV: Quat-Sphere-Vision for Coupled Quaternion Attention on Spherical Latticescited by 0
- 2026Query Expansion and Key Specialization in Transformer Attention Geometrycited by 0
- 2026When Can Attention Heads Be Statically Defined?cited by 0
- 2026When Can Attention Heads Be Statically Defined?28 Sep 2026
- 2026Query Expansion and Key Specialization in Transformer Attention Geometry28 Sep 2026
- 2026QSV: Quat-Sphere-Vision for Coupled Quaternion Attention on Spherical Lattices24 Sep 2026
- 2026Training-Free Universal Approximation by Prompting Random Transformers10 Aug 2026
- 2026Where Grokking Happens: Distributed Utility and Fourier Recoding Without a Module Switch29 Jul 2026
- 2026Activation-Based Active Learning for In-Context Learning: Challenges and Insights3 Jun 2026
- 2026Fixed Universal Transformers29 May 2026
- 2026Sparsity Moves Computation: How FFN Architecture Reshapes Attention in Small Transformers10 May 2026
- 2026Distinct mechanisms underlying in-context learning in transformers14 Apr 2026
- 2026Deep Learning for BioImaging: What Are We Really Learning?10 Mar 2026
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Data29 Jan 2026
- 2025Resting Neurons, Active Insights: Robustifying Activation Sparsity in LLMs via Spontaneity14 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2024RecurFormer: Not All Transformer Heads Need Self-Attention
- 2026Linear Predictability of Attention Heads in Large Language Models
- 2026SpotAttention: Plug-In Block-Sparse Routing for Pretrained Long-Context Transformers
- 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models
- 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attention
- 2023Attention Alignment and Flexible Positional Embeddings Improve Transformer Length Extrapolation
- 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention
- 2026Hidden Decoding at Scale: Latent Computation Scaling for Large Language Models