Skip to content

MQA

The efficiency lineage · 2019

Multi-Query Attention. The first move in the shrink-the-cache branch: keep the mechanism, share the memory.

PaperFast Transformer Decoding: One Write-Head is All You NeedShazeer · Google · 2019arXiv:1911.02150 →
What it fixedOne K/V shared by all heads - the cache shrinks by the head count.
What it still costsQuality drops when you push it hard.

One drawer, four heads - watch the pile shrink by exactly the head count.

Episode 1, beat 7 · 64s, from the film series.

Worth having first: The memory wall

Unlocks: GQA