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

HENN: A Hierarchical Epsilon Net Navigation Graph for Approximate Nearest Neighbor Search

Mohsen Dehghankar, Abolfazl AsudeharXiv 2025 · DOI

Approximate Nearest Neighbor (ANN) search is a foundational technology for modern AI applications, including vector databases, retrieval-augmented generation (RAG), and large-scale image retrieval. While the Hierarchical Navigable Small World (HNSW) graph is currently the industry standard due to its exceptional practical speed, it relies heavily on randomized heuristics. This reliance leaves HNSW vulnerable to performance degradation—from logarithmic to linear time—when encountering skewed or adversarial data distributions.

HENN (Hierarchical $\epsilon$-Net Navigation Graph) addresses this gap by bridging the speed of HNSW with the rigorous theoretical guarantees of computational geometry. By utilizing $\epsilon$-nets to construct its hierarchy, HENN ensures efficient query times even in worst-case scenarios.

Methods

The primary innovation of HENN is the explicit use of $\epsilon$-nets to define the layers of a hierarchical navigation graph.

The $\epsilon$-Net Hierarchy

In HENN, each layer is constructed as an $\epsilon$-net of the layer immediately below it. Unlike standard hierarchical graphs where upper layers are often random samples, an $\epsilon$-net ensures that the subset of points "covers" the space effectively. Specifically, any region with a significant fraction of points is guaranteed to be represented in the net.

Ring Ranges and Navigation

To adapt $\epsilon$-nets for ANN search, the authors introduce "ring ranges"—geometric regions defined by the space between two concentric spheres. By ensuring the $\epsilon$-net covers these ranges, the search algorithm is mathematically prevented from "missing" critical data clusters during navigation.

The hierarchical structure of HENN, showing the query path through layers defined by epsilon-nets.

Modular Design

HENN is designed as a modular wrapper. Within each layer, developers can employ various navigation graph techniques, such as those used in HNSW or k-Nearest Neighbor graphs. This flexibility allows HENN to inherit the strengths of existing methods while adding a layer of geometric robustness.

Evaluation and Results

The authors evaluated HENN against HNSW using both standard benchmarks and synthetic adversarial datasets:

  • Standard Benchmarks: SIFT (1M vectors), GloVe (50k word embeddings), and MNIST (70k images).
  • Adversarial Data: Highly skewed datasets generated using exponential distributions to simulate "hard" data that typically causes heuristic algorithms to fail.

HENN demonstrates significant improvements in robustness and efficiency:

  • Reduced Search Complexity: By ensuring layers are representative, HENN requires up to 1.9x fewer "hops" in the graph compared to HNSW on skewed data.
  • Speed and Accuracy: On adversarial distributions, HENN achieved up to a 1.7x speedup over HNSW while maintaining identical recall levels.
  • Performance on Standard Data: On well-behaved datasets like SIFT, HENN performs on par with HNSW, showing that theoretical robustness does not come at the cost of average-case efficiency.
Comparison of Queries Per Second (QPS) vs. Recall for HENN and HNSW across SIFT, GloVe, and MNIST datasets.

Conclusion

HENN provides a principled alternative to heuristic-based ANN search. By proving that HNSW's success stems from its implicit behavior as an $\epsilon$-net, the authors have formalized a more reliable structure that maintains polylogarithmic query time $O(\log^2 n)$ regardless of data distribution. While HENN currently requires more time to construct the index due to the verification of $\epsilon$-net properties, it offers a critical safety net for applications dealing with non-uniform or adversarial data.

Summary updated

BibTeX
@misc{dehghankar2025henn,
  author = {Mohsen Dehghankar and Abolfazl Asudeh},
  title = {{HENN: A Hierarchical Epsilon Net Navigation Graph for Approximate Nearest Neighbor Search}},
  year = {2025},
  eprint = {2505.17368},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17368},
}
Figure