Skip to content
English

Switch theme

// ◎ Transformers & Attention

Multi-Query Attention (MQA)

All heads share one key/value head, shrinking the KV cache.

多查询注意力 MQA 2019 Intermediate extended

IN PLAIN WORDS

Instead of per-head keys and values, keep one shared pair. Decoding reads far less memory and is faster, with a small quality cost.

Used in: PaLM, Falcon

TIMELINE · prerequisites → this → what builds on it

2017 Transformer &…2019 Multi-Query Atten…2023 Grouped-Query…

01Original paper

Fast Transformer Decoding: One Write-Head is All You Need

Noam Shazeer · 2019

arXiv ↗ ✓ Verified · arXiv API

02Where it sits

Learn the left column first; the right column builds on this one.

Learn first

Multi-Query Attention (MQA)

Then you can learn

Related:Multi-head Latent Attention (MLA)

Transformer & S…KV CacheGrouped-Query A…Multi-head Late… Multi-Query Attenti…

Left: prerequisites · right: builds on this · dashed: related. Full map →

03Learning resources

Official docs, explainers, courses and reference code. All links checked.

04Where the course teaches it

For AI / data

Data updated: AI algorithms & curriculum(UTC+8)