arXiv cs.AI· Wentao Zhu, Ziao Sheng, Peng Deng, Huiqi Hu, Xuan Zhou, Xing Wei, Zhuang Wang·· 1 小时前AI 评分45
LoomKV:面向 LLM 服务的无损 KV cache 压缩方案,从 GPU 内存延伸到 SSD
LoomKV: Lossless KV Cache Compression from GPU Memory to SSD for LLM Serving
AI 导读
LoomKV 是一个针对 LLM 服务的无损 KV cache 压缩系统,可在不改引擎的情况下同时作用于外部分层(tier mode)与 GPU 池(pool mode),基于 BF16 高字节的每头两级 3-bit 编码,将 BF16 KV 压至原始大小的 0.71、FP8 KV 压至 0.85-0.87。
正文 · 原文
Abstract:Large language model (LLM) serving engines offload the key/value (KV) cache from GPU memory to host DRAM and SSD so multi-turn and agent requests can reuse prompt prefixes. Capacity then limits service at two levels: external tiers govern prefix reuse before eviction, while the GPU KV pool bounds concurrent long requests, and lossy compression alters KV values and outputs. LoomKV brings lossless KV compression to both external tiers (tier mode) and the GPU pool (pool mode) on an unmodified engine. Using a calibrated per-head two-level 3-bit code over BF16 high bytes (sign and upper seven exponent bits), LoomKV stores BF16 KV at 0.71 of its raw size across nine models and FP8 KV at 0.85-0.87. In tier mode, TileStream writes exact-length records with length readback off the load path, leaving tier storage, eviction, and prefetch unchanged, and decompresses fetched records straight into scattered GPU pages. In pool mode, FragPack packs variable-length records into smaller shared-budget GPU pages read in place by a fused decode-attention kernel faster than FlashAttention-3 on BF16. Built with LMCache and vLLM, LoomKV makes compressed tiers act as 1.4x larger raw tiers on AgentX: across LMCache's LRU cliff, tier mode delivers 2.7-3.6x raw's goodput and 1.9-3.1x lower mean time-to-first-token (TTFT), shifts the cliff identically under other simulated replacement policies, and cuts repeated-prompt TTFT up to 1.7x via SSD-to-DRAM promotion. When tiers hold the working set, pool mode fits 1.31-1.34x as many GPU tokens, admitting 12 long requests with roughly raw's queue and goodput at 8. On an AI IDE trace where both tiers and the GPU pool are constrained, tier and pool modes raise goodput by 1.24x and 1.59x. Where raw capacity suffices, compression costs at most 2.2% throughput; tier mode is bit-exact with raw tiers, and pool mode matches FlashAttention-3's numerical accuracy.
| Comments: | 16 pages, 12 figures, 5 tables |
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.32954 [cs.AI] |
| (or arXiv:2611.32954v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2611.32954 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Huiqi Hu Mr [view email]
[v1]
Tue, 24 Nov 2026 16:54:37 UTC (391 KB)
来源:arXiv cs.AI · arxiv.org