English

Data-Dependent LSH for the Earth Mover's Distance

Data Structures and Algorithms 2024-03-11 v1

Abstract

We give new data-dependent locality sensitive hashing schemes (LSH) for the Earth Mover's Distance (EMD\mathsf{EMD}), and as a result, improve the best approximation for nearest neighbor search under EMD\mathsf{EMD} by a quadratic factor. Here, the metric EMDs(Rd,p)\mathsf{EMD}_s(\mathbb{R}^d,\ell_p) consists of sets of ss vectors in Rd\mathbb{R}^d, and for any two sets x,yx,y of ss vectors the distance EMD(x,y)\mathsf{EMD}(x,y) is the minimum cost of a perfect matching between x,yx,y, where the cost of matching two vectors is their p\ell_p distance. Previously, Andoni, Indyk, and Krauthgamer gave a (data-independent) locality-sensitive hashing scheme for EMDs(Rd,p)\mathsf{EMD}_s(\mathbb{R}^d,\ell_p) when p[1,2]p \in [1,2] with approximation O(log2s)O(\log^2 s). By being data-dependent, we improve the approximation to O~(logs)\tilde{O}(\log s). Our main technical contribution is to show that for any distribution μ\mu supported on the metric EMDs(Rd,p)\mathsf{EMD}_s(\mathbb{R}^d, \ell_p), there exists a data-dependent LSH for dense regions of μ\mu which achieves approximation O~(logs)\tilde{O}(\log s), and that the data-independent LSH actually achieves a O~(logs)\tilde{O}(\log s)-approximation outside of those dense regions. Finally, we show how to "glue" together these two hashing schemes without any additional loss in the approximation. Beyond nearest neighbor search, our data-dependent LSH also gives optimal (distributional) sketches for the Earth Mover's Distance. By known sketching lower bounds, this implies that our LSH is optimal (up to poly(loglogs)\mathrm{poly}(\log \log s) factors) among those that collide close points with constant probability.

Keywords

Cite

@article{arxiv.2403.05041,
  title  = {Data-Dependent LSH for the Earth Mover's Distance},
  author = {Rajesh Jayaram and Erik Waingarten and Tian Zhang},
  journal= {arXiv preprint arXiv:2403.05041},
  year   = {2024}
}
R2 v1 2026-06-28T15:13:09.338Z