PASS-JOIN: A Partition-based Method for Similarity Joins

Guoliang Li, Dong Deng, Jiannan Wang, Jianhua Feng

Introduction

Similarity joins are a fundamental operation in data cleaning and deduplication, aimed at finding all pairs of strings that are "close enough" based on a specific metric. The standard metric used is edit distance, which counts the minimum number of insertions, deletions, or substitutions required to transform one string into another.

Scalability is the primary challenge for similarity joins. Existing algorithms typically excel at either long strings (Filter-and-Refine methods) or short strings (Trie-based methods), but struggle to perform well across the entire spectrum of string lengths. PASS-JOIN is introduced as an adaptive, partition-based algorithm designed to overcome these limitations, offering high efficiency and low memory usage regardless of string length.

The PASS-JOIN Framework

The core of PASS-JOIN is based on the Pigeonhole Principle: if two strings $s$ and $r$ have an edit distance of at most $\tau$, and $s$ is partitioned into $\tau+1$ disjoint segments, then at least one of these segments must match perfectly as a substring in $r$.

Partitioning and Indexing

PASS-JOIN partitions each string into $\tau+1$ disjoint segments and builds an inverted index on these segments. When processing a new string $s$, the algorithm identifies substrings of $s$ that match any segment already stored in the index. This approach ensures that potential matches are identified efficiently without exhaustive comparisons.

An example of the partition-based framework showing how strings are segmented and candidate pairs are identified.

Optimal Substring Selection

A major contribution of this work is the "multi-match-aware" selection strategy. Instead of checking every possible substring, PASS-JOIN uses position-aware and multi-match-aware filtering to minimize the number of substrings that need to be verified. The authors provide a mathematical proof that their method selects the minimum number of substrings required to guarantee a correct result, significantly reducing the computational load.

Extension-based Verification

Once a candidate pair is found through a segment match, it must be verified. PASS-JOIN uses the matching segment as an "anchor" and extends the match to the left and right. By tracking the remaining "error budget" ($\tau$), the algorithm can prune the calculation early if the strings diverge too much, avoiding the full cost of a standard edit distance matrix calculation.

The PASS-JOIN algorithm detailing the sorting, partitioning, and verification process.

Key Insights and Results

  • Index Efficiency: By indexing only $\tau+1$ segments per string rather than every possible $q$-gram, PASS-JOIN maintains an exceptionally small index. In tests, its index size was orders of magnitude smaller than competitors like ED-Join (e.g., 2.1 MB vs. 335 MB on large datasets).
  • Speed and Scalability: On datasets with long strings, PASS-JOIN was found to be 2-3 orders of magnitude faster than Trie-Join. It also outperformed ED-Join on short strings by maintaining a lower candidate count.
  • Adaptive Performance: The anchor-based partitioning naturally adapts to different string lengths, making it a robust general-purpose solution for similarity joins.

Datasets and Evaluation

The algorithm was evaluated on three real-world datasets: DBLP Author (short strings), AOL Query Log (medium strings), and DBLP Author+Title (long strings). Across all three, PASS-JOIN demonstrated near-linear scalability and superior performance in both time and memory compared to state-of-the-art methods.

Conclusion

PASS-JOIN provides a highly efficient framework for similarity joins by combining the Pigeonhole Principle with optimized substring selection and anchor-based verification. Future work may explore workload-aware partitioning strategies to further optimize index hits by placing rare characters into specific segments.

Summary updated

BibTeX
@article{li2011pass,
  author = {Guoliang Li and Dong Deng and Jiannan Wang and Jianhua Feng},
  title = {{PASS-JOIN: A Partition-based Method for Similarity Joins}},
  journal = {Proc. VLDB Endow.},
  year = {2011},
  doi = {10.14778/2078331.2078340},
}
Figure