Paper Overview
- Field: NLP
- Authors: Haibo Feng, Ruiqi Liang, Hanyang Peng, Shiqi Yu
- Published: 2026-09-17
- arXiv: 2609.20734
- A lightweight recall head selectively invokes global attention as its predicted benefit changes during generation.
- Only the recall head is trained; pretrained weights stay unchanged.
- The complete historical KV cache is always available for future recall.
Motivation
Reasoning and agentic workloads increasingly demand efficient long-context inference. However, full-attention decoding reads the entire growing history at every step, regardless of whether that history actually benefits the next-token prediction.
Key Idea
The authors show that a pretrained model's decoding states already contain information predictive of the benefit of a global attention read — before the read happens. Building on this finding, they propose On-Demand Attention (ODA), a local-first decoding method:
Implementation
The authors implement GPU-side conditional execution in vLLM, translating the reduced number of global reads into practical decoding speedups for long contexts.
Results
Experiments on the Qwen and Gemma model families (including hybrid attention backbones) show that selective recall recovers most of the performance lost by local-only attention while significantly reducing global reads.
Takeaway
These findings support a new paradigm for long-context inference: pretrained models can autonomously decide when to access the information they hold, rather than reading all history at every decoding step.
---
Original paper: On-Demand Attention: Language Models Know When to Recall (arXiv:2609.20734)