arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.38121

WUSH-KV: KV Cache Quantization with Data-Adaptive Transforms

Jiale Chen, Vage Egiazarian, Eldar Kurtić, Torsten Hoefler, Dan Alistarh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

KV cache memory and bandwidth costs grow with context length and batch size, which limits efficient long-context inference. To address this bottleneck, we introduce WUSH-KV for low-bit KV-cache quantization. It adapts WUSH, which constructs a data-aware transform from the second-order statistics of both factors in a matrix product to reduce quantization error. WUSH-KV uses calibration data to construct separate key and value transforms, with the value transform folded into the model weights and the key transform applied after RoPE. The transforms can be paired with clipped quantizers. For one such quantizer, QuEST INT, we show that, under mild assumptions, the WUSH transform is near-optimal. With this quantizer, WUSH-KV reduces layerwise reconstruction error and achieves the lowest end-to-end perplexity among other tested transforms. For end-to-end evaluation, we integrate WUSH-KV into SGLang using OSCAR-style percentile-clipped affine quantization. At 2-bit, WUSH-KV performs comparably to or outperforms the OSCAR transform across all evaluated models and downstream tasks.

1 Introduction

Large language models are increasingly used with long contexts and large serving batches. This puts growing pressure on the memory capacity and bandwidth of inference systems. One important source of this cost is the key-value (KV) cache. During autoregressive generation, each attention layer stores the keys and values of previous tokens so that they do not need to be recomputed. The cache grows linearly with sequence length and batch size, and it is repeatedly read as new tokens are generated. As a result, the KV cache can become a major bottleneck for long-context inference. Low-bit quantization provides a simple way to reduce its memory footprint and data movement. Yet, aggressive quantization can introduce large errors into both attention scores and outputs.

Changes of basis (linear transforms) can make cached vectors easier to quantize, but the quality of the transform should also reflect how quantization errors propagate through attention. Key errors affect query-key products, whereas value errors affect projected attention outputs. This motivates separate transforms that account for both cache statistics and downstream

*. This author was affiliated with Red Hat AI during part of this work.

sensitivity. WUSH (Chen et al., 2026) was recently introduced as a principled approach to joint weight-activation quantization. It constructs a closed-form invertible transform from the second-order statistics of both factors in a matrix product. This product-aware view naturally extends to the KV cache.

In this work, we adapt WUSH from weight-activation quantization to KV-cache quantization. We call the resulting method WUSH-KV. For each KV head, WUSH-KV constructs separate transforms for keys and values using calibration-time statistics. The key transform accounts for the query heads that consume the cached keys. The value transform accounts for the output-projection blocks that consume the cached values. The value-side transform can be folded into the model weights and therefore adds no online transform cost. The key-side transform and its query-side compensation are applied after headwise normalization (when present) and rotary positional encoding. The WUSH transforms operate independently of the scalar quantizer and can be paired with per-token clipped quantizers. WUSH-KV also retains sink and recent cache entries in full precision. Our theoretical analysis focuses on the QuEST (Panferov et al., 2025) quantizer. Under an additive rounding-noise model and explicit conditions on normalized tails and clipping errors, we show that the ideal WUSH transform is near-optimal among transforms with balanced coordinate sensitivity. The controlled reconstruction study uses the same quantizer to isolate transform quality, while the end-to-end evaluations use the percentile-clipped affine quantizer from the OSCAR (Zhou et al., 2026) concurrent work. In our experiments, WUSH-KV consistently reduces attention reconstruction error and achieves the lowest perplexity among all existing methods. In 2-bit downstream benchmarks, it scores higher than OSCAR on all four Qwen3-8B tasks and is competitive at 4B and 32B.

References (21)