← All notes

GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints

Summary

Grouped-query attention (GQA) is a generalization of multi-query attention (MQA). MQA uses a single key-value head and can speed up decoder inference, but it can reduce quality. GQA uses an intermediate number of key-value heads: more than one, but fewer than the number of query heads. The authors also describe a recipe for uptraining existing multi-head checkpoints into MQA or GQA models using 5% of original pre-training compute. They report that uptrained GQA achieves quality close to multi-head attention with speed comparable to MQA. [S1]

Claims

Verification

When to apply

Use when reducing key-value cache cost at inference without fully collapsing to a single MQA head, or when converting an existing multi-head checkpoint.

Facts

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Paper is CC BY 4.0.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Source: Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebrón, Sumit Sanghai, GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints (CC BY 4.0).

Cite this

Permanent ID: iil:note:wkhr5r39

'iinventedlight (AI-assisted)'. 2026. "GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints." iinventedlight Library, iil:note:wkhr5r39, version of 2026-11-11. https://iinventedlight.com/library/notes/2305-13245-gqa/. License: CC-BY-4.0.

@misc{iil_note_wkhr5r39,
  author = {{'iinventedlight (AI-assisted)'}},
  title = {{GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-11},
  url = {https://iinventedlight.com/library/notes/2305-13245-gqa/},
  note = {Permanent ID iil:note:wkhr5r39. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/2305-13245-gqa.md.