RaBitQ: Quantizing High-Dimensional Vectors with a Theoretical Error Bound for Approximate Nearest Neighbor Search
Abstract
Searching for approximate nearest neighbors (ANN) in the high-dimensional Euclidean space is a pivotal problem. Recently, with the help of fast SIMD-based implementations, Product Quantization (PQ) and its variants can often efficiently and accurately estimate the distances between the vectors and have achieved great success in the in-memory ANN search. Despite their empirical success, we note that these methods do not have a theoretical error bound and are observed to fail disastrously on some real-world datasets. Motivated by this, we propose a new randomized quantization method named RaBitQ, which quantizes D-dimensional vectors into D-bit strings. RaBitQ guarantees a sharp theoretical error bound and provides good empirical accuracy at the same time. In addition, we introduce efficient implementations of RaBitQ, supporting to estimate the distances with bitwise operations or SIMD-based operations. Extensive experiments on real-world datasets confirm that (1) our method outperforms PQ and its variants in terms of accuracy-efficiency trade-off by a clear margin and (2) its empirical performance is well-aligned with our theoretical analysis.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
72 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Practical and Asymptotically Optimal Quantization of High-Dimensional Vectors in Euclidean Space for Approximate Nearest Neighbor Search cites A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search
- Practical and Asymptotically Optimal Quantization of High-Dimensional Vectors in Euclidean Space for Approximate Nearest Neighbor Search cites Accelerating Large-Scale Inference with Anisotropic Vector Quantization
- A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search cites Improving Approximate Nearest Neighbor Search through Learned Adaptive Early Termination
- Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Models cites Towards Efficient Index Construction and Approximate Nearest Neighbor Search in High-Dimensional Spaces
- SymphonyQG: Towards Symphonious Integration of Quantization and Graph for Approximate Nearest Neighbor Search cites A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search
- SymphonyQG: Towards Symphonious Integration of Quantization and Graph for Approximate Nearest Neighbor Search cites Accelerating Large-Scale Inference with Anisotropic Vector Quantization
- SymphonyQG: Towards Symphonious Integration of Quantization and Graph for Approximate Nearest Neighbor Search cites Towards Efficient Index Construction and Approximate Nearest Neighbor Search in High-Dimensional Spaces
- Achieving Low-Latency Graph-Based Vector Search via Aligning Best-First Search Algorithm with SSD cites A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search
- Achieving Low-Latency Graph-Based Vector Search via Aligning Best-First Search Algorithm with SSD cites Improving Approximate Nearest Neighbor Search through Learned Adaptive Early Termination
- Achieving Low-Latency Graph-Based Vector Search via Aligning Best-First Search Algorithm with SSD cites Towards Efficient Index Construction and Approximate Nearest Neighbor Search in High-Dimensional Spaces
- Towards Efficient Index Construction and Approximate Nearest Neighbor Search in High-Dimensional Spaces cites A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search
- Steiner-Hardness: A Query Hardness Measure for Graph-Based ANN Indexes cites A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search
- Steiner-Hardness: A Query Hardness Measure for Graph-Based ANN Indexes cites Improving Approximate Nearest Neighbor Search through Learned Adaptive Early Termination
- Steiner-Hardness: A Query Hardness Measure for Graph-Based ANN Indexes cites Towards Efficient Index Construction and Approximate Nearest Neighbor Search in High-Dimensional Spaces
Cited by top-tier papers72
- Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language ModelsWenqi Jiang, Marco Zeller, Roger Waleffe, Torsten Hoefler et al.VLDB 2025 · 50 citations
- Practical and Asymptotically Optimal Quantization of High-Dimensional Vectors in Euclidean Space for Approximate Nearest Neighbor SearchJianyang Gao, Yutong Gou, Yuexuan Xu, Yongyi Yang et al.SIGMOD 2025 · 29 citations
- Achieving Low-Latency Graph-Based Vector Search via Aligning Best-First Search Algorithm with SSDHao Guo, Youyou LuOSDI 2025 · 26 citations
- SymphonyQG: Towards Symphonious Integration of Quantization and Graph for Approximate Nearest Neighbor SearchYutong Gou, Jianyang Gao, Yuexuan Xu, Cheng LongSIGMOD 2025 · 21 citations
- Steiner-Hardness: A Query Hardness Measure for Graph-Based ANN IndexesZeyu Wang, Qitong Wang, Xiaoxing Cheng, Peng Wang et al.VLDB 2024 · 19 citations
Builds on22
- Accelerating Large-Scale Inference with Anisotropic Vector QuantizationRuiqi Guo, Philip Sun, Erik Lindgren, Quan Geng et al.ICML 2020 · 539 citations
- A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor SearchMengzhao Wang, Xiaoliang Xu, Qiang Yue, Yuxiang WangVLDB 2021 · 354 citations
- Learning Space Partitions for Nearest Neighbor SearchYihe Dong, Piotr Indyk, Ilya P. Razenshteyn, Tal WagnerICLR 2020 · 104 citations
- Towards Efficient Index Construction and Approximate Nearest Neighbor Search in High-Dimensional SpacesXi Zhao, Yao Tian, Kai Huang, Bolong Zheng et al.VLDB 2023 · 88 citations
- Improving Approximate Nearest Neighbor Search through Learned Adaptive Early TerminationConglong Li, Minjia Zhang, David G. Andersen, Yuxiong HeSIGMOD 2020 · 86 citations
Related papers
- GPU-Native Approximate Nearest Neighbor Search with IVF-RaBitQ: Fast Index Build and SearchJifan Shi, Jianyang Gao, James Xia, Tamas B. Fehér et al.VLDB 2026 · 7 citations
- SAQ: Pushing the Limits of Vector Quantization through Code Adjustment and Dimension SegmentationHui Li, Shiyuan Deng, Xiao Yan, Xiangyu Zhi et al.SIGMOD 2026 · 1 citation
- LoRANN: Low-Rank Matrix Factorization for Approximate Nearest Neighbor SearchElias Jääsaari, Ville Hyvönen, Teemu RoosNeurIPS 2024 · 11 citations
- Fast Adaptive Similarity Search through Variance-Aware QuantizationJohn Paparrizos, Ikraduya Edian, Chunwei Liu, Aaron J. Elmore et al.ICDE 2022 · 34 citations
- Not Small Enough? SegPQ: A Learned Approach to Compress Product Quantization CodebooksQiyu Liu, Yanlin Qi, Siyuan Han, Jingshu Peng et al.VLDB 2025 · 1 citation
