KVSeal keeps long-context KV caches in lossless compressed form
Original title: KVSeal: Serving Long-Context LLMs with Losslessly Compressed KV Caches
Authors report about 1.3× resident KV compression and up to 1.19× end-to-end decode speedup versus stock vLLM.
KVSeal stores the resident KV cache of long-context LLMs in a lossless compressed page format so attention still sees every original K/V bit. The design uses concentration of BF16 KV exponents, fixed-length codes, and bounded escape storage, with each page carrying its own values and escape records so it can be reconstructed independently. Pages are compressed online as they fill, and decode attention reads raw and compressed pages, reconstructing values as it consumes them. The authors report about 1.3× resident KV compression, up to 1.27× decode attention speedup over FlashAttention-2, and up to 1.19× end-to-end decode speedup over stock vLLM.
Unconfirmed: Reported speedups are the authors' measurements; independent replication is not stated.
- Compression is lossless and bit-for-bit reconstructible per page.
- The format targets BF16 KV exponent concentration with fixed-length codes.
- Decode attention speedup is up to 1.27× versus FlashAttention-2.
- End-to-end decode speedup is up to 1.19× versus stock vLLM.
From the original article
1 min read at arxiv.orgLong 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.
By Hangyu Liang · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.