Efficiently Constructing Sparse Navigable Graphs

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Conway, Alex, Dhulipala, Laxman, Farach-Colton, Martin, Johnson, Rob, Landrum, Ben, Musco, Christopher, Shechter, Yarin, Suel, Torsten, Wen, Richard
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914108674146304
author Conway, Alex
Dhulipala, Laxman
Farach-Colton, Martin
Johnson, Rob
Landrum, Ben
Musco, Christopher
Shechter, Yarin
Suel, Torsten
Wen, Richard
author_facet Conway, Alex
Dhulipala, Laxman
Farach-Colton, Martin
Johnson, Rob
Landrum, Ben
Musco, Christopher
Shechter, Yarin
Suel, Torsten
Wen, Richard
contents Graph-based nearest neighbor search methods have seen a surge of popularity in recent years, offering state-of-the-art performance across a wide variety of applications. Central to these methods is the task of constructing a sparse navigable search graph for a given dataset endowed with a distance function. Unfortunately, doing so is computationally expensive, so heuristics are universally used in practice. In this work, we initiate the study of fast algorithms with provable guarantees for search graph construction. For a dataset with $n$ data points, the problem of constructing an optimally sparse navigable graph can be framed as $n$ separate but highly correlated minimum set cover instances. This yields a naive $O(n^3)$ time greedy algorithm that returns a navigable graph whose sparsity is at most $O(\log n)$ higher than optimal. We improve significantly on this baseline, taking advantage of correlation between the set cover instances to leverage techniques from streaming and sublinear-time set cover algorithms. By also introducing problem-specific pre-processing techniques, we obtain an $\tilde{O}(n^2)$ time algorithm for constructing an $O(\log n)$-approximate sparsest navigable graph under any distance function. The runtime of our method is optimal up to logarithmic factors under the Strong Exponential Time Hypothesis via a reduction from Monochromatic Closest Pair. Moreover, we prove that, as with general set cover, obtaining better than an $O(\log n)$-approximation is NP-hard, despite the significant additional structure present in the navigable graph problem. Finally, we show that our approach can also beat cubic time for the closely related and practically important problems of constructing $α$-shortcut reachable and $τ$-monotonic graphs, which are also used for nearest neighbor search. For such graphs, we obtain $\tilde{O}(n^{2.5})$ time or better algorithms.
format Preprint
id arxiv_https___arxiv_org_abs_2507_13296
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Efficiently Constructing Sparse Navigable Graphs
Conway, Alex
Dhulipala, Laxman
Farach-Colton, Martin
Johnson, Rob
Landrum, Ben
Musco, Christopher
Shechter, Yarin
Suel, Torsten
Wen, Richard
Data Structures and Algorithms
Databases
Information Retrieval
Graph-based nearest neighbor search methods have seen a surge of popularity in recent years, offering state-of-the-art performance across a wide variety of applications. Central to these methods is the task of constructing a sparse navigable search graph for a given dataset endowed with a distance function. Unfortunately, doing so is computationally expensive, so heuristics are universally used in practice. In this work, we initiate the study of fast algorithms with provable guarantees for search graph construction. For a dataset with $n$ data points, the problem of constructing an optimally sparse navigable graph can be framed as $n$ separate but highly correlated minimum set cover instances. This yields a naive $O(n^3)$ time greedy algorithm that returns a navigable graph whose sparsity is at most $O(\log n)$ higher than optimal. We improve significantly on this baseline, taking advantage of correlation between the set cover instances to leverage techniques from streaming and sublinear-time set cover algorithms. By also introducing problem-specific pre-processing techniques, we obtain an $\tilde{O}(n^2)$ time algorithm for constructing an $O(\log n)$-approximate sparsest navigable graph under any distance function. The runtime of our method is optimal up to logarithmic factors under the Strong Exponential Time Hypothesis via a reduction from Monochromatic Closest Pair. Moreover, we prove that, as with general set cover, obtaining better than an $O(\log n)$-approximation is NP-hard, despite the significant additional structure present in the navigable graph problem. Finally, we show that our approach can also beat cubic time for the closely related and practically important problems of constructing $α$-shortcut reachable and $τ$-monotonic graphs, which are also used for nearest neighbor search. For such graphs, we obtain $\tilde{O}(n^{2.5})$ time or better algorithms.
title Efficiently Constructing Sparse Navigable Graphs
topic Data Structures and Algorithms
Databases
Information Retrieval
url https://arxiv.org/abs/2507.13296