TL;DR
Joining datasets with mismatched formats (e.g., "Last, First" vs. "First Last") usually requires tedious manual ETL. This paper introduces a high-performance algorithm that automatically discovers string transformations to make tables joinable, outperforming state-of-the-art methods by 3–4 orders of magnitude while maintaining superior coverage and accuracy.
What Problem Does This Paper Address?
Data integration is a perennial headache. Even when two tables describe the same entities, they rarely share the same formatting. A phone number might be (780) 432-3636 in one source and 1-780-432-3636 in another. Traditional database systems fail at joining these because they rely on exact equality.
While "similarity joins" (using fuzzy matching like edit distance) exist, they are often black boxes—they tell you two rows are similar but don't explain how to map one to the other. The authors tackle the problem of program synthesis for data transformation: finding a set of declarative rules (like "split by comma, take the second part, add a space, then the first part") that makes an equality join possible. The core challenge is the "search space explosion"—the number of possible transformations grows exponentially with the length of the strings and the number of rows.
Methods
The authors propose a framework that uses textual evidence to "guide" the search for transformations, rather than blindly brute-forcing every possibility.
- Transformation Units: The system uses basic string functions like
Substr,Split,SplitSubstr, andLiteral. - Placeholders: This is the "aha" concept. A placeholder is any substring in the target text that can be found in the source text. By identifying these "copying relationships," the algorithm can focus only on transformations that actually use pieces of the available data.
- Transformation Skeletons: The algorithm builds "skeletons"—templates of placeholders and literals—that fit a specific row pair.
- Pruning & Optimization:
- Maximal-length placeholders: To keep the search space manageable, they prioritize the longest possible common substrings.
- Eager Filtering: They use a hash-set-based "cache" to quickly skip transformations that are guaranteed not to cover a specific row.
- Duplicate Removal: Since many rows might be covered by the same rule, the algorithm aggressively removes duplicate transformations during the generation phase.
- Sampling: To scale to millions of rows, the algorithm can operate on a small random sample (e.g., 100 rows), which the authors prove is statistically likely to uncover high-coverage transformations.
Datasets
The authors evaluated their approach on four distinct types of data:
- Web Dataset: A benchmark of 31 table pairs from Google Fusion Tables covering 17 topics.
- Spreadsheet Dataset: 108 table pairs from the SyGuS-Comp 2016 competition, featuring common Excel data cleaning tasks.
- Open Governmental Dataset: A real-world "messy" join between 3 million Edmonton property assessments and Canadian white pages listings.
- Synthetic Dataset: Custom-generated tables used to test scalability across varying row counts and string lengths.
Key Insights and Ideas
- The "Copying" Heuristic: The most powerful insight is that data transformation in joins is usually a "copy-and-paste" operation with some formatting tweaks. By treating common substrings as the "backbone" of the search, they reduce an exponential problem to a manageable one.
- The Maximal-Length Paradox: While using the longest substrings (maximal placeholders) makes the search faster, it doesn't always yield the best coverage. The authors show that sometimes "breaking" a long placeholder at common separators (like spaces or punctuation) is necessary to find a rule that applies to more rows.
- Redundancy is a Feature: In their experiments, up to 98% of generated transformations were duplicates. By identifying and removing these early, they achieved massive speedups without losing quality.
Key Results
- Speed: The proposed algorithm is 3 to 4 orders of magnitude faster than the previous state-of-the-art, "Auto-Join." On some datasets where Auto-Join took over 180 hours (or failed to finish), this algorithm finished in seconds or minutes.
- Accuracy: In end-to-end join tasks, the algorithm achieved higher F1-scores than "Auto-FuzzyJoin," particularly in noisy datasets like web tables.
- Scalability: The pruning strategies were highly effective; for example, on a dataset where 2.2 billion transformations would have been tested via brute force, their pruning reduced the workload to just 1.9 million trials.
- Sampling Efficiency: They demonstrated that a sample of just 100 rows is sufficient to discover transformations that cover at least 5% of the total data with 96% probability.
Limitations and Future Work
- Purely Syntactic: The current approach is string-based. It cannot handle semantic synonyms (e.g., mapping "NYC" to "New York") unless that relationship is explicitly provided in a lookup table.
- Initial Matching Dependency: The transformation discovery relies on having an initial set of "candidate" row pairs. If the initial n-gram matching is very poor, the algorithm may struggle to find the correct transformations.
- Future Directions: The authors suggest exploring transfer learning, where transformations learned on one dataset could be adapted to another, and extending the work to include non-string-based transformations that consider data semantics.
Summary updated