TL;DR
Graph-based search algorithms like HNSW and DiskANN dominate modern vector databases empirically, yet nobody has been able to prove they always run fast in the worst case. This paper reveals why: standard graph search is fundamentally incapable of guaranteeing sublinear query times on adversarial, high-dimensional datasets. However, if you add "Steiner points"—artificial navigational waypoints that aren't part of the original data—graph search breaks through this barrier to match the theoretical guarantees of Locality Sensitive Hashing (LSH), and even speeds up real-world searches.
What Problem Does This Paper Address?
Finding the closest vector in a massive, high-dimensional database—Approximate Nearest Neighbor (ANN) search—is the engine behind modern retrieval systems and embedding-based search. Checking all $n$ vectors of dimension $d$ takes $O(dn)$ time, which is far too slow at the billion-vector scale.
For decades, Locality Sensitive Hashing (LSH) has been the darling of theorists because it guarantees sublinear query time in the worst case—meaning you only inspect a tiny fraction of the database, no matter how weird the data geometry gets. Yet in practice, graph-based methods (like DiskANN and HNSW) routinely crush LSH on benchmarks. They connect data points into a sparse network and answer queries via greedy search: start at an entry node and hop to neighbors closer to your query until you can't improve.
Despite their practical dominance, existing theoretical proofs for graph methods either assume "nice" data (like uniform distributions) or suffer an exponential penalty as dimensions grow. The authors tackle a major open question: Can any standard graph-based method guarantee sublinear $o(nd)$ query time on worst-case, high-dimensional datasets?
Methods
First, the authors formalize a generalized greedy search model—maintaining a priority queue of visited nodes and greedily expanding the closest ones—which captures nearly all standard flat-graph algorithms (including beam search) and extends to hierarchical ones like HNSW. To test its limits, they construct adversarial point sets designed to bottleneck greedy routing.
Second, to overcome these limits, they augment the graph with Steiner points: synthetic nodes placed in the vector space purely as routing signposts, never returned as final answers.
- In theory: They build a clever geometric gadget where choosing the closer of two Steiner points is mathematically equivalent to evaluating a linear threshold. Chaining these into binary trees lets greedy graph search simulate projection-based LSH buckets and hash tables.
- In practice: They test a dead-simple heuristic—running $k$-means clustering on the dataset (with $k$ set to 5%, 15%, and 25% of $n$), tossing the cluster centroids into the dataset as Steiner points, and building a standard Vamana (DiskANN) graph over the combined set.
Datasets
For empirical evaluation, the main text evaluates standard ANN-Benchmarks datasets using cosine similarity:
- GloVe-200 (word embeddings)
- NYTimes (document embeddings)
(Note: Additional datasets and configurations are mentioned as appearing in the paper's appendix, though no new benchmarks are introduced).
Key Insights and Ideas
- The Orthogonal Trap: Why do standard graphs fail in the worst case? Imagine $n$ mutually orthogonal vectors scaled to strictly increasing lengths: $0 \le a_1 < a_2 < \dots < a_n$. Because they are at right angles, the distance between any two points is just $\sqrt{a_i^2 + a_j^2}$. That means $x_1$ is the closest neighbor to every point, $x_2$ is the second closest to every point, and so on! Greedy search becomes completely blind to the query, marching through points in the exact same fixed order ($x_1, x_2, \dots$) until it stumbles onto the answer.
- Geometry as Computation: Standard graphs fail because edges can only route via existing data points. By placing two Steiner points symmetrically across a hyperplane and far away from the data, a simple Euclidean distance check acts like an
if-elsestatement, allowing a greedy walker to execute binary search over space partitions.
Key Results
- High-Dimensional Lower Bound: No standard graph-based method (flat or hierarchical, with any stopping condition) can solve $c$-approximate nearest neighbor search in $o(nd)$ worst-case time for any finite approximation factor $c$.
- Low-Dimensional Lower Bound: Even in $d = O(\log n)$ dimensions, pure greedy search (stopping immediately when a step makes no progress) requires $\Omega(dn^{1/2-\gamma})$ time on random point sets.
- Steiner Upper Bound: Adding $\tilde{O}(n^{1+1/(c-1)})$ Steiner points allows generalized greedy search to achieve $\tilde{O}(dn^{1/(c-1)})$ query time with high probability—matching classic LSH guarantees.
- Empirical Speedups: On GloVe-200, adding just $0.05n$ $k$-means centroids as Steiner points matches the baseline DiskANN's Recall@1 while requiring roughly 25% fewer distance computations. On NYTimes, Steiner-augmented graphs consistently outperform the baseline across Recall@1, Recall@10, and Recall@100.
Limitations and Future Work
- Dimensionality Gap in Theory: The strongest lower bound ($o(nd)$) requires high dimensions ($d = n$). In $O(\log n)$ dimensions—crucial because datasets can always be compressed via Johnson-Lindenstrauss projections—their lower bound only applies to pure greedy search, leaving generalized beam search in low dimensions an open theoretical question.
- Construction Overhead & Query Bounds: The theoretical LSH simulation requires a polynomial blowup in graph size ($\tilde{O}(n^{1+1/(c-1)})$ Steiner nodes) and assumes queries have bounded norms.
- Heuristic Exploration: Adding $k$-means centroids doesn't improve performance in every setting (e.g., Recall@100 on GloVe-200), so the authors present it as an encouraging baseline rather than a universal recipe, inviting better methods for placing Steiner points in practice.
Summary updated