Papers

LoomKV:面向 LLM 服务的无损 KV Cache 压缩,从 GPU 显存延伸到 SSD

LoomKV: Lossless KV Cache Compression from GPU Memory to SSD for LLM Serving

Why we picked it

做 LLM 推理服务的工程师值得看:vLLM 和 LMCache 直接可用,KV cache 压到 0.71 倍还不丢精度,TTFT 最多降 3.1 倍。跟有损压缩方案不同,它是逐位无损的,多轮对话和 Agent 场景收益最大。

LoomKV 是一个针对 LLM 推理服务的无损 KV Cache 压缩系统,论文标注编号 arXiv 2611.32954v1。它提供两种模式:tier 模式作用于从 GPU 到 DRAM/SSD 的外部存储层级,pool 模式直接压缩 GPU 内的 KV 池,均无需改动推理引擎。技术上采用校准的 per-head 两级 3-bit 编码,作用在 BF16 高字节(符号位加 7 个指数位)上,BF16 KV 压到原始大小的 0.71,FP8 KV 为 0.85-0.87,覆盖九个模型。

Body

tier 模式下,TileStream 以精确长度写入记录并将长度读取移出加载路径,取回的记录直接解压进分散的 GPU 页;pool 模式下,FragPack 将变长记录打包进更小的共享预算 GPU 页,由融合的 decode-attention 内核原位读取,速度超过 FlashAttention-3 处理 BF16 的水平。系统基于 LMCache 和 vLLM 构建。

在 AgentX 工作负载上,压缩后的层级等效于 1.4 倍的原始容量:跨 LMCache 的 LRU 悬崖,tier 模式提供 2.7-3.6 倍原始 goodput,平均首 token 时间(TTFT)降低 1.9-3.1 倍,并通过 SSD 到 DRAM 的提升将重复 prompt 的 TTFT 削减至多 1.7 倍。pool 模式可容纳 1.31-1.34 倍的 GPU token 数,将长请求并发从 8 提到 12。容量充足时压缩最多损失 2.2% 吞吐;tier 模式与原始数据逐位一致,pool 模式精度与 FlashAttention-3 相当。

Original · arXiv cs.AI

LoomKV: Lossless KV Cache Compression from GPU Memory to SSD for LLM Serving

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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include KV Cache, vLLM, LMCache, FlashAttention-3.

Source attribution: curated from arXiv cs.AI (@Wentao Zhu, Ziao Sheng, Peng Deng, Huiqi Hu, Xuan Zhou, Xing Wei, Zhuang Wang).