NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The kernel of graph indices for vector search

Mariano Tepper, Ted Willke · OpenReview

Abstract

Modern vector search relies heavily on graph-based indices, yet their formal navigability guarantees are typically restricted to Euclidean spaces. This paper introduces the Support Vector Graph (SVG), a novel framework that reinterprets graph construction as a machine learning problem. By leveraging kernel methods, SVG provides the first formal navigability guarantees for both metric and non-metric vector spaces, such as those used in Maximum Inner Product Search (MIPS). We further introduce SVG-L0, which employs an $\ell_0$ sparsity constraint to build memory-efficient graphs without the pitfalls of heuristic edge truncation.

Introduction

Vector search is a cornerstone of contemporary AI, enabling efficient retrieval in recommendation systems and Retrieval-Augmented Generation (RAG). State-of-the-art indices like HNSW and DiskANN build navigable graphs where search is performed by greedily following edges toward a query. However, these methods are rooted in computational geometry—specifically the triangle inequality—which holds only in Euclidean space.

In practice, many embedding models operate in non-metric spaces where these geometric assumptions fail. Engineers often apply Euclidean heuristics to these spaces, but this lacks theoretical rigor and can lead to search failures. Furthermore, the common practice of truncating a node's out-degree to save memory is often performed via ad-hoc heuristics that can compromise the graph's connectivity.

A Machine Learning Perspective on Graph Construction

The core contribution of this work is the realization that graph construction can be framed as a kernelized optimization problem. Instead of relying on geometric pruning, the authors propose selecting neighbors by solving a kernelized non-negative least squares (NNLS) problem.

Algorithm for graph index construction, highlighting the selection and pruning phases.

As shown in Algorithm 2, the construction process involves a selection step to identify a candidate pool and a pruning step to determine the final out-neighbors. In the SVG framework, this pruning is not a simple distance-based cutoff but a principled optimization.

Search as Classification

A key theoretical insight is the equivalence between finding optimal neighbors and identifying support vectors for a hard-margin Support Vector Machine (SVM). Greedy search on a graph can be viewed as an ascent through a series of classification decision boundaries.

The geometric interpretation of graph search as a series of classification decision boundaries.

If a query resides in a different "cell" than the current node, the SVG edges act as a discrete gradient, pointing the search toward the decision boundary that leads to the target. This perspective allows for formal navigability guarantees: as long as the chosen kernel is positive semidefinite, the graph is guaranteed to be searchable, regardless of whether the underlying space is metric.

SVG-L0: Principled Sparsity

To address the practical need for bounded memory usage, the researchers developed SVG-L0. This variant incorporates an $\ell_0$ sparsity constraint directly into the optimization, forcing the selection of exactly $M$ neighbors.

Unlike traditional heuristic truncation—which might keep the $M$ closest neighbors but lose the "diversity" needed for global navigability—SVG-L0 selects the $M$ neighbors that collectively provide the best representation of the surrounding space. This ensures that the graph remains navigable even at very low out-degrees. To maintain computational efficiency, the authors utilize a "subspace pursuit" algorithm, achieving a construction complexity of $O(n(M^2 + \log n))$, making it competitive with industry standards like DiskANN.

Key Results and Unification

The SVG framework serves as a unifying theory for the field. The authors demonstrate that the pruning rules used in HNSW and DiskANN are actually specific, simplified geometric approximations of the SVG optimization.

Empirical evaluations on high-dimensional datasets (including OpenAI and Cohere embeddings) show that SVG-L0 consistently outperforms truncated versions of existing algorithms. Specifically, SVG-L0 maintains significantly higher Recall@1 in scenarios with strict out-degree limits, proving the superiority of its optimization-based approach to sparsity.

Conclusion

The Support Vector Graph represents a fundamental shift from geometric heuristics to machine learning principles in vector search. By providing formal guarantees for non-metric spaces and a principled approach to graph sparsity, SVG offers a robust foundation for the next generation of large-scale retrieval systems. Future work will focus on automating hyperparameter tuning, such as the kernel width $\sigma$, and exploring dynamic out-degree selection to further optimize graph performance.

This summary is based on the paper "The kernel of graph indices for vector search" and its associated implementation at https://github.com/marianotepper/svg.

Summary updated

BibTeX
@misc{tepper2025kernel,
  author = {Mariano Tepper and Ted Willke},
  title = {{The kernel of graph indices for vector search}},
  year = {2025},
  eprint = {2506.20584},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.20584},
}
Figure