English

Differentiable Approximations for Distance Queries

Computational Geometry 2026-07-30 v1

Abstract

The widespread use of gradient-based optimization has motivated the adaptation of various classical algorithms into differentiable solvers compatible with learning pipelines. In this paper, we investigate the enhancement of traditional geometric query problems such that the result consists of both the geometric function as well as its gradient. Specifically, we study the fundamental problem of distance queries against a set of points PP in Rd\mathbb{R}^d, which also underlies various similarity measures for learning algorithms. The main result of this paper is a multiplicative (1+ε)(1+\varepsilon)-approximation of the Euclidean distance to PP which is differentiable at all points in RdP\mathbb{R}^d \setminus P with asymptotically optimal bounds on the norms of its gradient and Hessian, from a data structure with storage and query time matching state-of-the-art results for approximate nearest-neighbor searching. The approximation is realized as a regularized distance through a partition-of-unity framework, which efficiently blends multiple local approximations, over a suitably defined covering of space, into a smooth global approximation. In order to obtain the local distance approximations in a manner that facilitates blending, we develop a new approximate Voronoi diagram based on a simple point-location data structure, simplifying away both the lifting transformation and ray shooting.

Cite

@article{arxiv.2607.28886,
  title  = {Differentiable Approximations for Distance Queries},
  author = {Ahmed Abdelkader and David M. Mount},
  journal= {arXiv preprint arXiv:2607.28886},
  year   = {2026}
}

Comments

Presented at SODA 2025