When Exact Token Importance Is Not Enough: Limits of Top-K Selection in LLM Attention
Abstract
Long-context language models often retain only a limited set of past token positions for an attention query. A common strategy scores positions individually and keeps the highest-ranked K. Yet attention weights are renormalized over the chosen set: two individually important positions need not form the best pair. We ask whether independent ranking suffices even when each importance score measures the exact downstream change in next-token predictions caused by deleting that position alone. It does not. A four-position construction makes the ranked pair incur 133.2 times the Kullback-Leibler (KL) divergence of the optimal pair, and a parametric family proves that this multiplicative gap is unbounded. An exact exchange identity and preference reversals for every K >= 2 explain the interaction. In exhaustive frozen-model audits of SmolLM2, Gemma, and Qwen, exact-singleton Top-4 leaves at least 10% relative improvement within a fully enumerated 24-position candidate pool in 55/60, 49/60, and 60/60 cases, respectively. SwapCert, a same-budget one-swap audit, detects 157/164 such cases and returns directly checkable improving supports. A KL-margin certificate relates support fidelity to next-token stability; larger-budget, multi-layer cached-decoding experiments measure predictive fidelity at K = 128 and 256. These results establish joint support quality as an essential object of analysis for sparse attention and motivate downstream-aware support selection under inference constraints.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
Related papers
ST-GNN-AAAS: Spatio-Temporal Graph Neural Networks for Anytime Automatic Algorithm Selection in the Traveling Salesman Problem
Shared title terminologycs.LGZeyu Zhang, Mustafa Misir
Understanding the Importance of Massive Activations through Adversarial Robustness
Shared title terminologycs.LGTigran Fahradyan, Riccardo Ali, Sergio Calvo-Ordoñez et al.
InducedTFMs: A Family of Sub-Quadratic Tabular Foundation Models Using Induced Attention
Shared title terminologycs.LGSalome Gobbi, Nicolas Atienza, Nicola Cancedda et al.
Beyond Hard Tokens: Predictive Memory for Multimodal Protein Generation
Shared title terminologycs.LGXiaoliang Shi, Zichen Wang, Zhijian Wei et al.
DAiSy: Online Data Selection by Adaptive Utility Estimation for LLM Pretraining
Shared title terminologycs.LGSimin Fan, Martin Jaggi
Who gets the information? An α-fair label-coverage framework for multi-label feature selection
Shared title terminologycs.LGZhenzhi Tang