Declarative Attention lets LLMs cut KV cache scanning by up to 52% with minimal accuracy loss
burny_tech · x · 2026-09-04
The problem
Long-context LLMs waste compute by scanning the entire KV cache at every decoding step, even when only a small region matters.
The approach
The paper introduces Declarative Attention, where the model explicitly switches between global, focused, and local attention during reasoning, letting the inference engine skip irrelevant KV cache regions.
Results
- Gemma-4-31B: 52% fewer attended tokens, only 1.27pp accuracy drop
- Qwen-3.6-27B: 31% fewer tokens, 2.75pp drop
A lightweight mechanism that trades tiny accuracy for major inference efficiency gains in long-context reasoning.
Related event: Declarative Attention Lets LLMs Control Their Own KV Cache Reading(5 posts)→
More from Research
- Derek Thompson: AI-assisted Riemann proof and the hidden cost of perfect answers — pshrink · 2026-12-05
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Quantum Researcher: Even a P=BQP Proof Wouldn't Mean a Usable Algorithm — MJBiercuk · 2026-12-05
- NeurIPS reviewer reveals a paper he rated accept was rejected over 'benchmaxxing' objection — lpachter · 2026-12-05
- Fact localization in LLMs is somewhere between 1 and N neurons, not fully distributed — thebasepoint · 2026-12-05
- How facts spread across neurons: delete a set and the model flips the Hunchback's author — thebasepoint · 2026-12-05