arXiv:2609.02737cs.CLSep 2026

Manuscript Offprint

arXiv:2609.02737

Language Models Can Control Their Own Attention

Namgyu Ho, Huzama Ahmad, Woosung Koh, Se-Young Yun, Tal Schuster, Cicero Nogueira dos Santos

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Namgyu Ho¹,* , Huzama Ahmad¹,* , Woosung Koh¹,* , Se-Young Yun¹,† , Tal Schuster²,† and Cicero Nogueira dos Santos²,†

¹KAIST AI, ²Google DeepMind, * Equal Contribution, † Corresponding Authors

Abstract: Language models spend most of their attention on a small fraction of context, yet they read the entire KV cache to find the few tokens that matter. If the user asks about a previous detail in a 1M-token conversation, global attention layers must scan the full context to generate each token of the reply. A prominent approach mitigates this cost by pre-selecting relevant tokens via lightweight proxy scores, but this extrinsic scoring still incurs O(N)O(N) per step. We take an intrinsic approach motivated by the simple question: wouldn't the model already know which parts of the context are relevant? To this end, we introduce Declarative Attention (DA), a protocol that elicits the model to declare where it needs to attend within its chain-of-thought, partitioning generation into three modes: <global> (full context), <focus> (a specific region), and <local> (recent output only). The inference engine parses these declarations like tool calls and skips most of the KV cache read. Under zero-shot evaluation across 15 long-context tasks, DA on off-the-shelf models (Gemma-4-31B, Qwen-3.6-27B) significantly reduces total attended tokens during decoding (52.0%, 31.1%) with modest accuracy drops (1.27pp, 2.75pp) that shrink with model scale. DA unlocks a new axis of sparse attention, with further potential under training-based methods that future work can explore.

Prompt (25,466 tokens)

A: System Instruction (178 tokens)

B1: Context Segment 1 of 12 (2,311 tokens)

B12: Context Segment 12 of 12 (2,086 tokens)

C: Question (45 tokens)

What was the total number of instruction-response pairs in the final supervised fine-tuning (SFT) training corpus after merging the regenerated math solutions with the open-domain conversations?

D: Instruction (1,068 tokens)

Instructions on how to use Declarative Attention.