TL;DR
WUSH-KV introduces data-adaptive linear transforms to enable high-quality 2-bit quantization of the Key-Value (KV) cache in Large Language Models. By leveraging second-order statistics of both the cached data and its downstream consumers, it significantly reduces reconstruction errors and outperforms existing state-of-the-art methods on reasoning and long-context tasks.
What Problem Does This Paper Address?
As Large Language Models (LLMs) are deployed for longer contexts and larger batches, the KV cache—which stores keys and values of previous tokens to avoid recomputation—becomes a massive memory and bandwidth bottleneck. While 4-bit quantization is becoming standard, pushing to 2-bit quantization often leads to catastrophic drops in model accuracy.
The core challenge is that quantization error isn't "one size fits all." An error in a Key vector affects the attention scores (query-key products), while an error in a Value vector affects the final attention output. Existing methods often treat these vectors in isolation or use fixed rotations (like Hadamard transforms) that don't account for how the model actually uses the data.
Methods
The authors adapt WUSH (originally designed for weight-activation quantization) to the specific needs of the KV cache. The method, WUSH-KV, works by finding a linear transform $T$ that makes vectors easier to quantize while minimizing the impact on the final output.
Key technical components include:
- Product-Aware Transforms: Instead of just looking at the distribution of K or V, WUSH-KV uses calibration data to build transforms based on the Hessian of the loss. This accounts for how sensitive the model is to errors in specific directions.
- Separate K and V Strategies:
- Value Transform ($T_V$): This is "folded" into the model's existing weights ($W_V$ and $W_O$) offline, meaning it adds zero computational overhead during inference.
- Key Transform ($T_K$): Because Keys are transformed by Rotary Positional Embeddings (RoPE), the transform is applied online after RoPE. This adds a small computational cost but is necessary for accuracy.
- Near-Optimality: The authors provide a theoretical proof showing that under a standard rounding-noise model, the WUSH transform is near-optimal among all sensitivity-balanced transforms.
- Hybrid Precision: To maintain stability, the method keeps a small "sink" window (the first few tokens) and a "recent" window (the most recent tokens) in full precision (FP16).
Datasets
The authors evaluated WUSH-KV across a diverse suite of benchmarks:
- Calibration: FineWeb-Edu (128 sequences) was used to gather the statistics needed to build the transforms.
- Perplexity: WikiText-2 was used to measure general language modeling quality.
- Reasoning Benchmarks: AIME 2025, MATH-500, GPQA Diamond, and LiveCodeBench v6 were used to test high-level reasoning across different model sizes (Qwen3-4B, 8B, and 32B).
- Long-Context: RULER NIAH (Needle-In-A-Haystack) and OpenAI MRCR (Multi-Round Chat Reconstruction) tested performance at context lengths up to 128k tokens.
Key Insights and Ideas
- Anisotropy is an Advantage: Unlike the concurrent OSCAR method, which restricts transforms to be orthogonal (rotations only), WUSH-KV allows general invertible transforms. This "anisotropic" freedom allows the method to rescale different dimensions to better balance data variance against model sensitivity.
- Layer-wise Sensitivity: As shown in Figure 1, the first few layers of the model are often the most sensitive to quantization. WUSH-KV provides the largest error reductions in these critical early stages.
- Hessian vs. Gram: While simple data statistics (Gram matrices) help, incorporating the "downstream partner" (the Hessian) is what allows WUSH-KV to protect the most important information in the cache.
Key Results
- Perplexity: On Qwen3-8B at 2-bit, WUSH-KV achieved a perplexity of 10.51, significantly better than the state-of-the-art OSCAR (13.74) and far superior to fixed Hadamard transforms, which exploded to 258.29.
- Downstream Reasoning: In 2-bit benchmarks, WUSH-KV consistently outperformed OSCAR. For example, on LiveCodeBench v6 with Qwen3-8B, WUSH-KV scored 35.2% compared to OSCAR's 20.4%.
- Long-Context Robustness: WUSH-KV maintained much higher accuracy at extreme context lengths. On RULER NIAH at 128k tokens, WUSH-KV retained 57.26% accuracy, while OSCAR dropped to 25.69%.
- Efficiency: The value-side transform is free. The key-side transform adds $d^2$ multiply-accumulates per position, which is a small price to pay for the 8x reduction in memory footprint (moving from FP16 to INT2).
Limitations and Future Work
- Online Key Overhead: The dense $T_K$ transform must be computed for every new token. While small compared to the total attention cost, it is not "free." The authors suggest exploring structured transforms (like Kronecker products) to reduce this cost in future work.
- Quantizer Tuning: The downstream evaluations used OSCAR's tuned clipping ratios. The authors note that WUSH-KV might perform even better if the quantizer's clipping parameters were optimized specifically for the WUSH-transformed distributions.
- System Integration: While integrated into SGLang, further system-level optimization could improve throughput and better hide the latency of the online key transform.
Summary updated