On Worst-Case Guarantees for Graph-Based Nearest-Neighbor Search

Majid Daliri, Mohammadreza Daneshvaramoli, Purna Dutta, Edo Liberty, Cameron Musco +2 more
10/28/2026
cs.DScs.LG

No confident code implementation found for this paper.

Abstract

Graph-based nearest neighbor search algorithms like HNSW, DiskANN, NSG, and others have surged in popularity in recent years due to their excellent empirical performance in comparison to space-partitioning methods like IVF data structures and Locality Sensitive Hashing (LSH). However, in contrast to LSH and related methods, obtaining strong worst-case theoretical guarantees for graph-based search has proven challenging.

Show full abstract

In this paper, we prove a strong lower bound that helps explain the lack of progress towards such guarantees. We show that no standard graph-based method (any that runs a variant of greedy search on a flat or hierarchical graph) can achieve sublinear query time for approximate nearest neighbor search in Euclidean space, even for an arbitrarily large approximation factor. On the other hand, we prove that sublinear query time is possible if we allow for Steiner points in the search graph. We obtain bounds comparable to LSH, showing e.g., that graph-based search with Steiner points can solve $c$-approximate nearest neighbor search in Euclidean space with query time $\tilde{O}(n^{1/(c-1)})$. We complement this result with initial experiments exploring how Steiner points can be incorporated into practical graph-based methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{daliri2026worstcase,
  title  = {On Worst-Case Guarantees for Graph-Based Nearest-Neighbor Search},
  author = {Majid Daliri and Mohammadreza Daneshvaramoli and Purna Dutta and Edo Liberty and Cameron Musco and Christopher Musco and Torsten Suel},
  year   = {2026},
  eprint = {2610.38133},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.38133v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.38133.svg)](https://codeofpaper.com/paper/2610.38133)

Discussion