Skip to main content
QUICK REVIEW

[Paper Review] Optimal hashing-based time-space trade-offs for approximate near neighbors

Alexandr Andoni, Thijs Laarhoven|arXiv (Cornell University)|Jan 16, 2017
Advanced Image and Video Retrieval TechniquesComputer Science60 citations
TL;DR

This paper presents the first hashing-based data structure that achieves sublinear query time with near-linear space for all approximation factors c > 1 in d-dimensional Euclidean space. It establishes tight time-space trade-offs via a novel combination of spherical LSH and data-dependent hashing, achieving optimal ρq = 0.43 for space n^{1+o(1)} and matching or improving upon prior bounds across all space regimes.

ABSTRACT

We show tight upper and lower bounds for time-space trade-offs for the c-approximate Near Neighbor Search problem. For the d-dimensional Euclidean space and n-point datasets, we develop a data structure with space n1+ρu+o(1) + O(dn) and query time nρq+o(1) + dno(1) for every ρu, ρq ≥ 0 with:[EQUATION]In particular, for the approximation c = 2 we get:• Space n1.77 ... and query time no(1), significantly improving upon known data structures that support very fast queries [IM98, KOR00];• Space n1.14... and query time n0.14..., matching the optimal data-dependent Locality-Sensitive Hashing (LSH) from [AR15];• Space n1+o(1) and query time n0.43..., making significant progress in the regime of near-linear space, which is arguably of the most interest for practice [LJW+07].This is the first data structure that achieves sublinear query time and near-linear space for every approximation factor c > 1, improving upon [Kap15]. The data structure is a culmination of a long line of work on the problem for all space regimes; it builds on Spherical Locality-Sensitive Filtering [BDGL16] and data-dependent hashing [AINR14, AR15].Our matching lower bounds are of two types: conditional and unconditional. First, we prove tightness of the whole trade-off (0.1) in a restricted model of computation, which captures all known hashing-based approaches. We then show unconditional cell-probe lower bounds for one and two probes that match (0.1) for ρq = 0, improving upon the best known lower bounds from [PTW10]. In particular, this is the first space lower bound (for any static data structure) for two probes which is not polynomially smaller than the one-probe bound. To show the result for two probes, we establish and exploit a connection to locally-decodable codes.

Motivation & Objective

  • To close the gap in time-space trade-offs for c-approximate near neighbor search in high-dimensional Euclidean space.
  • To develop a data structure that achieves sublinear query time with near-linear space for every approximation factor c > 1.
  • To establish tight upper and lower bounds for hashing-based approaches under various computational models.
  • To unify and improve upon prior work in data-dependent hashing and spherical LSH filtering.
  • To prove unconditional cell-probe lower bounds for one and two probes that match the upper bound trade-off.

Proposed method

  • Design a data structure using spherical locality-sensitive filtering combined with data-dependent hashing to achieve optimal time-space trade-offs.
  • Integrate techniques from [AINR14, AR15] and [BDGL16] to construct a hashing scheme with controlled ρu and ρq parameters.
  • Derive the trade-off relation ρq ≤ (c² - 1)ρu / (c² + 2c - 1) for all c > 1, which governs the time-space efficiency.
  • Prove conditional tightness of the trade-off in a restricted model that captures all known hashing-based methods.
  • Establish unconditional cell-probe lower bounds for one and two probes using connections to locally-decodable codes.
  • Use the connection to locally-decodable codes to prove that the two-probe lower bound is not polynomially smaller than the one-probe bound.

Experimental results

Research questions

  • RQ1Can a hashing-based data structure achieve sublinear query time with near-linear space for all c > 1?
  • RQ2What is the optimal time-space trade-off for c-approximate near neighbor search in d-dimensional Euclidean space?
  • RQ3Are the proposed upper bounds tight, and can they be matched by unconditional lower bounds?
  • RQ4Can unconditional lower bounds for two-probe schemes be as strong as for one-probe schemes?
  • RQ5What is the role of locally-decodable codes in establishing strong lower bounds for two-probe data structures?

Key findings

  • For c = 2, the data structure achieves space n^{1.77...} and query time n^{o(1)}, significantly improving prior fast-query structures.
  • For c = 2, it achieves space n^{1.14...} and query time n^{0.14...}, matching the optimal data-dependent LSH from [AR15].
  • For near-linear space n^{1+o(1)}, the query time is n^{0.43...}, representing a major advance in the practical regime.
  • The paper proves the first unconditional cell-probe lower bound for two probes that is not polynomially smaller than the one-probe bound.
  • The trade-off ρq ≤ (c² - 1)ρu / (c² + 2c - 1) is shown to be tight in a restricted model, capturing all known hashing-based approaches.
  • A novel connection to locally-decodable codes is established and exploited to prove strong lower bounds for two-probe schemes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.