TL;DR
NOVA-KV is a novel KV cache compression method that achieves extreme 2-bit quantization while preserving large language model (LLM) accuracy over long contexts. By framing KV cache reduction as an attention-preserving transform coding problem, the authors derive an optimal non-orthogonal transform for keys and pair it with a volume-equalizing vector quantization strategy. This approach prevents performance collapse on challenging architectures like hybrid-attention Mixture-of-Experts (MoE) models while delivering significant throughput gains.
What Problem Does This Paper Address?
As LLMs are deployed with increasingly long context windows, the Key-Value (KV) cache becomes a massive computational bottleneck. During the autoregressive decoding phase, the entire KV cache must be loaded from memory at every single step. As shown in Figure 1, this makes decoding heavily memory-bandwidth bound rather than compute-bound, especially at large batch sizes.
To alleviate this, researchers have turned to aggressive quantization (e.g., down to 2 bits per element). However, standard quantization methods cause severe accuracy degradation. Existing state-of-the-art methods try to mitigate this using data-oblivious orthogonal transforms (like Hadamard rotations) to flatten feature variances, but they fail to optimize directly for the actual downstream task: preserving the attention matrix products. Furthermore, they struggle with modern architectural innovations like hybrid-attention and Mixture-of-Experts (MoE) models, where information density in the cache is much higher.
Methods
The authors introduce NOVA-KV (Non-Orthogonal Vector-quantized Attention for KV cache), which treats compression through the lens of classical Rate-Distortion theory but swaps standard Mean Squared Error (MSE) for an attention-product distortion metric.
The core pipeline consists of two main phases, illustrated in Figure 2:
- The Non-Orthogonal Key Transform: Mathematically, minimizing attention logit error reveals that the optimal transform for key vectors ($R_K$) is actually non-orthogonal. This transform satisfies a generalized Parseval relation, warping the attention-aware distortion into a standard MSE problem in the transform domain. This allows the error to be steered away from high-energy query directions.
- Volume-Equalizing Vector Quantization (VQ): Standard transform coding allocates a variable number of bits to different coefficients based on variance, which breaks the fixed-width memory layout required by high-performance serving engines. NOVA-KV solves this by sorting transform coefficients and grouping them into equal-volume partitions. This mathematical trick allows equal-sized VQ codebooks to achieve the theoretical performance of variable-rate quantization while maintaining a strict fixed-width layout.
Datasets
- Calibration: The transforms and codebooks are calibrated offline using 198 prompts from the GPQA-Diamond dataset (processed in prefill-only mode). Ablation studies also evaluated calibration on MMLU to demonstrate domain robustness.
- Evaluation: Long-context retrieval was tested using the RULER NIAH (Needle-in-a-Haystack) benchmark across context lengths from 8K to 128K. Downstream reasoning and coding capabilities were evaluated using GPQA-Diamond, HumanEval, LiveCodeBench v6, AIME25, and MATH500, alongside long-document QA suites like LongBench and LooGLE.
Key Insights and Ideas
- The MSE Trap: Minimizing standard key-reconstruction MSE (such as via the Karhunen-Loève Transform / KLT) does not correlate with maintaining attention fidelity. As shown in Figure 3, NOVA-KV accepts a higher standard MSE to achieve significantly better top-1 attention agreement.
- Embracing Non-Orthogonality: While virtually all prior KV compression techniques strictly enforce orthogonal rotations, this paper proves that non-orthogonal transforms are mathematically required to optimally preserve the key-query inner product under high-resolution quantization assumptions.
- Smart Grouping Over Variance Flattening: Instead of multiplying by random matrices to artificially flatten variances across all channels (which destroys coding efficiency), grouping un-flattened coefficients into equal-volume vectors allows fixed-rate hardware to reap the benefits of energy compaction.
Key Results
- Robustness Against Collapse: On the hybrid-attention MoE model GPT-OSS-20B, prior 2-bit state-of-the-art methods (like OSCAR and QuaRot) completely collapsed, achieving 0% accuracy across almost all context lengths. NOVA-KV successfully stabilized the model, retaining 54.0% accuracy at 128K context (compared to the uncompressed BF16 baseline of 80.4%).
- Long-Context Accuracy: On Qwen3-8B at a massive 128K context window, NOVA-KV achieved 75.4% accuracy on RULER NIAH, vastly outperforming OSCAR (25.3%) and QuaRot (0.0%).
- Throughput Gains: Implemented with a fused Triton/CUDA decoding kernel in SGLang, NOVA-KV achieved a 1.6× to 3.1× decode throughput speedup over uncompressed BF16 on Qwen3-8B for batch sizes 1 and 4, matching the speed of less accurate scalar baselines.
Limitations and Future Work
- Independent Arm Optimization: Currently, NOVA-KV derives the key transform and the value transform independently based on an upper bound of the attention error. The authors note that joint quantization of keys and values remains an open and promising direction for future work.
- Asymptotic Assumptions: The mathematical framework relies on high-resolution quantization theory (assuming high bitrates), which technically stretches thin at ultra-low rates like 2 bits per element, even though empirical results show the design principles still hold strong.
Summary updated