Worst-case Performance of Popular Approximate Nearest Neighbor Search Implementations: Guarantees and Limitations
Abstract
Graph-based approaches to nearest neighbor search are popular and powerful tools for handling large datasets in practice, but they have limited theoretical guarantees. We study the worst-case performance of recent graph-based approximate nearest neighbor search algorithms, such as HNSW, NSG and DiskANN. For DiskANN, we show that its"slow preprocessing"version provably supports approximate nearest neighbor search query with constant approximation ratio and poly-logarithmic query time, on data sets with bounded"intrinsic"dimension. For the other data structure variants studied, including DiskANN with"fast preprocessing", HNSW and NSG, we present a family of instances on which the empirical query time required to achieve a"reasonable"accuracy is linear in instance size. For example, for DiskANN, we show that the query procedure can take at least steps on instances of size before it encounters any of the nearest neighbors of the query.
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.
23 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
- iRangeGraph: Improvising Range-dedicated Graphs for Range-filtering Nearest Neighbor Search cites A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search
- iRangeGraph: Improvising Range-dedicated Graphs for Range-filtering Nearest Neighbor Search cites Approximate Nearest Neighbor Search with Window Filters
- A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search cites Graph-based Nearest Neighbor Search: From Practice to Theory
- Navigable Graphs for High-Dimensional Nearest Neighbor Search: Constructions and Limits cites Graph-based Nearest Neighbor Search: From Practice to Theory
- Approximate Nearest Neighbor Search with Window Filters cites Graph-based Nearest Neighbor Search: From Practice to Theory
- A new near-linear time algorithm for k-nearest neighbor search using a compressed cover tree 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 Graph-based Nearest Neighbor Search: From Practice to Theory
Cited by top-tier papers23
- Approximate Nearest Neighbor Search with Window FiltersJoshua Engels, Benjamin Landrum, Shangdi Yu, Laxman Dhulipala et al.ICML 2024 · 30 citations
- Navigable Graphs for High-Dimensional Nearest Neighbor Search: Constructions and LimitsHaya Diwan, Jinrui Gou, Cameron Musco, Christopher Musco et al.NeurIPS 2024 · 23 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
- iRangeGraph: Improvising Range-dedicated Graphs for Range-filtering Nearest Neighbor SearchYuexuan Xu, Jianyang Gao, Yutong Gou, Cheng Long et al.SIGMOD 2025 · 17 citations
- Probabilistic Routing for Graph-Based Approximate Nearest Neighbor SearchKejing Lu, Chuan Xiao, Yoshiharu IshikawaICML 2024 · 9 citations
Builds on3
- A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor SearchMengzhao Wang, Xiaoliang Xu, Qiang Yue, Yuxiang WangVLDB 2021 · 354 citations
- Graph-based Nearest Neighbor Search: From Practice to TheoryLiudmila Prokhorenkova, Aleksandr ShekhovtsovICML 2020 · 68 citations
- A new near-linear time algorithm for k-nearest neighbor search using a compressed cover treeYury Elkin, Vitaliy KurlinICML 2023 · 18 citations
Related papers
- Sort Before You Prune: Improved Worst-Case Guarantees of the DiskANN Family of GraphsSiddharth Gollapudi, Ravishankar Krishnaswamy, Kirankumar Shiragur, Harsh WardhanICML 2025
- Distance Adaptive Beam Search for Provably Accurate Graph-Based Nearest Neighbor SearchYousef Al-Jazzazi, Haya Diwan, Jinrui Gou, Cameron Musco et al.NeurIPS 2025 · 3 citations
- FINGER: Fast Inference for Graph-based Approximate Nearest Neighbor SearchPatrick H. Chen, Wei-Cheng Chang, Jyun-Yu Jiang, Hsiang-Fu Yu et al.WWW 2023 · 35 citations
- Angular Distance-Guided Neighbor Selection for Graph-Based Approximate Nearest Neighbor SearchSungjun Jung, Yongsang Park, Haeun Lee, Young H. Oh et al.WWW 2025 · 3 citations
- Boosting Accuracy and Efficiency for Vector Retrieval with Local Scaling GraphHongya Wang, Wenlong Wu, Cong Luo, Aobei Bian et al.ICDE 2025 · 2 citations
