English

Sublinear Data Structures for Nearest Neighbor in Ultra High Dimensions

Data Structures and Algorithms 2025-04-07 v2 Computational Geometry

Abstract

Geometric data structures have been extensively studied in the regime where the dimension is much smaller than the number of input points. But in many scenarios in Machine Learning, the dimension can be much higher than the number of points and can be so high that the data structure might be unable to read and store all coordinates of the input and query points. Inspired by these scenarios and related studies in feature selection and explainable clustering, we initiate the study of geometric data structures in this ultra-high dimensional regime. Our focus is the {\em approximate nearest neighbor} problem. In this problem, we are given a set of nn points CRdC\subseteq \mathbb{R}^d and have to produce a {\em small} data structure that can {\em quickly} answer the following query: given qRdq\in \mathbb{R}^d, return a point cCc\in C that is approximately nearest to qq. The main question in this paper is: {\em Is there a data structure with sublinear (o(nd)o(nd)) space and sublinear (o(d)o(d)) query time when dnd\gg n?} In this paper, we answer this question affirmatively. We present (1+ϵ)(1+\epsilon)-approximation data structures with the following guarantees. For 1\ell_1- and 2\ell_2-norm distances: O~(nlog(d)/poly(ϵ))\tilde O(n \log(d)/\mathrm{poly}(\epsilon)) space and O~(n/poly(ϵ))\tilde O(n/\mathrm{poly}(\epsilon)) query time. We show that these space and time bounds are tight up to poly(logn/ϵ)\mathrm{poly}{(\log n/\epsilon)} factors. For p\ell_p-norm distances: O~(n2log(d)(loglog(n)/ϵ)p)\tilde O(n^2 \log(d) (\log\log (n)/\epsilon)^p) space and O~(n(loglog(n)/ϵ)p)\tilde O\left(n(\log\log (n)/\epsilon)^p\right) query time. Via simple reductions, our data structures imply sublinear-in-dd data structures for some other geometric problems; e.g. approximate orthogonal range search, furthest neighbor, and give rise to a sublinear O(1)O(1)-approximate representation of kk-median and kk-means clustering.

Keywords

Cite

@article{arxiv.2503.03079,
  title  = {Sublinear Data Structures for Nearest Neighbor in Ultra High Dimensions},
  author = {Martin G. Herold and Danupon Nanongkai and Joachim Spoerhase and Nithin Varma and Zihang Wu},
  journal= {arXiv preprint arXiv:2503.03079},
  year   = {2025}
}

Comments

Full version for SoCG2025

R2 v1 2026-06-28T22:07:11.960Z