arXiv:2609.02498cs.DSSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.02498

The Price of Almost Navigability

Tomer Waizer, Yoav Danieli

Abstract

Navigability is a fundamental property of graph-based search structures and plays an important role in the analysis of nearest-neighbor algorithms. Informally, a graph is navigable if, from any current point and toward any desired target, there is always an outgoing edge that moves strictly closer to that target. While this property provides a strong guarantee for greedy search, it can be inherently expensive: in the worst case, navigable graphs require Ω(n3/2)\Omega(n^{3/2}) edges, where nn is the size of the dataset.

Recently, Avi and Musco introduced (1−ε)(1-\varepsilon)-almost navigability, a natural relaxation in which, from every current point, such a progress-making edge is required for almost all targets, while an ε\varepsilon fraction of targets may fail this condition [5]. They showed that every dataset admits such a graph with O(n/ε)O(n/\varepsilon) edges.

In this work, we prove a matching lower bound, establishing the optimality of their construction and giving a complete characterization of the sparsity achievable by almost-navigable graphs. For most values of ε\varepsilon, our hard instances lie in Euclidean spaces of polylogarithmic dimension, across the full worst-case range of ε\varepsilon, dimension d=O(nlog⁡3/2n)d = O(\sqrt{n}\log^{3/2}n) suffices. The same construction also sharpens our understanding of ordinary navigability: in the latter dimension, we exhibit datasets for which every navigable graph has Ω(n3/2)\Omega(n^{3/2}) edges.

Our proof reveals a surprising connection between almost navigability and the classical Zarankiewicz problem of constructing dense graphs with limited pairwise neighborhood overlap. This connection lets us translate extremal graph constructions into hard geometric instances for navigation, linking two seemingly different notions of graph sparsity.

Keywords. nearest-neighbor search; navigability; dimension reduction; Zarankiewicz problem.

1 Introduction

Nearest-neighbor search is a fundamental and widely studied problem in data analysis, machine learning, and information retrieval. Given a dataset P=p1,…,pn⊆RdP = p_1, \ldots, p_n \subseteq \mathbb{R}^d and a query point q∈Rdq \in \mathbb{R}^d, one would like to find the point of PP closest to qq. In high dimension, exact search is subject to the familiar curse of dimensionality: classical indexing methods deteriorate with dimension, and general lower bounds show strong dimension dependence [19, 37, 10, 6]. Therefore, much of the literature instead studies approximate nearest-neighbor search.

Definition 1.1 (Approximate nearest-neighbor search). For c≥1c \geq 1, a cc-approximate nearest neighbor of a query q∈Rdq \in \mathbb{R}^d is a point p∈Pp \in P satisfying

∥p−q∥2≤cmin⁡x∈P∥x−q∥2.\|p-q\|_{2}\leq c\min_{x\in P}\|x-q\|_{2}.

Several approaches have been developed for this problem. Locality-sensitive hashing uses randomized hash functions that favor collisions between nearby points [19, 1, 2, 26]. Quantization and clustering reduce the search space by compressing or partitioning the data [21, 22, 15], while hierarchical methods adapt tree-based search to high-dimensional settings [7, 8, 3].

Graph-based methods have become especially successful in practice. HNSW, DiskANN, NSG, and related systems are among the strongest methods on large-scale ANN benchmarks [4, 34, 33, 27, 35, 17]. Although their construction rules differ, their search procedures share a local principle: from the current point, follow edges to points that are closer to the query.

This motivates studying properties of the graph itself. A particularly clean one is navigability, which is related to earlier work on decentralized routing and small-world networks [28, 36, 24, 9] and has recently become a useful abstraction in the theory of graph-based nearest-neighbor search [20, 14, 23, 11, 13].

We work slightly more generally than Euclidean distance.

Definition 1.2 (Progress). Let PP be a set of nn points equipped with a symmetric distance function d:P×P→R≥0d: P \times P \to \mathbb{R}_{\geq 0} satisfying d(x,x)=0d(x, x) = 0, d(x,y)=d(y,x)d(x, y) = d(y, x), and d(x,y)>0d(x, y) > 0 for x≠yx \neq y. Moreover, let G=(P,E)G = (P, E) be a directed graph without self-loops. For a source u∈Pu \in P and a target t∈P∖{u}t \in P \setminus \{u\}, an edge (u,v)∈E(u, v) \in E makes progress toward tt if d(v,t)<d(u,t)d(v, t) < d(u, t). We write

CG(u)={t∈P∖{u}:∃(u,v)∈Ewithd(v,t)<d(u,t)}C_{G}(u)=\{t\in P\setminus\{u\}:\exists(u,v)\in E\mathrm{w i t h}d(v,t)<d(u,t)\}

for the targets toward which u has a progress-making outgoing edge.

Definition 1.3 (Navigability). A directed graph G=(P,E)G = (P, E) is navigable if

CG(u)=P∖{u}for every u∈P.C_{G}(u)=P\setminus\{u\}\qquad\mathrm{f o r~e v e r y~}u\in P.

Navigability guarantees that greedy search cannot get stuck on an in-dataset target: unless the target has been reached, some outgoing edge makes strict progress toward it. The guarantee is strong, but it can require many edges. Conway et al. [11] show that every nn-point dataset admits a navigable graph with O(nn)O(n\sqrt{n}) edges and O(n)O(\sqrt{n}) average out-degree. Diwan et al. [14] proved lower bounds of Ω(n/log⁡n)\Omega(\sqrt{n}/\log n) average out-degree, even for Euclidean datasets in Ω(log⁡3n)\Omega(\log^3 n) dimensions. Thus their result gets arbitrarily close to, but does not reach, the n\sqrt{n} scale.

Motivated by the need for substantially sparser constructions in practical settings, Avi and Musco [5] proposed weakening full navigability by permitting a small fraction of targets to fail.

Definition 1.4 (Almost navigability). For ε∈[0,1]\varepsilon \in [0,1], the graph GG is (1−ε)(1-\varepsilon)-almost navigable if

∣CG(u)∣≥(1−ε)(n−1)for every u∈P.|C_{G}(u)|\geq(1-\varepsilon)(n-1)\qquad\mathrm{f o r~e v e r y~}u\in P.

The case ε=0\varepsilon = 0 is navigability.

In the same paper, Avi and Musco proved that every dataset admits a (1−ε)(1-\varepsilon)-almost navigable graph with average out-degree at most 4/ε4/\varepsilon. Thus the natural worst-case scales are 1/ε1/\varepsilon for almost navigability and n\sqrt{n} for full navigability.

We focus on Euclidean datasets and use genericity only to rule out ties in distance orderings.

Definition 1.5 (Worst-case Euclidean cost). A finite set P⊂RDP \subset \mathbb{R}^D is generic if all pairwise distances between distinct points are different.

For a generic nn-point Euclidean dataset PP, consider the sparsest (1−ε)(1-\varepsilon)-almost navigable graph on PP, measured by its average out-degree. We define AN(n,ε)\text{AN}(n,\varepsilon) to be the worst possible value of this quantity over all generic nn-point Euclidean datasets, in any dimension.

Combining the constructions of Avi–Musco and Conway et al. gives

AN(n,ε)≤min⁡{4ε,2n}.(1)\mathrm{AN}(n,\varepsilon)\leq \min \left\{ \frac{4}{\varepsilon}, 2\sqrt{n} \right\}. \tag{1}

Our results show that both scales in (1) are unavoidable and determine their complete transition.

(1) A spherical construction. For Clog⁡n/n≤ε≤ε0C\sqrt{\log n/n} \leq \varepsilon \leq \varepsilon_0, an i.i.d. sample from a sphere in O(log⁡nlog⁡2(1/ε))O(\log n \log^2(1/\varepsilon)) dimensions forces minimum out-degree Ω(1/ε)\Omega(1/\varepsilon) with high probability. As a corollary we obtain that the construction of Avi and Musco is optimal and the lower bound holds at every source.

(2) Connection to the Zarankiewicz problem. We reveal a direct connection between almost navigability and a classical problem in extremal graph theory, the Zarankiewicz problem. This problem asks how many edges a graph can have while avoiding a prescribed complete bipartite subgraph, see more in Section 4. We show that dense graphs avoiding K2,t+1K_{2,t+1} give rise to hard instances for navigation, and, conversely, that any universal upper bound for almost navigability implies an upper bound on the maximum density of such graphs. In particular, applying the known O(1/ε)O(1/\varepsilon) construction for almost navigability recovers the classical O(tn3/2)O(\sqrt{t}n^{3/2}) bound for K2,t+1K_{2,t+1}-free graphs [25].

(3) A Füredi-graph construction. Using Füredi’s extremal K2,t+1K_{2,t+1}-free graphs, we construct generic Euclidean datasets for which almost navigability requires large average out-degree. Specifically, for the complement regime 0≤ε≤Clog⁡n/n0 \leq \varepsilon \leq C\sqrt{\log n/n}, our construction gives

AN(n,ε)=Ω(min⁡{1ε,n})\mathrm{AN}(n,\varepsilon)=\Omega\left(\min\left\{\frac{1}{\varepsilon},\sqrt{n}\right\}\right)

The datasets can be realized in dimension O(nlog⁡3/2n)O(\sqrt{n}\log^{3/2}n) throughout this regime, and in dimension O(nlog⁡n)O(\sqrt{n}\log n) when ε=0\varepsilon=0. In particular, at full navigability there are generic Euclidean datasets on which every navigable graph has average out-degree Ω(n)\Omega(\sqrt{n}), or equivalently Ω(n3/2)\Omega(n^{3/2}) edges.

The rest of the paper follows this dependency order. Section 2 introduces a combinatorial machinery known as the 'global charging theorem' and its proof. Section 3 gives the spherical lower bound. Section 4 establishes the Zarankiewicz transference theorem, after which Section 5 applies Füredi's construction and derives the complete phase. Technical estimates, realization details, parameter selection, and secondary consequences are deferred to the appendices.

The authors used OpenAI's GPT-5.6-Sol substantively in the research underlying this paper. In particular, the tool generated the theoretical results and their proofs presented in the paper. The human authors independently verified each stated result and proof for correctness and take full responsibility for the mathematical content of the paper.

References (31)