English

Approximate Nearest Neighbor Searching with Non-Euclidean and Weighted Distances

Computational Geometry 2023-06-28 v1

Abstract

We present a new approach to approximate nearest-neighbor queries in fixed dimension under a variety of non-Euclidean distances. We are given a set SS of nn points in Rd\mathbb{R}^d, an approximation parameter ε>0\varepsilon > 0, and a distance function that satisfies certain smoothness and growth-rate assumptions. The objective is to preprocess SS into a data structure so that for any query point qq in Rd\mathbb{R}^d, it is possible to efficiently report any point of SS whose distance from qq is within a factor of 1+ε1+\varepsilon of the actual closest point. Prior to this work, the most efficient data structures for approximate nearest-neighbor searching in spaces of constant dimensionality applied only to the Euclidean metric. This paper overcomes this limitation through a method called convexification. For admissible distance functions, the proposed data structures answer queries in logarithmic time using O(nlog(1/ε)/εd/2)O(n \log (1 / \varepsilon) / \varepsilon^{d/2}) space, nearly matching the best known bounds for the Euclidean metric. These results apply to both convex scaling distance functions (including the Mahalanobis distance and weighted Minkowski metrics) and Bregman divergences (including the Kullback-Leibler divergence and the Itakura-Saito distance).

Keywords

Cite

@article{arxiv.2306.15621,
  title  = {Approximate Nearest Neighbor Searching with Non-Euclidean and Weighted Distances},
  author = {Ahmed Abdelkader and Sunil Arya and Guilherme D. da Fonseca and David M. Mount},
  journal= {arXiv preprint arXiv:2306.15621},
  year   = {2023}
}