← All papers

TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate

Zandieh, Daliri, Hadian, Mirrokni · 2025 · ICLR 2026

EfficiencyRead on arXiv

Proposes a data-oblivious vector quantization method that achieves near-optimal distortion rates across all bit-widths by randomly rotating vectors and applying optimal scalar quantizers per coordinate. Achieves lossless KV cache compression at 3.5 bits per channel.

Key Idea

Existing vector quantization methods either require expensive data-dependent codebook training (product quantization) or sacrifice quality for speed. TurboQuant achieves near-optimal distortion with a data-oblivious approach: randomly rotate the input vectors, then apply simple scalar quantizers to each coordinate independently. This works because random rotation makes coordinates approximately independent and Beta-distributed, regardless of the original data distribution.

How It Works

  1. Random rotation: Apply a random orthogonal matrix to input vectors, this spreads information uniformly across coordinates
  2. Concentrated distribution: After rotation, each coordinate follows a concentrated Beta distribution (thanks to high-dimensional geometry)
  3. Optimal scalar quantization: Apply the information-theoretically optimal scalar quantizer for the resulting distribution to each coordinate independently
  4. Inner product estimation: For applications needing inner products (like attention), a two-stage method combines MSE quantization with a 1-bit Quantized Johnson-Lindenstrauss transform for unbiased estimation

Why It Matters

  • Near-optimal distortion within a small constant factor of the theoretical limit at any bit-width, a strong theoretical guarantee
  • Data-oblivious and online: No codebook training needed, works on streaming data, critical for KV cache quantization where vectors arrive one token at a time
  • KV cache compression: Achieves quality-neutral results at 3.5 bits per channel and marginal degradation at 2.5 bits, this is 4-6× compression of the KV cache
  • Zero indexing time for nearest-neighbor search: outperforms product quantization in recall while eliminating the expensive codebook lookup step
  • Provides a principled alternative to ad-hoc quantization schemes used in practice

Key Takeaways for Interviews

  • TurboQuant = random rotation + per-coordinate scalar quantization, simple but theoretically grounded
  • Key insight: random rotation makes any distribution amenable to independent per-coordinate quantization
  • Compare with product quantization (data-dependent, requires codebook training, expensive lookup), TurboQuant is data-oblivious with zero setup cost
  • For KV cache: 3.5 bits/channel is lossless, 2.5 bits/channel is near-lossless, enables 4-6× memory reduction during serving
  • In system design: combine with PagedAttention or MLA for multiplicative memory savings, TurboQuant compresses the values, MLA/GQA reduces the number of values