Skip to content
Preprint

HNSW with Accuracy Guarantees Using Graph Spanners

Jul 2026 · 0 citations · 52 references
Computer Science

TL;DR

This paper proposes a novel "Certify-then-Rectify" framework that bridges the gap between the speed of heuristic search and the rigor of exact retrieval, and reinterprets the HNSW graph as a geometric spanner and utilizes Extreme Value Theory to stochastically estimate its maximum empirical stretch factor.

Abstract

Hierarchical Navigable Small World (HNSW) graphs serve as the industry standard due to their logarithmic complexity and strong empirical performance. However, HNSW relies on greedy graph traversal, a heuristic that provides no theoretical guarantees of correctness. In this paper, we propose a novel"Certify-then-Rectify"framework that bridges the gap between the speed of heuristic search and the rigor of exact retrieval. Rather than discarding HNSW, our approach first employs a distribution-free statistical certifier to dynamically evaluate the quality of a standard HNSW search with minimal overhead. If certification indicates that the retrieved neighbors are of low quality, the framework safely escalates to a rigorous exact recovery algorithm. To make this exact recovery computationally feasible, we reinterpret the HNSW graph as a geometric spanner and utilize Extreme Value Theory to stochastically estimate its maximum empirical stretch factor. This allows us to mathematically bound the maximum distance of true nearest neighbors. Extensive evaluations on benchmark datasets demonstrate that our tiered framework delivers the average-case speed of HNSW while ensuring the worst-case correctness of exact search and outperforming other applicable approaches.

View source

Similar papers

Jul 2026

Almost Navigable Graphs

It is proved that any dataset admits a $\gamma$-almost navigable graph with just $O\left(\frac{n}{1-\gamma}\right)$ edges, linear in the dataset size, and a randomized algorithm for constructing such a graph in near-linear time is presented.

Pratyush Avi, Christopher Musco · 0 citations
Preprint Jul 2026

Degeneracy-Guided List Compression for Greedy Graph Coloring

P-SAPST Lite replaces peeling with a degree order and provides a lower latency order choice within the same framework and complements edge oblivious streaming APST by addressing an offline regime in which structural plans can be reused.

Rong Fu, Yongtai Liu, Xiaowen Ma et al. · 0 citations
Preprint Jul 2026

Average Distance Approximation for Static Large Graphs

The findings indicate that the Eppstein-Wang algorithm provides a practical and scalable solution for average distance estimation, with higher reliability on unipartite graphs compared to bipartite graphs.

Kartikey Ahlawat · 0 citations
Preprint Aug 2026

Exact SAT Solving for the Two-Dimensional Bandwidth Minimization Problem

The results demonstrate that the proposed SAT approach provides an effective exact method for the small- and medium-sized benchmark instances considered in this study, with fewer than 400 vertices, while heuristic methods remain important for larger and more challenging instances.

Minh Quang Pham, Dao Xuan Nghia, T. Van-Khanh · 0 citations
Jul 2026

Structural Tractability Frontiers for Metric Repair

This paper asks what structural properties of the graph itself make metric repair tractable, and gives pseudo-polynomial time algorithms for series-parallel graphs, and by generalization, graphs of bounded treewidth and a new algorithm for the length-bounded multicut problem.

Asaf Etgar, A. Gilbert, Jamie Tucker-Foltz · 0 citations
Preprint Aug 2026

Uplifting the Superpowers of Worst-Case-Optimal Join Algorithms

This paper shows how to uplift wco join algorithms so as to incorporate such filtering natively, improving efficiency and demonstrates the superiority of this approach by extending the Ring -- a compact index that provides wco resolution of BGPs within almost no extra space on top of the graph -- so as to handle proper...

Adrián Gómez-Brandón, Aidan Hogan, Gonzalo Navarro · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.