CoChat

RaBitQ: Quantizing High-Dimensional Vectors with a Theoretical Error Bound for Approximate Nearest Neighbor Search

Gao, Jianyang, Long, Cheng · 2024 · Proceedings of the ACM on Management of Data
Cited by 103

The DOI matches its Crossref record; 16 of the 16 references it cites were found in a registry or an index.

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.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3654970

Cites

16 of 16 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 16 references

Research works printed but not linked: 79

  1. 10.14778/3611479.3611537 · DOI
  2. 10.1137/060673096 · DOI · Paper page
  3. Noga Alon and Bo'az Klartag. 2017. Optimal Compression of Approximate Inner Products and Dimension Reduction. In 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS). 639--650. https://doi.org/10.1109/ FOCS.2017.65
  4. 10.14778/2856318.2856324 · DOI · Paper page
  5. 10.1145/3078971.3078992 · DOI · Paper page
  6. Martin Aumüller and Matteo Ceccarello. 2023. Recent Approaches and Trends in Approximate Nearest Neighbor Search, with Remarks on Benchmarking. Data Engineering (2023), 89.
  7. 10.1109/CVPR.2014.124 · DOI · Paper page
  8. Dmitry Baranchuk, Dmitry Persiyanov, Anton Sinitsin, and Artem Babenko. 2019. Learning to Route in Similarity Graphs. In Proceedings of the 36th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 97), Kamalika Chaudhuri and Ruslan Salakhutdinov (Eds.). PMLR, 475--484. https://proceedings.mlr. press/v97/baranchuk19a.html
  9. 10.1145/1143844.1143857 · DOI · Paper page
  10. 10.1145/509907.509965 · DOI · Paper page
  11. 10.1145/3543507.3583318 · DOI
  12. Qi Chen, Bing Zhao, Haidong Wang, Mingqin Li, Chuanjie Liu, Zengzhong Li, Mao Yang, and Jingdong Wang. 2021. SPANN: Highly-efficient Billion-scale Approximate Nearest Neighbor Search. In 35th Conference on Neural Information Processing Systems (NeurIPS 2021).
  13. Paolo Ciaccia, Marco Patella, and Pavel Zezula. 1997. M-Tree: An Efficient Access Method for Similarity Search in Metric Spaces. In Proceedings of the 23rd International Conference on Very Large Data Bases (VLDB '97). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 426--435.
  14. 10.1145/1374376.1374452 · DOI · Paper page
  15. Magdalen Dobson, Zheqi Shen, Guy E Blelloch, Laxman Dhulipala, Yan Gu, Harsha Vardhan Simhadri, and Yihan Sun. 2023. Scaling Graph-Based ANNS Algorithms to Billion-Size Datasets: A Comparative Analysis. arXiv preprint arXiv:2305.04359 (2023). · arXiv
  16. Yihe Dong, Piotr Indyk, Ilya Razenshteyn, and Tal Wagner. 2020. Learning Space Partitions for Nearest Neighbor Search. In International Conference on Learning Representations. https://openreview.net/forum?id=rkenmREFDr
  17. 10.1109/CVPR.2018.00384 · DOI
  18. Punit Pankaj Dubey, Bhisham Dev Verma, Rameshwar Pratap, and Keegan Kang. 2022. Improving sign-randomprojection via count sketch. In Proceedings of the Thirty-Eighth Conference on Uncertainty in Artificial Intelligence (Proceedings of Machine Learning Research, Vol. 180), James Cussens and Kun Zhang (Eds.). PMLR, 599--609. https: //proceedings.mlr.press/v180/dubey22a.html
  19. 10.14778/3476311.3476407 · DOI
  20. 10.14778/3282495.3282498 · DOI
  21. 10.1145/3512767 · DOI
  22. 10.1145/354756.354820 · DOI
  23. Casper Benjamin Freksen. 2021. An Introduction to Johnson-Lindenstrauss Transforms. CoRR abs/2103.00564 (2021). arXiv:2103.00564 https://arxiv.org/abs/2103.00564 · arXiv
  24. Cong Fu, ChangxuWang, and Deng Cai. 2021. High dimensional similarity search with satellite system graph: Efficiency, scalability, and unindexed query compatibility. IEEE Transactions on Pattern Analysis and Machine Intelligence (2021).
  25. 10.1145/2213836.2213898 · DOI · Paper page
  26. 10.1145/3589282 · DOI
  27. 10.1109/CVPR.2013.379 · DOI · Paper page
  28. 10.14778/3397230.3397243 · DOI
  29. 10.1109/TPAMI.2012.193 · DOI · Paper page
  30. 10.5555/3524938.3525302 · doi:10.5555/3524938.3525302
  31. 10.14778/2850469.2850470 · DOI · Paper page
  32. 10.5555/3294996.3295022 · doi:10.5555/3294996.3295022
  33. 10.1137/20M1371324 · DOI
  34. Junhyeok Jang, Hanjin Choi, Hanyeoreum Bae, Seungjun Lee, Miryeong Kwon, and Myoungsoo Jung. 2023. CXL-ANNS: Software-Hardware Collaborative Memory Disaggregation and Computation for Billion-Scale Approximate Nearest Neighbor Search. In 2023 USENIX Annual Technical Conference (USENIX ATC 23). USENIX Association, Boston, MA, 585--600. https://www.usenix.org/conference/atc23/presentation/jang
  35. Suhas Jayaram Subramanya, Fnu Devvrit, Harsha Vardhan Simhadri, Ravishankar Krishnawamy, and Rohan Kadekodi. 2019. DiskANN: Fast Accurate Billion-point Nearest Neighbor Search on a Single Node. In Advances in Neural Information Processing Systems, H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (Eds.), Vol. 32. Curran Associates, Inc. https://proceedings.neurips.cc/paper/2019/file/09853c7fb1d3f8ee67a61b6bf4a7f8e6- Paper.pdf
  36. Jianqiu Ji, Jianmin Li, Shuicheng Yan, Bo Zhang, and Qi Tian. 2012. Super-Bit Locality-Sensitive Hashing. In Proceedings of the 25th International Conference on Neural Information Processing Systems - Volume 1 (Lake Tahoe, Nevada) (NIPS'12). Curran Associates Inc., Red Hook, NY, USA, 108--116.
  37. 10.1145/3581784.3607045 · DOI
  38. William B Johnson and Joram Lindenstrauss. 1984. Extensions of Lipschitz mappings into a Hilbert space 26. Contemporary mathematics 26 (1984), 28.
  39. 10.1145/2559902 · doi:10.1145/2559902
  40. Keegan Kang andWeipinWong. 2018. Improving Sign Random Projections With Additional Information. In Proceedings of the 35th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 80), Jennifer Dy and Andreas Krause (Eds.). PMLR, 2479--2487. https://proceedings.mlr.press/v80/kang18b.html
  41. 10.1137/S0040585X97981846 · doi:10.1137/s0040585x97981846
  42. 10.1109/FOCS.2017.64 · DOI
  43. 10.1145/3318464.3389778 · DOI
  44. 10.1145/3318464.3380600 · DOI
  45. 10.1145/3183713.3183750 · DOI
  46. 10.1109/TKDE.2022.3220683 · DOI
  47. 10.1145/3132847.3132901 · DOI
  48. Zihan Liu, Wentao Ni, Jingwen Leng, Yu Feng, Cong Guo, Quan Chen, Chao Li, Minyi Guo, and Yuhao Zhu. 2023. JUNO: Optimizing High-Dimensional Approximate Nearest Neighbour Search with Sparsity-Aware Algorithm and Ray-Tracing Core Mapping. arXiv:2312.01712 [cs.DC] · arXiv
  49. 10.14778/3489496.3489506 · DOI
  50. 10.14778/3397230.3397240 · DOI
  51. 10.1016/j.is · doi:10.1016/j.is
  52. Julieta Martinez, Joris Clement, Holger H. Hoos, and James J. Little. 2016. Revisiting Additive Quantization. In Computer Vision -- ECCV 2016, Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling (Eds.). Springer International Publishing, Cham, 137--153.
  53. 10.1007/978--3-030-01270-0_30 · doi:10.1007/978--3-030-01270-0_30
  54. 10.3169/mta.6.2 · DOI
  55. 10.1145/3589777 · DOI
  56. 10.1109/TPAMI.2014.2321376 · DOI · Paper page
  57. 10.4230/LIPIcs.ICDT.2020.22 · DOI
  58. 10.1109/ICDE53745.2022.00268 · DOI
  59. 10.1145/3588908 · DOI
  60. 10.1145/3447548.3470811 · DOI · Paper page
  61. Hanan Samet. 2005. Foundations of Multidimensional and Metric Data Structures (The Morgan Kaufmann Series in Computer Graphics and Geometric Modeling). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA.
  62. 10.1007/978--3--540--72079--9_9 · doi:10.1007/978--3--540--72079--9_9
  63. 10.14778/2735461.2735462 · DOI
  64. 10.1145/1806907.1806912 · DOI
  65. 10.1109/ICDE53745.2022.00214 · DOI
  66. 10.1145/641007.641117 · DOI
  67. 10.1017/9781108231596 · DOI · Paper page
  68. 10.1109/JPROC.2015.2487976 · DOI · Paper page
  69. 10.14778/3565816.3565819 · DOI
  70. Zeyu Wang, Peng Wang, Themis Palpanas, and Wei Wang. 2023. Graph-and Tree-based Indexes for High-dimensional Vector Similarity Search: Analyses, Comparisons, and Future Directions. Data Engineering (2023), 3--21.
  71. 10.1145/3588965 · DOI
  72. RogerWeber, Hans-Jörg Schek, and Stephen Blott. 1998. A Quantitative Analysis and Performance Study for Similarity-Search Methods in High-Dimensional Spaces. In Proceedings of the 24rd International Conference on Very Large Data Bases (VLDB '98). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 194--205.
  73. 10.1145/3477495.3531799 · DOI
  74. 10.1145/3318464.3386131 · DOI · Paper page
  75. 10.1109/18.119699 · DOI · Paper page
  76. Pavel Zezula, Giuseppe Amato, Vlastislav Dohnal, and Michal Batko. 2010. Similarity Search: The Metric Space Approach (1st ed.). Springer Publishing Company, Incorporated.
  77. Ting Zhang, Chao Du, and JingdongWang. 2014. Composite Quantization for Approximate Nearest Neighbor Search. In Proceedings of the 31st International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 32), Eric P. Xing and Tony Jebara (Eds.). PMLR, Bejing, China, 838--846. https://proceedings.mlr.press/v32/zhangd14.html
  78. 10.14778/3594512.3594527 · DOI
  79. 10.14778/3377369.3377374 · DOI

Cited by

See all 103

Metadata

Authors
Gao, J., & Long, C.
Affiliations
Nanyang Technological University, Singapore, Singapore
Venue
Proceedings of the ACM on Management of Data
Published
2024-05-29
Volume
2
Issue
3
Pages
1-27
ISSN
2836-6573
Cited by
103
References
16
Language
en
Funders
Ministry of Education, Singapore (MOE-T2EP20220-0011, RG77/21, MOE-T2EP20221-0013)

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: RaBitQ: Quantizing High-Dimensional Vectors with a Theoretical Error Bound for Approximate Nearest Neighbor Search. https://app.cochat.ai/papers/10.1145/3654970
The paper
Gao, J., & Long, C. (2024). RaBitQ: Quantizing High-Dimensional Vectors with a Theoretical Error Bound for Approximate Nearest Neighbor Search. Proceedings of the ACM on Management of Data. https://doi.org/10.1145/3654970

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.