Multi-Probe LSH: Efficient Indexing for High-Dimensional Similarity Search

Qin Lv, William Josephson, Zhe Wang, Moses Charikar, Kai Li

Introduction

Similarity search—finding the "nearest neighbors" to a query point—is a fundamental task in processing high-dimensional data like images, audio, and video. Traditional tree-based indexing methods often fail due to the "curse of dimensionality," becoming slower than a simple linear scan.

Locality Sensitive Hashing (LSH) emerged as a powerful alternative, using hash functions to ensure nearby points have a high probability of colliding in the same bucket. However, basic LSH requires a massive number of hash tables (often hundreds) to achieve high accuracy, leading to prohibitive memory requirements. Multi-Probe LSH addresses this by intelligently probing multiple "nearby" buckets in a hash table rather than just one, slashing memory costs while maintaining search quality.

Methodology

The core innovation of Multi-Probe LSH is the change in the query procedure. Instead of only checking the single bucket where a query point $q$ lands, the algorithm probes a sequence of additional buckets likely to contain $q$'s nearest neighbors.

Multi-probe LSH checks multiple buckets in each hash table based on a probing sequence.

Query-Directed Probing

This "smart" probing is query-directed. For each hash function, the query point falls within a specific "slot." The closer the query is to the boundary of a slot, the more likely a neighbor is to be in the adjacent slot. The algorithm calculates these probabilities for all hash functions, sorts them, and uses a min-heap to generate a sequence of the most likely buckets to check across all tables. To maintain speed, the authors developed a method to precompute these sequences based on expected distances to bucket boundaries.

Key Insights: The Boundary Effect

The "aha moment" of this research is realizing that the position of the query point within its hash bucket provides a strong signal. If the query is near the boundary of its slot, the probability of a neighbor falling into the adjacent bucket increases significantly.

The probability of a neighbor falling into an adjacent bucket depends on the distance of the query point to the bucket boundary.

Empirical data shows that if a neighbor is not in the same bucket, it is highly likely to be in a bucket whose hash coordinates differ by only $\pm 1$ in one or two positions. Multi-Probe LSH replaces random perturbations with a systematic, deterministic sequence that focuses on these highest-probability candidates first.

Experimental Results

The authors evaluated the method on large-scale datasets, including 1.3 million images (64D) and 2.6 million audio words (192D). The results demonstrate massive improvements in space efficiency:

  • Table Reduction: Multi-Probe LSH required 14 to 18 times fewer hash tables than basic LSH to achieve 0.90+ recall.
  • Memory Savings: For the image dataset at 0.93 recall, basic LSH needed 30 tables, while Multi-Probe LSH needed only 2.
  • Scalability: With 2GB of RAM, basic LSH could index 4 million images at high recall; Multi-Probe LSH could handle 60 million images in the same footprint.

Conclusion

Multi-Probe LSH solves the massive memory overhead that previously plagued LSH implementations. By exploiting the boundary effect and using query-directed probing, it makes high-dimensional similarity search feasible for much larger datasets on standard hardware. Future work may involve exploring disk-based implementations and self-tuning features for varied data distributions.

Summary updated

BibTeX
@inproceedings{lv2007multi,
  author = {Qin Lv and William Josephson and Zhe Wang and Moses Charikar and Kai Li},
  title = {{Multi-Probe LSH: Efficient Indexing for High-Dimensional Similarity Search}},
  booktitle = {VLDB},
  year = {2007},
}
Figure