arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.14946cs.OScs.AIcs.LG
收藏

EVICPRESS: 多存储层级的KV缓存联合压缩与驱逐以提高LLM服务效率

EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Serving

University of Chicago(芝加哥大学);UC Berkeley(伯克利大学);Tensormesh, Inc.(Tensormesh公司);MIT(麻省理工学院);UC Santa Cruz(圣克拉拉大学);Stanford(斯坦福大学);Microsoft(微软公司)
Shaoting Feng, Yuhan Liu, Hanchen Li, Xiaokun Chen, Samuel Shen, Kuntai Du, Zhuohan Gu, Rui Zhang, Yuyang Huang, Yihua Cheng, Jiayi Yao, Qizheng Zhang, Ganesh A… 展开作者

Shaoting Feng, Yuhan Liu, Hanchen Li, Xiaokun Chen, Samuel Shen, Kuntai Du, Zhuohan Gu, Rui Zhang, Yuyang Huang, Yihua Cheng, Jiayi Yao, Qizheng Zhang, Ganesh Ananthanarayanan, Junchen Jiang

AI总结:

EVICPRESS通过联合优化KV缓存压缩与驱逐策略,提高LLM服务效率,实现更低延迟和高质量生成。

摘要:

在大规模语言模型(LLM)推理系统中,复用KV缓存对于提高效率至关重要。随着更多LLM用户,KV缓存的占用空间可能轻易超过GPU内存容量,因此先前的工作提出了要么将KV缓存驱逐到低层级存储设备,要么压缩KV缓存以便在高速内存中容纳更多KV缓存。然而,先前的工作错过了一个重要机会:在所有KV缓存上联合优化驱逐和压缩决策,以在不损害质量的情况下最小化平均生成延迟。我们提出了EVICPRESS,一种应用于多存储层级的KV缓存管理系统,采用有损压缩和自适应驱逐技术。具体而言,对于每个上下文的KV缓存,EVICPRESS考虑压缩和驱逐该KV缓存对所有上下文的平均生成质量和延迟的整体影响。为此,EVICPRESS提出了一个统一的效用函数,量化了有损压缩或驱逐的效用。为此,EVICPRESS的配置模块定期更新所有可能的驱逐-压缩配置的效用函数分数,并在所有存储层级上使用快速启发式方法重新排列KV缓存,目标是最大化每个存储层级的效用函数分数。与仅驱逐或压缩KV缓存的基线相比,EVICPRESS在高速设备上实现了更高的KV缓存命中率,即更低的延迟,同时通过保守压缩敏感于压缩误差的上下文来保持高质量的生成。在12个数据集和5个模型上的评估显示,EVICPRESS在等效生成质量下实现了高达2.19倍的首次标记时间(TTFT)提升。

英文摘要:

Reusing KV cache is essential for high efficiency of Large Language Model (LLM) inference systems. With more LLM users, the KV cache footprint can easily exceed GPU memory capacity, so prior work has proposed to either evict KV cache to lower-tier storage devices, or compress KV cache so that more KV cache can be fit in the fast memory. However, prior work misses an important opportunity: jointly optimizing the eviction and compression decisions across all KV caches to minimize average generation latency without hurting quality. We propose EVICPRESS, a KV-cache management system that applies lossy compression and adaptive eviction to KV cache across multiple storage tiers. Specifically, for each KV cache of a context, EVICPRESS considers the effect of compression and eviction of the KV cache on the average generation quality and delay across all contexts as a whole. To achieve this, EVICPRESS proposes a unified utility function that quantifies the effect of quality and delay of the lossy compression or eviction. To this end, EVICPRESS's profiling module periodically updates the utility function scores on all possible eviction-compression configurations for all contexts and places KV caches using a fast heuristic to rearrange KV caches on all storage tiers, with the goal of maximizing the utility function scores on each storage tier. Compared to the baselines that evict KV cache or compress KV cache, EVICPRESS achieves higher KV-cache hit rates on fast devices, i.e., lower delay, while preserving high generation quality by applying conservative compression to contexts that are sensitive to compression errors. Evaluation on 12 datasets and 5 models demonstrates that EVICPRESS achieves up to 2.19x faster time-to-first-token (TTFT) at equivalent generation quality.

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

↑