Leaner Transformers: More Heads, Less Depth
Not on the map. Why?
Abstract (arXiv)
Transformers have reshaped machine learning by utilizing attention mechanisms to capture complex patterns in large datasets, leading to significant improvements in performance. This success has contributed to the belief that "bigger means better", leading to ever-increasing model sizes. This paper challenge this ideology by showing that many existing transformers might be unnecessarily oversized. We discover a theoretical principle that redefines the role of multi-head attention. An important benefit of the multiple heads is in improving the conditioning of the attention block. We exploit this theoretical insight and redesign popular architectures with an increased number of heads. The improvement in the conditioning proves so significant in practice that model depth can be decreased, reducing the parameter count by up to 30-50% while maintaining accuracy. We obtain consistent benefits across a variety of transformer-based architectures of various scales, on tasks in computer vision (ImageNet-1k) as well as language and sequence modeling (GLUE benchmark, TinyStories, and the Long-Range Arena benchmark).
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 32 of its 43 references that are in the map. First posted on arXiv 27 May 2025.
Builds on
32 of 43 references.
References · 32
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
20 more
- 2021Transformer in Transformercited by 633
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 569
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
- 2021XCiT: Cross-Covariance Image Transformerscited by 338
- 2017The Expressive Power of Neural Networks: A View from the Widthcited by 320
- 2018On the Optimization of Deep Networks: Implicit Acceleration by Overparameterizationcited by 284
- 2016Exponential expressivity in deep neural networks through transient chaoscited by 261
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2022DaViT: Dual Attention Vision Transformerscited by 175
- 2021VOLO: Vision Outlooker for Visual Recognitioncited by 165
- 2023Drive Like a Human: Rethinking Autonomous Driving with Large Language Modelscited by 160
- 2023Representational Strengths and Limitations of Transformerscited by 133
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2020Trajectron++: Dynamically-Feasible Trajectory Forecasting With Heterogeneous Datacited by 58
- 2020The Depth-to-Width Interplay in Self-Attentioncited by 42
- 2018On Tighter Generalization Bound for Deep Neural Networks: CNNs, ResNets, and Beyondcited by 24
- 2020A Deep Conditioning Treatment of Neural Networkscited by 15
- 2022Width is Less Important than Depth in ReLU Neural Networkscited by 10
- 2018Understanding Generalization and Optimization Performance of Deep CNNscited by 9
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025Cutting the Skip: Training Residual-Free Transformerscited by 8
- 2025SineProject: Machine Unlearning for Stable Vision Language Alignmentcited by 3
- 2026Spectral Conditioning of Attention Improves Transformer Performancecited by 3
- 2026Preconditioned Attention: Enhancing Efficiency in Transformerscited by 0
- 2026Conditioned Initialization for Attentioncited by 0
- 2026Conditioned Initialization for Attention7 Sep 2026
- 2026Preconditioned Attention: Enhancing Efficiency in Transformers28 Mar 2026
- 2026Spectral Conditioning of Attention Improves Transformer Performance7 Mar 2026
- 2025SineProject: Machine Unlearning for Stable Vision Language Alignment23 Nov 2025
- 2025Cutting the Skip: Training Residual-Free Transformers30 Sep 2025