跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2605.09649 · v2

Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction

首次提交 2026-05-11 00:47
版本更新 2026-12-02 18:49
雷达观测 2026-12-03 11:48
arXiv ↗PDF ↗

摘要

The key-value (KV) cache is a major bottleneck in long-context inference, where memory and computation grow with sequence length. Existing KV eviction methods reduce this cost but typically degrade performance relative to full-cache inference. Our key insight is that full-cache attention is not always optimal: in long contexts, irrelevant tokens can dilute attention away from useful evidence, so selective, learnable eviction can improve generation rather than merely approximate the full cache. We introduce a global retention-based KV eviction method that learns each token's future utility under a unified memory budget. Lightweight retention gates assign utility scores to cached KV entries, and a shared final scoring projection encourages score comparability across all layers and heads. This enables a single global eviction policy in which tokens from different layers, heads, and modalities compete directly for cache capacity. We further provide theoretical analysis showing that preferentially retaining useful tokens can reduce attention dilution, and we justify geometric retention as a query-agnostic proxy for future utility. Across long-context language and vision-language benchmarks, our method substantially reduces KV memory while maintaining performance close to full-cache inference. These results suggest that learned, globally ranked KV eviction is not only a compression technique, but also a potential mechanism for improving long-context performance.

作者备注:A learnable KV eviction method for large language models

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

本站首次收录为 v2,暂无更早版本可对照。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v2 · 2026-12-02 18:49 · 最新观测版本

Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction

The key-value (KV) cache is a major bottleneck in long-context inference, where memory and computation grow with sequence length. Existing KV eviction methods reduce this cost but typically degrade performance relative to full-cache inference. Our key insight is that full-cache attention is not always optimal: in long contexts, irrelevant tokens can dilute attention away from useful evidence, so selective, learnable eviction can improve generation rather than merely approximate the full cache. We introduce a global retention-based KV eviction method that learns each token's future utility under a unified memory budget. Lightweight retention gates assign utility scores to cached KV entries, and a shared final scoring projection encourages score comparability across all layers and heads. This enables a single global eviction policy in which tokens from different layers, heads, and modalities compete directly for cache capacity. We further provide theoretical analysis showing that preferentially retaining useful tokens can reduce attention dilution, and we justify geometric retention as a query-agnostic proxy for future utility. Across long-context language and vision-language benchmarks, our method substantially reduces KV memory while maintaining performance close to full-cache inference. These results suggest that learned, globally ranked KV eviction is not only a compression technique, but also a potential mechanism for improving long-context performance.

查看此版本解读 →查看此版本原文 ↗