arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.14779cs.AR
收藏

统一KV池化以加速长上下文LLM服务

Unified KV Pooling to Accelerate Long-Context LLM Serving

Korea University(高丽大学);KT Corporation(KT公司)

Minchul Kang, Changyong Shin, Jinwoo Jeong, Jaerim Park, Woohyun Kim, Bonyul Gu, Dongwoo Kang, Gyeongsik Yang, Chuck Yoo

AI总结:

针对长上下文LLM服务中KV缓存卸载到主机内存和SSD时的高延迟问题,提出统一KV池化方法,聚合多设备并绕过内核文件系统,实现TTFT降低约4.1倍。

摘要:

长上下文LLM服务需要将KV缓存卸载到主机内存和SSD,但现有机制并非为如此长的上下文设计。我们观察到当前长上下文中KV缓存的显著低效:服务延迟高达约30.7秒,超过典型TTFT要求(10秒)3倍以上。我们的深入分析解释了两个主要原因:(1)检索通过主机内存和SSD串行化,导致其他主机内存模块和SSD利用率不足;(2)基于SSD的KV检索将84%的时间花费在内核文件系统而非实际设备访问。为解决这些问题,我们提出统一KV池化,将多个主机内存模块和SSD聚合到单个逻辑池中,并根据设备带宽分布KV缓存。为消除文件系统开销,我们设计了KV直通,绕过内核文件系统,通过SPDK从用户空间直接访问SSD驻留的KV缓存。在LLaMA 3.1-8B、GPT-OSS-20B和Qwen3-30B-A3B上的评估表明,统一KV池化在长上下文中将TTFT相比最先进技术降低约4.1倍,均低于10秒。通过消除文件系统开销,它还减少了高达23.2倍的阻塞I/O时间。

英文摘要:

Long-context LLM serving requires offloading KV caches to host-memory and SSDs, but existing mechanisms are not designed for such long contexts. We observe significant inefficiencies in current KV caching in long contexts: high serving latency ~30.7 s, exceeding the typical TTFT requirement of 10 s by more than 3x. Our in-depth analysis explains two major reasons: (1) retrieval is serialized through host-memory and SSD, leaving other host-memory modules and SSDs underutilized, and (2) SSD-based KV retrieval spends 84% of its time in the kernel filesystem rather than actual device access. To address the problems, we propose unified KV pooling, which aggregates multiple host-memory modules and SSDs into a single logical pool and distributes KV caches across devices based on their bandwidth. To eliminate the filesystem overhead, we design KV-passthrough, which bypasses the kernel filesystem and directly accesses SSD-resident KV caches from user space via SPDK. Across evaluations on LLaMA 3.1-8B, GPT-OSS-20B, and Qwen3-30B-A3B, unified KV pooling reduces TTFT in long-contexts ~4.1x over state-of-the-art techniques, all making under 10 s. It also reduces blocked I/O time by up to 23.2x by eliminating filesystem overhead.

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

↑