On-Demand Attention: Language Models Know When to Recall
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:09 UTC · ac35ec4c14cb ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "NhyVb4Rd94"- }- ],- "title": "On-Demand Attention: Language Models Know When to Recall",- "authors": [],- "abstract": "Reasoning and agentic workloads increasingly demand efficient long-context inference.\nYet full-attention decoding reads the growing history at every step, although the benefit of global access varies across prediction positions.\nWe find that, before global attention is computed for the current step, the decoding states available after local computation in frozen pretrained models already contain information predictive of its benefit over local attention.\nBuilding on this finding, we introduce On-Demand Attention (ODA), a local-first decoding method: after local computation, a lightweight recall head decides whether to recompute the current step with global attention.\nODA trains only the recall head with modest data and compute budgets, leaving pretrained weights unchanged and retaining the complete historical KV cache so that information skipped at one step remains available for later access.\nExperiments across model scales and families, including hybrid attention backbones, show that ODA recovers most of the performance lost under local attention while substantially reducing the frequency of global attention.\nControlled long-context measurements in vLLM further show that GPU-side conditional execution translates fewer global reads into practical decoding speedups over full attention.\nThese findings show that pretrained decoding states can support both token prediction and decisions about accessing distant information, allowing models to allocate global computation as needed during decoding.\nCode will be available upon acceptance.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "84dffc56-09b3-40ac-8287-63654bcae68c"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "On-Demand Attention: Language Models Know When to Recall",+ "authors": [],+ "abstract": "Reasoning and agentic workloads increasingly demand efficient long-context inference.\nYet full-attention decoding reads the growing history at every step, although the benefit of global access varies across prediction positions.\nWe find that, before global attention is computed for the current step, the decoding states available after local computation in frozen pretrained models already contain information predictive of its benefit over local attention.\nBuilding on this finding, we introduce On-Demand Attention (ODA), a local-first decoding method: after local computation, a lightweight recall head decides whether to recompute the current step with global attention.\nODA trains only the recall head with modest data and compute budgets, leaving pretrained weights unchanged and retaining the complete historical KV cache so that information skipped at one step remains available for later access.\nExperiments across model scales and families, including hybrid attention backbones, show that ODA recovers most of the performance lost under local attention while substantially reducing the frequency of global attention.\nControlled long-context measurements in vLLM further show that GPU-side conditional execution translates fewer global reads into practical decoding speedups over full attention.\nThese findings show that pretrained decoding states can support both token prediction and decisions about accessing distant information, allowing models to allocate global computation as needed during decoding.\nCode will be available upon acceptance.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}