English

Proximity Graphs for Similarity Search: Fast Construction, Lower Bounds, and Euclidean Separation

Data Structures and Algorithms 2025-09-10 v1 Databases

Abstract

Proximity graph-based methods have emerged as a leading paradigm for approximate nearest neighbor (ANN) search in the system community. This paper presents fresh insights into the theoretical foundation of these methods. We describe an algorithm to build a proximity graph for (1+ϵ)(1+\epsilon)-ANN search that has O((1/ϵ)λnlogΔ)O((1/\epsilon)^\lambda \cdot n \log \Delta) edges and guarantees (1/ϵ)λpolylog Δ(1/\epsilon)^\lambda \cdot \text{polylog }\Delta query time. Here, nn and Δ\Delta are the size and aspect ratio of the data input, respectively, and λ=O(1)\lambda = O(1) is the doubling dimension of the underlying metric space. Our construction time is near-linear to nn, improving the Ω(n2)\Omega(n^2) bounds of all previous constructions. We complement our algorithm with lower bounds revealing an inherent limitation of proximity graphs: the number of edges needs to be at least Ω((1/ϵ)λn+nlogΔ)\Omega((1/\epsilon)^\lambda \cdot n + n \log \Delta) in the worst case, up to a subpolynomial factor. The hard inputs used in our lower-bound arguments are non-geometric, thus prompting the question of whether improvement is possible in the Euclidean space (a key subclass of metric spaces). We provide an affirmative answer by using geometry to reduce the graph size to O((1/ϵ)λn)O((1/\epsilon)^\lambda \cdot n) while preserving nearly the same query and construction time.

Keywords

Cite

@article{arxiv.2509.07732,
  title  = {Proximity Graphs for Similarity Search: Fast Construction, Lower Bounds, and Euclidean Separation},
  author = {Shangqi Lu and Yufei Tao},
  journal= {arXiv preprint arXiv:2509.07732},
  year   = {2025}
}