跳到正文
arXiv (AI + Vision + Imaging)· Yipin Guo, Siddharth Joshi·· 8 天前AI 评分36

SplitZip:面向分离式LLM推理的超快无损KV压缩方案

SplitZip: Ultra Fast Lossless KV Compression for Disaggregated LLM Serving

AI 导读

SplitZip是面向分离式LLM推理KV缓存传输的GPU无损压缩器,可逐位保持KV张量且无需修改模型执行。它利用KV激活浮点指数冗余,以固定长度编码高频指数、稀疏逃逸流处理稀有指数,配合校准的top-16指数码本省去在线直方图统计。在真实BF16张量上压缩吞吐达613.3 GB/s、解压2181.8 GB/s,端到端KV传输提速最高1.32倍、TTFT提速1.30倍、请求吞吐提升1.23倍。

正文 · 原文

arXiv:2605.01708v4 Announce Type: replace-cross Abstract: Contemporary systems serving large language models (LLMs) have adopted prefill-decode disaggregation to load-balance between the compute-bound prefill phase and the memory-bound decode phase. Under this design, prefill workers generate a KV cache that must be transferred to decode workers before generation can begin. With these workers residing on different physical systems, this transfer becomes a significant bottleneck to serving LLMs at scale, especially for long-input and agentic workloads. Existing lossless codecs are unsuitable here as they primarily target offline weight compression, run on CPUs, or use variable-length coding whose compression cannot keep up with KV production during prefill. We introduce SplitZip, a GPU-friendly lossless compressor for KV cache transfer that preserves KV tensors bitwise and integrates into existing serving frameworks without modifying model execution. SplitZip exploits redundancy in floating-point exponents of KV activations, encoding frequent exponent values with fixed-length codes and routing rare exponents through a sparse escape stream of (position, value). A calibrated top-16 exponent codebook eliminates online histogramming, while the regular dense path and sparse escape correction make both encoding and decoding efficient on GPUs. On real BF16 activation tensors, SplitZip achieves $613.3$ GB/s compression throughput and $2181.8$ GB/s decompression throughput, outperforming prior lossless compressors on the critical codec path. End-to-end transfer experiments show up to $1.32\times$ speedup for BF16 KV cache transfer, $1.30\times$ speedup for TTFT, and $1.23\times$ increase in Request Throughput. The same approach extends to FP8 KV caches, providing up to $1.14\times$ compression over native E5M2. Code is available at https://github.com/Intelligent-Microsystems-Lab/SplitZip

来源:arXiv (AI + Vision + Imaging) · arxiv.org