Grouped-query attention

Method · 2023 · Also known as GQA

Definition

“Multi-query attention (MQA), which only uses a single key-value head, drastically speeds up decoder inference.”

From the defining paper: GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints (Joshua Ainslie, James Lee-Thorp, Michiel de Jong, et al., EMNLP 2023).

Lineage

Parent: Multi-query attention

Children: none in this seed

Incoming edges (1)

improves · accuracy

From Multi-query attention · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“However, MQA can lead to quality degradation” Source: GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints
Mechanism
“introduce grouped-query attention (GQA), a generalization of multi-query attention” Source: GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints
Trade-off
No trade-off quoted.

Outgoing edges (1)

adapts · memory efficiency

To KIVI · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“becomes the new bottleneck in speed and memory usage” Source: KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache
Mechanism
“we developed a tuning-free 2bit KV cache quantization algorithm named KIVI” Source: KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache
Trade-off
No trade-off quoted.

Back to the explorer