Research map / Architectures and efficiency / Attention and transformers
MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformers
Wenhui Wang, Hangbo Bao, Shaohan Huang, Li Dong, Furu Wei
Microsoft
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 |
|---|---|---|---|
| add more self-attention relations (Q-K, K-Q, Q-V, V-Q, K-V, V-K) (ablation) | 6x768 student, BERT-LARGE teacher · SQuAD 2.0 dev | score: 77.7 -> 78.1 | Improved |
| add more self-attention relations (ablation) | 6x384 student, BERT-LARGE teacher · SST-2 dev | accuracy: 91.1 -> 92.4 | Improved |
| add more self-attention relations (ablation) | 6x768 student, RoBERTa-LARGE teacher · SQuAD 2.0 dev | score: 81.6 -> 81.2 | Hurt |
| add more self-attention relations (ablation) | 6x768 student, RoBERTa-LARGE teacher · MNLI-m dev | accuracy: 87.0 -> 87.3 | Improved |
| add more self-attention relations (ablation) | 12x384 student, BERT-LARGE-WWM teacher · GLUE avg (test) | score: 79.9 -> 80.3 | Improved |
| use Q-Q, K-K and V-V relations rather than Q-K + V-V (ablation) | MiniLMv2 · SQuAD 2.0, MNLI-m, SST-2 dev | score | Improved |
| use an upper middle teacher layer instead of the last layer (ablation) | 6x384 student, BERT-LARGE / XLM-R-LARGE teacher · dev tasks | score | Improved |
| use last layer of teacher (ablation) | 6x384 student, BERT-BASE teacher · dev tasks | score | Improved |
| use a larger number of relation heads (ablation) | 6x384 student, BERT-BASE / RoBERTa-BASE teacher · dev tasks | score | Improved |
| distill from BERT-LARGE instead of BERT-BASE | 6x768 student · SQuAD 2.0 dev | score: 76.3 -> 77.7 | Improved |
| fine-tune with MLM objective as in MobileBERT | MiniLMv2 · CoLA | Matthews corr | Mixed |
| compare MiniLMv2 12x384 to MobileBERT | MiniLMv2 · CoLA (test) | Matthews corr: 51.1 vs 44.9 | Hurt |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- MobileBERT — MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices (ACL 2020) · better on 4 of 5 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in attention head and block redesign
Do attention redesigns still help at large scale, or only in small models and carefully set conditions?
- Theory rests on simplifying assumptions that real transformers break. · 13 papers state it
- Tested only on small models, not at LLM scale. · 12 papers state it
- Gains over the baseline attention are small or mixed. · 10 papers state it
Closest papers by meaning
- Spectral Conditioning of Attention Improves Transformer Performance (NeurIPS 2025 · similarity 0.83)
- Rethinking Attention: Exploring Shallow Feed-Forward Neural Networks as an Alternative to Attention Layers in Transformers (Student Abstract) (AAAI 2024 · similarity 0.83)
- Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators? (ICLR 2024 · similarity 0.83)
- Two Heads are Better than One: Simulating Large Transformers with Small Ones (NeurIPS 2025 · similarity 0.82)
- No Head Left Behind – Multi-Head Alignment Distillation for Transformers (AAAI 2024 · similarity 0.82)
- MLP Can Be A Good Transformer Learner (CVPR 2024 · similarity 0.82)
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.