KVarN: Variance-Normalized KV-Cache Quantization [R]
retained text
<!-- SC_OFF --><div class="md"><p>Excited to share some of my own work here :) </p> <p><strong>KVarN</strong> is our new KV-Cache quantization method. In very brief, we combine Hadamard rotations with variance-normalization <em>on both axes</em> of the K and V matrices, then round to nearest. Simple, but works very well, especially for decode-heavy test-time-scaling settings (reasoning, code-gen, agentics). We get 3-4x compression at virtually no accuracy drop (mostly 0-1%) on tough benchmarks like AIME24 as well as a speed-up over fp16 baseline in vLLM (in contrast to other recent KV-Cache compression works).</p> <p>Behind it is an analysis of where quantization errors come from and have the biggest impact, especially in the error-accumulating decode setting: 1) fixing large errors is disproportionally useful (if you had a fixed MSE budget that you could ~fix, you should spend it on few big errors, rather than many small) 2) These big errors are mostly caused by bad token-scales (hence the normalization).</p> <p>Paper: <a href="https://arxiv.org/abs/2606.03458">https://arxiv.org/abs/2606.03458</a></p> <p>vLLM implementation: <a href="https://github.com/huawei-csl/KVarN">https://github.com/huawei-csl/KVarN</a></p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/intentionallyBlue"> /u/intentionallyBlue </a> <br /> <span><a href="https://www.reddit.com/r/MachineLearning/comments/1twnj5r/kvarn_variancenormalized_kvcache_quantization_r/">[link]</a></span>   <span><a href="https://www.reddit.com/r/MachineLearning/comments/1twnj5r/kvarn_variancenormalized_kvcache_quantization_r/">[comments]</a></span>
document fetched 2026-06-05 09:34