Grouped-Query Attention (GQA) (GQA)

Also known as: GQA

Quick definition

An attention architecture where several query heads share fewer key and value heads.

An attention architecture where several query heads share fewer key and value heads.

GQA reduces key-value cache memory compared with full multi-head attention while preserving more head diversity than multi-query attention.

Example: A language model uses eight query-head groups that share a smaller set of KV heads during decoding.

Common use cases: Fast LLM inference, transformer efficiency, and memory optimization.

Examples

  • A language model uses eight query-head groups that share a smaller set of KV heads during decoding.

Use cases

  • Fast LLM inference, transformer efficiency, and memory optimization.

Frequently asked questions

What is Grouped-Query Attention (GQA)?

An attention architecture where several query heads share fewer key and value heads.

What should I know about Grouped-Query Attention (GQA)?

GQA reduces key-value cache memory compared with full multi-head attention while preserving more head diversity than multi-query attention.

Categories and tags