RateQuant: Optimal Mixed-Precision KV Cache Quantization via Rate-Distortion Theory

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zuo, Fei, Zhou, Zikang, Cong, Hao, Xi, Xiaoyan, Leung, Ho Fai
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913099241488384
author Zuo, Fei
Zhou, Zikang
Cong, Hao
Xi, Xiaoyan
Leung, Ho Fai
author_facet Zuo, Fei
Zhou, Zikang
Cong, Hao
Xi, Xiaoyan
Leung, Ho Fai
contents 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 to resolve it. RateQuant fits a per-quantizer distortion model from a small calibration set, then solves the resulting bit-allocation problem in closed form via reverse waterfilling from rate-distortion theory. On Qwen3-8B at 2.5 average bits, calibrated RateQuant reduces KIVI's perplexity from 49.3 to 14.9 (70% reduction) and improves QuaRot by 6.6 PPL. The entire calibration takes 1.6 s on a single GPU and adds zero overhead at inference time.
format Preprint
id arxiv_https___arxiv_org_abs_2605_06675
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle RateQuant: Optimal Mixed-Precision KV Cache Quantization via Rate-Distortion Theory
Zuo, Fei
Zhou, Zikang
Cong, Hao
Xi, Xiaoyan
Leung, Ho Fai
Machine Learning
Computation and Language
Information Theory
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 to resolve it. RateQuant fits a per-quantizer distortion model from a small calibration set, then solves the resulting bit-allocation problem in closed form via reverse waterfilling from rate-distortion theory. On Qwen3-8B at 2.5 average bits, calibrated RateQuant reduces KIVI's perplexity from 49.3 to 14.9 (70% reduction) and improves QuaRot by 6.6 PPL. The entire calibration takes 1.6 s on a single GPU and adds zero overhead at inference time.
title RateQuant: Optimal Mixed-Precision KV Cache Quantization via Rate-Distortion Theory
topic Machine Learning
Computation and Language
Information Theory
url https://arxiv.org/abs/2605.06675