Abstract
LSF-Join is a novel distributed algorithm designed to find similar pairs in massive datasets, even when those datasets are highly skewed or the similarity threshold is low. By replacing traditional Locality Sensitive Hashing (LSH) with a "survival-based" filtering approach, the authors achieve provable load balancing and high accuracy in a single round of communication.
Introduction
Finding "all-pairs" similarity is a cornerstone of data mining, powering everything from friend recommendations on social media to product suggestions in e-commerce. However, modern datasets present two massive headaches for existing algorithms: low similarity thresholds and extreme skew.
In many systems, two users might be meaningfully "similar" even if they only share a small fraction of interests (e.g., a cosine similarity between 0.1 and 0.5). Standard techniques like Locality Sensitive Hashing (LSH) become prohibitively expensive here because they require a massive number of hash tables to catch these "faint" signals.
As illustrated in the figure above, the volume of similar pairs is significantly higher at lower similarity thresholds, making efficient processing at these levels critical. Furthermore, real-world data often follows power laws where a few "hot" items (like a viral video or a celebrity account) create computational bottlenecks or "hot spots" in distributed systems. Existing state-of-the-art tools like WHIMP handle low similarity well but crumble under extreme skew. LSF-Join aims to bridge this gap, providing a distributed solution that is robust to both "faint" similarities and "heavy" data points.
Methodology
The core innovation is Locality Sensitive Filtering (LSF), specifically a procedure the authors call Fast-Filter.
- The Survival Concept: Instead of hashing items into buckets, LSF-Join defines a "survival" rule. For each repetition of the algorithm, a random subset of dimensions (features) is chosen. A data point "survives" if its entire neighborhood (all its features) falls within that random subset. Similar pairs are mathematically much more likely to survive together than dissimilar ones.
- Fast-Filter: Checking survival across thousands of repetitions would normally be slow. The authors use random linear maps over GF(2) (binary arithmetic) and represent the survival condition as a system of linear equations. By using Gaussian elimination, a processor can find exactly which repetitions a node survives in, making the per-node work proportional to the number of survivors rather than the total number of attempts.
- Distributed Execution: The algorithm runs in a MapReduce-like environment and requires only one round of communication to distribute the "surviving" nodes to processors for local brute-force similarity checks.
Experimental Evaluation
The authors evaluated LSF-Join on three real-world graphs from the SNAP repository and one custom synthetic benchmark:
- WikiVote: A network of Wikipedia users voting on adminship.
- PhysicsCitation: A high-energy physics citation network.
- Epinions: A social network from a consumer review site.
- Synthetic Skewed Graph: A 10-million node bipartite graph engineered with high-degree dimensions to mimic power-law distributions where previous algorithms fail.
Key Results and Insights
- Robustness to Skew: On the synthetic skewed dataset, the previous state-of-the-art (WHIMP) failed to complete. LSF-Join not only finished but achieved 90% recall.
- High Accuracy: On real-world datasets, LSF-Join achieved 100% recall for a cosine similarity threshold of 0.1.
- Data-Independent Load Balancing: Because survival depends on a random seed rather than item popularity, the workload is naturally distributed, preventing "hot spots."
- Efficiency: The authors proved that for low similarity, the local work per processor is sub-quadratic, scaling better than naive approaches as datasets grow.
Conclusion and Future Work
LSF-Join demonstrates that pairwise independence is sufficient for effective filtering and provides strong guarantees on load balancing. While the communication volume is tied to the number of survivors, the algorithm ensures that no single machine is overwhelmed by data skew. Future work may explore multi-round versions to further reduce communication for specific graph structures and refine parameter sensitivity for nodes with vastly different degrees.
Summary updated