Lune

NeurIPS2025Top-tier venue

Distance Adaptive Beam Search for Provably Accurate Graph-Based Nearest Neighbor Search

Yousef Al-Jazzazi, Haya Diwan, Jinrui Gou, Cameron Musco, Christopher Musco, Torsten Suel

Abstract

Nearest neighbor search is central in machine learning, information retrieval, and databases. For high-dimensional datasets, graph-based methods such as HNSW, DiskANN, and NSG have become popular thanks to their empirical accuracy and efficiency. These methods construct a directed graph over the dataset and perform beam search on the graph to find nodes close to a given query. While significant work has focused on practical refinements and theoretical understanding of graph-based methods, many questions remain. We propose a new distance-based termination condition for beam search to replace the commonly used condition based on beam width. We prove that, as long as the search graph is navigable, our resulting Adaptive Beam Search method is guaranteed to approximately solve the nearest-neighbor problem, establishing a connection between navigability and the performance of graph-based search. We also provide extensive experiments on our new termination condition for both navigable graphs and approximately navigable graphs used in practice, such as HNSW and Vamana graphs. We find that Adaptive Beam Search outperforms standard beam search over a range of recall values, data sets, graph constructions, and target number of nearest neighbors. It thus provides a simple and practical way to improve the performance of popular methods.

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.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • ANNiE: A Learned Query Cost Estimator for Graph-Based Approximate Nearest Neighbor Search cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Sparse Navigable Graphs for Nearest Neighbor Search: Algorithms and Hardness cites Efficiently Constructing Sparse Navigable Graphs
  • Efficiently Constructing Sparse Navigable Graphs cites Sparse Navigable Graphs for Nearest Neighbor Search: Algorithms and Hardness
  • Efficiently Constructing Sparse Navigable Graphs cites Reformer: The Efficient Transformer
  • Efficiently Constructing Sparse Navigable Graphs cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. ANNiE: A Learned Query Cost Estimator for Graph-Based Approximate Nearest Neighbor SearchZeyu Wang, Manos Chatzakis, Qitong Wang, Themis Palpanas et al.VLDB 2026
  2. Sparse Navigable Graphs for Nearest Neighbor Search: Algorithms and HardnessSanjeev Khanna, Ashwin Padaki, Erik WaingartenSODA 2026
  3. Efficiently Constructing Sparse Navigable GraphsAlex Conway, Laxman Dhulipala, Martin Farach-Colton, Rob Johnson et al.SODA 2026

Builds on16

  1. Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni et al.NeurIPS 2020 · 19,162 citations
  2. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
  3. Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text RetrievalLee Xiong, Chenyan Xiong, Ye Li, Kwok-Fung Tang et al.ICLR 2021 · 1,547 citations
  4. Filtered-DiskANN: Graph Algorithms for Approximate Nearest Neighbor Search with FiltersSiddharth Gollapudi, Neel Karia, Varun Sivashankar, Ravishankar Krishnaswamy et al.WWW 2023 · 102 citations
  5. 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

Related papers

  1. Recall-Aware Early Termination in Approximate Nearest Neighbor SearchShuang Hao, Xinxin Li, Wei ZhangKDD 2026
  2. Worst-case Performance of Popular Approximate Nearest Neighbor Search Implementations: Guarantees and LimitationsPiotr Indyk, Haike XuNeurIPS 2023 · 55 citations
  3. 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
  4. PiPNN: Ultra-Scalable Graph-Based Nearest Neighbor IndexingTobias Rubel, Richard Wen, Laxman Dhulipala, Lars Gottesbüren et al.KDD 2026 · 2 citations
  5. Sort Before You Prune: Improved Worst-Case Guarantees of the DiskANN Family of GraphsSiddharth Gollapudi, Ravishankar Krishnaswamy, Kirankumar Shiragur, Harsh WardhanICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines