Manuscript Offprint
arXiv:2610.12312The Geometry of Hierarchical Navigation: Accuracy and Query Cost for Point Process Input
Abstract
Large-scale information retrieval systems, including retrieval-augmented generation (RAG) and recommendation engines, widely use multi-layered hierarchical data structures for ultra-fast approximate nearest-neighbor search in high-dimensional vector spaces. However, the geometric conditions that ensure accurate and efficient greedy navigation remain poorly understood. In this work, we study the efficiency of greedy navigation on a hierarchy of proximity graphs constructed from data points on the -dimensional torus . We identify a deterministic coverage condition under which, given any query , greedy search returns a point within -factor of the distance to the closest point. This coverage property holds with high probability when the data is distributed as a homogeneous Poisson process, a Hermitian determinantal process, or a bounded-density Cox process, as long as . Under the same assumptions, the expected number of greedy hops for a fixed query is , yielding logarithmic expected hop count in fixed dimension.
1 Introduction
Ultra-fast approximate nearest-neighbor (ANN) search is a core computational component of retrieval-augmented generation (RAG)-based large language model (LLM) systems [25], large-scale recommendation engines [12], image matching [27], and place recognition in robotics [3]. In a typical RAG pipeline, documents are split into passages and embedded as vectors. The query is similarly embedded, and ANN search retrieves passages with nearby embedding vectors. The retrieved passages are supplied alongside the query as context to an LLM, which uses this information to generate an answer [25]. Similarly, semantic search retrieves text by similarity between learned representations [34], recommendation systems retrieve candidate items using user and item embeddings [9], and image retrieval finds images with nearby feature vectors [21]. For large collections and high query rates, comparing each query with every stored vector is computationally expensive [12, 21], motivating nearest-neighbor search methods that trade exactness for faster retrieval.
A useful approach is to organize the data into a hierarchy of proximity graphs, as in Hierarchical Navigable Small World (HNSW) indexes [28]. Classical ANN algorithms obtain efficient -approximation guarantees through carefully designed data structures [4, 19]. HNSW instead organizes the data into nested layers generated by random sampling [28], and navigates proximity graphs constructed using nearest-neighbor heuristics. Search starts in a sparse upper layer and proceeds toward the query through successively denser layers, combining coarse navigation with local refinement. Compared with earlier greedy navigation methods, this combination separates navigation across distance scales and substantially improves empirical search performance, particularly on clustered data [28]. See Figure 1 for an illustration. Libraries such as Faiss [14] and hnswlib [17] support this approach through implementations of hierarchical graph-based ANN search. HNSW-based retrieval is used in documented RAG implementations built around Claude 3 Sonnet [2], Llama 3 70B [33], and GPT-4o [29]. The geometric properties that make navigation on such hierarchical proximity graphs accurate and efficient are the focus of this work.
Following the introduction of HNSW, substantial progress has been made in identifying graph properties that support accurate search [16, 20, 26, 31]. The search strategy and the hierarchy introduce additional challenges. Even when a graph permits greedy routing between stored points, standard fixed-width beam search, which retains several promising candidates rather than following a single path, can fail to provide any finite approximation guarantee for arbitrary queries [1]. Experiments in [20] also show that, on carefully constructed datasets, practical HNSW implementations may need to examine a constant fraction of the data points to achieve high nearest-neighbor retrieval accuracy, even in two-dimensional Euclidean space. These findings motivate understanding when simple greedy navigation succeeds on hierarchical proximity graphs under suitable assumptions on the data.
For hierarchical search based on -nets, HENN [13] obtains search-cost guarantees when each upper layer intersects every sufficiently populated spherical shell of the layer below. A complementary line of work analyzes navigation under probabilistic input models. Analyses of graph-based nearest-neighbor search consider independent uniform points on a sphere, including query models with a planted close neighbor [23, 32]. Navigation on point processes also has a substantial stochastic-geometric literature, establishing laws of large numbers, path length and hop count asymptotics, and deviation bounds for radial, directed, and cone-based routing [5–7, 15]. These works provide probabilistic context and motivation for our analysis of greedy navigation on an HNSW-inspired hierarchy.
Our contribution. We identify a deterministic directional coverage condition that ensures accurate greedy navigation on an HNSW-inspired hierarchy of proximity graphs. Under this condition, greedy search returns a -approximate nearest neighbor simultaneously for every query, every nonempty layer, and every starting vertex. We then show that this condition holds with high probability for homogeneous Poisson processes, Hermitian determinantal processes, and bounded-density Cox processes, encompassing independent, repulsive, and clustered point configurations. In the dimension regime , we also show that, for a fixed query, the expected number of greedy hops is . Thus, a common deterministic coverage condition supports uniform accuracy guarantees and, together with probabilistic bounds on local point counts, yields logarithmic expected hop count in fixed dimension across these input models. Experimental evaluation on these point process models complements the theoretical analysis, illustrating how approximation accuracy varies with dimension and sector count. We also examine directional coverage and compare the routes produced by greedy navigation with shortest paths in the constructed hierarchy.
2.1 Points with hierarchy
We first describe the setup of the layered hierarchy. Let , with normalized Lebesgue measure, where may depend on . For , let be the canonical lift of and write . The torus diameter is and is the volume of the Euclidean unit ball. Because of that, on the torus, balls
Navigation on nested point sets

Solid red: greedy hops within a layer.
Dashed red: descending at the same point.
Layer 0 close-up

Gray outgoing arcs do not improve query distance.
Figure 1: Hierarchical navigation on two-dimensional point sets. A star marks the same query q on each layer. The search descends through copies of the same data point and ends at the marked data point on layer 0. The close-up shows that this approximate answer may not be the true nearest neighbor . Our theorem shows that .
of radius have volume . For , we denote balls of radius by . For nonzero vectors , define the angle between them as .
We begin with a finite set of distinct points and a size parameter . For a deterministic dataset, we take and for the point-process models below, specifies the intensity scale. Fix and assign each point an independent geometric height with . This is the independent layer-sampling mechanism used in HNSW [28]. Here we use the deterministic cutoff on heights. This choice keeps the top-layer intensity scale of order . Each point is present in every layer up to its height, and we construct the hierarchy only up to layer . We call together with the height marks the marked input. To compare different layers, we introduce a reference scale for their local density. If layer contains about points, then the characteristic distance between nearby points is of order . We define
The extra factor is chosen so that balls of radius contain logarithmically many points for fixed , providing enough points for the large-deviation estimates used later. The condition on the deterministic hierarchy later will require that the distances to the closest points on layer are at most at scale . For , define
Here, D > 0 controls the intensity scale of the top layer and may depend on d and the fixed model parameters. Its choice is specified in Appendix A. For sufficiently large n, this yields
so that the top layer contains logarithmically many points.
2.2 Directional diversification and candidate pools
We now show how we construct the graph to ensure that it supports effective greedy search in all potential directions (Algorithm 1). To achieve this, we partition the space around a vertex into sectors and aim to connect to one representative per occupied sector. Directional neighbor
Algorithm 1 Construct the out-neighbor hierarchy
Require: Finite point set ; size parameter ; ; ; sector partition ;
1: Set as in (2) and
2: Independently sample heights with and form
3: for do
4: for do
5:
6: nearest points to in
7: for do
8: if then
9: Add to
10: end if
11: end for
12: end for
13: end for
14: return and
selection also underlies classical cone-based graph constructions and search methods on a single graph, without the sampled hierarchy used here [4, 10, 22, 36].
Let denote the unit sphere. Partition into Borel measurable cells whose boundaries have zero -dimensional surface measure. Let denote this surface measure. Write
Here, is the angular diameter of the cell. For , is the counting measure on and the two singleton cells have diameter zero. We then define the -th sector at as
For random point processes, the heights are also independent of the point process. Let be a chosen constant, which may depend on and the fixed model parameters, and let . We now create the graph at each layer. For every vertex and layer , let contain the nearest points to in . For each occupied sector, add an arc from to the nearest point in . If the nearest neighbor is not unique, choose one arbitrarily. Denote the resulting out-neighbors by . By construction, . Whenever an arc points into a sector, its endpoint is a closest point to among all layer- points in that sector.
2.3 Greedy queries
The routing algorithm (Algorithm 2) uses only the edges to out-neighbors. It first reaches a local minimum on the current layer, then reuses that vertex as the entry point on the next denser layer. Upper layers therefore provide long-range progress, while lower layers refine the search.
To be more specific, given , start at any vertex of . At a current vertex in layer , choose an out-neighbor minimizing . Thus for every . Move to only if . If there is no out-neighbor, or none is strictly closer to than , stop the search on this layer and, if , use as the entry point on layer . The vertex where the search stops on layer is called the terminal vertex and is denoted by . The algorithm returns . If , the routing fails.
Algorithm 2 Greedy top-down search for query q
Require: Query ; hierarchy and neighbor lists from Algorithm 1; 1: if then 2: return failure 3: end if 4: Choose any 5: for do 6: while with do 7: 8: end while 9: 10: end for 11: return
Let be the total number of greedy hops at layer and set
If , set for all . Algorithm 2 uses distance queries, where is the number of sectors.
3 Main results
3.1 Class of navigable hierarchies
We now define the deterministic coverage class of hierarchies that ensure greedy search with accuracy.
Definition 3.1 (Coverage class). Let and let be as in (1). Let consist of the finite nested configurations for which, at every ,
-
at least points of lie in ;
-
for all .
Define , with when . The next theorem shows that, whenever an HNSW-inspired hierarchy belongs to the coverage class , greedy search terminates close to the nearest point to the query.
Theorem 1 (Deterministic accuracy). Fix and . For every , there exists a sector diameter threshold such that, for every hierarchy in with , the terminal vertex satisfies
Here, is any constant satisfying . The bound holds simultaneously for every , every nonempty layer , and every starting vertex in that layer. Furthermore, if , the layer search reaches exactly.
Geometrically distributed heights are standard in HNSW [28]. However, Theorem 1 also applies to hierarchies generated by more general height distributions, provided that the conditions of Definition 3.1 hold.
Homogeneous Poisson Independent uniform points
Fourier projection DPP
Repulsive points
Bounded-density Cox
Clustered points

Figure 2: Point processes on , with common expected count . Left: homogeneous Poisson intensity . Middle: the Fourier projection DPP. Right: Cox with intensity having three modes at three different points.
3.2 Accuracy for random point processes
We now consider three classes of random inputs, for which we will show that Algorithm 2 is successful with high probability. Poisson processes are the standard benchmark for point processes, and give a model where all points are independent and uniformly distributed. Determinantal point processes introduce local repulsion, while Cox processes allow clustering through a random intensity field; see Figure 2. Thus, these classes support wide ranges of point processes, allowing us to show that our navigation argument holds in a wide variety of settings. We define these briefly below. For background on Poisson and Cox processes, see [24]; for determinantal point processes, see [18].
A random input is a finite point process on . We describe the three random input models through their joint intensities.
Definition 3.2 (Joint intensities). Let be a simple point process on . Its joint intensities with respect to Lebesgue measure are nonnegative measurable functions , , such that, for every collection of pairwise disjoint Borel sets ,
The three input families have the following joint intensities. The constants below are independent of n and d.
-
Poisson input. A homogeneous Poisson process with rate has . We take , giving points in expectation on the unit-volume torus. Under this process, the numbers of points in disjoint sets are independent.
-
Determinantal input. A Hermitian determinantal point process (DPP) has
where the kernel is measurable and Hermitian (i.e., ). We assume that almost everywhere and that for almost every , where and are the eigenvalues and orthonormal eigenfunctions of the associated integral operator. Additionally, we assume that for every and .
- Cox input. The Cox process has
where is a jointly measurable random function. Equivalently, conditional on , is a Poisson process with inhomogeneous intensity . We assume almost everywhere, almost surely. We refer to the random function as the environment.
Under these sampling distributions, we will consider the events and . The first property of the coverage class in Definition 3.1 ensures that the greedy arcs on each layer are not too long. The second property ensures that the graph contains arcs toward every directional sector . By construction, in , every selected sector neighbor is nearest in that sector and lies within of its source. The next theorem shows that each of the three input models yields a randomly sampled hierarchy satisfying the directional coverage condition with high probability, and hence yields a uniform -approximation guarantee for greedy search.
Theorem 2 (Accuracy for Poisson, determinantal and Cox input). Fix , a retention probability , and a failure exponent . Let . Suppose that is one of the three point process inputs described above, with the stated intensity bounds. There exist sector partitions and dimension-dependent parameters with
such that, for sufficiently large n,
Thus, with probability , the approximation guarantees of Theorem 1 hold. Explicit parameter choices are given in Appendix A.
3.3 Number of hops
The next theorem gives bounds on the total number of hops as defined in (4) for all three point process input classes.
Theorem 3 (Hop count). Let and assume the hypotheses of Theorem 2. For every fixed query, or a random query independent of the marked input,
For fixed dimension, Theorem 3 yields a logarithmic expected hop count. When the dimension is allowed to grow slowly with n, the dependence is captured by the explicit factor , which is in the stated dimension regime.
4 Strategy of the proofs
The following three items explain the main ideas behind the proofs.
Terminal vertices must be close. Under the conditions of Definition 3.1, if a vertex is far from the query, then one of its out-neighbors points approximately toward the query direction. A cosine-rule calculation (Lemma 6.2) then shows that this neighbor strictly decreases the query distance. Thus, when greedy search stops, the terminal vertex cannot be far from the query. We use this argument to finally show that sufficiently narrow sectors yield a approximation guarantee.
Search remains close to the query. The approximation (5) shows that the search remains within a small neighborhood of the query on every non-top layer. Since each greedy step visits a new vertex, the number of hops is bounded by the number of points in that neighborhood. Theorem 3 therefore reduces to bounding these point counts (Proposition 7.1).

Figure 3: Poisson input at intensity 20,000: approximation ratio and exact nearest-neighbor recall as dimension increases. Each plotted point shows the mean over five independent realizations, with 1,000 queries per realization. The shaded areas form the 99% intervals.
Usable edge in every direction. The deterministic theorem assumes that every sector has non-empty intersection with the candidate pool. To prove that this event occurs with high probability for the random point processes, we show that there exists a small ball containing at least one point in every sector and at most points with high probability. The probabilistic analysis then shows that this situation occurs simultaneously for all vertices and layers with high probability (Proposition 6.5).
5 Numerical experiments
We experimentally evaluate two different questions: how close the returned point is to the true nearest neighbor and how efficient the greedy route is compared to an exact shortest path. The first experiment uses the d-dimensional torus with varying d, the second one the unit two-dimensional torus. We use the following random processes:
-
A homogeneous Poisson point process of intensity n.
-
A DPP obtained by dividing the torus into equal-area rectangles and independently drawing one uniform point in each rectangle. Its kernel is
- A Cox process with independent uniform phases and conditional intensity , where
Impact of dimension. To investigate the effect of the underlying dimension, we compare K = 16 and K = 64 sectors on the same points and queries. Figure 3 shows that increasing the dimension while keeping the number of angular sectors K fixed gives a worse approximation ratio. For K = 16 the mean approximation ratio remains within a 10% error up to dimension 6, while for K = 64, it remains within that range up to dimension 12. The recall, the fraction of times the algorithm succeeds in finding the exact nearest neighbor, also decreases as the dimension increases. This can be mitigated by increasing K, at the cost of higher computational effort.

Figure 4: Left: route-stretch distributions at K = 32. Right: fraction of vertices satisfying Condition 3.1(2) against K at n = 20,000
Shortest paths While our results show that the algorithm has a approximation guarantee for nearest-neighbor search, we now evaluate how efficient the path the algorithm takes is compared to the shortest route. We therefore define the route stretch as the hop count of the route returned by the algorithm divided by the hop count of the shortest route toward that target. Figure 4 shows that the route stretch is typically at most 1.5, with some exceptions. Thus, while the algorithm approximately finds the closest point, the route it takes may be substantially longer than optimal in some cases. This is because in some cases, the exact shortest path descends to a lower layer before reaching a greedy local minimum, whereas Algorithm 2 continues on its current layer as long as an improving edge is available.
The right panel of Figure 4 checks Condition 3.1(2) and what fraction of vertices satisfy this condition for the families of stochastic point processes. While our results ensure that this fraction tends to one as , the figure shows that for finite n, this fraction drops quickly, especially for large K. Interestingly, how quickly this descends depends on the process types as well. For the DPP, which is more regular, 90% of the vertices still satisfy the condition when K = 64, whereas for the more clustered Cox process, only 50% of the vertices still satisfy it.
6 Proofs of Theorems 1 and 2
For the proof of the deterministic result (Theorem 1) in Section 6.1, we know that every candidate pool contains a representative from every sector. Under this assumption, we show that greedy search always has an improving move when it is far from the query. We then show that a terminal vertex must be close to the true nearest neighbor, yielding the deterministic approximation.
Section 6.2 then shows that the processes of Definition 3.2 satisfy the criteria for Theorem 1 with high probability. This then yields the accuracy guarantees of Theorem 2.
6.1 Directional coverage forces relative accuracy
This subsection begins with Proposition 6.1 which describes the core geometric property of the hierarchy model by giving upper bounds for the distance between the terminal vertex of a layer and the query. For that, define the approximation factor
Later, we will choose so that . We recall that . After stating the proposition, we prove two lemmas quantifying the progress towards the query which we need for the proof of the proposition. We conclude with the proof of Theorem 1.

Figure 5: From the current vertex , the neighbor lies in the sector containing the direction toward the query , so the angle between these directions satisfies . Since the hierarchy belongs to , the length of the edge is at most . Lemma 6.2 then shows that is closer to than whenever .
Proposition 6.1 (Distance of terminal vertex). Suppose , and . For every hierarchy , the following bounds hold simultaneously for every query , every nonempty layer , every starting vertex in that layer and every layerwise terminal vertex :
The following lemma states that a sufficiently short step pointing toward the query strictly decreases the distance to the query, see Figure 5. Recall that is the canonical lift on the torus.
Lemma 6.2 (Progress). Let be such that and are nonzero. Let . If , then
Proof. Since is a lift of , the definition of the torus distance gives
By squaring both sides of the previous inequality we obtain
By using
we get
and hence .
The next lemma provides conditions in (9) under which a step toward a point near the query still makes progress. For an illustration, see Figure 6.
Lemma 6.3 (Cone descent). Let . Suppose
(i)
Then, .
points closer to q
than

Figure 6: If the true nearest point were substantially closer to q than the terminal vertex , then the neighbor u of in the same sector must also be closer to q than (red sector). Such a neighbor would be an improving greedy move, so cannot be terminal. Lemma 6.3 makes this statement quantitative.
Proof. By scaling all three vectors by and applying an orthogonal transformation, we may assume that is the first standard basis vector. Define and . In an auxiliary plane, set , and . By construction, we have
Combining this with assumption , we obtain
This implies
which yields
Since and , we have . Thus, implies . Applying assumption (iii), we compute . By assumption (ii) and the monotonicity of the cosine, we get
Therefore
which implies the statement.
Proof of Proposition 6.1. Fix a query and a nonempty layer . We begin by showing . Let and suppose . Our goal is to show that no such vertex can be the terminal vertex. Since the hierarchy belongs to , there is a neighbor in the sector containing that fulfills . Together with the assumption this yields
By construction of the sectors, we have . Since the cosine is decreasing on , we get
so Lemma 6.2 gives
Hence, no vertex with can be terminal. Since each greedy step strictly decreases the distance to and is finite, the search terminates at a vertex satisfying .
For the second bound, fix a terminal and a nearest layer point . If , there is nothing to prove. Since and , we get
This means that
If we assume , then and . Take as the neighbor in the sector of . Since by construction is the closest neighbor to in that sector, we obtain
Then, Lemma 6.3 yields
which contradicts that is the terminal vertex. Thus, .
Proof of Theorem 1. Given , set
Then, for all we obtain
so that by (8) we have . Proposition 6.1 therefore yields
If , then and equation (10) implies exact recovery.
6.2 A probabilistic criterion for uniform coverage
For Theorem 2, we want to show that the point process satisfies the conditions of Definition 3.1 with high probability, so we need local count estimates for the other points conditional on a point being present at a given location. For this we use the reduced Palm law. Write
where is the intensity of .
For , let denote the reduced Palm law at , with expectation ; see e.g., [11]. Informally, this is the law of the point configuration conditioned on containing , after removing that point. It is characterized by the reduced Campbell identity [11]: for every nonnegative measurable ,
Here, denotes the reduced configuration under . Define . Recall that are the constants from Definition 3.2.
Definition 6.4 (Palm criterion). The layer marginals satisfy the Palm criterion if and for almost every , for every Borel set and every ,
The last two bounds hold for dv-almost every v.
The following proposition states that under Definition 6.4, the hierarchy satisfies the properties from Definition 3.1 with high probability.
Proposition 6.5. Suppose that Definition 6.4 holds and the parameters are chosen as in Appendix A. Then,
The Chernoff bounds in the next lemma are essential for the proof of Proposition 6.5.
Lemma 6.6. If a nonnegative integer-valued Z with mean satisfies for every real , then
Proof. These standard Chernoff bounds follow from the assumed Poisson MGF domination, see e.g. [8], by taking , and respectively.
To prove Proposition 6.5, we show that three counting events which imply the conditions in Definition 3.1 occur with high probability and conclude by using a union bound and (11).
Proof of Proposition 6.5. Fix a layer and a point for which the bounds in Definition 6.4 hold. Fix and choose
Under , write
If
then the two conditions of Definition 3.1 hold: the first inequality implies (1), while the other two imply (2). Our goal now is to show that the inequalities in (16) hold with high probability. Since by equation (1),
for all sufficiently large n. We apply Lemma 6.6, via (14) and (15), and consider the parameter choices from Appendix A to obtain
Similarly, we can show that
Using Lemma 6.6 with and choosing , we can show
Define
as the event that one of the inequalities in (16) fails. By a union bound, we get
Hence, using the reduced Campbell identity (11) yields
where , since and . Finally, by using and Lemma 6.6 we obtain
and since , we get . The parameter choices therefore yield
6.3 Verification for the three point-process laws
Section 6.2 reduced the probabilistic analysis to the Palm criterion from Definition 6.4. We now show that these estimates hold for the three input classes of Definition 3.2.
Proposition 6.7 (Verification of the Palm criterion). Poisson and determinantal input satisfy the Palm criterion from Definition 6.4. Specifically, the difference between the original and the reduced Palm mean measures is zero for Poisson input and at most for determinantal input. For Cox input, the estimates in the Palm criterion hold conditionally on , uniformly over all realizations with .
Before we can prove Proposition 6.7, we need the following lemma.
Lemma 6.8 (Integrated determinantal Palm loss). The DPP kernel on layer is . Its reduced Palm kernel at intensity-almost every v is
It is a positive contraction and for every Borel S,
Proof of Lemma 6.8. The thinning of the layers multiplies an -point correlation density by , which gives the kernel . The Schur complement of the correlation determinant at gives (20). By standard reduced Palm theory for Hermitian determinantal processes, see e.g. [30, 35], the reduced Palm process is determinantal with kernel which satisfies
Let and denote the eigenvalues and orthonormal eigenfunctions of the integral operator with kernel . The spectral expansion is
By orthonormality of the eigenfunctions, we get
Since , we obtain
and hence
which implies (21).
The three models require only minor variations on the same argument. For Poisson input, the required count and Palm estimates follow from the standard formulas for Poisson point processes. For determinantal input, local point counts can be represented as sums of independent Bernoulli variables, while Lemma 6.8 shows that passing to the reduced Palm process changes the relevant means by at most . For Cox input, we condition on the random environment, apply the corresponding Poisson estimates and then average over the environment.
Proof of Proposition 6.7. Independent thinning preserves a Poisson law with intensity . The Poisson moment-generating function gives (12) with equality and the Mecke formula identifies its reduced Palm law with the unconditioned process [11]. Thus, (13) and (14) hold, since .
For determinantal input, the count is distributed as a sum of independent Bernoulli random variables whose parameters are the eigenvalues of , see e.g. [18]. Hence,
which shows (12). By Lemma 6.8 the reduced Palm process is again determinantal with a positive-contraction kernel whose mean measure differs by at most on every Borel set. Therefore, (13) holds and (14) follows with the same argument as (12).
For Cox input, condition on the environment . The Poisson argument applies with intensity , uniformly over . Thus, the Palm criterion holds conditionally with , uniformly over admissible environments. Applying Proposition 6.5 conditionally and then averaging establishes the required bounds for Cox input.

Figure 7: The final vertex on layer is at distance at most from q. Repetition down to layer 0 yields that the final scale is .
6.4 Proof of Theorem 2
To prove Theorem 2, we combine the results of the previous subsections with Theorem 1.
Proof of Theorem 2. By Propositions 6.7 and 6.5, (6) holds; in particular . On the event , Theorem 1 gives
simultaneously for every query and every choice of entry point. This proves that (5) holds with high probability for all vertices and layers.
7 Proof of Theorem 3
Theorem 1 shows that the terminal vertex on each layer lies within distance of the query, as illustrated in Figure 7. As the greedy search only moves towards vertices that are closer to q, for every vertex visited during the search at layer lies in the ball . Proving Theorem 3 therefore reduces to a counting problem showing that the number of greedy hops is bounded by the number of points in a specific region.
7.1 Hops on non-top layers
The next proposition shows that the number of hops on a single non-top layer has an exponentially decaying tail.
Proposition 7.1. Under the Palm criterion from Definition 6.4 and the parameter choices of Appendix A, there exists such that for each deterministic query, all and integers ,
In particular,
The same estimates hold for bounded Cox input.
Lemma 7.2. On , for ,
Proof. Proposition 6.1 shows that the layer’s entry is within of q. During the search on layer , every greedy hop strictly decreases the distance to q. Therefore every vertex visited by a greedy hop lies in the ball . Since a greedy walk never revisits a vertex, the number of hops is at most the number of layer- points contained in this ball. This proves the first inequality in (23).
By definition of , we also have that . Combining this with Theorem 1 yields
Finally, Appendix A shows that .
Proof of Proposition 7.1. Set and and . For a given , set
The radius is chosen so that the expected number of points in a ball of radius is at most in layer . We distinguish whether . In the first case, both comparison balls are embedded and otherwise we use the deterministic radius to bound the number of visited vertices.
If , then (23) gives
The first event is the event that contains no point of , so its probability is at most
The point count of the second event has mean at most
so (15) shows that the probability of the event is bounded by .
If , the ball of radius might wrap around the torus. By Lemma 7.2, every vertex visited during the search on layer is in . Since the number of hops is bounded by the number of layer- points in this ball, . Thus,
Because ,
Thus, the expected number of points in is strictly smaller than . Lemma 6.6 gives
Summing the resulting tail over k proves (22). The Cox statement follows from uniform conditional Poisson bounds.
7.2 Storage
The hierarchy contains layer incidences, each storing at most outgoing arcs. Consequently, , so bounding also controls graph storage. The next proposition shows that is linear in both in expectation and with exponentially high probability.
Proposition 7.3 (Linear layer incidences). For every admissible input there are fixed with
Proof of Proposition 7.3. Let and observe that is bounded by
For , the moment generating function of is
Conditioning on gives . Applying Equation (12) to the whole torus gives
For Cox input, the same estimate holds conditionally on the environment, since the total directing mass is at most b, and therefore also after averaging. Choosing and applying Chernoff's inequality yields
for some and hence the same bound for . The first two moments of are and . Using independence of the heights and (24), we obtain
while
The ordinary MGF bound also gives
by comparing the second-order expansions at zero. Taking expectations then yields
For Cox input, the same calculation is performed conditionally on the environment and then averaged. Since , these estimates transfer directly to . Finally, each layer incidence contributes at most outgoing arcs, so , which gives the stated bounds.
Proof of Theorem 3. Fix a deterministic query q. We decompose the hop count into three contributions: the top layer, the remaining layers, and the hop count on the event . As every point in each layer is visited at most once, and . Hence,
Here, the first term is analyzed by (2), the second term comes from Proposition 7.1 and (22), and the third term uses Cauchy-Schwarz. Using together with Propositions 6.5 and 7.3 yields
as . Since , we get and by Appendix A, we obtain
so we can conclude with
Independent random queries are handled by conditioning on the query.
A Dimension-dependent parameter construction
We verify the parameter choices required by Theorems 2 and 3 when .
Verification of the parameter choices. For , the two directions define the required sector partition and all parameters are fixed constants. Assume . Fix . Let be a maximal -separated set. The associated spherical Voronoi cells have maximum angular diameter , and each contains the spherical cap of angular radius around its center. Let denote the normalized surface measure of a spherical cap of radius . For fixed ,
Consequently,
while every sector has measure at least
The proof of Proposition 6.5 requires three local count events: the outer ball must contain at least m points, the inner ball must contain at most m points, and every inner sector must contain a point. We choose
and next
These choices guarantee that the inequalities in equations (17), (18) and (19) hold. The query-cost analysis uses comparison balls centered at the query. To apply the count estimates, these balls must remain embedded in the torus, so that their volume is exactly . Choose a fixed constant
and define
As shown below, . Hence, for sufficiently large the definition of in (2) gives and since , the choice of ensures
To estimate the resulting dimension dependence, note that
By Stirling's formula,
Since
we get
Furthermore,
Finally, implies that , , . In particular, we have , so for sufficiently large n, the definition of L in (2) gives
Finally, Lemma 6.6 yields
☐
Declaration of AI assistance
LLMs were used to check the language and grammar, to check the proofs of the main results, and to generate both the illustrative visualizations and numerical experiments. The authors take full responsibility for the paper. In particular, the model formulation, results and proofs were all written by the authors before verification and cleanup by LLMs.
Acknowledgements
S. Bhamidi was partially supported by the National Science Foundation through grants DMS-2113662, DMS-2413928, and DMS-2434559, and by the NSF Research Training Group grant DMS-2134107.
References
[1] Yousef Al-Jazzazi, Haya Diwan, Jinrui Gou, Cameron N Musco, Christopher Musco, and Torsten Suel. Distance adaptive beam search for provably accurate graph-based nearest neighbor search. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
[2] Amazon Web Services. Indian language RAG with cohere multilingual embeddings and anthropic Claude 3 on Amazon Bedrock. AWS Machine Learning Blog, 2024.
[3] Shan An, Guangfu Che, Fangru Zhou, Xianglong Liu, Xin Ma, and Yu Chen. Fast and incremental loop closure detection using proximity graphs. In 2019 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 378–385, 2019.
[4] Sunil Arya and David M. Mount. Approximate nearest neighbor queries in fixed dimensions. In Proceedings of the Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '93, page 271–280, USA, 1993. Society for Industrial and Applied Mathematics.
[5] François Baccelli and Charles Bordenave. The radial spanning tree of a Poisson point process. The Annals of Applied Probability, 17(1):305–359, 2007.
[6] Nicolas Bonichon and Jean-François Marckert. Asymptotics of geometrical navigation on a random set of points in the plane. Advances in Applied Probability, 43(4):899–942, 2011.
[7] Charles Bordenave. Navigation on a Poisson point process. The Annals of Applied Probability, 18(2):708–746, 2008.
[8] Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press, 02 2013.
[9] Rihan Chen, Bin Liu, Han Zhu, Yaoxuan Wang, Qi Li, Buting Ma, Qingbo Hua, Jun Jiang, Yunlong Xu, Hongbo Deng, and Bo Zheng. Approximate nearest neighbor search under neural similarity metric for large-scale recommendation. In Proceedings of the 31st ACM International Conference on Information & Knowledge Management, CIKM '22, page 3013–3022, New York, NY, USA, 2022. Association for Computing Machinery.
[10] K. Clarkson. Approximation algorithms for shortest path motion planning. In Proceedings of the Nineteenth Annual ACM Symposium on Theory of Computing, STOC '87, page 56–65, New York, NY, USA, 1987. Association for Computing Machinery.
[11] Jean-François Coeurjolly, Jesper Møller, and Rasmus Waagepetersen. A tutorial on palm distributions for spatial point processes. International Statistical Review, 85(3):404–420, 2017.
[12] Paul Covington, Jay Adams, and Emre Sargin. Deep neural networks for youtube recommendations. RecSys '16, page 191–198, New York, NY, USA, 2016. Association for Computing Machinery.
[13] Mohsen Dehghankar and Abolfazl Asudeh. HENN: A hierarchical epsilon net navigation graph for approximate nearest neighbor search. arXiv:2505.17368, 2025.
[14] Faiss contributors. Faiss indexes. Project documentation. Accessed October 3, 2026.
[15] Partha Pratim Ghosh, Benedikt Jahnel, and Sanjoy Kumar Jhawar. Large and moderate deviations in Poisson navigations. Advances in Applied Probability, 58(1):387–424, 2026.
[16] Siddharth Gollapudi, Ravishankar Krishnaswamy, Kirankumar Shiragur, and Harsh Wardhan. Sort before you prune: Improved worst-case guarantees of the DiskANN family of graphs. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 19787–19808. PMLR, 13–19 Jul 2025.
[17] hnswlib contributors. hnswlib: Header-only C++/Python library for fast approximate nearest neighbors. Software repository. Accessed October 3, 2026.
[18] J. Ben Hough, Manjunath Krishnapur, Yuval Peres, and Bálint Virág. Determinantal Processes and Independence. Probability Surveys, 3:206 – 229, 2006.
[19] Piotr Indyk and Rajeev Motwani. Approximate nearest neighbors: towards removing the curse of dimensionality. In Proceedings of the Thirtieth Annual ACM Symposium on Theory of Computing, STOC '98, page 604–613, New York, NY, USA, 1998. Association for Computing Machinery.
[20] Piotr Indyk and Haike Xu. Worst-case performance of popular approximate nearest neighbor search implementations: guarantees and limitations. In Proceedings of the 37th International Conference on Neural Information Processing Systems, NIPS '23, Red Hook, NY, USA, 2023. Curran Associates Inc.
[21] Jeff Johnson, Matthijs Douze, and Herve Jegou. Billion-Scale Similarity Search with GPUs. IEEE Transactions on Big Data, 7(03):535–547, July 2021.
[22] J. M. Keil. Approximating the complete euclidean graph. In No. 318 on SWAT 88: 1st Scandinavian Workshop on Algorithm Theory, page 208–213, Berlin, Heidelberg, 1988. Springer-Verlag.
[23] Thijs Laarhoven. Graph-Based Time-Space Trade-Offs for Approximate Near Neighbors. In 34th International Symposium on Computational Geometry (SoCG 2018), volume 99 of Leibniz International Proceedings in Informatics (LIPIcs), pages 57:1–57:14, Dagstuhl, Germany, 2018. Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik.
[24] Günter Last and Mathew Penrose. Lectures on the Poisson Process. Institute of Mathematical Statistics Textbooks. Cambridge University Press, 2017.
[25] 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 Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS '20, Red Hook, NY, USA, 2020. Curran Associates Inc.
[26] Binhong Li, Xiao Yan, and Shangqi Lu. Fast-convergent proximity graphs for approximate nearest neighbor search. Proc. ACM Manag. Data, 4(1), April 2026.
[27] David G. Lowe. Distinctive image features from scale-invariant keypoints. International Journal of Computer Vision, 60(2):91–110, 2004.
[28] Yu A. Malkov and D. A. Yashunin. Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. IEEE Trans. Pattern Anal. Mach. Intell., 42(4):824–836,
April 2020.
[29] Microsoft. Multimodal parsing for RAG: Azure OpenAI GPT-4o, LlamaParse and Azure AI Search. Microsoft Azure AI Services Blog, November 2024.
[30] Jesper Møller and Eliza O'Reilly. Couplings for determinantal point processes and their reduced palm distributions with a view to quantifying repulsiveness. Journal of Applied Probability, 58(2):469–483, 2021.
[31] Yun Peng, Byron Choi, Tsz Nam Chan, Jianye Yang, and Jianliang Xu. Efficient approximate nearest neighbor search in multi-dimensional databases. Proc. ACM Manag. Data, 1(1), 2023.
[32] 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'20. JMLR.org, 2020.
[33] Marco Punio, Armando Diaz, Chase Pinkerton, Varun Mehta, and Breanne Warner. Best practices for prompt engineering with Meta Llama 3 for Text-to-SQL use cases. AWS Machine Learning Blog, August 2024.
[34] Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence embeddings using Siamese BERT-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 3982–3992, Hong Kong, China, November 2019. Association for Computational Linguistics.
[35] Tomoyuki Shirai and Yoichiro Takahashi. Random point fields associated with certain fredholm determinants i: fermion, poisson and boson point processes. Journal of Functional Analysis, 205(2):414–463, 2003.
[36] Andrew Chi-Chih Yao. On constructing minimum spanning trees in k-dimensional spaces and related problems. SIAM Journal on Computing, 11(4):721–736, 1982.