Back to AI News
arxiv

KVSeal: Lossless KV Cache Compression for Long-Context LLM Serving

KVSeal is a serving system that makes lossless compression the resident form of the KV cache, preserving every original K/V bit rather than evicting, sparsifying or quantizing entries. It exploits the concentration of BF16 KV exponents to build a page format with fixed-length codes and bounded escape storage, so each compressed page can be stored, reconstructed bit for bit and consumed by attention independently. A compression-aware page lifecycle manages raw and compressed pages as the cache grows, and decode attention reads both formats while reconstructing values on the fly. The authors report about 1.3x resident KV compression, up to 1.27x decode attention speedup over FlashAttention-2 and up to 1.19x end-to-end decode speedup over stock vLLM.

AI Brief

It offers a concrete, accuracy-preserving alternative to lossy KV cache reduction for long-context serving, with reported compression and speedup figures relevant to inference infrastructure teams.

arXiv:2611.40469v1 Announce Type: cross Abstract: Long context is what lets an LLM serve real workloads: a single request can carry an entire repository, a document collection, or a long agent trajectory. It also makes the KV Cache, rather than the model weights, the dominant serving cost, because the cache grows linearly with the context and every decode step rereads all of it. Eviction, sparse attention, and low-bit quantization shrink this cost by changing which K/V entries attention sees or what values they carry, so accuracy that holds on short prompts can collapse on the long-context tasks these systems target. Lossless compression can reduce KV storage while preserving every original K/V bit. Prior uses of lossless compression include shrinking static weights and reducing KV transfers between workers. Applying it to resident KV, however, requires the serving system to compress pages online as they fill, manage them independently as requests progress, and keep them accessible to decode attention. We present KVSeal, which makes lossless compression the resident form of the KV Cache. We exploit the strong concentration of BF16 KV exponents to design a lossless page format with fixed-length codes and bounded escape storage. Each compressed page carries its own encoded values and escape records, allowing it to be stored, reconstructed bit for bit, and consumed by attention independently of other pages. A compression-aware page lifecycle manages raw and compressed pages as the cache grows. During decode, attention reads both formats and reconstructs compressed values as it consumes them. KVSeal achieves about $1.3\times$ resident KV compression, up to $1.27\times$ decode attention speedup over FlashAttention-2, and up to $1.19\times$ end-to-end decode speedup over stock vLLM.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!