English

Practical linear-space Approximate Near Neighbors in high dimension

Computational Geometry 2016-12-23 v1

Abstract

The cc-approximate Near Neighbor problem in high dimensional spaces has been mainly addressed by Locality Sensitive Hashing (LSH), which offers polynomial dependence on the dimension, query time sublinear in the size of the dataset, and subquadratic space requirement. For practical applications, linear space is typically imperative. Most previous work in the linear space regime focuses on the case that cc exceeds 11 by a constant term. In a recently accepted paper, optimal bounds have been achieved for any c>1c>1 \cite{ALRW17}. Towards practicality, we present a new and simple data structure using linear space and sublinear query time for any c>1c>1 including c1+c\to 1^+. Given an LSH family of functions for some metric space, we randomly project points to the Hamming cube of dimension logn\log n, where nn is the number of input points. The projected space contains strings which serve as keys for buckets containing the input points. The query algorithm simply projects the query point, then examines points which are assigned to the same or nearby vertices on the Hamming cube. We analyze in detail the query time for some standard LSH families. To illustrate our claim of practicality, we offer an open-source implementation in {\tt C++}, and report on several experiments in dimension up to 1000 and nn up to 10610^6. Our algorithm is one to two orders of magnitude faster than brute force search. Experiments confirm the sublinear dependence on nn and the linear dependence on the dimension. We have compared against state-of-the-art LSH-based library {\tt FALCONN}: our search is somewhat slower, but memory usage and preprocessing time are significantly smaller.

Keywords

Cite

@article{arxiv.1612.07405,
  title  = {Practical linear-space Approximate Near Neighbors in high dimension},
  author = {Georgia Avarikioti and Ioannis Z. Emiris and Ioannis Psarros and Georgios Samaras},
  journal= {arXiv preprint arXiv:1612.07405},
  year   = {2016}
}

Comments

15 pages

R2 v1 2026-06-22T17:31:48.081Z