Papers
arxiv:2610.10381

ResidualQuant: KV Cache Quantization for Looped Transformers with 2-Bit Residuals

Published on Oct 7
Authors:
,
,
,
,

Abstract

ResidualQuant exploits similarity across recurrent loops in looped Transformers to quantize KV caches via low-precision residuals, enabling accurate INT2 quantization and substantial memory and throughput gains.

Looped Transformers improve parameter efficiency by repeatedly applying shared Transformer blocks over multiple recurrent loops, increasing computational depth without increasing the parameter count. However, KV cache memory still scales with the number of loops, becoming a key memory bottleneck that limits batch size and inference throughput. KV cache quantization can alleviate this bottleneck, but existing methods often suffer substantial accuracy degradation at aggressive low-precision regimes. We observe that looped Transformers offer a unique opportunity: KV states across loops are highly similar. Based on this observation, we propose ResidualQuant, which uses the final-loop KV states as a reference and represents the remaining loops with low-precision residuals. Our method further combines least-square scaling and rotations applied to the residuals, as well as loop-wise mixed precision, to enable accurate quantization down to INT2 while retaining efficient reconstruction. Across multiple looped Transformer models and mathematical reasoning and code generation benchmarks, ResidualQuant consistently improves the accuracy-memory tradeoff over state-of-the-art rotation-based KV quantization. In particular, our method retains accuracy close to BF16 under mixed-precision settings while reducing theoretical KV storage by 80.7%, achieving up to 13.0% higher accuracy than the rotation-based baseline at the same memory budget. On an RTX 5090, the reduced KV memory traffic improves fixed-batch decode throughput by up to 2.73x, while the smaller memory footprint enables up to 2x larger batches, improving peak throughput by up to 4.15x.

Community

Paper author
โ€ข
edited 4 days ago

What if Looped Transformers could share KV information across loops, just as they share weights? ResidualQuant stores the common pattern in a shared 4-bit anchor and encodes loop-specific differences as 2-bit residuals. Least-squares scaling and shared rotations make those differences easier to quantize without losing accuracy. On Ouro-1.4B, it preserves BF16-level accuracy with 80.7% less KV storage, enabling larger batches and 3.27ร— peak decode throughput at 8k context on an RTX 5090. ๐Ÿš€

last_loop_progression_reevaluation

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2610.10381
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2610.10381 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2610.10381 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2610.10381 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.