Transformer Architecture · 2019
Fast Transformer Decoding: One Write-Head is All You Need (MQA)
Introduced multi-query attention, which shares a single key and value head across all query heads so autoregressive decoding needs far less memory bandwidth for the attention cache.
Editorial record
Plain-language summary
In standard multi-head attention each head has its own key and value projections, so the per-step key/value cache that dominates incremental decoding is large and bandwidth-bound. MQA keeps multiple query heads but collapses to one shared key/value head, shrinking that cache by the number of heads and making token-by-token generation much faster. The trade-off is a small quality drop, but the decoding speedup made MQA a common choice for inference-heavy models and set up the later GQA compromise.
Knowledge graph
Relationships
Antecedents
GeneralizesEvidence: Direct
GQA: Training Generalized Multi-Query Transformer Models
GQA interpolates between MHA and MQA via grouped K/V
P-009 paper
Descendants
Makes efficientEvidence: Direct
Attention Is All You Need
MQA shares K/V heads to shrink KV cache
P-008 paper
Source record
Provenance
- Record ID
- P-008
- Record created
- 2026-07-13
- Last reviewed
- 2026-07-14
- Record version
- 2
- https://arxiv.org/abs/1911.02150
- arXiv:1911.02150
Citation caveat: Citation metadata is approximate and marked unverified in the source dataset.