KVSeal
A lossless compression method for the persistent KV cache in LLM inference. It exploits the statistical redundancy of the BF16 exponent distribution and employs fixed-length coding and escape records to achieve page-level independent compression and reconstruction, reducing memory bandwidth demand without loss of accuracy.
Timeline (last 90 days)
KVSeal achieves a resident KV cache compression ratio of approximately 1.3x.
KVSeal achieves up to a 1.27x speedup in decoding attention compared with FlashAttention-2.
KVSeal achieves up to a 1.19x speedup in end-to-end decoding compared with native vLLM.
KVSeal exploits the strong concentration of BF16 KV exponents to design a lossless page format with fixed-length encoding and bounded escape storage.
Each KVSeal compressed page carries its own encoded values and escape records, and can be stored independently, reconstructed bit by bit, and consumed by attention.
KVSeal's compression-aware page lifecycle manages original pages and compressed pages: when the cache grows, new pages are filled in the original format and then compressed online.
During decoding, KVSeal's attention mechanism reads both original and compressed formats and reconstructs compressed values in real time as they are consumed.
KVSeal's page-independent design facilitates integration into existing inference frameworks, and the paper has demonstrated compatibility with vLLM.
All Facts (8)
KVSeal achieves a resident KV cache compression ratio of approximately 1.3x.
50%UnverifiedKVSeal achieves up to a 1.27x speedup in decoding attention compared with FlashAttention-2.
50%UnverifiedKVSeal achieves up to a 1.19x speedup in end-to-end decoding compared with native vLLM.
50%UnverifiedKVSeal exploits the strong concentration of BF16 KV exponents to design a lossless page format with fixed-length encoding and bounded escape storage.
50%UnverifiedEach KVSeal compressed page carries its own encoded values and escape records, and can be stored independently, reconstructed bit by bit, and consumed by attention.
50%UnverifiedKVSeal's compression-aware page lifecycle manages original pages and compressed pages: when the cache grows, new pages are filled in the original format and then compressed online.
50%UnverifiedDuring decoding, KVSeal's attention mechanism reads both original and compressed formats and reconstructs compressed values in real time as they are consumed.
50%UnverifiedKVSeal's page-independent design facilitates integration into existing inference frameworks, and the paper has demonstrated compatibility with vLLM.
50%