Skip to main content
QUICK REVIEW

[Paper Review] DB-LSH: Locality-Sensitive Hashing with Query-based Dynamic Bucketing

Yao Tian, Xi Zhao|arXiv (Cornell University)|Jul 16, 2022
Advanced Image and Video Retrieval TechniquesComputer Science6 citations
TL;DR

DB-LSH proposes a novel locality-sensitive hashing scheme that uses query-based dynamic bucketing with multi-dimensional indexing to achieve sub-linear query time and reduced index size. By dynamically constructing hypercubic buckets during query time instead of relying on fixed hash tables, it avoids hash boundary issues and achieves a theoretical ρ* bound of 1/c^α, outperforming prior methods in both efficiency and accuracy on high-dimensional datasets.

ABSTRACT

Among many solutions to the high-dimensional approximate nearest neighbor (ANN) search problem, locality sensitive hashing (LSH) is known for its sub-linear query time and robust theoretical guarantee on query accuracy. Traditional LSH methods can generate a small number of candidates quickly from hash tables but suffer from large index sizes and hash boundary problems. Recent studies to address these issues often incur extra overhead to identify eligible candidates or remove false positives, making query time no longer sub-linear. To address this dilemma, in this paper we propose a novel LSH scheme called DB-LSH which supports efficient ANN search for large high-dimensional datasets. It organizes the projected spaces with multi-dimensional indexes rather than using fixed-width hash buckets. Our approach can significantly reduce the space cost as by avoiding the need to maintain many hash tables for different bucket sizes. During the query phase of DB-LSH, a small number of high-quality candidates can be generated efficiently by dynamically constructing query-based hypercubic buckets with the required widths through index-based window queries. For a dataset of $n$ $d$-dimensional points with approximation ratio $c$, our rigorous theoretical analysis shows that DB-LSH achieves a smaller query cost ${O(n^{ρ^*} d\log n)}$, where ${ρ^*}$ is bounded by ${1/c^α}$ while the bound is ${1/c}$ in the existing work. An extensive range of experiments on real-world data demonstrates the superiority of DB-LSH over state-of-the-art methods on both efficiency and accuracy.

Motivation & Objective

  • To address the trade-off between index size and query efficiency in high-dimensional approximate nearest neighbor (ANN) search.
  • To overcome the hash boundary problem and false positive issues in traditional LSH methods with fixed-width buckets.
  • To achieve sub-linear query time without incurring extra overhead for candidate filtering or collision counting.
  • To reduce index size by replacing multiple fixed hash tables with a single multi-dimensional index structure.
  • To provide stronger theoretical guarantees on query cost with a tighter ρ* bound of 1/c^α compared to existing 1/c bounds.

Proposed method

  • DB-LSH decouples hashing from bucketing by using a multi-dimensional index to store projected points instead of fixed-width hash buckets.
  • During query, it dynamically constructs hypercubic buckets based on the query point’s position, using index-based window queries to retrieve candidates.
  • The bucket width is adaptively determined per query to ensure high-quality candidate sets while minimizing false positives.
  • It leverages a theoretical framework where ρ* ≤ 1/c^α, improving upon the ρ ≤ 1/c bound in prior LSH methods.
  • The method avoids collision counting by using spatial indexing, preserving sub-linear query complexity.
  • It supports both c-ANN and (r,c)-NN queries with strong theoretical guarantees on success probability and approximation ratio.

Experimental results

Research questions

  • RQ1Can dynamic bucketing based on query context reduce index size and improve query efficiency in high-dimensional ANN search?
  • RQ2Does eliminating fixed-width hash tables eliminate the hash boundary problem and reduce false positives?
  • RQ3Can a sub-linear query cost be maintained while achieving a tighter ρ* bound than existing LSH methods?
  • RQ4How does DB-LSH compare to state-of-the-art LSH methods in terms of query time, recall, and index size across real-world datasets?
  • RQ5Can dynamic bucketing with multi-dimensional indexing achieve better accuracy-efficiency trade-offs than static or collision-counting LSH variants?

Key findings

  • DB-LSH achieves a theoretical query cost of O(n^ρ*d log n), where ρ* ≤ 1/c^α, significantly improving upon the 1/c bound in prior work.
  • On real-world datasets like Gist, TinyImages80M, and SIFT10M, DB-LSH reduces query time by 10% to 70% compared to the second-best method for the same recall.
  • DB-LSH maintains stable recall and overall ratio across varying dataset sizes, with no significant drop in accuracy even as n increases.
  • The index size of DB-LSH is O(n^{1+ρ*}d log n), which is significantly smaller than traditional (K,L)-index methods due to dynamic bucketing.
  • In recall-time and overall ratio-time curves, DB-LSH consistently reaches higher accuracy at lower query times than all competitors.
  • DB-LSH outperforms even the best competitors by 5%–10% in recall across all k values tested, while maintaining faster query times.

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.