RateQuant: Optimal Mixed-Precision KV Cache Quantization via Rate-Distortion Theory
Fei Zuo, Zikang Zhou, Hao Cong, Xiaoyan Xi, Ho Fai Leung

TL;DR
RateQuant introduces a novel rate-distortion theory-based method for mixed-precision quantization of KV caches in large language models, significantly reducing memory usage without performance loss.
Contribution
It proposes RateQuant, a calibration-based approach that accurately models distortion curves for mixed-precision quantization, overcoming previous mismatch issues.
Findings
Reduces perplexity from 49.3 to 14.9 at 2.5 bits.
Achieves 70% reduction in memory cost.
Calibration takes only 1.6 seconds on a single GPU.
Abstract
Large language models cache all previously computed key-value (KV) pairs during generation, and this KV cache grows linearly with sequence length, making it a primary memory bottleneck for serving. Quantizing the KV cache to fewer bits reduces this cost, yet all current quantizers assign the same bit-width to every attention head, ignoring the large variation in head importance. A natural idea is to allocate more bits to important heads and fewer to the rest. We show, however, that such mixed-precision allocation has a hidden pitfall: each quantizer follows a different distortion curve D(b)=alpha*beta^{-b}, and the decay rate beta varies from 3.6 to 5.3 across quantizer designs. Applying one quantizer's distortion model to another inverts the allocation order and makes performance worse than uniform quantization. We call this failure mode distortion model mismatch and propose RateQuant…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
