Authors: Aniket Chakrabarti and Srinivasan Parthasarathy
Abstract
In large-scale data mining, the all-pairs similarity search problem remains a significant computational challenge. While Locality Sensitive Hashing (LSH) offers a scalable approximate solution, it often suffers from high false-positive rates and lacks rigorous performance guarantees. This paper introduces a hybrid sequential hypothesis testing framework that adaptively prunes candidate pairs. By dynamically switching between confidence-interval-based tests and traditional probability ratio tests, the proposed method achieves up to an 8.8x speedup over exact methods while providing formal frequentist guarantees on search recall.
Introduction
The "all-pairs similarity search" problem—identifying all pairs in a dataset with similarity exceeding a threshold $t$—is a fundamental bottleneck in big data processing. As dimensionality increases, traditional indexing methods fail. LSH addresses this by hashing similar items into the same buckets, yet it generates numerous "candidate" pairs that must be verified, leading to significant overhead. Previous approaches, such as BayesLSH, utilized Bayesian inference for early pruning but often failed to provide rigorous guarantees on recall due to the accumulation of errors in the sequential process. This work addresses these shortcomings by framing candidate pruning as a Sequential Hypothesis Testing problem.
Methodology
The authors propose moving away from Bayesian priors in favor of a frequentist approach. The core of the framework consists of three strategies designed to handle different types of candidate pairs efficiently:
- Sequential Probability Ratio Test (SPRT): This traditional statistical test decides between two hypotheses ($s \ge t$ vs. $s < t$) as hash matches arrive. While theoretically robust, it can be computationally expensive for "borderline" cases where similarity is very close to the threshold.
- One-Sided-CI-HT: This novel test utilizes fixed-width sequential confidence intervals to calculate an upper confidence limit for similarity. If this limit falls below the threshold $t$, the pair is pruned immediately. This method is exceptionally fast for pairs that are clearly not matches.
- Hybrid-HT: Recognizing that no single test is optimal for all pairs, the authors developed a hybrid approach. It uses a "crude estimate" from the initial hashes to dynamically select either the CI-HT (for pairs far from the threshold) or the SPRT (for borderline pairs).
Additionally, the framework includes Concentration Inference, which allows for similarity estimation with a guaranteed error bound ($\delta$) in scenarios where original data storage is impractical and only hash sketches are available.
Experimental Evaluation
The researchers evaluated the proposed algorithms across five diverse, large-scale real-world datasets, covering both Jaccard and Cosine similarity measures. These datasets represent various domains, from social networks to news archives.
Key Results and Insights
The experimental results highlight the efficiency and reliability of the frequentist sequential testing approach:
- Computational Speedup: The Hybrid-HT method demonstrated superior performance, achieving up to a 2.1x speedup over traditional SPRT and an 8.8x speedup over the AllPairs exact indexing method.
- Rigorous Quality Guarantees: Unlike previous Bayesian methods like BayesLSHLite, which occasionally failed to meet target recall, the proposed frequentist methods consistently maintained recall above user-specified levels (e.g., 97%).
- Adaptive Precision: The "One Size Doesn't Fit All" realization was critical; dissimilar pairs are pruned rapidly via wide confidence intervals, while borderline pairs receive the precise attention of the SPRT.
Conclusion and Future Work
While highly effective, the framework employs "truncation" at 256 hashes to prevent infinite loops on extremely difficult pairs, which may still leave some pairs for expensive exact computation in massive datasets. Future research may focus on refining parameter tuning (for $\epsilon$ and $\mu$) and extending these sequential techniques to other similarity measures and randomized algorithms, such as Bloom filters or count-min sketches.
Summary updated