Skip to content

TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate

Description

Quantize high-dimensional Euclidean vectors while minimizing distortion (MSE and inner product), overcoming limitations of existing methods.

Existing methods lack accelerator compatibility, are slow, or have suboptimal distortion bounds; Product Quantization (PQ) and RabitQ are benchmarks.

Training and deploying large-scale AI/deep learning models, powering vector databases, KV cache quantization for LLMs, nearest neighbor search.

Abstract

Vector quantization, a problem rooted in Shannon’s source coding theory, aims to quantize high-dimensional Euclideanvectorswhileminimizingdistortionintheirgeometricstructure. We propose Turbo Quant to address both mean-squared error (MSE) and inner product distor- tion, overcoming limitations of existing methods that fail to achieve optimal distortion rates. Our data-oblivious algorithms, suitable for online applications, achieve near-optimal distortion rates (within a small constant factor) across all bit-widths and dimensions. Turbo Quant achieves this by randomly rotating input vectors, inducing a concentrated Beta distribution on coordinates, and leveraging the near-independence property of distinct coordinates in high dimensions to simply apply optimal scalar quantizers per each coordinate. Recognizing that MSE-optimal quantizers introduce bias in inner product estimation, we propose a two-stage ap- proach: applying an MSE quantizer followed by a 1-bit Quantized JL (QJL) transform on the residual, resulting in an unbiased inner product quantizer. We also provide a formal proof of the information-theoretic lower bounds on best achievable distortion rate by any vector quan- tizer, demonstratingthat Turbo Quantcloselymatchesthesebounds, differingonlybyasmall constant ( ≈ 2.7) factor. Experimental results validate our theoretical findings, showing that for KV cache quantization, we achieve absolute quality neutrality with 3.5 bits per channel and marginalqualitydegradationwith 2.5 bitsperchannel. Furthermore, innearestneighborsearch tasks, ourmethodoutperformsexistingproductquantizationtechniquesinrecallwhilereducing indexing time to virtually zero.

Interested in this research?

Connect with the research team through a confidential meeting request.

Your identity is protected

Similar Studies

beta

Matched on domain, methodology, and content overlap.

No similar studies yet

Recommendations appear once more research is published in this area.

Browse all studies

Study Details

DomainVector quantization, AI, deep learning, source coding theory, search/retrieval systems.
AI Insights

Share this Study