Reproduce “RateQuant: Optimal Mixed-Precision KV Cache Quantization via Rate-Distortion Theory” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Fei Zuo, Zikang Zhou, Hao Cong, Xiaoyan Xi, Ho Fai Leung

The RATEQUANT framework enables optimal mixed-precision quantization for Key-Value (KV) caches in large language models by applying rate-distortion theory to allocate bit-widths per attention head. It recovers an average of 75.7% of perplexity degradation and 82.0% of accuracy degradation compared to uniform quantization, reducing KV cache memory by 4x while maintaining near-FP16 performance.

Key insights

  • Optimal mixed-precision bit allocation can be achieved by formalizing the problem with rate-distortion theory, providing a closed-form solution for continuous bit-widths.
  • Gradient-based sensitivity estimation is a robust and superior proxy for KV cache allocation compared to activation-based methods, directly reflecting a head's contribution to model loss.
  • Explicit distortion model calibration is crucial to avoid 'distortion model mismatch' between different quantizers, which otherwise inverts marginal gain orderings and degrades performance.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.