HNSW with Accuracy Guarantees Using Graph Spanners
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 22 of its 52 references that are in the map. First posted on arXiv 2 Jul 2026.
Builds on
22 of 52 references.
References · 22
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 861
- 2021A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantificationcited by 792
- 2025π*0.6: a VLA That Learns From Experiencecited by 303
- 2021Distribution-Free, Risk-Controlling Prediction Setscited by 288
- 2021Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Controlcited by 271
- 2017Fast Approximate Nearest Neighbor Search With The Navigating Spreading-out Graphcited by 104
- 2024ACORN: Performant and Predicate-Agnostic Search Over Vector Embeddings and Structured Datacited by 32
- 2023High-Dimensional Approximate Nearest Neighbor Search: with Reliable and Efficient Distance Comparison Operationscited by 26
- 2024UNIFY: Unified Index for Range Filtered Approximate Nearest Neighbors Searchcited by 10
- 2024boldsymbolSteiner-Hardness: A Query Hardness Measure for Graph-Based ANN Indexescited by 8
- 2025Quake: Adaptive Indexing for Vector Searchcited by 8
10 more
- 2022Navigable Proximity Graph-Driven Native Hybrid Queries with Structured and Unstructured Constraintscited by 7
- 2025SIEVE: Effective Filtered Vector Search with Collection of Indexescited by 7
- 2024Early Exit Strategies for Approximate k-NN Search in Dense Retrievalcited by 4
- 2025TRIM: Accelerating High-Dimensional Vector Similarity Search with Enhanced Triangle-Inequality-Based Pruningcited by 3
- 2025PGTuner: An Efficient Framework for Automatic and Transferable Configuration Tuning of Proximity Graphscited by 3
- 2021Tao: A Learning Framework for Adaptive Nearest Neighbor Search using Static Features Onlycited by 2
- 2023Proxy-based Zero-Shot Entity Linking by Effective Candidate Retrievalcited by 2
- 2023Improving Biomedical Entity Linking with Retrieval-enhanced Learningcited by 2
- 2026Evaluating and Generating Query Workloads for High Dimensional Vector Similarity Searchcited by 2
- 2025CRouting: Reducing Expensive Distance Calls in Graph-Based Approximate Nearest Neighbor Searchcited by 1
Built on by
Not cited yet.