PreprintCited by 404Topic ModelingAdvanced Neural Network ApplicationsNatural Language Processing Techniques

Are Sixteen Heads Really Better than One?

Open access
Michel, Paul, Levy, Omer, Neubig, Graham·2019·arXiv

Abstract

Attention is a powerful and ubiquitous mechanism for allowing neural models to focus on particular salient pieces of information by taking their weighted average when making predictions. In particular, multi-headed attention is a driving force behind many recent state-of-the-art NLP models such as Transformer-based MT models and BERT. These models apply multiple attention mechanisms in parallel, with each attention "head" potentially focusing on different parts of the input, which makes it possible to express sophisticated functions beyond the simple weighted average. In this paper we make the surprising observation that even if models have been trained using multiple heads, in practice, a large percentage of attention heads can be removed at test time without significantly impacting performance. In fact, some layers can even be reduced to a single head. We further examine greedy algorithms for pruning down models, and the potential speed, memory efficiency, and accuracy improvements obtainable therefrom. Finally, we analyze the results with respect to which parts of the model are more reliant on having multiple heads, and provide precursory evidence that training dynamics play a role in the gains provided by multi-head attention.

Integrity signals

Registry

DataCite · 10.48550/arxiv.1905.10650

Cites

4 of 4 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • This behavior (MLP removal less harmful than self-attention) seems to be different to transformer models in NLP.

    “This behavior seems to be different to transformer models in NLP, which as alluded to by [37] might behave in the opposite way.”
  • Transformer models are often large and heavily overparameterized.

    “The transformer models are often large and heavily overparameterized [48].”

    From A Survey of Techniques for Optimizing Transformer Inference (2023) · cites this paper as [48]

  • Experiments on Vanilla Transformer and BERT show that the models can be compressed up to 20-40% without any quality loss.

    “The experiments on Vanilla Transformer and BERT show that the models can be compressed up to 20-40% without any quality loss.”

    From A Survey of Techniques for Optimizing Transformer Inference (2023) · cites this paper as [48]

  • Michel et al. show that a few layers in a transformer can be reduced to as low as a single head.

    “Michel et al. [48] show that a few layers in a transformer can be reduced to as low as a single head.”

    From A Survey of Techniques for Optimizing Transformer Inference (2023) · cites this paper as [48]

  • EmoVis captures semantic relations previously not emphasized by existing sequential models.

    “It also captures semantic relations previously not emphasized by existing sequential models [28], [29].”

    From Emotion Classification With Visibility Graphs (2025) · cites this paper as [29]

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Michel, P., Levy, O., & Neubig, G.
Affiliations
  • Carnegie Mellon University (US)
  • Meta (United Kingdom) (GB)
Venue
arXiv
Publisher
arXiv
Published
2019
Volume
32
Pages
14014-14024
ISSN
2331-8422 (ISSN-L)
OpenAlex
W2945767825
Cited by
404
References
4
Citations by year
2026: 2 · 2025: 46 · 2024: 88 · 2023: 92 · 2022: 63 · 2021: 68 · 2020: 33 · 2019: 12
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
  • neural information processing systems
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
Keywords
multi-head attention, attention head pruning, model compression, transformer models, BERT, training dynamics, memory efficiency, speedup

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review