Preference-driven similarity join

Chuancong Gao, Jiannan Wang, Jian Pei, Rui Li, Yi Chang

TL;DR

Traditional similarity joins require users to manually guess a similarity threshold (e.g., "find all products 80% similar"), a process that is often tedious, inaccurate, and data-dependent. This paper introduces preference-driven similarity join, a framework where users select a high-level "preference" (objective function) and the system automatically computes the optimal result set, achieving high-quality data integration without manual tuning or labeled data.

What Problem Does This Paper Address?

Similarity join is a fundamental task in data cleaning and integration—for example, linking a restaurant listing on Yelp to one on Groupon despite slight differences in address formatting.

The standard approach is threshold-driven: a user picks a similarity function (like Jaccard) and a threshold $\theta$. However, the authors identify two major flaws:

  1. Threshold Volatility: The "optimal" threshold varies wildly depending on the dataset and task. In their tests, optimal thresholds ranged from 0.34 to 0.95. There is no "one size fits all" number.
  2. The Human Bottleneck: Finding the right threshold usually requires a "back-and-forth" tuning process or expensive manual data labeling, which can be orders of magnitude slower than the actual computation.

Methods

The authors propose shifting the burden from the user to the algorithm. Instead of a number, the user provides a result set preference—a mathematical objective function that describes what a "good" join result looks like.

Two Novel Preferences:

  • MaxGroups ($h_c$): This treats the join result as a bipartite graph and seeks to maximize the number of "non-trivial connected components." This is effective for many-to-many matching scenarios where you want to identify as many distinct entities as possible across two sources.
  • MinOutJoin ($h_o$): This minimizes the size of the full outer join. It creates a penalty when multiple objects from one set match multiple objects in another, effectively favoring one-to-one mappings and balancing the trade-off between matching noise and missing pairs.

Optimization Techniques:

To make this computationally feasible (since checking every possible threshold is too slow), the authors developed:

  • Pivotal Thresholds: A method to identify a tiny subset of candidate thresholds that are guaranteed to contain the optimal result.
  • Incremental Similarity Join: An algorithm that processes thresholds in descending order, reusing work from previous steps.
  • Lazy Evaluation: A technique that uses upper and lower bounds of similarity scores to avoid fully calculating similarities for pairs that clearly won't change the outcome.
  • Early Termination: A "stop-loss" mechanism that halts the search once it's mathematically certain that no remaining threshold can improve the preference score.

Datasets

The approach was evaluated on four real-world web datasets:

  1. Wiki Editors: Spell-checking task (misspellings vs. correct words).
  2. Restaurants: Record linkage between two different restaurant listing sites.
  3. Scholar-DBLP: Linking publication records between Google Scholar and DBLP.
  4. Wiki Links: A large-scale entity matching task linking anchor text to Wikipedia entities.

Key Insights and Ideas

  • Structural Optimization: The core "aha" moment is that the quality of a join can be inferred from the structure of the resulting matches (the graph properties) rather than just the similarity scores of individual pairs.
  • Human-Out-of-the-Loop: By treating the threshold as a variable to be optimized rather than a parameter to be guessed, the authors eliminate the need for "gold standard" labeled data.
  • Efficiency via Bounds: The use of "Lazy Evaluation" shows that you don't need exact similarity scores for most pairs to find the global maximum of a preference function; rough bounds are often enough to prune the search space.

Key Results

  • Accuracy: The preference-driven approach achieved $F_1$-scores that were either identical or extremely close to the "optimal" scores found by exhaustive manual tuning. For example, on the Wiki Links dataset, it hit the exact optimal $F_1$ of 0.780.
  • Speed: Compared to human-in-the-loop methods (like active learning or random sampling for tuning), the preference-driven framework is orders of magnitude faster because it eliminates the labeling time.
  • Algorithmic Performance: The optimized framework was 10x to 100x faster than a brute-force baseline and significantly more memory-efficient due to early termination and pivotal threshold pruning.

Limitations and Future Work

  • Preference Selection: While the user no longer has to pick a threshold, they still have to pick a preference (MaxGroups vs. MinOutJoin). While this is more intuitive, it still requires some understanding of the data's nature (e.g., is it one-to-one or many-to-many?).
  • Expanding Preferences: The authors acknowledge that these two preferences are just a "proof of concept." Future work involves developing more diverse preferences for different application niches.
  • Similarity Functions: The current optimization techniques are primarily tailored for set-based similarity functions (Jaccard, Dice, etc.); extending this to more complex vector-based or deep-learning-based similarities remains an open challenge.

Summary updated

BibTeX
@inproceedings{gao2017preference,
  author = {Chuancong Gao and Jiannan Wang and Jian Pei and Rui Li and Yi Chang},
  title = {{Preference-driven similarity join}},
  booktitle = {WI},
  year = {2017},
  url = {https://openreview.net/forum?id=zZA88bilNwT},
}

Loading related content...

Figure