mlsanityData to 14 Oct 2026

Leaner Transformers: More Heads, Less Depth

arXiv 2505.20802 ↗First posted 27 May 2025cs.LG cs.CVcited by 5

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  5. 2020End-to-End Object Detection with Transformerscited by 7,414
  6. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  7. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  8. 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
  9. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  10. 2020Rethinking Attention with Performerscited by 1,601
  11. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  12. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
20 more
  1. 2021Transformer in Transformercited by 633
  2. 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 569
  3. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
  4. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
  5. 2021XCiT: Cross-Covariance Image Transformerscited by 338
  6. 2017The Expressive Power of Neural Networks: A View from the Widthcited by 320
  7. 2018On the Optimization of Deep Networks: Implicit Acceleration by Overparameterizationcited by 284
  8. 2016Exponential expressivity in deep neural networks through transient chaoscited by 261
  9. 2022cosFormer: Rethinking Softmax in Attentioncited by 213
  10. 2022DaViT: Dual Attention Vision Transformerscited by 175
  11. 2021VOLO: Vision Outlooker for Visual Recognitioncited by 165
  12. 2023Drive Like a Human: Rethinking Autonomous Driving with Large Language Modelscited by 160
  13. 2023Representational Strengths and Limitations of Transformerscited by 133
  14. 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
  15. 2020Trajectron++: Dynamically-Feasible Trajectory Forecasting With Heterogeneous Datacited by 58
  16. 2020The Depth-to-Width Interplay in Self-Attentioncited by 42
  17. 2018On Tighter Generalization Bound for Deep Neural Networks: CNNs, ResNets, and Beyondcited by 24
  18. 2020A Deep Conditioning Treatment of Neural Networkscited by 15
  19. 2022Width is Less Important than Depth in ReLU Neural Networkscited by 10
  20. 2018Understanding Generalization and Optimization Performance of Deep CNNscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.