SealKV: Accurate Low-Bit KV Compression for Faster LLM Inference

Lijie Yang, Tri Dao, Ravi Netravali, Rajarshi Saha, Muhammed Fatih BalınarXiv 2026

TL;DR

Long-context reasoning and agentic AI workloads are bottlenecked by the key–value (KV) cache, which grows with every generated token and must be re-read at every decoding step. SealKV is the first calibration-free KV-cache compression method that delivers high accuracy, low memory, and fast serving all at once. By quantizing completed blocks of tokens with a fast, short-window trellis code and fusing dequantization directly into the attention kernel, SealKV shrinks KV memory by up to $6.6\times$ and boosts peak 64K-context decode throughput in vLLM to $2.81\times$ (at 4 bits) and $3.44\times$ (at 2 bits) over BF16.

Figure 1: 3 and 4 bits are effectively lossless and 2 bits beat all evaluated 2-bit baselines, while every setting reaches 2.81–3.44× BF16 decode throughput at 64K context, ahead of all baselines. SealKV (K2V2, K4V2, K4V4) versus low-bit KV-cache baselines (gray) on Qwen3-8B. (a) Block-sealed KV caching; RHT, BMS, and per-token scaling; and fused on-chip attention. (b) Mean accuracy change from BF16 versus bits/value; (c) Peak end-to-end decode throughput at 64K context.

What Problem Does This Paper Address?

In modern LLM serving—especially for chain-of-thought reasoning and multi-turn agents—the KV cache has become the primary performance bottleneck. Because decode attention is memory-bandwidth-bound, reading a massive KV cache at every step slows down generation and caps how many requests can run concurrently.

Compressing the KV cache only pays off if it hits three targets simultaneously: high quality, low memory, and fast serving. Existing approaches tend to drop at least one:

  • Token eviction discards information that later queries might need.
  • Scalar quantization (like INT4) codes each number independently, losing accuracy at very low bit widths.
  • Rotation and vector quantization (like QTIP or TurboQuant) approach theoretical compression limits, but either require expensive offline calibration, are too slow to encode online, or lack co-designed kernels—resulting in smaller caches that actually decode slower than BF16.

Methods

SealKV brings Computed Permutation Trellis Coding (CPTC)—a joint vector-quantization technique—to an online, continuously growing KV cache through three main pieces:

  1. Block-Sealed Caching: Instead of quantizing every token the instant it arrives, SealKV keeps the first few "sink" tokens and a recent sliding window in BF16. Once a block of $B$ tokens is complete, it is "sealed" all at once in a single batched launch across layers, decoupling encoding from the newest token.
  2. RHT + Block-Mean Subtraction (BMS): Before coding, SealKV applies a Randomized Hadamard Transform (RHT) to spread out channel outliers. Crucially, it then measures and subtracts the block's per-channel mean (BMS), followed by per-token scaling.
  3. Short-Window CPTC & Fused Attention: SealKV shrinks CPTC's trellis window from $L=16$ to $L=10$, allowing a specialized Viterbi encoder to run online. At read time, a co-designed CUDA kernel reads the compressed codes, reconstructs values in registers via shared-memory lookup tables (LUTs), and folds the block mean into the attention math in closed form—never writing dequantized values back to HBM.

Datasets

Because SealKV is calibration-free, no datasets are used for training or offline tuning. For evaluation, the authors test across diverse benchmarks:

  • Reasoning, Coding & Retrieval: GPQA-D, HumanEval, AIME-25/26, MATH-500, 32K multi-key needle-in-a-haystack (NIAH), LongBench, and 64K RULER (multi-key/query/value NIAH, variable tracking, SQuAD QA).
  • Language Modeling: WikiText-2 (for KL divergence).
  • Multi-Turn Agentic Tasks: SWE-bench Verified and $\tau^2$-bench (airline and retail).

Evaluations span Qwen3 (4B, 8B, 14B, and 30B-A3B) and GPT-OSS (20B and 120B).

Key Insights and Ideas

  • Trellis coding has a massive speed–quality asymmetry: Search cost grows exponentially with the trellis window $L$, but quality barely budges. Shortening CPTC's window from $L=16$ to $L=10$ loses only $0.14$ effective bits on a Gaussian source, while cutting search work $64\times$ and shrinking the codebook from 128 KiB to 2 KiB so it fits on chip.
  • Channel offsets survive rotation: Neighboring tokens share a persistent per-channel offset. Orthogonal rotations (like RHT) redistribute this offset across channels but cannot remove it, forcing quantizers to waste precious bits representing it in every token. Subtracting it once per sealed block (BMS) frees up bandwidth for token-specific variation—and even boosts existing quantizers (SAW-INT4, TQ-4bit, NVFP4) by 16.7–32.2 points on GPT-OSS-120B.
Figure 2: Channel offsets persist after RHT. Per-layer averages of per-(head, channel) RMS and standard deviation of keys and values over all tokens of 24 AIME-25 traces for Qwen3-8B, before (a,b) and after (c,d) RHT; the cross-layer non-zero mean motivates BMS in the rotated basis.
  • Smaller caches don't automatically run faster: Without a fused kernel that avoids memory writebacks and minimizes instruction overhead, compression can hurt throughput (as seen with TurboQuant's vLLM kernel).

Key Results

  • Effectively lossless at 3–4 bits: On Qwen3-4B/8B/14B, 3-bit (K3V3, K4V2) and 4-bit (K4V4) SealKV stay within 0.7 points of BF16 across the six-task reasoning/coding/retrieval mean. On 64K RULER (Qwen3-8B), K4V4 is within 0.6 points of BF16, and on GPT-OSS-120B, 4-bit SealKV hits 94.2% on AIME-25 (vs. 95.0% BF16).
  • State-of-the-art at 2 bits: At 2.41 bits/value ($6.6\times$ memory reduction), K2V2 loses just 0.37 points on Qwen3-14B (and 2.35 / 3.81 on 8B / 4B), outperforming all evaluated 2-bit baselines and even calibrated 3-bit OSCAR.
  • End-to-end vLLM speedup: On an H100 serving Qwen3-8B at 64K context, SealKV achieves $2.81\times$ (K4V4) and $3.44\times$ (K2V2) peak decode throughput over BF16, outpacing SAW-INT4 ($1.38\times$), OSCAR ($2.00\times$), and TurboQuant ($0.24\times$).

Limitations and Future Work

SealKV's main systems bottleneck is software-based LUT reconstruction: while fewer payload bits reduce HBM traffic, every value still requires a shared-memory lookup, which caps further speedups at lower bit widths. The authors note that on hardware with native datapath support for CPTC decoding—such as AWS Trainium 4—this lookup overhead disappears, allowing speedups to scale more directly with the inverse bit width.

Summary updated

BibTeX
@misc{yang2026sealkv,
  author = {Lijie Yang and Tri Dao and Ravi Netravali and Rajarshi Saha and Muhammed Fatih Balın},
  title = {{SealKV: Accurate Low-Bit KV Compression for Faster LLM Inference}},
  year = {2026},
  eprint = {2612.02036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.02036},
}
Figure