首页 > AI前沿 > When Exact Token Importance Is Not Enough: Limits of Top-K Selection in LLM Attention

When Exact Token Importance Is Not Enough: Limits of Top-K Selection in LLM Attention

arXiv机器学习 2026-11-24 18:15 12 阅读 查看原文
用户现在需要把给定的纯文本新闻正文排版成语义化HTML片段,遵循要求:每个自然段用

,没有小节的话不用h2h3,列表这里没用到,重要句子可以加strong?不对,要保留所有信息,不能增删改,首先看原文是一段?不对,原文是一个大段落?等下看原文内容:开头讲长上下文模型的问题,然后说独立排序不够,然后有四个位置构造的情况,然后审计结果,SwapCert,还有最后结论。不对,首先,原文的内容是连续的一段?不对,仔细看,原文的所有内容是一个自然段?不对,等下看规则,每个自然段落用p包裹,那如果原文是一个自然段的话就一个p?不对,不对,再看看有没有需要加strong的?比如重要的句子,比如核心结论?不对,要保留原文所有信息,不能改内容,那首先,原文的结构: 首先第一个部分是讲长上下文模型的常见策略,然后提出问题,然后说独立排序不够,然后给出构造和证明,然后解释原因,然后是审计结果,然后SwapCert的效果,然后证书和实验,最后结论。 不对,等下,用户给的正文是一整段?不对,我再看: 原文正文: 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. 哦,原来这是一个自然段?不对,不对,能不能拆分?不,规则是保留原文所有信息,不得增删改内容,所以拆分段落的话会不会改变?不对,原文的段落是一个?那如果只有一个自然段就一个

?不对,等下,有没有重要的句子可以加?比如核心的结论,比如It does not.?还有最后那句结论?不对,要合理,不能乱加。等下,再想:首先,原文的内容是连续的,没有列表,没有引用,没有代码,所以不需要ul、blockquote、pre这些。然后,有没有需要划分小节的?原文没有明显的小节标题,所以不用h2h3。那首先,整个正文是一个自然段?不对,不对,等下,我再看,用户说“每个自然段落用

包裹”,那原文给出的是一个自然段落,所以用一个

?不对,不对,会不会我理解错了?等下,再看内容,有没有逻辑分层?比如: 1. 背景和问题:前四句? 2. 研究结论和理论证明:中间的It does not...preference reversals... 3. 实验验证:In exhaustive...K = 128 and 256. 4. 最终结论:最后一句。 不对,但是规则是不得增删改内容,那拆分成多个

会不会改变段落?不对,原文是一整段,那如果拆的话是不是算修改?不对,等下,用户给的正文是一段,那排版的时候如果保持原意,拆分成合理的段落?不对,不对,再仔细看规则:“保留原文所有信息,不得增删改内容”,也就是说文字内容不能改,段落划分的话,原文是一段,那我可以分成几个

吗?或者就一个

?等下,再想,比如,原文的句子之间,有没有可以拆分的?比如: 第一个

讲背景和研究问题: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. 不对,但是这样拆分是不是符合要求?因为规则说每个自然段落用

,原文虽然是一个自然段,但是我们排版的时候可以按照语义拆分吗?不对,等下,用户说“保留原文所有信息,不得增删改内容”,拆分段落不算增删改内容吧?因为内容文字都没变。或者,有没有问题?再想,有没有更好的方式?比如,有没有需要加h2或者h3?原文没有标题,所以不用。那重要句子,比如It does not是核心结论,加strong,最后一句是总结结论,加strong,这样合理。 等下,再检查:有没有增删改内容?没有,所有文字都和原文一致,只是加了标签,拆分了段落,加了strong的强调,符合规则。那现在整理成HTML片段: 首先第一个

是背景和问题:

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