KAIST's ResidualQuant: 2-bit Residual Quantization Shrinks Looped Transformer KV Cache
KAIST SEAL (led by Heejun Kim, with Sehoon Kim and others) published ResidualQuant, a 2-bit residual quantization scheme that cuts the KV cache of Looped Transformers by 80% and delivers up to 4.15x decoding throughput on an RTX 5090 — a key step toward making looped architectures practical.
Confirmed
- Problem: Looped Transformers reuse a shared set of weights across loops for more computation, but every loop produces its own K/V states, so the KV cache grows linearly with loop count; the example config Ouro-1.4B (8192 tokens, 24 layers) at 4 loops already faces significant cache overhead, amplified by longer contexts and larger batches.
- Approach — "share the pattern, store only the difference": KV states across loops are highly similar; naively quantizing everything to low bits loses information. ResidualQuant uses the last loop as a shared anchor (4-bit) and stores only the 2-bit residual of each loop relative to it; reconstruction reads back anchor plus residual.
- Key insight: reconstruct one loop first, then store differences — residuals have fewer outliers and can be represented in very few bits.
- Compression: KV cache storage drops 80% (one post cites 80.7%); on MATH500, accuracy rises from 27.8% to 76%, indicating the method beats naive low-bit quantization baselines rather than trading accuracy.
- Throughput: on an RTX 5090 with Ouro-1.4B versus BF16, compression reduces per-request memory traffic and frees VRAM for more concurrent requests, lifting peak decoding throughput up to 4.15x (16K context; gains also at 8K and 4K).
Why it matters
- Looped / weight-reuse architectures trade small parameter counts for more compute depth, but linear KV cache growth is the key bottleneck to deployment; ResidualQuant directly targets it while improving throughput and concurrency.
- The "shared anchor + low-bit residual" design exploits similarity across looped states and may inform other cache-compression problems with redundant states.
2026-10-12 ~ 2026-10-12 · 10 related posts
Primary sources
- ResidualQuant compresses Looped Transformer KV cache: 80% less memory, 3-4x decode throughput — sehoonkim418 ·
- KAIST's ResidualQuant cuts KV cache storage 80.7% with 2-bit residuals for Looped Transformers — sehoonkim418 ·
- ResidualQuant on RTX 5090: 4.15x decode throughput at 16K context vs BF16 — sehoonkim418 ·
- ResidualQuant: 2-bit residuals cut Looped Transformer KV cache 80%, 3.3x decode — sehoonkim418 · 2026-10-12
- [source] ResidualQuant compresses Looped Transformer KV cache: 80% less memory, 3-4x decode throughput — sehoonkim418 · 2026-10-12
- Loop-similar KV states leave low-outlier residuals, enabling cheap KV cache quantization — sehoonkim418 · 2026-10-12
- How ResidualQuant works: share a 4-bit anchor, store each loop's KV residual in 2 bits — sehoonkim418 · 2026-10-12
- ResidualQuant: 2-bit KV cache quantization lifts MATH500 accuracy from 27.8% to 76% — sehoonkim418 · 2026-10-12
- [source] ResidualQuant on RTX 5090: 4.15x decode throughput at 16K context vs BF16 — sehoonkim418 · 2026-10-12
- ResidualQuant KV Cache Compression Boosts Decode Throughput Up to 4.15x on RTX 5090 — sehoonkim418 · 2026-10-12
3 near-duplicate retellings: sehoonkim418 · sehoonkim418 · sehoonkim418