More Value per Key: Asymmetric Sparse Attention for Faster LLM Decoding
cs.CL, cs.AI
Submitted: 2026-10-03
Updated: 2026-10-06
Comments: Accepted to NeurIPS 2026
Code: https://github.com/noamelata/SAGA
License: http://creativecommons.org/licenses/by/4.0/
The gist: Autoregressive generation in Large Language Models (LLMs) is constrained by the memory and computational demands of attention mechanisms.
Terminology
Abstract
Autoregressive generation in Large Language Models (LLMs) is constrained by the memory and computational demands of attention mechanisms. Sparse attention methods mitigate this cost by selecting only high-probability entries of the attention matrix. We observe that in many such methods, this renders the probability-value multiplication negligible, shifting the bottleneck to the query-key step. Key heads can therefore be reduced to accelerate inference, while retaining more value heads preserves capacity with limited additional decoding cost. We introduce Sparse Asymmetric Group-Query Attention (SAGA), which decouples key and value head counts to exploit this principle, and pair it with approximate top-N (Atop-N) attention, a simple sparse attention method designed to study the interaction between sparsity and head-count asymmetry. We formalize the benefits of this asymmetry theoretically and validate them empirically through latency measurements and quality evaluations on models up to 1.5B parameters. Together, SAGA and Atop-N achieve end-to-end decoding speedups exceeding 2 times over our full-attention GQA baseline at long contexts. Models trained from scratch with SAGA nearly match the quality of comparable GQA variants on the evaluated benchmarks. To facilitate adoption, we introduce an efficient fine-tuning method that converts pretrained models to the SAGA architecture, enabling practitioners to benefit from our approach without costly retraining.
Sources
- LLaMA: Open and Efficient Foundation Language Models
- Qwen2 Technical Report
- LIMINAL: Exploring The Frontiers of LLM Decode Performance
- GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints
- Generating Long Sequences with Sparse Transformers
- Longformer: The Long-Document Transformer
- Reformer: The Efficient Transformer
- Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention
- Memory-efficient Transformers via Top-$k$ Attention
- Sigma: Differential Rescaling of Query, Key and Value for Efficient Language Models
- DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model
- BLASST: Dynamic BLocked Attention Sparsity via Softmax Thresholding
- Block Sparse Flash Attention
- Efficient Streaming Language Models with Attention Sinks
- Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference
- Memorizing Transformers
- Sparser is Faster and Less is More: Efficient Sparse Attention for Long-Range Transformers
- $k$NN Attention Demystified: A Theoretical Exploration for Scalable Transformers
- The Llama 3 Herd of Models
- RULER: What's the Real Context Size of Your Long-Context Language Models?
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering