Abstract
Searching for nearest neighbors in high-dimensional spaces is a critical task for modern data-driven applications, yet it is plagued by the "curse of dimensionality." While Locality-Sensitive Hashing (LSH) offers a scalable approximate solution, traditional LSH frameworks often suffer from inefficient indexing and poor distance estimation, leading to excessive point probing. This paper introduces PM-LSH, a novel in-memory framework that combines LSH with a Pivot-based Metric tree (PM-tree). By leveraging the statistical properties of projected distances—specifically their adherence to a $\chi^2$ distribution—PM-LSH implements tunable confidence intervals that optimize the search process. Our evaluation across seven high-dimensional datasets shows that PM-LSH significantly reduces query latency while maintaining high recall, outperforming existing state-of-the-art methods for both approximate nearest neighbor and closest pair searches.
Introduction
The "nearest neighbor" (NN) search is fundamental to various domains, including recommendation systems, image retrieval, and duplicate detection. As datasets grow in dimensionality, traditional exact search methods become computationally prohibitive. Locality-Sensitive Hashing (LSH) has emerged as a standard technique to mitigate this "curse of dimensionality" by hashing similar items into the same buckets with high probability. This allows for approximate nearest neighbor (ANN) searches that are significantly faster than linear scans.
However, conventional LSH implementations often rely on "coarse-grained" index structures like simple hash tables or R-trees. These structures frequently provide loose distance estimations, resulting in "unnecessary point probing"—where the algorithm evaluates numerous points that are not truly close to the query. This overhead degrades performance, especially in high-dimensional settings. PM-LSH addresses these inefficiencies by introducing a more sophisticated metric index and a statistically grounded distance estimation model.
The PM-LSH Framework
PM-tree Indexing in Projected Space
At the heart of PM-LSH is the PM-tree, a metric index used to organize data in a low-dimensional projected space. Unlike the R-tree, which uses minimum bounding rectangles, the PM-tree utilizes "pivots" (reference points) to define tighter bounding regions, such as hyper-rings and hyper-spheres.
As illustrated in Figure 1, points in the original space are mapped to a projected space where they can be indexed more effectively. The PM-tree's pivot-based bounds are significantly tighter than those of an R-tree, which allows for more aggressive pruning during the search process. Empirical results indicate that this transition reduces the number of distance computations by 5% to 46% compared to R-tree-based LSH.
Tunable Confidence Intervals
A key theoretical contribution of PM-LSH is the observation that the ratio between a point's distance in the projected space and its original high-dimensional distance follows a $\chi^2$ (chi-squared) distribution. This statistical insight allows the framework to move beyond heuristic distance estimation. By establishing a "tunable confidence interval," users can precisely control the trade-off between search speed and accuracy. This ensures that the algorithm probes only the minimum number of points required to meet a target recall level with high confidence.
Extension to Approximate Closest Pair (ACP)
The PM-LSH framework also extends to the Approximate Closest Pair (ACP) problem—finding the two most similar points within an entire dataset. The authors implement a branch-and-bound algorithm enhanced by a "radius filtering" technique. By performing an initial self-join on leaf nodes, the algorithm establishes a strong upper bound ($ub$) for the global closest pair. This bound is then used to prune large portions of the search space that cannot possibly contain a closer pair, drastically improving efficiency.
Experimental Evaluation
The performance of PM-LSH was rigorously tested against state-of-the-art methods, including SRS, QALSH, and Multi-Probe LSH, across seven diverse real-world datasets ranging from 192 to 4,096 dimensions (e.g., Audio, Deep, MNIST, GIST, Trevi).
Key Results
- Efficiency: PM-LSH consistently demonstrated lower query latency. On the high-dimensional Trevi dataset (4,096 dimensions), PM-LSH achieved a query time of 37.2ms, outperforming SRS (47.9ms) and other competitors which exceeded 145ms.
- Accuracy: The framework maintained superior recall and a lower "overall ratio" (the ratio of the distance found to the true NN distance) across nearly all benchmarks.
As shown in Figure 6, PM-LSH (represented by L2 and L1 variants) achieves higher recall and a lower overall ratio as the number of probed points ($T$) increases, demonstrating its effectiveness in finding high-quality neighbors quickly compared to baseline methods like QD and Random.
- ACP Performance: For closest pair tasks, PM-LSH improved query times by an average of 40% and boosted recall by up to 50% compared to existing solutions like ACP-P.
Conclusion
PM-LSH represents a significant advancement in high-dimensional search by tightening the bounds of LSH through metric indexing and statistical distance estimation. While the current framework is optimized for in-memory processing and requires some parameter tuning (e.g., the number of hash functions $m$), its performance gains in both speed and accuracy make it a compelling choice for modern similarity search applications. Future work may explore its scalability in distributed environments and its performance under dynamic data streams.
Summary updated