KV-Kaizen: Learning Context-Adaptive Cache Compression Choices

Joao Monteiro, Louis Béthune, Anastasiia Filippova, Sonia Laguna, David Grangier, Marco Cuturi

TL;DR

KV-Kaizen is a context-adaptive framework that compresses Large Language Model (LLM) Key-Value (KV) caches by dynamically choosing per-layer compression strategies. By learning to mix-and-match cache sharing across layers, reduced bit-precision, and low-rank truncation, it achieves a 4× cache reduction with zero accuracy loss on models 7B and larger, and can reach 32× reduction when combined with token eviction.

What Problem Does This Paper Address?

As we push LLMs toward massive context windows, the KV cache—the memory used to store previous tokens' keys and values to avoid recomputation—becomes a massive bottleneck. For a model like Qwen2.5-14B, serving a few dozen users at 8k context can require 48 GiB of cache, exceeding the memory needed for the model weights themselves.

Because decoding is memory-bound, a bloated cache slows down throughput. While "token eviction" (dropping less important tokens) helps, it’s risky: a token that seems useless now might be critical for a query ten steps later. KV-Kaizen focuses on compaction without eviction, making the storage of every token more efficient rather than just throwing tokens away.

Methods

The authors propose that instead of applying one compression method uniformly, we should use a "Kaizen" approach: compounding many small, per-layer choices. They identify three axes of compression:

  1. Depth: Sharing one KV cache across multiple layers (cross-layer attention).
  2. Precision: Quantizing the cache to fewer bits (from 16 down to 2 bits).
  3. Rank: Truncating the latent representations in Multi-head Latent Attention (MLA) models.
The KV-Kaizen selector chooses from 17 actions per layer to meet a compression budget.

The core innovation is a learned selector—a tiny bidirectional transformer (less than 0.05% of the model's parameters). During the "pre-fill" stage, the selector looks at the input prompt and decides the optimal compression configuration for every single layer to meet a specific global memory budget. The model and selector are fine-tuned together, allowing the LLM to "learn" how to operate under these varying levels of information loss.

Datasets

The models were fine-tuned using the Dolci-Instruct-SFT mixture. Evaluation was performed across several standard benchmarks to test different capabilities:

  • IFEval: For instruction following.
  • GSM8K: For mathematical reasoning.
  • RULER (NIAH and SQuAD): For long-context retrieval and question answering at 16k tokens.

Key Insights and Ideas

  • Composition Over Aggression: The authors found that applying mild compression across all three axes (e.g., a bit of quantization + a bit of rank reduction) is far more effective than pushing a single method to its limit.
  • Context Adaptivity: The selector doesn't just pick a static "best" configuration; it adapts to the prompt. Some tasks might require high precision in early layers, while others can tolerate heavy sharing in the middle layers.
  • Scale is a Shield: Larger models are significantly more robust to cache compression. While a 3B model loses accuracy quickly, 7B and 14B models can be compressed 4× without any measurable degradation.
  • The "Big-Compressed" Advantage: A large model with a 4× compressed cache is more accurate than a smaller uncompressed model that uses the same amount of cache memory. This suggests it's better to train a large model and compress it later than to serve a natively small model.

Key Results

  • Pareto Frontier: KV-Kaizen consistently outperforms static configurations, random choices, and popular post-hoc quantization methods like KIVI.
  • Zero-Loss Compression: On Qwen2.5-7B and 14B, the method achieves 4× compression with no loss in accuracy on IFEval and GSM8K.
  • Massive Long-Context Savings: By combining KV-Kaizen (4×) with token eviction (8×), the researchers achieved a 32× smaller cache at 16k context on a 14B model while maintaining high accuracy.
  • Negligible Overhead: The selector runs once per prompt and takes only ~3ms, representing less than 0.2% of the total pre-fill time for long sequences.
Accuracy vs. cache compression. KV-Kaizen (black line) defines the Pareto frontier, outperforming all baselines.

Limitations and Future Work

  • Kernel Support: While the memory savings are real, realizing the full speed benefits requires specialized GPU kernels that can efficiently handle mixed-precision and mixed-width operations across different layers.
  • MLA Conversion: For models not originally trained with MLA, the conversion process (using CARE) introduces an initial accuracy hit that the compression must then overcome.
  • Training Cost: Jointly training the selector and backbone is more computationally expensive than simple post-hoc quantization, though the authors show that a single "budget-conditioned" selector can be trained to handle multiple compression targets at once.

Summary updated

BibTeX
@misc{monteiro2026kv,
  author = {Joao Monteiro and Louis Béthune and Anastasiia Filippova and Sonia Laguna and David Grangier and Marco Cuturi},
  title = {{KV-Kaizen: Learning Context-Adaptive Cache Compression Choices}},
  year = {2026},
  eprint = {2609.37988},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.37988},
}
Figure