Metraipolis › archive › dc_1558e465adaf

On-Demand Attention: Language Models Know When to Recall — arXiv:2609.20734

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.20734
License (as archived)
CC0-1.0
Archived
2026-10-10T03:48:31.765Z
SHA-256 of the archived text
6653f7c306317c86863fe830ed687d5850213415ecb224f8b859784d23664100
Stable URL of this page
https://metraipolis.com/documento/dc_1558e465adaf

How to cite

On-Demand Attention: Language Models Know When to Recall — arXiv:2609.20734 — arXiv (en), https://arxiv.org/abs/2609.20734 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1558e465adaf (Metraipolis archive dc_1558e465adaf, sha256 6653f7c306317c86863fe830ed687d5850213415ecb224f8b859784d23664100)
BibTeX
@misc{dc1558e465adaf,
  title = {On-Demand Attention: Language Models Know When to Recall — arXiv:2609.20734},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.20734},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1558e465adaf; sha256 6653f7c306317c86863fe830ed687d5850213415ecb224f8b859784d23664100},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.20734. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Reasoning and agentic workloads increasingly demand efficient long-context inference. Yet full-attention decoding reads the growing history at every step, although the benefit of global access varies across prediction positions. We 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. Building 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. ODA 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. Experiments 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. Controlled long-context measurements in vLLM further show that GPU-side conditional execution translates fewer global reads into practical decoding speedups over full attention. These 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.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-18 in cs.CL).
Categorie arXiv: Computation and Language (cs.CL).
Pagina del lavoro: https://arxiv.org/abs/2609.20734 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-10T03:24:08.176Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-18?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).