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

无需手动设置预算的自适应KV缓存压缩

Adaptive KV-Cache Compression without Manually Setting Budget

Chenxia Tang, Jianchun Liu, Hongli Xu, Liusheng Huang

AI总结:

针对现有KV缓存压缩方法需手动设固定预算导致性能次优的问题,提出GVote自适应压缩方案,通过蒙特卡洛采样预测注意力需求自动确定预算,在多基准上实现2倍内存缩减且准确率更优或相当。

摘要:

大语言模型(LLM)的推理高度依赖KV缓存来加速自回归解码,但由此产生的内存占用会随序列长度快速增长,带来了显著的效率挑战。当前的KV缓存压缩方法存在“普罗克汝斯忒斯之床”问题:它们将多样化的工作负载强行适配固定压缩比,导致资源分配和推理性能次优。为此,我们提出GVote,一种自适应KV缓存压缩方案,它无需手动指定预算,同时能实现更优的准确率-效率权衡。GVote基于以下原理运行:重要的键是未来查询所需键的集合。该方法通过蒙特卡洛风格采样潜在查询来预测未来查询的注意力需求,并聚合所选键以确定最优缓存预算,无需手动指定。实验评估证明了GVote在多个基准(包括GSM8K、RULER和Longbench)上的有效性。与基线方法相比,GVote实现了2倍的内存缩减,同时准确率保持更高或相当。

英文摘要:

Large language models (LLMs) inference relies heavily on KV-caches to accelerate autoregressive decoding, but the resulting memory footprint grows rapidly with sequence length, posing significant efficiency challenges. Current KV-cache compression methods suffer from a Procrustes' bed problem: they force diverse workloads into fixed compression ratios, leading to suboptimal resource allocation and inference performance. To this end, we present GVote, an adaptive KV-cache compression scheme that eliminates manual budget specification while achieving superior accuracy-efficiency trade-offs. GVote operates on the principle that the important keys are the aggregation of keys required by future queries. The method predicts future query attention demands by Monte-Carlo style sampling potential queries and aggregating selected keys to determine the optimal cache budget without manual specification. Experimental evaluation demonstrates GVote's effectiveness across multiple benchmarks, including GSM8K, RULER and Longbench. Compared to baselines, GVote exhibits 2$\times$ memory reduction while the accuracy maintains higher or comparable.

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

↑