TRANSMISSION // 2611.40469v1

KVSeal compresses AI memory without changing its bits

Source published

A preprint presents a way to store large language models’ growing KV caches more compactly while reconstructing their original BF16 values exactly.

AI-generated conceptual illustration for KVSeal compresses AI memory without changing its bits
AI-generated conceptual illustration; not documentary evidence.

Long prompts make language models’ working memory expensive: every decode step reads a growing cache of keys and values. KVSeal aims to reduce that burden without dropping entries or rounding their values.

Why compress a cache without changing it?

When a large language model processes a prompt, it stores intermediate key and value data for each token in a structure called the KV cache. Keeping that data avoids recomputing it, but the cache grows with the context. During generation, attention repeatedly reads the stored history to decide what matters for the next token. At long contexts, that can make cache storage and memory traffic a major serving cost.

Many ways to reduce this cost are approximate: they may lower numerical precision or let attention skip some entries. Those trade-offs can be useful, but they alter what the model sees. Hangyu Liang and Zeyu Mi, researchers at Shanghai Jiao Tong University, ask whether a serving system can instead compress the cache while preserving every original value bit for bit—and do so quickly enough to help generation.

Their answer is KVSeal, a system described in an arXiv preprint. The work focuses on BF16, a 16-bit floating-point format commonly used for model data. In the authors’ measurements, BF16 values’ exponents tend to cluster in a narrow range. KVSeal represents common exponents with compact codes and stores uncommon cases in separate records, allowing exact reconstruction rather than approximation.

Pages that fit into a live serving system

A cache is not a fixed file: new tokens arrive, pages fill, and storage must be reused as requests progress. KVSeal therefore compresses completed cache pages independently. Each page carries its own exceptional-value records, so it can be recovered or reclaimed without relying on a shared recovery buffer for other pages.

Pages that are still filling stay in their original, or raw, format. Completed pages are compressed when they fit the reserved space for exceptional values; pages that do not fit remain raw. This means a request’s cache can contain both formats at once. The system keeps the same logical page sequence while tracking the pages’ physical locations and representations.

The authors also integrate reconstruction with attention. Rather than first expanding the entire compressed cache into BF16 in GPU memory and then reading it again, KVSeal reconstructs compressed values as attention consumes them. Separate attention paths handle raw and compressed pages, then combine their results. This matters because a separate expansion step could add memory traffic and erase some of compression’s benefit.

The team implemented KVSeal by extending FlashAttention-2 kernels and integrating with vLLM. Tests used NVIDIA RTX 4090 and L40S GPUs, four language models, and workloads including LongBench-v1 and PG-19. For the reported BF16 cache data, the authors found that a contiguous window of 16 exponent values covered 99.84–99.96% of values in most model and key/value distributions they examined. Exceptions were retained explicitly rather than discarded.

What the tests found—and what they do not establish

The paper reports about 1.3× resident-cache compression. In decode-attention tests, the fused compressed path was up to 1.27× faster than FlashAttention-2; end-to-end decode was up to 1.19× faster than stock vLLM. At a shared 96,000-token measurement point, the authors report 1.13×–1.19× decode speedups across four models. With the same KV budget, their tests also reached longer contexts than stock vLLM. These are results on the tested hardware and configurations, not a guarantee of the same gains elsewhere.

The representation reconstructs compressed BF16 cache values bit for bit. That does not mean every attention result or generated answer is bit-identical: floating-point calculations can differ when operations are grouped or reduced in a different order. In the reported LongBench evaluation, task scores were close between KVSeal and stock vLLM, but complete output sequences matched for 70.1% of Llama requests and 81.1% of Mistral requests. Exact cache recovery and identical model behavior are distinct claims.

There are practical limits. The method’s speed benefit depends on saved memory traffic outweighing reconstruction work; other GPUs may have a different balance. Prefill with many new tokens can also make reconstruction less attractive, and the authors use a different path for longer queries. The prototype was evaluated with MHA and GQA; extending it to other cache formats or attention states needs further work. The paper also says interactions with serving features such as eviction, preemption, and asynchronous scheduling remain to be evaluated.

KVSeal’s contribution is therefore a systems design for a specific opportunity: retaining all the BF16 cache data while storing many pages more compactly and feeding them to attention without a full-cache expansion step. The reported results are promising, but they come from a limited set of models, workloads, and GPUs. This is an arXiv preprint, not by itself evidence of peer review or independent replication; the claims should be read as the authors’ experimental findings, not as settled performance guarantees.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • How LoomKV makes more room for AI memory

    Shared method: Both papers describe lossless KV-cache compression used during decoding: KVSeal reconstructs compressed resident pages as attention consumes them, while LoomKV pool mode reads compressed GPU pages in a fused decode-attention kernel. Their layouts and serving designs differ, and their reported performance results are not directly comparable.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.40469v1 — Original paper

      Excerpt reference: static/papers/2611.40469v1.md:13-79
      Basis: Paper text
      Source file SHA-256: bea29b8d8cacc050ead29ec9b82826c99e5469a46810f5bb78e01571fb83721c

    • 2611.40469v1 — Original paper

      Excerpt reference: static/papers/2611.40469v1.md:145-220
      Basis: Paper text
      Source file SHA-256: bea29b8d8cacc050ead29ec9b82826c99e5469a46810f5bb78e01571fb83721c

    • 2611.32954v1 — Original paper

      Excerpt reference: static/papers/2611.32954v1.md:13-55
      Basis: Paper text
      Source file SHA-256: 3e7e6f7a776a62e82f813019ce2bdba4a5c1ad544d4e6527a6e95a85c58f2cef

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.