arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.08234cs.LGcs.AI
收藏

何时价值感知的KV驱逐有助于?非单调缓存压缩的固定合同诊断

When Does Value-Aware KV Eviction Help? A Fixed-Contract Diagnostic for Non-Monotone Cache Compression

Ruijie Zhang, Haozhe Liang, Da Chang, Li Hu, Fanqi Kong, Huaxiao Yin, Yu Li

AI总结:

本文研究了价值感知KV驱逐在非单调缓存压缩中的有效性,通过固定合同诊断方法分析了驱逐策略在三个关键步骤中的表现,验证了其在不同基准测试中的性能。

摘要:

长上下文LLM推理受限于解码过程中读取大KV缓存的内存和带宽成本。KV压缩通过仅保留部分缓存降低此成本,但任务准确性本身无法解释为何选择器成功或失败。选择器可能在三个步骤中失败:可能错过未来解码所需的证据,对不影响输出的token给出高分,或在压缩缓存时破坏相关证据。我们引入了固定合同诊断方法,固定选择器的设置并逐步更改一个决策槽。对于价值排序,探测器结合块的注意力质量与移除它的估计输出变化。在LongBench上跨三个模型和两个预算,探测器在正边际单元中为72.6%,在非正边际单元中为32.4%。NeedleBench M-RT在32k和RULER 8k检查探测器支持分支检索下的闭包,以及264单元符号评估将支持恢复和输出价值排序与边界附近的影响效应分开。所得顺序是恢复解码侧证据,对其输出价值进行排序,并在投影期间保留相关证据。

英文摘要:

Long-context LLM inference is bottlenecked by the memory and bandwidth cost of reading large KV caches during decoding. KV compression reduces this cost by keeping only part of the cache, but task accuracy alone does not identify why a selector succeeds or fails. A selector can fail at three steps: it may miss the evidence future decoding needs, give high scores to tokens that do not affect the output, or break related evidence when fitting scores into a small cache. We introduce a fixed-contract diagnostic that holds the selector's setup fixed and changes one decision slot at a time. For value ranking, the probe combines a block's attention mass with the estimated output change from removing it. On LongBench across three models and two budgets, the probe is positive on 72.6% of positive-margin cells and 32.4% of nonpositive-margin cells. NeedleBench M-RT at 32k and a RULER 8k check probe support closure under branched retrieval, and a 264-cell sign evaluation separates support recovery and output-value ranking from leverage effects near the boundary. The resulting order is to recover decode-side evidence, rank its output value, and preserve coupled evidence during projection.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑