Multi-head or Single-head? An Empirical Comparison for Transformer Training
Not on the map. Why?
Abstract (arXiv)
Multi-head attention plays a crucial role in the recent success of Transformer models, which leads to consistent performance improvements over conventional attention in various applications. The popular belief is that this effectiveness stems from the ability of jointly attending multiple positions. In this paper, we first demonstrate that jointly attending multiple positions is not a unique feature of multi-head attention, as multi-layer single-head attention also attends multiple positions and is more effective. Then, we suggest the main advantage of the multi-head attention is the training stability, since it has less number of layers than the single-head attention, when attending the same number of positions. For example, 24-layer 16-head Transformer (BERT-large) and 384-layer single-head Transformer has the same total attention head number and roughly the same model size, while the multi-head one is significantly shallower. Meanwhile, we show that, with recent advances in deep learning, we can successfully stabilize the training of the 384-layer Transformer. As the training difficulty is no longer a bottleneck, substantially deeper single-head Transformer achieves consistent performance improvements without tuning hyper-parameters.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 28 of its 36 references that are in the map. First posted on arXiv 17 Jun 2021.
Builds on
28 of 36 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2017Graph Attention Networkscited by 8,854
- 2016Layer Normalizationcited by 5,579
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2020Reformer: The Efficient Transformercited by 1,658
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
16 more
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2018Image Transformercited by 770
- 2019On the Variance of the Adaptive Learning Rate and Beyondcited by 763
- 2014Neural Turing Machinescited by 630
- 2019Stand-Alone Self-Attention in Vision Modelscited by 542
- 2019Learning Deep Transformer Models for Machine Translationcited by 309
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2018Music Transformercited by 207
- 2019The Evolved Transformercited by 180
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
- 2018The Best of Both Worlds: Combining Recent Advances in Neural Machine Translationcited by 101
- 2019Convolutional Self-Attention Networkscited by 32
- 2020A Mixture of h-1 Heads is Better than h Headscited by 22
- 2021Memory-Efficient Differentiable Transformer Architecture Searchcited by 13
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 6; 2024: 4; 2025: 1; 2026: 1.
15 papers.
Sort:
By area:
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2024SHViT: Single-Head Vision Transformer with Memory Efficient Macro Designcited by 55
- 2023How Much Temporal Long-Term Context is Needed for Action Segmentation?cited by 36
- 2023DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Trainingcited by 28
- 2023To Transformers and Beyond: Large Language Models for the Genomecited by 15
- 2024Attention as a Hypernetworkcited by 12
- 2024Large Language Models in Plant Biologycited by 8
- 2023Large Language Models for Mathematicianscited by 7
- 2023CATS: Conditional Adversarial Trajectory Synthesis for Privacy-Preserving Trajectory Data Publication Using Deep Learning Approachescited by 6
- 2024MiniKV: Pushing the Limits of LLM Inference via 2-Bit Layer-Discriminative KV Cachecited by 6
- 2022Detecting Anomalous Cryptocurrency Transactions: an AML/CFT Application of Machine Learning-based Forensicscited by 5
- 2021What Makes for Hierarchical Vision Transformer?cited by 4
3 more
- 2026Leaf Spectral Reflectance Prediction Using Multi-Head Attention Neural Networkscited by 2
- 2023Fast-ELECTRA for Efficient Pre-trainingcited by 1
- 2025Feature Shift Localization Networkcited by 0
- 2026Leaf Spectral Reflectance Prediction Using Multi-Head Attention Neural Networks31 May 2026
- 2025Feature Shift Localization Network10 Jun 2025
- 2024MiniKV: Pushing the Limits of LLM Inference via 2-Bit Layer-Discriminative KV Cache27 Nov 2024
- 2024Attention as a Hypernetwork9 Jun 2024
- 2024SHViT: Single-Head Vision Transformer with Memory Efficient Macro Design29 Jan 2024
- 2024Large Language Models in Plant Biology5 Jan 2024
- 2023Large Language Models for Mathematicians7 Dec 2023
- 2023To Transformers and Beyond: Large Language Models for the Genome13 Nov 2023
- 2023Fast-ELECTRA for Efficient Pre-training11 Oct 2023
- 2023DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Training5 Oct 2023
- 2023CATS: Conditional Adversarial Trajectory Synthesis for Privacy-Preserving Trajectory Data Publication Using Deep Learning Approaches20 Sep 2023
- 2023How Much Temporal Long-Term Context is Needed for Action Segmentation?22 Aug 2023
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2024SHViT: Single-Head Vision Transformer with Memory Efficient Macro Designcited by 55
- 2023How Much Temporal Long-Term Context is Needed for Action Segmentation?cited by 36
- 2023DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Trainingcited by 28
- 2023To Transformers and Beyond: Large Language Models for the Genomecited by 15
- 2024Attention as a Hypernetworkcited by 12
- 2024Large Language Models in Plant Biologycited by 8
- 2023Large Language Models for Mathematicianscited by 7
- 2023CATS: Conditional Adversarial Trajectory Synthesis for Privacy-Preserving Trajectory Data Publication Using Deep Learning Approachescited by 6
- 2022Detecting Anomalous Cryptocurrency Transactions: an AML/CFT Application of Machine Learning-based Forensicscited by 5
- 2021What Makes for Hierarchical Vision Transformer?cited by 4
- 2026Leaf Spectral Reflectance Prediction Using Multi-Head Attention Neural Networkscited by 2
12 most cited of 14 All 14 (JSON)
- 2026Leaf Spectral Reflectance Prediction Using Multi-Head Attention Neural Networks31 May 2026
- 2025Feature Shift Localization Network10 Jun 2025
- 2024Attention as a Hypernetwork9 Jun 2024
- 2024SHViT: Single-Head Vision Transformer with Memory Efficient Macro Design29 Jan 2024
- 2024Large Language Models in Plant Biology5 Jan 2024
- 2023Large Language Models for Mathematicians7 Dec 2023
- 2023To Transformers and Beyond: Large Language Models for the Genome13 Nov 2023
- 2023Fast-ELECTRA for Efficient Pre-training11 Oct 2023
- 2023DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Training5 Oct 2023
- 2023CATS: Conditional Adversarial Trajectory Synthesis for Privacy-Preserving Trajectory Data Publication Using Deep Learning Approaches20 Sep 2023
- 2023How Much Temporal Long-Term Context is Needed for Action Segmentation?22 Aug 2023
- 2022Cramming: Training a Language Model on a Single GPU in One Day28 Dec 2022
12 newest of 14 All 14 (JSON)