arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.18071cs.CL
收藏

KVDrive: 一个面向长上下文LLM推理的多层级KV缓存管理系统

KVDrive: A Holistic Multi-Tier KV Cache Management System for Long-Context LLM Inference

Hong Kong University of Science and Technology China(香港科技大学中国);Xi’an Jiaotong University China(西安交通大学中国)

Jian Lin, Jiazhi Mi, Zicong Hong, Haodong Wang, Qianli Liu, Haodyue Zhang, Peng Li, Song Guo

AI总结:

本文提出KVDrive,一个面向长上下文LLM推理的多层级KV缓存管理系统,通过联合缓存放置、流水线调度和跨层级协调,实现了高吞吐量的推理,在有限的GPU预算下保持高精度。

摘要:

支持长上下文LLM存在挑战,因为键值(KV)缓存的大量内存需求。现有的卸载系统将完整的缓存存储在主机内存中,并在解码过程中选择性地获取关键条目,但这种策略很快达到极限:无法进一步稀释而不影响准确性。因此,当上下文长度和批处理大小增加时,KV传输的体积急剧上升,成为解码延迟的主要来源。我们提出了KVDrive,一个横跨GPU内存、主机DRAM和SSD的多层级KV缓存管理系统。与之前通过算法改进追求更高稀疏度的工作不同,KVDrive从系统角度出发,联合缓存放置、流水线调度和跨层级协调,以在有限的GPU预算下维持高吞吐量的推理。KVDrive实现了三个基本能力:它根据注意力行为调整缓存管理以最大化重用并最小化冗余数据移动;它重构解码流水线以重叠I/O和CPU/GPU计算瓶颈阶段,消除异构资源中的停滞;并且它协调内存层级之间的数据移动,解锁远超GPU和DRAM限制的可扩展长上下文推理。我们已经实现了一个完整的KVDrive原型,并在长上下文基准测试中评估了流行LLM。该系统在保持准确性的同时,相比最先进的工作实现了高达1.74倍的吞吐量提升。

英文摘要:

Supporting long-context LLMs is challenging due to the substantial memory demands of the key-value (KV) cache. Existing offloading systems store the full cache in host memory and selectively fetch critical entries during decoding, but this strategy quickly hits a ceiling: sparsity cannot be pushed further without degrading accuracy. As a result, when context length and batch size grow, the volume of KV transfers rises sharply and becomes the dominant source of decoding latency. We present KVDrive, a holistic multi-tier KV cache management system spanning GPU memory, host DRAM, and SSD. Unlike prior work that pursues greater sparsity through algorithmic refinements, KVDrive tackles the problem from a systems perspective - jointly orchestrating cache placement, pipeline scheduling, and cross-tier coordination to sustain high-throughput inference under tight GPU budgets. KVDrive advances three fundamental capabilities: it adapts cache management to attention behavior to maximize reuse and minimize redundant data movement; it restructures the decoding pipeline to overlap I/O- and CPU/GPU compute-bound stages, eliminating stalls across heterogeneous resources; and it harmonizes data movement across memory tiers to unlock scalable long-context inference far beyond GPU and DRAM limits. We have implemented a fully functional prototype of KVDrive and evaluated it on long-context benchmarks with popular LLMs. The system achieves up to 1.74x higher throughput compared to state-of-the-art works while preserving accuracy.

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

↑