TurboQuant
TurboQuant is an online vector quantization algorithm for compressing high-dimensional Euclidean vectors while preserving their geometric structure. It was proposed in 2025 by Amir Zandieh, Majid Daliri, Majid Hadian, and Vahab Mirrokni in the paper TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate. The paper lists Zandieh and Mirrokni as affiliated with Google Research, Daliri with New York University, and Hadian with Google DeepMind. The method was developed for applications including large language model (LLM) inference, key–value (KV) cache compression, vector databases, and nearest neighbor search. TurboQuant consists of two related algorithms: TurboQuant mse... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
TurboQuant is an online vector quantization algorithm for compressing high-dimensional Euclidean vectors while preserving their geometric structure. It was proposed in 2025 by Amir Zandieh, Majid Daliri, Majid Hadian, and Vahab Mirrokni in the paper TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate. The paper lists Zandieh and Mirrokni as affiliated with Google Research, Daliri with New York University, and Hadian with Google DeepMind. The method was developed for applications including large language model (LLM) inference, key–value (KV) cache compression, vector databases, and nearest neighbor search. TurboQuant consists of two related algorithms: TurboQuant mse , which is optimized for mean squared error (MSE), and TurboQuant prod , which is optimized for unbiased inner product estimation. The algorithm uses a random rotation of input vectors, applies scalar quantizers to the rotated coordinates, and, for inner-product estimation, applies a one-bit Quantized Johnson–Lindenstrauss (QJL) transform to the residual error. z=\Pi x . Each coordinate of the rotated vector follows a shifted and scaled beta distribution, which converges to a normal distribution in high dimensions. In high dimensions, distinct coordinates also become nearly independent, allowing the algorithm to apply scalar quantizers independently to each coordinate. The scalar quantizer is constructed by solving a one-dimensional continuous k-means or Lloyd–Max quantization problem. If the centroids are c_1,c_2,\ldots,c_{2^b} , the quantization step stores, for each coordinate, \mathrm{idx}_j=\operatorname*{arg\,min}_{k\in[2^b]} |z_j-c_k|. During dequantization, the stored index for each coordinate is replaced by the corresponding centroid, giving a reconstructed rotated vector \tilde{z} . The algorithm then rotates back: \tilde{x}=\Pi^\top \tilde{z}. The paper gives the following bound for TurboQuant mse : D_{\mathrm{mse}}\leq \frac{\sqrt{3\pi}}{2}\cdot \frac{1}{4^b}. It also reports finer-grained MSE values of approximately 0.36, 0.117, 0.03, and 0.009 for bit-widths b=1,2,3,4 , respectively. r=x-Q_{\mathrm{mse}}^{-1}(Q_{\mathrm{mse}}(x)) be the residual after MSE quantization, and let \gamma=\|r\|_2 . The QJL step stores a sign vector for the residual. For \gamma\ne 0 , this can be written using the normalized residual u=r/\gamma : qjl=\operatorname{sign}(Su), where S\in\mathbb{R}^{d\times d} is a random projection matrix. Since the sign function is invariant under positive rescaling, this is equivalent to \operatorname{sign}(Sr) when r\ne 0 . If \gamma=0 , the residual correction is zero. TurboQuant prod stores the MSE quantization, the QJL sign vector, and the residual norm: Q_{\mathrm{prod}}(x)= \left[ Q_{\mathrm{mse}}(x), qjl, \gamma \right]. The dequantized vector is reconstructed as \tilde{x}= \tilde{x}_{\mathrm{mse}}+ \frac{\sqrt{\pi/2}}{d}\,\gamma S^\top qjl . The paper proves that TurboQuant prod is unbiased for inner-product estimation: \mathbb{E}_{\tilde{x}}\left[\langle y,\tilde{x}\rangle\right] = \langle y,x\rangle . It also gives the distortion bound D_{\mathrm{prod}}\leq \frac{\sqrt{3\pi}}{2} \cdot \frac{\|y\|_2^2}{d} \cdot \frac{1}{4^b}.
Cite this
"TurboQuant". 1785138549. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1366320777 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy