inference/research
verifiedhigh · 0.88updated 2026-10-04

DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads

long-context · iclr

Fields

id
papers/duoattention
arXiv
2410.10819
Venue
iclr
Venue track
main
Year
2025
Category
long-context
Adoption
research-only
Authors
Xiao, GuangxuanTang, JiamingZuo, JingweiGuo, Junxian
Affiliations
MITNVIDIA
Problem
Long-context inference holds a large KV cache and does full attention over it, even though many heads in a long-context model are not retrieval heads and do not need the full cache.
Mechanism
Split heads into RETRIEVAL heads (which must keep the full KV cache) and STREAMING heads (whose attention is effectively local and which need only a small cache). Head types are identified by a lightweight OPTIMISATION-based algorithm run on SYNTHETIC data - fit a simple objective so that the cache layout maximises the model's output fidelity - avoiding the need for real long-context calibration data, which is often unavailable. Streaming heads then use a small per-head budget while retrieval heads keep everything.
Speedup reported
Paper's own claims (abstract), reported separately for MHA and GQA models: long-context inference MEMORY reduced up to 2.55x (MHA) and 1.67x (GQA); DECODING sped up up to 2.18x (MHA) and 1.50x (GQA); PREFILL accelerated up to 1.73x (MHA) and 1.63x (GQA), with minimal accuracy loss. Combined with quantization, Llama-3-8B decodes at 3.3 MILLION context length on a single A100. Keep the MHA and GQA figures separate - the GQA numbers are uniformly lower and quoting the MHA figure for a modern GQA model would overstate the benefit.
notes
arXiv ID 2410.10819 verified via abs-page citation_title/citation_date on 2026-10-03; title matches. CORRECTION TO THE SOURCE RECORD: it says 'arXiv preprint; no journal_ref' with no venue evidence, but OpenReview returns venue='ICLR 2025 Poster', venueid='ICLR.cc/2025/Conference' for the exact title and author list. venue=iclr, year=2025. adoption=research-only verified by absence: a recursive listing of vllm-project/vllm@main contains no path matching 'duo', and SGLang's attention directory has no duoattention module. repo mit-han-lab/duo-attention last pushed 2025-02-10 (540 stars) - maintained research code, no engine integration. The nearest shipped analogue is SGLang's hybrid_linear_attn_backend.py, which serves the Mamba/GDN/Kimi-Linear split rather than this one. VENUE_TRACK BACKFILL 2026-10-04 (paper-fields pass, agent w3p): venue_track 'main'. This is STRUCTURAL rather than researched: iclr has no Findings volume and no workshop track in which a paper could appear, so 'main' is the only possible honest value and no per-paper evidence was needed. The field is annotated here so that 'findings' and 'workshop' remain MEANINGFUL - a filter for findings=true must return only the papers that actually are findings, which requires every other paper to be explicitly NOT findings.

Notes

arXiv ID 2410.10819 verified via abs-page citation_title/citation_date on 2026-10-03; title matches. CORRECTION TO THE SOURCE RECORD: it says 'arXiv preprint; no journal_ref' with no venue evidence, but OpenReview returns venue='ICLR 2025 Poster', venueid='ICLR.cc/2025/Conference' for the exact title and author list. venue=iclr, year=2025. adoption=research-only verified by absence: a recursive listing of vllm-project/vllm@main contains no path matching 'duo', and SGLang's attention directory has no duoattention module. repo mit-han-lab/duo-attention last pushed 2025-02-10 (540 stars) - maintained research code, no engine integration. The nearest shipped analogue is SGLang's hybrid_linear_attn_backend.py, which serves the Mamba/GDN/Kimi-Linear split rather than this one.

VENUE_TRACK BACKFILL 2026-10-04 (paper-fields pass, agent w3p): venue_track 'main'. This is STRUCTURAL rather than researched: iclr has no Findings volume and no workshop track in which a paper could appear, so 'main' is the only possible honest value and no per-paper evidence was needed. The field is annotated here so that 'findings' and 'workshop' remain MEANINGFUL - a filter for findings=true must return only the papers that actually are findings, which requires every other paper to be explicitly NOT findings.

Cross-references