A Controlled Study of Attention-Only Transformers
Not on the map. Why?
Abstract (arXiv)
Feed-forward networks hold two thirds of a transformer's non-embedding parameters, yet the architecture has not received a necessity test that controls parameters, compute, and depth at once. We pretrain attention-only decoder transformers (Simple Attention Networks, SANs) against standard transformers matched separately for parameter count, training FLOPs, and depth (2 to 48 layers), for up to 105B tokens at 6M to 87M parameters. Deleting feed-forward layers in place is costly: the standard transformer leads by 0.47 nats at matched depth and 0.26 nats at matched FLOPs. Reallocating the freed budget into attention depth closes the gap: at matched parameters the difference is 0.006 nats (0.27 percent of loss), reproducible to one part in ten thousand across seed pairs, shrinking across 5B, 30B, and 105B budgets, and holding near 0.02 nats across a 29x size range. Three measurements localize the remaining gap to parametric recall: attention-only models are better on context-grounded answers and worse where knowledge must come from weights. Weight spectra show why: routing matrices (Q/K) crystallize early, content matrices accumulate rank slowly, and removing feed-forward layers relocates this accumulation to the attention output projection. QK-normalization, not feed-forward layers or residual gating, keeps 48-layer attention-only stacks trainable. The deficit concentrates on low-context query prediction and localizes there entirely by the largest budget. A pre-registered test confirms the account: it predicts a 0.02 to 0.05 nat gap on knowledge-dense web text; a matched pair trained on fineweb-edu measures 0.040. Within the tested regime, attention does the rest.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 16 of its 27 references that are in the map. First posted on arXiv 20 Jul 2026.
Builds on
16 of 27 references.
References · 16
- 2017Attention Is All You Needcited by 60,361
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2022In-context Learning and Induction Headscited by 964
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
- 2025Muon is Scalable for LLM Trainingcited by 428
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
- 2021Pay Attention to MLPscited by 368
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
4 more
- 2020Query-Key Normalization for Transformerscited by 280
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 141
- 2019Augmenting Self-attention with Persistent Memorycited by 93
- 2021NormFormer: Improved Transformer Pretraining with Extra Normalizationcited by 83
Built on by
Citing papers per year: 2026: 1.
1 paper.