NSNQuant: A Double Normalization Approach for Calibration-Free Low-Bit Vector Quantization of KV Cache

Donghyun Son, Euntae Choi, Sungjoo Yoo
5/1/2025
11 citations

No official code found. Best implementation: DHdroid/NSNQuant (4 stars, MIT, last commit 2026-06-29).

Abstract

Large Language Model (LLM) inference is typically memory-intensive, especially when processing large batch sizes and long sequences, due to the large size of key-value (KV) cache. Vector Quantization (VQ) is recently adopted to alleviate this issue, but we find that the existing approach is susceptible to distribution shift due to its reliance on calibration datasets.

Show full abstract

To address this limitation, we introduce NSNQuant, a calibration-free Vector Quantization (VQ) technique designed for low-bit compression of the KV cache. By applying a three-step transformation-1) a token-wise normalization (Normalize), 2) a channel-wise centering (Shift), and 3) a second token-wise normalization (Normalize)-with Hadamard transform, NSNQuant effectively aligns the token distribution with the standard normal distribution. This alignment enables robust, calibration-free vector quantization using a single reusable codebook. Extensive experiments show that NSNQuant consistently outperforms prior methods in both 1-bit and 2-bit settings, offering strong generalization and up to 3$\times$ throughput gain over full-precision baselines. Code is available at https://github.com/DHdroid/NSNQuant.

View on arXivView PDF

Code Implementations(1)

DHdroid/NSNQuantCommunity100%
MIT

[NeurIPS 2025] NSNQuant: A Double Normalization Approach for Calibration-Free Low-Bit Vector Quantization of KV Cache

40Jun 29, 20265 months agoMIT
huggingface-transformerskv-cachekv-cache-compressionkv-cache-optimizationllm-inference-optimization+2 more

Similar Papers

Cite this paper

@article{son2025nsnquant,
  title  = {NSNQuant: A Double Normalization Approach for Calibration-Free Low-Bit Vector Quantization of KV Cache},
  author = {Donghyun Son and Euntae Choi and Sungjoo Yoo},
  year   = {2025},
  eprint = {2505.18231},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.18231},
  url    = {https://doi.org/10.48550/arXiv.2505.18231},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.18231.svg)](https://codeofpaper.com/paper/2505.18231)

Discussion