Research map / Architectures and efficiency / Attention and transformers
Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Pruned
Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, Ivan Titov
University of Amsterdam · Yandex · Moscow Institute of Physics and Technology · University of Edinburgh · University of Zurich
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| prune 38 of 48 encoder heads with L0-relaxed gates | Transformer base EN-RU · WMT EN-RU | BLEU: drop of only 0.15 BLEU | No clear effect |
| prune all but 4 of 48 encoder heads | Transformer base EN-RU · OpenSubtitles EN-RU | BLEU: lose only 0.25 BLEU | No clear effect |
| prune encoder to 10 heads | Transformer base EN-RU · WMT EN-RU | BLEU: within 0.15 BLEU of full model | No clear effect |
| prune heads in all attention types (14/31/30 kept) | Transformer base EN-RU · WMT EN-RU | BLEU: 29.6 -> 29.62 | No clear effect |
| prune heads in all attention types (5/9/12 kept) | Transformer base EN-RU · WMT EN-RU | BLEU: 29.6 -> 28.90 | Hurt |
| prune from trained model rather than train same sparse head configuration from scratch (ablation) | sparse-head Transformer · WMT EN-RU (5/9/12 heads) | BLEU: 28.41 -> 28.90 | Improved |
| prune from trained model rather than train same sparse head configuration from scratch (ablation) | sparse-head Transformer · OpenSubtitles EN-RU (6/9/13 heads) | BLEU: 31.84 -> 32.27 | Improved |
| fine-tune trained model with pruning objective rather than train from scratch with same number of heads (ablation) | pruned Transformer · EN-RU | BLEU: +0.2 to +0.6 BLEU | Improved |
Open problems in sparse and structured attention
How well do the theory and the efficient designs of attention carry over from simplified models to full-scale transformers?
- Theory covers only simplified one-layer or single-head attention. · 12 papers state it
- Experiments stay at small model scale. · 8 papers state it
- Theory assumes token distributions that real data does not match. · 7 papers state it
Closest papers by meaning
- Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translation (EMNLP 2020 · similarity 0.91)
- Are Sixteen Heads Really Better than One? (NeurIPS 2019 · similarity 0.91)
- How Much Attention Do You Need? A Granular Analysis of Neural Machine Translation Architectures (ACL 2018 · similarity 0.90)
- Losing Heads in the Lottery: Pruning Transformer Attention in Neural Machine Translation (EMNLP 2020 · similarity 0.90)
- Enlivening Redundant Heads in Multi-head Self-attention for Machine Translation (EMNLP 2021 · similarity 0.90)
- Pit One Against Many: Leveraging Attention-head Embeddings for Parameter-efficient Multi-head Attention (EMNLP 2023 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.