Manuscript Offprint
arXiv:2610.38133On Worst-Case Guarantees for Graph-Based Nearest-Neighbor Search
On Worst-Case Guarantees for Graph-Based Vector Search
Majid Daliri* Mohammadreza Daneshvaramoli† Purna Dutta† Edo Liberty‡
Cameron Musco† Christopher Musco* Torsten Suel*
October 30, 2026
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. 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 . We complement this result with initial experiments exploring how Steiner points can be incorporated into practical graph-based methods.
Nearest neighbor search has been studied for decades, becoming increasingly important as the problem now serves as a backbone for document and multimedia search systems based on machine-learned vector embeddings [Lewis et al., 2020, Bruch, 2024, Douze et al., 2026, Simhadri et al., 2025]. While it can be solved naively in time by simply comparing to every vector in , in many settings, the database can involve billions or trillions of vectors with 100s to 1000s of dimensions. The goal is thus to design data structures that permit search in time sublinear in . While infeasible for exact search, sublinear-time is known to be possible if we allow for approximation [Kleinberg, 1997, Kushilevitz et al., 1998].
The most well-known sublinear-time technique with provable guarantees is the Locality Sensitive Hashing (LSH) framework of Indyk and Motwani [1998]. Focusing on Euclidean distance for concreteness, LSH methods return, for any query and chosen approximation factor , a vector such that, with high probability, . Indyk and Motwani [1998] achieve this bound in time using a polynomially sized data structure and polynomial preprocessing time. This was subsequently improved to and later to [Datar et al., 2004, Andoni and Indyk, 2008]. Even stronger bounds can be obtained via “data-dependent” LSH variants [Andoni et al., 2014, Andoni and Razenshteyn, 2015]. Such bounds are striking: e.g., when , even for a data set with billion points.
Moreover, in addition to strong theoretical guarantees, LSH methods are relatively simple to implement and work well in practice [Lv et al., 2007, Andoni et al., 2015, Aumüller et al., 2020]. Closely related
*New York University. daliri.majid@nyu.edu, cmusco@nyu.edu, torsten.suel@nyu.edu †UMass Amherst. mdaneshvaram@cs.umass.edu, purnadutta@umass.edu, cmusco@cs.umass.edu ‡Google. edo.liberty@gmail.com data-dependent space-partitioning methods based on clustering and product quantization have shown even better performance, forming the basis of many web-scale nearest-neighbor search systems [Jégou et al., 2011, Guo et al., 2020, Johnson et al., 2021, Sun et al., 2023].
1.1 Graph-Based Nearest Neighbor Search.
Despite the success of space-partitioning methods like LSH, a new class of graph-based nearest neighbor search algorithms has recently emerged as a competitor. Graph-based methods include Microsoft's DiskANN [Krishnaswamy et al., 2024], the Hierarchical Navigable Small World (HNSW) method [Malkov and Yashunin, 2020], and many related algorithms [Malkov et al., 2014, Fu and Cai, 2016, Harwood and Drummond, 2016, Fu et al., 2019]. These methods build on ideas dating back to the 1990s [Arya and Mount, 1993, Clarkson, 1994, Navarro, 1999, Kleinberg, 2000, Krauthgamer and Lee, 2004]. The basic idea is to construct a sparse search graph with a node corresponding to each point in . Queries are served by running greedy search in : we start at a node , and traverse the graph by moving to neighbors that reduce the distance to the query.
Graph-based methods have frequently topped nearest neighbor search benchmarks, offering improved accuracy vs. runtime tradeoffs [Aumüller et al., 2020, Simhadri et al., 2022, Manohar et al., 2024, Simhadri et al., 2025]. Naturally, these empirical results have spurred interest in theoretically explaining the success of graph-based methods [Laarhoven, 2018, Prokhorenkova and Shekhovtsov, 2020, Peng et al., 2023, Xie et al., 2025, Gollapudi et al., 2025, Al-Jazzazi et al., 2025, Har-Peled et al., 2026]. However, all existing theoretical bounds only hold under strong dataset assumptions (uniformly random, sufficiently dense, etc.), or require an exponential dependence on the data dimension , or some other measure of intrinsic dimension like doubling dimension [Arya and Mount, 1993, Clarkson, 1994, Indyk and Xu, 2023, Lu and Tao, 2025].
These bounds only imply sublinear query time when is a small multiple of . A major open question is if such an assumption is necessary to obtain performance guarantees for graph-based methods. Concretely:
Is there any graph-based nearest neighbor search method that, like LSH, can support search queries in time for worst-case, high-dimensional datasets?
2 Our Contributions
To answer the question above, and specifically to prove any query-time lower bounds, we first need to formalize what a “graph-based search method” is. In this work, we consider a generic “flat search graph” model that captures all common methods that we are aware of (DiskANN, NSG, FANNG, EFANNA, etc.), with the exception of HNSW [Malkov and Yashunin, 2020], which performs search on a hierarchy of graphs. We will discuss separately how to extend our results to HNSW and other hierarchical methods later.
Details on our flat search graph model are included in Section 3. To summarize, we consider methods that pre-processes the dataset, , to produce a directed search graph, . Upon receiving a query, , the method runs generalized greedy search on . Specifically, it maintains a list of visited nodes, initially populated with a starting node . At each step, it pops the node off the list that is closest to , and adds that node's out-neighbors to the list. The algorithm proceeds until some stopping condition is met, at which point it returns the closest node to seen so far. Various stopping conditions lead to algorithms that are popular in the literature including the ubiquitous beam search method [Subramanya et al., 2019]. See Section 3 for detailed pseudocode. The query-time of a graph-based method is the time required to execute generalized greedy search and return an approximate nearest neighbor for the query, i.e. to find some such that, for approximation factor , .¹
2.1 Lower Bound for Graph-Based Search
Our first result explains the lack of progress on worst-case guarantees for graph-based search. We prove that no algorithm implemented in the model above (with any , any , and any stopping condition) can solve the approximate search problem under the Euclidean distance in worst-case sublinear time, for any approximation factor. This is in stark contrast to what is achievable with space-partitioning methods like LSH.
¹In this work, we do not consider preprocessing time used to build the search graph : our lower bounds will hold for any graph-based method, even one that is allowed arbitrarily large preprocessing time.
Theorem 1. No graph-based method can solve c-approximate nearest neighbor search under the Euclidean distance for any finite approximation factor c in o(nd) time.
Theorem 1 is proven in Section 4 by constructing a hard instance of points , and showing that, no matter the choice of search graph, greedy search is inefficient even for queries . This yields a lower bound for any approximation factor c since, for such “in distribution” queries, and thus approximate and exact search are equivalent.
Our hard instance has , where is an arbitrary set of orthonormal vectors, and are scalars satisfying . Since all points in are mutually orthogonal, . It follows that is the closest neighbor to all other points, is the second closest neighbor, and so on. For this reason, if we query a point , greedy search will traverse in a fixed order, independent of the query, until it finds . The search therefore requires distance computations on average for . This proof can be directly extended to a lower bound for search under cosine similarity, and to hierarchical graph-based search methods like HNSW.
Low-Dimensions. Theorem 1 rules out graph-based search methods that achieve worst-case sublinear query time akin to the runtime of LSH [Andoni and Indyk, 2008]. However, our hard instance requires d = n. Thus, the theorem does not rule out runtimes of the form for and -i.e., it leaves open the possibility of sublinear time search when the dimension d is sufficiently small. The setting of small d is particularly important given that, using dimensionality reduction methods like Johnson-Lindenstrauss random projection [Johnson and Lindenstrauss, 1984, Ailon and Chazelle, 2006], we can always project X into dimensional space, while distorting distances by at most a factor.
We partially address the low-dimensional setting by proving a query time lower bound of for any constant , even when . This lower bound is in a more restricted setting, applying to methods that use pure greedy search, meaning that search terminates as soon as the node removed from the search list fails to make progress towards . Moreover, the lower bound holds for methods that succeed for all queries (instead of for any query with high probability). Nevertheless, it gives evidence that graph-based search cannot match LSH, even in low dimensions. Recall that for , the optimal nearest neighbor has distance 0, so LSH can achieve arbitrarily small query time by taking the approximation factor sufficiently large. Our lower bounds show this is not possible with pure greedy graph search.
Theorem 2. There is a set of points for on which no graph-based method using pure greedy search can succeed for all queries in time for any fixed .
The hard instance for Theorem 2 is simply a random point set in dimensions. We build on a recent average degree lower bound for the related problem of constructing navigable graphs [Diwan et al., 2024]. In short, we show that the starting node in must have degree for greedy search to succeed on all queries in . Therefore, even running the very first search step already takes time.
We remark that some graph-based methods achieve worst-case query time of roughly [Arya and Mount, 1993, Clarkson, 1994, Indyk and Xu, 2023, Lu and Tao, 2025]. Theorem 2 shows that, at least for pure greedy search, the exponential dependence on d is inherent: as soon as the runtime must depend polynomially on n. Extending such a result to generalized greedy search is an interesting open question. Alternatively, it would be interesting to obtain runtime bounds, e.g., of the form , which does not match LSH, but can still be significantly sublinear, even for .
2.2 Sublinear Runtime Guarantees via Steiner Points
In spite of the lower bounds in Theorems 1 and 2, we argue that a simple modification of existing graph-based search frameworks does allow them to match the theoretical guarantees of LSH. In particular, graph-based search becomes significantly more powerful when the search graph G is allowed to include Steiner nodes that do not correspond to points in the dataset. We show:
Theorem 3. There exists a polynomial time algorithm that, given any -point dataset , constructs a search graph over and additional Steiner points, such that generalized greedy search on run for steps starting from an appropriate start node, solves -approximate Euclidean nearest-neighbor search in time, with high probability.
Here, hides logarithmic factors in the input parameters, the failure probability, and the aspect ratio . Mild dependence on this aspect ratio is standard for LSH-based approximate nearest neighbor search results. The big-O notation also hides constants that depend on the approximation factor .
We prove Theorem 3 by showing that a Euclidean norm LSH method of Indyk and Motwani [1998] and Datar et al. [2004] can be simulated using greedy search on a graph that includes a carefully chosen set of Steiner points. While the full construction is somewhat intricate, the core idea is simple. To explain it, we first recall the general approach taken in LSH methods. The central object in such methods is a locality sensitive hash function, which has the property that two points are more likely to have the same hash value if they are close to each other. This allows one to restrict the nearest neighbor search problem: we hash the query point and just search for a near neighbor among the points in the dataset that hash to the same value. Repeating this restricted search a sufficient number of times, and returning the best result from the repetitions, ensures that an approximate nearest neighbor to is returned with high probability.
Datar et al. [2004] employs an LSH function based on random projecting points to a one-dimensional line, . This line is divided into equal-length segments (“buckets”), and the hash value of a point is the index of the bucket that it lands in. Without loss of generality, can be shifted to lie far away and on one side of all points in without changing the hash function. Referring to the example in Figure 1, and hash to bucket 1, , and to bucket 2, etc.
Our key observation is that this hash function can be implemented using greedy search with Steiner points. Here we give a stylized explanation of how to do so – our actually construction is somewhat more intricate. We place Steiner points , along at the center of each bucket. By the Pythagorean theorem, the closest Steiner point to any is the point at the center of the bucket that hashes to. We add an edge to from that Steiner point. We then place an additional starting node, , far away from . We add out-edges from to all other Steiner points. In the first step of greedy search, we will navigate from to the Steiner point, , corresponding to the query 's hash value. Search will then proceed to points in that also hashed to the same bucket (and are thus connected to ). By locating far away from the point set, we ensure that for all non-trivial queries (i.e., for which not all points are -approximate nearest neighbors), any is further from than any . This ensures that greedy search properly progresses from to the database points, instead of exploring other Steiner nodes.
The above construction, which is visualized in Figure 1, is the key ingredient used in implementing an LSH search method within the framework of graph-based search. The full implementation requires further ideas. For example, rather than directly connecting the starting node to a Steiner point for each hash bucket, we need to leverage additional Steiner points to implement a more efficient binary search for the hash bucket. We also chain together several basic search graphs to implement repetition, which is required to find an approximate nearest neighbor with high probability. Details are given in Section 5.

Figure 1: We illustrate the basic building block of our graph-based simulation of the projection-based LSH method of Datar et al. [2004]. Steiner points are placed along a random line, , and one additional Steiner point, , is placed far away from the dataset. Running greedy search on the directed search graph on the right, starting at , implements the core LSH primitive: for a query , it will first search for nearest neighbors among all points that project into the same bucket on .
2.3 Empirical Evaluation of Steiner Point-Based Methods
In combination, the lower bounds of Theorems 1 and 2 and the upper bound of Theorem 3 show that, at least in theory, Steiner points can significantly increase the power of graph-based nearest neighbor search. In Section 6, we explore the practical implications of this finding. We augment ParlayANN's [Manohar et al., 2024] implementation of DiskANN with Steiner points chosen in a very simple way: we cluster the dataset into clusters for some small constant using -means, and add the cluster centroids as Steiner points. We build a search graph using the standard DiskANN algorithm, but over the dataset augmented with these Steiner points. We find that even this very simple method demonstrates improved performance on several standard data sets. We note that other works have considered the direct or indirect use of Steiner points during search graph construction, often to improve performance on out-of-distribution queries [Jaiswal et al., 2022, Chen et al., 2024, Yue et al., 2026, Baranchuk et al., 2019]. Our findings suggest that further explorations in this direction may be worth consideration.
3 Problem Formalization and Greedy Search
Before moving on to our main technical sections, we restate the problem studied in this work more formally, and provide pseudocode for the generalized greedy search algorithm that our lower bounds cover.
Nearest Neighbor Search. In the approximate nearest neighbor (ANN) problem, we are given a dataset and a distance function . For a query , the goal is to approximately minimize . Typical choices of include the Euclidean distance or inverse cosine similarity . Practical systems typically aim to return the top closest vectors to from for . For simplicity, this paper focuses on the case, in line with most prior theoretical work in the area.
Greedy Graph-Based Search. We consider methods that solve the nearest neighbor search problem by running generalized greedy search (Algorithm 1) on a directed search graph . has one node corresponding to every data point in . We use the notation to denote the set of out-neighbors of a node in . contains all for which the ordered pair .
Algorithm 1 Generalized Greedy Search
Input: Dataset , search graph , starting node , distance function , query .
1: Initialize min-priority queue . Elements are node IDs, priorities are distances to . 2: Initialize dictionary . Used to keep track of already explored nodes. 3: Initialize . Insert into and . 4: while not [termination condition] do 5: . Pop the node closest to . 6: if then . Update guess for nearest neighbor. 7: For all , if is not in , insert into and . 8: return .
Generalized greedy captures a variety of algorithms depending on how the stopping condition is set on Line 4. One option is to terminate if , which means we failed to make one-step progress towards . This approach is often simply called greedy search. More common in practice is to use beam search with beam width , which is equivalent to terminating only if , where is the closest node to among all nodes in . We refer the reader to Al-Jazzazi et al. [2025] for a discussion of various termination conditions, emphasizing that our lower bounds hold for any such condition. Indeed, for the purpose of search with worst-case query complexity, one natural approach is simply to terminate after a fixed number of computational steps, .
With Algorithm 1 in place, we can state our formal definition of graph-based ANN search:
Definition 1 (Graph-Based -Approximate Nearest Neighbor Search). Let be an approximation factor. Consider a potentially randomized algorithm, , that, given a dataset , returns a search graph , starting node , and termination condition COND. We say that solves the -approximate nearest neighbor search problem with query time and failure probability if, for any fixed , with probability at least , Algorithm 1 run using , and COND returns a solution in time satisfying .
Generalized greedy search and Definition 1 naturally extend to search graphs whose node set is for some set of Steiner nodes . The nodes in are treated identically to those in . The only change is that the output is the closest non-Steiner node to that has been popped off the queue. If no node in is popped before termination, a default output is returned, e.g., .
4 Lower Bounds for Graph-Based Search
Our main research question is whether algorithms satisfying Definition 1 with runtime exist. Our first result answers this question in the negative: for worst-case inputs, no graph-based search method with finite approximation factor can solve approximate nearest neighbor search in sublinear time when is the Euclidean distance. As discussed, our hard instance is a set of vectors in . We prove a weaker lower bound (Theorem 2) for -dimensional points in Appendix A.
Theorem 4 (Theorem 1 restated). There is a set of points, , such that no graph-based method satisfies Definition 1 with being the Euclidean distance, finite, , and .
Proof. As sketched in Section 2.1, our hard instance has , where is an orthonormal basis and satisfy . We will show that, for a query drawn uniformly at random from , any graph-based method fails to output with probability at least in time. This yields the lower bound since, when , solving the approximate search problem for any finite approximation factor requires returning itself.
Since all points in are mutually orthogonal, for all . That is, for any , whenever , i.e., whenever . So, for any query , at each step of greedy search, if we do not directly pop off the search queue (and succeed in outputting ), we simply pop off the point with the smallest index. I.e., the execution of the algorithm is identical for any query , up to the point that is added to .
Formally, let be the iteration of the while loop in Algorithm 1 that is added to when . If is the starting node, let . Since nodes are added to in the same order regardless of the query, the number of distance computations required to find query is equal to . A simple but key observation is that for at least points in .
Now, if the algorithm has success probability , with probability over the randomness used in selecting and , greedy search must succeed when querying at least half of the points from . At least of those points have , and thus require time to find with greedy search. It follows that the expected (and thus, worst-case) runtime of greedy search is for any graph-construction methods with success probability .
Extensions. We remark that Theorem 4 in fact extends to any algorithm that only accesses the distance function through comparisons of the form . In our hard instance, the ordering of distances from the query to points in is independent of , so any such algorithm executes identically for all , until is returned. Our same argument thus yields an lower bound for methods based on hierarchical search graphs, like HNSW. These methods perform greedy search, but on a layered graph: each layer is a search graph over a subset of points with . They first use generalized greedy search to find a set of near neighbors to in . They then use these points as starting points for a greedy search in , etc. As in flat graph methods, the distance function is only used for comparisons of the form .
The lower bound also easily extends to the case when is the inverse cosine similarity: . In this case, we append an additional coordinate to each point (so the points are now in ), with value . This ensures that all points are unit norm and . Again, exactly when , and so the search order is independent of the query and the lower bound proof goes through unchanged. Similar constructions give lower bounds, e.g., for different -norms.
5 Sublinear Search with Steiner Points
We next prove Theorem 3, which shows that, with the ability to add Steiner points to the search graph, we can implement an LSH-based ANN data structure with generalized greedy search, skirting the lower bounds of Section 4. In particular, we implement the original LSH-based algorithm of Indyk and Motwani [1998] using the Euclidean LSH function of Datar et al. [2004]. While we focus on this particular implementation for simplicity, we believe that similar ideas likely allow for the simulation of related approaches, such as those achieving refined bounds for Euclidean distance [Andoni and Indyk, 2008] or bounds for other similarity metrics, like cosine similarity [Charikar, 2002].
Indyk and Motwani [1998] solves the approximate nearest neighbor search problem by solving a logarithmic number of simpler “fixed radius” search problems. In particular, for approximation factor and radius , the -near-neighbor problem asks us to return some with if . If , we must return FAIL. If , we can exhibit either behavior. Letting be the aspect ratio of the dataset , -approximate ANN search can be reduced to fixed-radius instances with geometrically spaced radii [Indyk and Motwani, 1998, Har-Peled, 2001]. We sketch how this reduction is implemented via generalized greedy search on at the end of this section, with a full proof in Appendix B.5. Here, we start by focusing on fixed radius search.
5.1 Simulating Fixed Radius LSH with Generalized Greedy Search
To solve the -near-neighbor problem, we use an LSH function introduced by Datar et al. [2004].
where has independent standard Gaussian entries and is drawn uniformly from , with being a bucket width. Concatenating independent instantiations of this hash function (i.e., with independently chosen and ) yields a length- hash signature for any point:
Given a query , we compute the hash and, if the set is non-empty, we examine an arbitrary point in the set. We return this point if it is within distance of . The procedure is repeated times, with independent choices of , outputting FAIL if no point within distance is found in any of the repetitions. The main result of Indyk and Motwani [1998] implies that, when implemented with the LSH function of Datar et al. [2004], this procedure obtains the following guarantee:
Theorem 5. For any , , and , there is a choice of bucket width , hash repetition number , and table repetition number , where is a constant depending only on with , such that, for every fixed query with , the query procedure discussed above returns satisfying with probability at least . The method has query time .
Simulating a Single Hash Table. To simulate the LSH scheme above, we first need to show how to use graph-based greedy search to implement a single hash table. To do so, we begin by associating one Steiner node to each of the non-empty buckets in the hash table, i.e., we have a Steiner node for each -tuple of integers such that for some . There are at most such Steiner nodes. We also introduce a single “failure” Steiner node, , which is associated with all empty buckets in the table, i.e. all -tuple of integers that do not equal for any . Each is connected with an out-edge to one arbitrary point in , to an arbitrary point with hash value .
A variant used by [Datar et al., 2004] examines all points in the bucket, arguing that with high probability the total number of points examined is small. This variant gives a slight improvement from to query time. However, it is more complicated to simulate via graph-based search, so we focus on the simpler Indyk and Motwani [1998] approach.
Formally, for an LSH family with collision probability for any point within radius of , and for any point outside radius , Indyk and Motwani [1998] obtain a dependence on where . As we discuss further in Appendix B, the achieved by the hash family of Datar et al. [2004] depends only on .
We then build an (incomplete) binary tree of Steiner nodes, rooted at a starting node , which is used to efficiently route a query to the Steiner representative, , or to if 's bucket, , is empty. The internal nodes of the binary tree are chosen so that greedy search will reach the appropriate terminal or failure node in steps. Concretely, we show:
Lemma 1 (Simulating one LSH table). Fix any , concatenated Datar et al. [2004] hash function , and a dataset of size . There is a directed graph over and additional Steiner points, with edges, and a Steiner starting node , with the following property. For every query with , generalized greedy search initiated at and run for steps either:
-
terminates at a designated Steiner failure node , if ; or
-
reaches a designated terminal node if , with a single out-edge to an arbitrary point in , and then pops this out-neighbor off the search queue ( in Algorithm 1).
All nodes in have out-degree . The search uses distance computations and total time.
We sketch the idea behind Lemma 1 below, with a full proof in Appendix B. The key observation is that we can place Steiner points so that deciding between two Steiner points in a greedy search step is equivalent to evaluating a linear threshold function. Successive evaluation of these threshold functions allows us to route the search based on the value of . In particular, in Appendix B.2 we prove:
Lemma 2 (Steiner Comparison Gadget). Fix a nonzero vector and a threshold . There exist two Steiner points such that, for every query ,
Further, we can pick and so that and are arbitrarily large.
The proof of Lemma 2 is simple: and are just different scalings of , placed so that the perpendicular bisector of the line between them is exactly the hyperplane . We can move and arbitrarily far in opposite directions along , keeping their midpoint fixed and preserving this bisector – this will be useful later, in ensuring that our greedy search continues to ‘progress’ through successive comparison gadgets.
A Steiner Node Routing Tree. With Lemma 2 in place, we first sketch the proof of Lemma 1 when uses just a single hash function (i.e., ). We build a binary search tree over the bucket values that occur among the data points. Each non-leaf node has two children, and , placed in order to compare to one bucket boundary, via Lemma 2. Greedy search follows the child corresponding to the outcome. The leaves are the terminal Steiner nodes associated with when this set is nonempty, or Steiner nodes associated with ‘failure intervals’ between consecutive nonempty buckets. These failure leaves have a single out edge to the failure node . Since there are at most nonempty buckets, the tree has leaves, and thus Steiner routing nodes. It has depth .
Consider running two steps of the binary search following the procedure above from some non-leaf node . Denote the Steiner node pairs implementing the two required comparisons by and , respectively. will have out edges to and . Assuming we move left without loss of generality, has out edges to and . One concern is that greedy routing may not properly progress through the two comparisons: if , it will pop off the search queue in the first iteration, and add and to the queue. In the second step, we would like it to pop whichever of and is closest to , thus implementing the second comparison. For this to happen, we need to ensure that it does not ‘go back’ and pop . To do so, we use that the Steiner nodes in Lemma 2 can be picked with arbitrarily large norms. By our assumption that has bounded norm (else, the -near neighbor search data structure can simply return ‘FAIL’), we can pick and with sufficiently large norms so that they are always further from than and . This forces greedy search to progress as desired – popping either or in the second step, if it popped in the first step.
Our construction will only work for queries with some bounded norm . However, we can set arbitrarily large. For fixed-radius search, we can take large enough that any query outside this radius has no neighbor within distance .
Finally, to establish Lemma 1, we must consider with concatenated hash functions. We produce a routing tree for by appending one-coordinate routing trees. After the first coordinates, a non-failure leaf corresponds to a nonempty prefix bucket for , where for . This leaf becomes the root of a routing tree for over . The nonempty prefix buckets partition , there are at most non-failure leaves among all trees at each level . The total tree size and number of routing steps are therefore and , respectively.
5.2 Implementing Table Repetition
Lemma 1 implements a single LSH table via greedy search. To simulate the full procedure of Theorem 5, we must perform lookups in independent tables. Doing so is simple. We let our global starting node be the starting node for the search graph simulating the first table via Lemma 1. Each terminal Steiner node , as well as the designated failure node for the first search graph are connected via an out edge to the starting node for a search graph simulating the second table, and so on. Dataset points have no out edges.
As we do within each search tree, we choose the lengths of the Steiner points so that those in later trees are always closer to than those in earlier trees, assuming . Additionally, all data points are closer to than all Steiner points. Thus, each newly discovered data point is popped before the next table's root. After progressing through all search trees, one representative from each nonempty queried bucket has been popped. By Theorem 5, if there is a data point within distance of , at least one point within distance has been popped with probability at least . Overall, we have the following, proven in Appendix B.4:
Theorem 6 (Fixed-radius Search Upper Bound). Fix , , , and any . There is a constant depending only on with such that, for any -point dataset , there is a randomized polynomial time algorithm constructing a directed graph on and additional Steiner nodes, and a Steiner starting node , with the following property. For every fixed with and , generalized greedy search initialized at pops at least one point with within steps, with probability at least . All nodes in have out-degree at most two, so running generalized greedy search for steps requires distance computations and takes time.
5.3 Reduction from ANN to Fixed Radius Search
We conclude by describing how to use the fixed-radius search result of Theorem 6 to give our final -approximate nearest neighbor search result of Theorem 3. A full proof is given in Appendix B.5.
We first observe that queries with sufficiently large norm, relative to the size of the dataset, are easy – allowing us to remove the bounded norm restriction of Theorem 6. Let and let . If for , then every satisfies . So every data point, including the default output of generalized greedy search, is a -approximate nearest neighbor. We therefore only need to handle queries with . All such queries satisfy for . We will use as the query norm bound in Lemma 1 and Theorem 6.
With this observation in place, we use a standard reduction from Indyk and Motwani [1998] between fixed-radius and -approximate search. We build fixed-radius data structures for a geometrically increasing sequence of radii , where for some constant . We return the point found by the smallest-radius data structure that does not return FAIL. The smallest radius with satisfies . With probability at least , the structure at this radius does not return FAIL. So the returned point comes from this radius or a smaller one, and is within distance of .
Since we only need to handle queries with , the largest radius, , only needs to be at least . For the smallest radius, let and set . Radii smaller than are not needed. To see why, consider a query that is very close to a data point, with . Every other data point is at distance at least from , so the structure at radius must return 's true nearest neighbor. Recalling that we let denote the aspect ratio of the dataset, we have . So the number of radii is .
To implement the multi-level procedure with generalized greedy search, we do not need to identify the smallest radius that does not return FAIL. We simply chain the graphs for all radii together, in the same way that we chained tables in Theorem 6. The successful terminal nodes and the failure node of the last table at radius have out-edges to the root of the first table at radius , and Steiner points at smaller radii are placed so that, for every query with , they are farther from than all Steiner points at larger radii. A single run of generalized greedy search pops the bucket representatives from every table at every radius. Since the search outputs the closest data point popped, its output is at least as good as the point found at the smallest radius. The graph size and query time grow by a factor of , the number of radii.
One small issue still remains: the reduction to fixed-radius search costs a factor of in the approximation guarantee. To absorb this loss, we build each fixed-radius structure with a slightly smaller approximation factor and set , so that our final approximation factor is , as desired. Naively, we might think this would increase the number of tables, and thus the runtime of search. However, from Theorem 5 we have that the number of tables required by Indyk and Motwani [1998] is where is a constant depending on and strictly less than . Because of this strict inequality, we can pick close enough to , depending only on , so that at approximation factor is still below . Each structure therefore still uses tables, and the runtime claims of Theorem 3 hold as stated.
6 Empirical Evaluation
We conclude with an initial exploration into the empirical implications of our theoretical results. In particular, we study how augmenting existing graph-based search methods via the addition of Steiner points into the search graph can improve query time vs. accuracy for nearest neighbor search.
Experimental Set Up. We evaluate a very simple approach: we construct Steiner points as -means cluster centroids of the dataset vectors, with . The centroids are appended to the original dataset and we build a Vamana (DiskANN) search graph [Subramanya et al., 2019] over the augmented point set using ParlayANN's [Manohar et al., 2024] open source implementation. We use degree bound , pruning parameter , and build beam width . We give additional results with in Appendix C. Crucially, the Steiner points are added as nodes in the search graph, but are not returned in the output of greedy search. We compare the performance of these search graphs with that of a baseline graph, where no Steiner points are included.
In particular, we run beam search with varying beam widths on the augmented and baseline graphs, in order to produce a runtime vs. accuracy curve for each graph. We measure accuracy as Recall@ for against ground truth -nearest neighbors computed via brute-force. Recall@ is the fraction of the true -nearest neighbors appearing in the algorithm's top- output, averaged over queries. It is a standard accuracy metric for ANN benchmarks [Aumüller et al., 2020, Simhadri et al., 2025]. For each beam width, we plot recall against the average number of total distance computations per query, which is a common proxy for the query runtime. Full implementation details are given in Appendix C.
Results. Accuracy vs. runtime curves for the GloVe-200 and NYTimes datasets [Aumüller et al., 2020] using cosine similarity for the distance metric are shown in Figure 2. On GloVe-200, Steiner-augmented graphs outperform the baseline, except at Recall@100. E.g., the search graph with .05n Steiner nodes achieves the same Recall@1 as the baseline using roughly 25% fewer distance computations. We see similar gains for NYTimes – here the Steiner augmented graphs consistently outperform, even at Recall@100. In Appendix C we give results on further datasets and in further settings. We frequently, although not always, see improvements with Steiner augmented graphs. Nevertheless, our experiments suggest that further study of how Steiner points can be effectively incorporated into graph-based search is warranted. Even the very simple -means-based approach we consider can sometimes lead to significant performance gains. While we do not necessarily recommend adopting this approach in general, it represents a promising initial baseline for Steiner point construction.
References
Nir Ailon and Bernard Chazelle. Approximate nearest neighbors and the fast Johnson-Lindenstrauss transform. In Proceedings of the 38th Annual ACM Symposium on Theory of Computing (STOC), 2006.

(a) GloVe-200

(b) NYTimes
Figure 2: Comparison of standard search graphs with Steiner augmented graphs in terms of recall vs. total distance computations, for nearest neighbor search under cosine similarity.
Yousef Al-Jazzazi, Haya Diwan, Jinrui Gou, Cameron Musco, Christopher Musco, and Torsten Suel. Distance adaptive beam search for provably accurate graph-based nearest neighbor search. In Advances in Neural Information Processing Systems 38 (NeurIPS), 2025.
Alexandr Andoni and Piotr Indyk. Near-optimal hashing algorithms for approximate nearest neighbor in high dimensions. Communications of the ACM, 51(1):117–122, 2008.
Alexandr Andoni and Ilya Razenshteyn. Optimal data-dependent hashing for approximate near neighbors. In Proceedings of the 47th Annual ACM Symposium on Theory of Computing (STOC), 2015.
Alexandr Andoni, Piotr Indyk, Huy Le Nguyên, and Ilya Razenshteyn. Beyond locality-sensitive hashing. In Proceedings of the 25th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2014.
Alexandr Andoni, Piotr Indyk, Thijs Laarhoven, Ilya Razenshteyn, and Ludwig Schmidt. Practical and optimal LSH for angular distance. In Advances in Neural Information Processing Systems 28 (NeurIPS), 2015.
Sunil Arya and David M. Mount. Approximate nearest neighbor queries in fixed dimensions. In Proceedings of the 4th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 1993.
Martin Aumüller, Erik Bernhardsson, and Alexander Faithfull. ANN-Benchmarks: A benchmarking tool for approximate nearest neighbor algorithms. Information Systems, 87, 2020.
Dmitry Baranchuk, Dmitry Persiyanov, Anton Sinitsin, and Artem Babenko. Learning to route in similarity graphs. In Proceedings of the 36th International Conference on Machine Learning (ICML), 2019.
Sebastian Bruch. Foundations of Vector Retrieval. Springer, 2024.
Moses S. Charikar. Similarity estimation techniques from rounding algorithms. In Proceedings of the 34th Annual ACM Symposium on Theory of Computing (STOC), 2002.
Meng Chen, Kai Zhang, Zhenying He, Yinan Jing, and X. Sean Wang. Roargraph: A projected bipartite graph for efficient cross-modal approximate nearest neighbor search. Proceedings of the VLDB Endowment, 17(11):2735–2749, 2024.
Kenneth L. Clarkson. An algorithm for approximate closest-point queries. In Proceedings of the 10th Annual Symposium on Computational Geometry (SoCG), 1994.
Mayur Datar, Nicole Immorlica, Piotr Indyk, and Vahab S. Mirrokni. Locality-sensitive hashing scheme based on p-stable distributions. In Proceedings of the 20th Annual Symposium on Computational Geometry (SoCG), 2004.
Laxman Dhulipala, Majid Hadian, Rajesh Jayaram, Jason Lee, and Vahab S. Mirrokni. MUVERA: Multi-vector retrieval via fixed dimensional encodings. In Advances in Neural Information Processing Systems 37 (NeurIPS), 2024.
Haya Diwan, Jinrui Gou, Cameron Musco, Christopher Musco, and Torsten Suel. Navigable graphs for high-dimensional nearest neighbor search: Constructions and limits. In Advances in Neural Information Processing Systems 37 (NeurIPS), 2024.
Matthijs Douze, Alexandr Guzhva, Chengqi Deng, Jeff Johnson, Gergely Szilvasy, Pierre-Emmanuel Mazaré, Maria Lomeli, Lucas Hosseini, and Hervé Jégou. The Faiss library. IEEE Transactions on Big Data, 12(2): 346–361, 2026.
Cong Fu and Deng Cai. EFANNA: An extremely fast approximate nearest neighbor search algorithm based on kNN graph. arXiv:1609.07228, 2016.
Cong Fu, Chao Xiang, Changxu Wang, and Deng Cai. Fast approximate nearest neighbor search with the navigating spreading-out graph. Proceedings of the VLDB Endowment, 12(5):461–474, 2019.
Siddharth Gollapudi, Ravishankar Krishnaswamy, Kirankumar Shiragur, and Harsh Wardhan. Sort before you prune: Improved worst-case guarantees of the DiskANN family of graphs. In Proceedings of the 42nd International Conference on Machine Learning (ICML), 2025.
Ruiqi Guo, Philip Sun, Erik Lindgren, Quan Geng, David Simcha, Felix Chern, and Sanjiv Kumar. Accelerating large-scale inference with anisotropic vector quantization. In Proceedings of the 37th International Conference on Machine Learning (ICML), 2020.
Sariel Har-Peled. A replacement for voronoi diagrams of near linear size. In Proceedings of the 42nd Annual IEEE Symposium on Foundations of Computer Science (FOCS), 2001.
Sariel Har-Peled, Benjamin Raichel, and Eliot W. Robson. The road to the closest point is paved by good neighbors. In Proceedings of the 9th Symposium on Simplicity in Algorithms (SOSA), 2026.
Ben Harwood and Tom Drummond. FANNG: fast approximate nearest neighbour graphs. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
Piotr Indyk and Rajeev Motwani. Approximate nearest neighbors: Towards removing the curse of dimensionality. In Proceedings of the 30th Annual ACM Symposium on Theory of Computing (STOC), 1998.
Piotr Indyk and Haike Xu. Worst-case performance of popular approximate nearest neighbor search implementations: Guarantees and limitations. In Advances in Neural Information Processing Systems 36 (NeurIPS), 2023.
Shikhar Jaiswal, Ravishankar Krishnaswamy, Ankit Garg, Harsha Vardhan Simhadri, and Sheshansh Agrawal. OOD-DiskANN: Efficient and scalable graph ANNS for out-of-distribution queries. arXiv:2211.12850, 2022.
Rajesh Jayaram, Erik Waingarten, and Tian Zhang. Data-dependent LSH for the earth mover's distance. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing (STOC), 2024.
Hervé Jégou, Matthijs Douze, and Cordelia Schmid. Product quantization for nearest neighbor search. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(1):117–128, 2011.
Jeff Johnson, Matthijs Douze, and Hervé Jégou. Billion-scale similarity search with GPUs. IEEE Transactions on Big Data, 7(03):535–547, 2021.
William B. Johnson and Joram Lindenstrauss. Extensions of lipschitz mappings into a Hilbert space. Contemporary Mathematics, 26(1):189–206, 1984.
Jon M. Kleinberg. Two algorithms for nearest-neighbor search in high dimensions. In Proceedings of the 29th Annual ACM Symposium on Theory of Computing (STOC), 1997.
Jon M. Kleinberg. The small-world phenomenon: an algorithmic perspective. In Proceedings of the 32nd Annual ACM Symposium on Theory of Computing (STOC), 2000.
Robert Krauthgamer and James R. Lee. Navigating nets: simple algorithms for proximity search. In Proceedings of the 15th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2004.
Ravishankar Krishnaswamy, Magdalen Dobson Manohar, and Harsha Vardhan Simhadri. The DiskANN library: Graph-based indices for fast, fresh and filtered vector search. IEEE Data Engineering Bulletin, 48(3):20–42, 2024.
Eyal Kushilevitz, Rafail Ostrovsky, and Yuval Rabani. Efficient search for approximate nearest neighbor in high dimensional spaces. In Proceedings of the 30th Annual ACM Symposium on Theory of Computing (STOC), 1998.
Thijs Laarhoven. Graph-Based Time-Space Trade-Offs for Approximate Near Neighbors. In Proceedings of the 34th Annual Symposium on Computational Geometry (SoCG), 2018.
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems 33 (NeurIPS), 2020.
Shangqi Lu and Yufei Tao. Proximity graphs for similarity search: Fast construction, lower bounds, and euclidean separation. Proceedings of the ACM on Management of Data, 3(5):1–25, 2025.
Qin Lv, William Josephson, Zhe Wang, Moses S. Charikar, and Kai Li. Multi-probe LSH: efficient indexing for high-dimensional similarity search. In Proceedings of the 33rd International Conference on Very Large Data Bases, 2007.
Yury A. Malkov and Dmitry A. Yashunin. Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. IEEE Transactions on Pattern Analysis and Machine Intelligence, 42(4):824–836, 2020.
Yury A. Malkov, Alexander Ponomarenko, Andrey Logvinov, and Vladimir Krylov. Approximate nearest neighbor algorithm based on navigable small world graphs. Information Systems, 45:61–68, 2014.
Magdalen Dobson Manohar, Zheqi Shen, Guy Blelloch, Laxman Dhulipala, Yan Gu, Harsha Vardhan Simhadri, and Yihan Sun. ParlayANN: Scalable and deterministic parallel graph-based approximate nearest neighbor search algorithms. In Proceedings of the 29th ACM SIGPLAN Annual Symposium on Principles and Practice of Parallel Programming, 2024.
G. Navarro. Searching in metric spaces by spatial approximation. In Proceedings of the 6th International Symposium on String Processing and Information Retrieval (SPIRE), 1999.
Yun Peng, Byron Choi, Tsz Nam Chan, Jianye Yang, and Jianliang Xu. Efficient approximate nearest neighbor search in multi-dimensional databases. Proceedings of the ACM on Management of Data, 1(1), May 2023.
Liudmila Prokhorenkova and Aleksandr Shekhovtsov. Graph-based nearest neighbor search: From practice to theory. In Proceedings of the 37th International Conference on Machine Learning (ICML), 2020.
Harsha Vardhan Simhadri, George Williams, Martin Aumüller, Matthijs Douze, Artem Babenko, Dmitry Baranchuk, Qi Chen, Lucas Hosseini, Ravishankar Krishnaswamy, Gopal Srinivasa, Suhas Jayaram Subramanya, and Jingdong Wang. Results of the neurIPS'21 challenge on billion-scale approximate nearest neighbor search. In Proceedings of the NeurIPS 2021 Competitions and Demonstrations Track, 2022.
Harsha Vardhan Simhadri, Martin Aumüller, Matthijs Douze, Dmitry Baranchuk, Amir Ingber, Edo Liberty, George Williams, Ben Landrum, Magdalen Dobson Manohar, Mazin Karjikar, Laxman Dhaulipala, Meng Chen, Yue Chen, Rui Ma, Kai Zhang, Yuzheng Cai, Jiayang Shi, Weiguo Zheng, Yizhuo Chen, Jie Yin, and Ben Huang. Results of the big ANN: NeurIPS'23 competition. In Advances in Neural Information Processing Systems 38 (NeurIPS), Datasets and Benchmarks Track, 2025.
Suhas Jayaram Subramanya, Devvrit, Rohan Kadekodi, Ravishankar Krishnaswamy, and Harsha Vardhan Simhadri. DiskANN: fast accurate billion-point nearest neighbor search on a single node. In Advances in Neural Information Processing Systems 32 (NeurIPS), 2019.
Philip Sun, David Simcha, Dave Dopson, Ruiqi Guo, and Sanjiv Kumar. SOAR: Improved indexing for approximate nearest neighbor search. In Advances in Neural Information Processing Systems 36 (NeurIPS), 2023.
Jiadong Xie, Jeffrey Xu Yu, and Yingfan Liu. Graph based k-nearest neighbor search revisited. ACM Transactions on Database Systems, 50(4), 2025.
Qiang Yue, Mengzhao Wang, Xiaoliang Xu, Cheng Long, Yuxiang Wang, and Jiahui Wang. Efficient and robust out-of-distribution vector similarity search with cross-distribution monotonic graph. Proceedings of the ACM on Management of Data, 4:1–29, 2026.
A Low-Dimensional Lower Bound
We now prove Theorem 2, which shows that, at least when using pure greedy search, graph-based methods with no Steiner points cannot match the sublinear query time guarantees of LSH, even in dimensional Euclidean space. We restate a more complete version of the claim below.
Theorem 7 (Theorem 2 restated). Let be drawn independently and uniformly from . With high probability, there is no search graph and starting node for for which pure greedy search successfully finds all in-dataset queries in
Note that, if for any fixed constant , then . Also, for all sufficiently large , . Therefore , so Theorem 7 implies a runtime lower bound of for any fixed constant when . This is how the simplified version of the result is stated in Theorem 2.
Our proof of Theorem 7 is based on a recent lower bound of Diwan et al. [2024] on the minimum average degree required to construct a “navigable graph” for X. While navigability of G is a sufficient condition for pure greedy search to find any query , it is not a necessary condition. As such, our lower bound can be viewed as strengthening the result from Diwan et al. [2024].
To prove Theorem 7, we define the “fixed-radius near-neighborhood”, , of a point, , as in Diwan et al. [2024]. For a threshold to be determined later, define
One can argue that for a random dataset, the near-neighborhoods behave roughly like random sets: for an appropriate setting of , we can ensure that each has size , but the overlap between any two neighborhoods is small.
Lemma 3 (Random hypercube neighborhood bounds). There are universal constants and a threshold
with , such that the following holds. Let be drawn independently and uniformly from , where . With high probability, the following three properties hold simultaneously:
-
are unique. .
-
for every .
Proof. The first claim follows from a simple union bound – the points are unique except with probability when for sufficiently large . The next two claims follow from the random hypercube neighborhood analysis of Diwan et al. [2024]. Their fixed-radius neighborhood is defined as
which is exactly our with . Their Claim 8 shows that, for this threshold,
simultaneously for all , and their Claim 9 shows that
simultaneously for all distinct , for a universal constant c.
Their statements are written with constant success probability. However, the proof of Claim 8 gives failure probability for each fixed , and then union bounds over all . The proof of Claim 9 gives polynomially small failure probability for each fixed pair , and then union bounds over all pairs. Therefore, by increasing the absolute constants in the dimension lower bound and in the intersection bound, the same argument gives the high-probability version stated here.
We next argue that, in order for greedy search to succeed on all in-dataset queries, the source node needs an out-neighbor within the near-neighborhood of all its own near-neighbors. Using the bounds of Lemma 3, this allows us to show that needs degree , and thus prove the runtime bound of Theorem 7.
Lemma 4 (First-hop covering constraint). Consider a dataset whose points are unique - i.e., . Fix a directed search graph and starting node , for which pure greedy search on starting from succeeds for all queries . Then, letting denote the out-neighborhood of in ,
Proof. Fix . By the definition of in (2), we have . Since the points in are unique, greedy search in starting from must eventually reach on query . In particular, it cannot stop at the initial vertex . Hence must have an out-neighbor satisfying
Otherwise the algorithm will return . Using for , this inequality is equivalent to . Combining this with , we get . Therefore , and so as claimed.
We now combine Lemmas 3 and 4 to argue that the starting vertex must have high degree. This will immediately imply the runtime lower bound of Theorem 7, since greedy search at least needs to compute the distance from the query to any neighbor of the starting vertex.
Lemma 5 (Source degree lower bound). Let be as in Lemma 3, and assume the three events in the lemma hold. Fix a directed search graph and starting node , for which pure greedy search on starting from succeeds for all queries . Then the out-degree of in satisfies:
Proof. We can apply Lemma Lemma 4 to since the first claim of Lemma 3 ensures that the points in are unique. By Lemma 4, every point must be “covered” by at least one out-neighbor of . I.e., we must have some with to ensure that .
We upper bound how many points in a single out-neighbor can cover. Fix . Any covered by has by the definition of in (2). By symmetry of the inner product, we thus also have . Therefore, we have .
Since , the third claim of Lemma 3 gives
I.e., any covers at most vertices in . On the other hand, the second claim of Lemma 3 gives . Thus, we must have:
I.e.,
□
Proof of Theorem 7. Drawing independently and uniformly from , with high probability, all three claims of Lemma 3 hold. Thus, with high probability, by Lemma 5, for any search graph with starting node for which pure greedy search succeeds on all in-dataset queries, we have . I.e., greedy search must at least compute the distance from to points in the first step of the algorithm, requiring time (even to read those datapoints).
B Omitted Proofs for LSH Simulation with Steiner Points
We now give complete proofs of the results in Section 5, beginning with Theorem 5.
B.1 Fixed Radius LSH Guarantee
Proof of Theorem 5. Suppose an LSH function collides with probability at least for points within distance of , and at most for points farther than . The LSH scheme of Indyk and Motwani [1998] uses hash functions per table and tables, with . Our main challenge is thus to argue that, for a suitable bucket width, the hash function of Datar et al. [2004] has , with and depending only on .
Datar et al. [2004] analyze the closely related quantity . , so if and only if . They show analytically that for any and a sufficiently large bucket width, and numerically that for . We give a short proof that , and thus , for every . Combined with Indyk and Motwani [1998], this proves the claim.
For search radius , write the bucket width as , and let be a standard Gaussian random variable. As shown in Datar et al. [2004], for two points at distance , a single hash function collides with probability
which decreases with . Write . Without the truncation at zero, we would have . The truncation changes this expectation only when . Thus
We have
For every fixed , this error decays faster than any inverse power of . E.g., combined with (3), we have
We next use the Taylor expansion as , taking . This gives that for large enough W,
Finally, we let and , and apply the expansion at these points. This gives:
The last equality uses . For fixed , the negative term dominates the remainder when is sufficiently large with respect to . So, there is a choice of , depending only on , for which and therefore , as desired. Since is continuous, is continuous in ; thus we can choose sufficiently close to such that
as required for the reduction to fixed radius search describe in Section 5.3.
We conclude by noting that the number of hash functions , since is a constant depending only on c.
B.2 The Steiner Comparison Gadget
We next prove Lemma 2, the basic building block of our routing trees: two Steiner points whose comparison by greedy search evaluates a linear threshold function.
Lemma 2. Fix a nonzero vector and a threshold . There exist two Steiner points such that, for every query ,
Further, we can pick and so that and are arbitrarily large.
Proof. Let and . For any , set and . Then
This proves the desired equivalence. Moreover, both and are at least , and so can be made arbitrarily large.
B.3 Simulating One Hash Table
We now use the comparison gadget of Lemma 2 to prove our simulation result for a single LSH table, Lemma 1.
Lemma 1. Fix any , concatenated Datar et al. [2004] hash function , and a dataset of size . There is a directed graph over and additional Steiner points, with edges, and a Steiner starting node , with the following property. For every query with , generalized greedy search initiated at and run for steps either:
-
terminates at a designated Steiner failure node , if ; or
-
reaches a designated terminal node if , with a single out-edge to an arbitrary point in , and then pops this out-neighbor off the search queue (C in Algorithm 1).
All nodes in have out-degree . The search uses distance computations and total time.
Proof. We first specify the tree and its edges, and then describe how to place its Steiner nodes, to ensure that generalized greedy search correctly progresses down the tree. For a nonempty set and one hash function , consider the occupied bucket values . Each occupied value corresponds to values of lying in the interval . These intervals, together with the nonempty gaps between them and the two unbounded outer intervals, partition the real line into at most intervals. We build a balanced binary search tree over these intervals. Each internal node compares with a boundary , and its two children implement that comparison via Lemma 2. A leaf represents either an occupied bucket or a failure interval. The tree has nodes and depth .
For , start with and the first hash coordinate. Each successful leaf becomes the root of a tree for the next coordinate, restricted to the points that agree with all previously selected hash values. I.e., for a prefix , its active set is .
After all coordinates, each leaf corresponding to a non-empty interval is the terminal node for a nonempty bucket . Give one out-edge to an arbitrary fixed point of . Give every failure leaf one out-edge to the shared Steiner failure node . Dataset nodes and have no out-edges.
At each coordinate, the active sets partition , so the sum of their sizes is . Hence the complete graph has Steiner nodes and edges. Every root-to-leaf path has length , and every node has out-degree at most two.
We next choose the Steiner points so that generalized greedy search follows the root-to-leaf path determined by . As discussed, we make deeper Steiner nodes, and all data points, closer to every query with than shallower Steiner nodes. Then the search can never return to an unchosen sibling. Let . Pick to have norm greater than . Assign a depth greater than every tree node, and place the tree nodes in decreasing order of depth. When placing a pair of children at one depth, use the free parameter in Lemma 2 to make both norms exceed the largest norm at any greater depth by more than . The root, whose location is unconstrained, is placed last with the same norm separation.
For any and Steiner nodes with at smaller depth than , this placement ensures
Also, every data point is closer to than every Steiner point , since . When an internal node is popped, its children are therefore closer than all earlier unchosen siblings still in . The next node popped is its correct child, and thus the greedy search follows the comparisons defining . If the bucket is empty, it reaches a failure leaf and then pops . Otherwise, it reaches , inserts its representative data point, and pops that data point next. Stopping at or at this data point proves the routing guarantee.
The search takes steps. Each step performs at most two distance computations and priority-queue and dictionary operations on structures of size , giving query time.
B.4 Fixed-Radius Upper Bound
We next describe how to chain one-table graphs together to simulate the full fixed-radius search procedure of Theorem 5, proving Theorem 6.
Theorem 6. Fix , , , and any . There is a constant depending only on with such that, for any -point dataset , there is a randomized polynomial time algorithm constructing a directed graph on and additional Steiner nodes, and a Steiner starting node , with the following property. For every fixed with and , generalized greedy search initialized at pops at least one point with within steps, with probability at least . All nodes in have out-degree at most two, so running generalized greedy search for steps requires distance computations and takes time.
Proof. Choose and as in Theorem 5, and build the one-table graphs from Lemma 1. These graphs all contain the dataset nodes, but have disjoint sets of Steiner nodes. Use the first table's root as the global starting node . In every table except the last, add an out-edge from each terminal node and from to the next table's root. Thus a terminal node has at most two out-edges (to the corresponding dataset node and to the next root), and every other node still has out-degree at most two. Dataset nodes have no out-edges.
Apply the same Steiner node placement approach as in the proof of Lemma 1, processing the tables from last to first, so that Steiner nodes in the earlier tables have larger norms. In addition to the within-table separation, ensure that every Steiner node norm in an earlier table exceeds every Steiner node norm in a later table by at least . All Steiner node norms still exceed , where .
Fix with . Within each table, search routes as in Lemma 1. In a nonempty bucket, popping the terminal node inserts its representative from the dataset and the next table's root. The representative, if not seen before, is popped next, since data points are closer to than all Steiner points. The next table's root is closer than all remaining Steiner nodes from earlier tables, so the search then proceeds to that table. In an empty bucket, search pops and proceeds directly to the next root.
From Lemma 1 it follows that, within steps, search has popped the representative of every nonempty queried bucket. In particular, Theorem 5 implies that a point within distance is popped with probability at least whenever some point lies within distance .
The graph has Steiner nodes and edges. As in Lemma 1, each step requires distance computations and so the overall query time is .
B.5 The reduction from ANN to fixed-radius search
Finally, we combine our fix-radius search result (Theorem 6) with the standard reduction from c-approximate nearest neighbor search of Indyk and Motwani [1998] to prove our main result on fast graph-based search with Steiner points, Theorem 3.
Theorem 3. There exists a polynomial time algorithm that, given any -point dataset , constructs a search graph over and additional Steiner points, such that generalized greedy search on run for steps starting from an appropriate start node, solves -approximate Euclidean nearest-neighbor search in time, with probability at least . Here is the aspect ratio of the dataset. The big-O notation hides constants that depend on .
Proof. As described in Section 5.3, we chain fixed-radius search graphs for geometrically spaced radii into a single search graph. As shown, letting and , for any query with , all datapoints are -approximate nearest neighbors. This includes any dataset point popped during the search, or the default output if no dataset point is every popped. Thus, correctness only needs to be shown for queries with .
Radii and Graph Construction. Choose satisfying (4). Let and build fixed-radius search graphs as in Theorem 6 with approximation factor for the radii
Since , there are radii, with a constant depending on .
Concatenate the search graphs for each radii into one graph using the same idea is in Theorem 6: terminal Steiner nodes from the last table in one search graph are connected to the starting vertex for the next search graph, and Steiner node norms are chosen so that nodes in the earlier search graphs are always further from than nodes in the later search graphs. Data set nodes remain sinks with no out-edges. By Theorem 6, for every query with , one run of generalized greedy search pops all selected representatives within steps (and running time since all out-degrees are still at most two). We terminate search after steps, or earlier if the queue empties. The output is the closest data point popped, or the default output if no data point was popped.
Correctness. Fix , let , and assume , so that . Let if . Otherwise, let be the smallest index with , which exists since . We only use the fixed-radius guarantee at the single radius . This index is determined by and alone, and is fixed independently of the random hash functions. So Theorem 6 applies at radius : with probability at least , the search pops a point with .
On this event, is a valid answer. If , then , since every other satisfies
If , then , so and
Since generalized greedy search outputs the closest data point it popped, its output is only close to q than x, and so is also a valid answer.
C Empirical Evaluation: Details and Additional Results
We now provide full details of our experimental setup (search procedure, datasets, infrastructure, and Steiner point generation) and additional recall-vs-computation plots for the datasets not shown in the main body. We include results for SIFT (Euclidean distance and cosine similarity), Fashion-MNIST, and YFCC, as well as results with the maximum degree R = 64 for GloVe and NYTimes.
Preliminary experiments. Prior to the large-scale evaluation, we conducted extensive preliminary experiments on smaller subsets (12K vectors) across multiple datasets and multiple strategies for constructing Steiner points. In addition to k-means cluster centroids, we evaluated midpoints of randomly sampled pairs of data points and midpoints of pairs that are close in the metric space but far apart in graph distance (i.e., pairs requiring many hops to reach each other despite being nearby in ). Among all strategies tested, cluster centroids consistently yielded the best recall-vs-computation tradeoffs, which motivated our decision
| Dataset | Dimensions | # Data Points | # Query Points | Metric |
|---|---|---|---|---|
| GloVe-200 | 200 | 1,000,000 | 1,000 | Cosine |
| SIFT | 128 | 1,000,000 | 1,000 | Euclidean |
| SIFT | 128 | 1,000,000 | 1,000 | Cosine |
| NYTimes | 256 | 290,000 | 1,000 | Cosine |
| Fashion-MNIST | 784 | 60,000 | 1,000 | Cosine |
| YFCC | 192 | 1,000,000 | 1,000 | Cosine |
Table 1: Datasets used for evaluation.
to focus on centroid-based Steiner augmentation for the full-scale experiments. These preliminary runs, along with several failed configurations due to metric mismatches and timeout issues, account for roughly twice the compute of the final reported experiments.
C.1 Experimental Setup
Search procedure. We build the Vamana (DiskANN) [Subramanya et al., 2019] graph over the augmented point set using ParlayANN's [Manohar et al., 2024] parallel C++ implementation. At query time, we run beam search with varying beam widths on the augmented graph. Steiner nodes participate fully in the beam (they can be expanded and their edges traversed) but they are excluded from the final result set. We ran beam search with varying beam widths using either Euclidean distance or inverse cosine similarity as our distance metric, dependent on the dataset. For Steiner-augmented graphs, the total number of distance computations includes overhead of evaluating distances to Steiner nodes during beam search. By default, ParlayANN randomly permutes the dataset, hence Steiner points are at random positions in the order of insertion. Steiner points were generated using FAISS's -means implementation.
Parameters. We evaluate each configuration across a geometric progression of beam widths R \in {32, 64}L = 128\alpha = 1.2$ across all experiments. For querying, we subsample 1000 queries uniformly at random from the test datasets for all experiments.
Dataset sources and preprocessing. GloVe-200, NYTimes, SIFT, and Fashion-MNIST are sourced from ANN-Benchmarks [Aumüller et al., 2020]. YFCC is sourced from the NeurIPS'21 Big-ANN benchmark [Simhadri et al., 2025]; we uniformly subsample 1M vectors from the full 10M-vector dataset. We summarize all datasets in Table 1.
Licenses. All software and datasets used in this work are available in the public domain. ParlayANN [Manohar et al., 2024], used for graph construction, is released under the MIT License, as is FAISS, which we use for -means clustering. Among the datasets, GloVe is released under the Public Domain Dedication and License (PDDL v1.0); SIFT is released under Creative Commons (CC) BY 4.0; Fashion-MNIST is released under the MIT License; and NYTimes is distributed via ANN-Benchmarks [Aumüller et al., 2020] and is licensed under CC BY 4.0. The YFCC embeddings are sourced from the NeurIPS'21 Big-ANN benchmark [Simhadri et al., 2025], licensed under CC BY 4.0.
Infrastructure. All large-scale experiments were run on the Unity high-performance computing cluster at the University of Massachusetts Amherst. Each job was allocated a single node with 64 CPU cores and 64 GB of RAM on the cpu partition, running Ubuntu 24.04 with Python 3.11.7. Graph construction was performed using ParlayANN, a parallel C++ implementation of the Vamana algorithm that leverages all available cores.
Runtime. For the 1M-vector datasets (GloVe, SIFT, YFCC), graph construction and search evaluation across all beam widths for 1,000 queries took 6–7 hours per configuration. For the smaller datasets (NYTimes at 290K, Fashion-MNIST at 60K), each configuration completed in 1–2 hours. Each dataset required 6 SLURM jobs (three Steiner percentages two degree bounds), bringing the total compute for the full experimental sweep to approximately 300 CPU-hours.
Ground truth. Ground truth nearest neighbors for computing recall values were computed by brute-force search. Since this was a single-time computation, the total computation time required was insignificant compared to the time required to run the full experimental setup.
C.2 Additional plots and results
Results on GloVe-200 and NYTimes. We show the results for in the main paper, Figure 2. The plots for are in Figure 3 and Figure 4, where Steiner augmentation still improves over the baseline except for Recall@100 on GloVe, with smaller margins. For NYTimes, similar to , Steiner points help for Recall@100 as well.
Results on SIFT. On SIFT (Figure 7, Figure 8, Figure 9, and Figure 10), the baseline Vamana graph already achieves near-perfect recall (above 0.99 for Recall@1 and Recall@10) at low beam widths. All three Steiner configurations slightly underperform the baseline, with the gap narrowing as the Steiner percentage increases (25% > 15% > 5%). The effect is small in absolute terms (less than 1 percentage point) but consistent across beam widths and degree bounds. Understanding precisely why Steiner augmentation does not yield improvements in this high-recall regime is an interesting direction for further investigation.
Results on Fashion-MNIST. On Fashion-MNIST in Figure 5 and Figure 6, the baseline already exceeds Recall@1 of 0.95 at the smallest beam width tested. All Steiner configurations closely track the baseline for Recall@1 and Recall@10, with the 25% configuration showing mild degradation in Recall@100. As with SIFT, the baseline recall is sufficiently high that there is limited room for improvement.
Results on YFCC. YFCC in Figure 11 and Figure 12 exhibits the most pronounced gap between the Steiner-augmented and baseline graphs. The baseline reaches Recall@1 above 0.97 at low beam widths, while all Steiner configurations fall short at matched computation budgets, with differences of 1–3 percentage points. Among the three configurations, higher Steiner percentages perform closer to the baseline (25% > 15% > 5%). The cause of the degradation on YFCC, which is notably more severe than on SIFT or Fashion-MNIST despite similarly high baseline recall, remains an open question.
GloVe-200 (1M vectors, cosine) — R=64

Figure 3: GloVe-200 (1M, cosine) — R = 64
NYTimes (290K vectors, cosine) — R=64

Figure 4: NYTimes (290K, cosine) — R = 64
Fashion-MNIST (60K vectors, cosine / normalized) — R=32

Figure 5: Fashion-MNIST (60K, cosine) — R = 32
Fashion-MNIST (60K vectors, cosine / normalized) — R=64

Figure 6: Fashion-MNIST (60K, cosine) — R = 64
SIFT (1M vectors, cosine / normalized) — R=32

Figure 7: SIFT (1M, cosine) — R = 32
SIFT (1M vectors, cosine / normalized) — R=64

Figure 8: SIFT (1M, cosine) — R = 64
SIFT (1M vectors, Euclidean) — R=32

Figure 9: SIFT (1M, Euclidean) — R = 32
SIFT (1M vectors, Euclidean) — R=64

Figure 10: SIFT (1M, Euclidean) — R = 64
YFCC (1M vectors, cosine / normalized) — R=32

Figure 11: YFCC (1M, cosine) — R = 32
YFCC (1M vectors, cosine / normalized) — R=64

Figure 12: YFCC (1M, cosine) — R = 64