arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.09725cs.DCcs.LG
收藏

高效利用GPU原生视频编解码器实现远程KV缓存重用

Efficient Remote KV Cache Reuse with GPU-native Video Codec

Nanjing University(南京大学);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院(AIR))

Liang Mi, Weijun Wang, Jinghan Chen, Ting Cao, Haipeng Dai, Yunxin Liu

AI总结:

本文提出基于GPU原生视频编解码器的远程KV缓存重用方案,通过紧凑布局和高效传输减少TTFT,实验显示比现有方法提升3.51倍。

摘要:

远程KV缓存重用通过从远程存储获取相同上下文的KV缓存,避免重复计算,加速大语言模型推理。尽管其在高速网络中表现优异,但在带宽受限场景下性能显著下降。近期研究通过压缩KV缓存传输来解决此问题,但随之而来的重压解压缩过程抵消了KV重用的优势。本文提出一种高效且易于部署的远程KV缓存重用解决方案,利用GPU原生视频编解码器。我们的系统KVCodec通过两种技术实现有效的KV缓存编码。编解码器友好的张量布局将KV缓存压缩为高度紧凑的视频格式,实现快速传输。高效的KV获取器通过高效流水线方式协调传输、解码和恢复压缩的KV缓存,消除资源竞争,掩盖网络波动,实现最小的首次令牌时间(TTFT)。我们将在不同规格的GPU上原型化KVCodec。实验表明,与现有最佳方法相比,它在保持无损精度的情况下,将TTFT减少了多达3.51倍。

英文摘要:

Remote KV cache reuse fetches KV cache for identical contexts from remote storage, avoiding recomputation, accelerating LLM inference. While it excels in high-speed networks, its performance degrades significantly in bandwidth-limited scenarios. Recent studies address this by transmitting KV caches in compressed form, but the associated heavyweight decompression counteracts the KV reuse benefits. In this paper, we propose an efficient and widely deployable remote KV cache reuse solution that leverages GPU-native video codecs. Our system, KVCodec, enables effective KV cache coding with two techniques. The codec-friendly tensor layout compresses the KV cache in a highly compact video format, enabling fast transmission. The efficient KV fetcher orchestrates the transmission, decoding, and restoration of compressed KV caches in an efficient pipelined manner, eliminating resource contention, masking network fluctuations, and achieving minimum time-to-first-token (TTFT). We prototype KVCodec on diverse GPUs from high- to low-end. Experiments reveal that it reduces TTFT by up to 3.51 times while maintaining lossless accuracy, compared to SOTA methods.

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

↑