arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.03928cs.LGcs.CL
收藏

面向推理模型的价值感知随机KV缓存淘汰

Value-Aware Stochastic KV Cache Eviction for Reasoning Models

University of Southern California(南加州大学);University of Chicago(芝加哥大学)

Ting-Yun Chang, Harvey Yiyun Fu, Deqing Fu, Chenghao Yang, Jesse Thomason, Robin Jia

AI总结:

针对推理模型长输出导致的KV缓存瓶颈,提出价值感知随机淘汰方法VaSE,通过保护大幅度值状态和引入随机性,在4倍压缩下比最强淘汰方法准确率提升超4%。

摘要:

推理模型通过扩展思维链提高了准确性,但其长输出造成了内存和计算瓶颈。KV缓存淘汰方法通过从缓存中淘汰不重要的键值对来降低这一成本,但它们的准确性往往不如基于选择的稀疏注意力替代方案,后者保留了完整的KV缓存。我们识别出对KV缓存淘汰准确性至关重要的关键因素。首先,一小部分值状态具有异常大的幅度,淘汰它们会导致灾难性失败,模型进入重复推理循环。其次,在淘汰过程中引入随机性通过增加缓存多样性提高了准确性。基于这些发现,我们提出了价值感知随机KV缓存淘汰(VaSE),这是一种无需训练的方法,保护大幅度值状态并促进多样化的淘汰决策。在六个推理任务上,使用VaSE进行4倍KV缓存压缩的Qwen3模型在相同稀疏度下比最先进的选择方法获得了更高的平均准确率,同时比最强的淘汰方法高出超过4%。总体而言,VaSE弥合了效率与准确性之间的差距,支持FlashAttention2,并为推理模型实现了静态内存占用。

英文摘要:

Reasoning models improve accuracy through extended chains of thought, but their long outputs create a memory and compute bottleneck. KV cache eviction methods reduce this cost by evicting unimportant key-value pairs from the cache, yet they often yield worse accuracy than selection-based sparse attention alternatives, which keep the full KV cache. We identify key factors crucial to KV cache eviction accuracy. First, a small fraction of value states have abnormally large magnitudes, and evicting them causes catastrophic failure where models enter repetitive reasoning loops. Second, introducing stochasticity during eviction improves accuracy by increasing cache diversity. Based on these findings, we propose Value-aware Stochastic KV Cache Eviction (VaSE), a training-free recipe that protects large-magnitude value states and promotes diverse eviction decisions. Across six reasoning tasks, Qwen3 models using VaSE with 4x KV cache compression yield higher average accuracies than SOTA selection method at the same sparsity, while outperforming the strongest eviction method by more than 4%. Overall, VaSE bridges the gap between efficiency and accuracy, supporting FlashAttention2 and enabling a static memory footprint for reasoning models.

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

↑