Abstract
This paper presents a framework for the automated discovery of Matching Dependencies (MDs) from database instances. Unlike traditional Functional Dependencies (FDs) that require exact matches, MDs utilize similarity thresholds to handle real-world data inconsistencies. We define formal measures for support and confidence and introduce efficient pruning and approximation algorithms to navigate the vast search space of similarity thresholds. Experimental results on real-world datasets demonstrate significant speedups and high scalability, making the discovery of MDs practical for large-scale data cleaning and entity resolution.
Introduction
In database management, Functional Dependencies (FDs) have long served as the primary mechanism for ensuring data integrity. An FD might state, for instance, that if two records share the same ZIP code, they must also share the same City. However, FDs are inherently brittle because they rely on exact equality. In real-world "dirty" data, variations such as typos, formatting differences, and abbreviations are common. For example, as shown in the table below, one record might list a name as "Claire Green" while another uses "Claire Greem." A traditional FD would treat these as distinct values, failing to identify the underlying dependency.
To address this, the authors propose the discovery of Matching Dependencies (MDs). MDs generalize FDs by employing similarity thresholds (e.g., Levenshtein distance or cosine similarity) rather than strict equality. The primary challenge lies in the automated discovery of these dependencies, as manually defining appropriate similarity thresholds across multiple attributes is computationally expensive and practically infeasible.
Formal Framework and Methods
The paper formalizes an MD as a pair $(X \to Y, \lambda)$, where $X$ and $Y$ are sets of attributes and $\lambda$ represents a pattern of similarity thresholds. To evaluate the utility of a candidate MD, two key metrics are introduced:
- Support: The proportion of tuple pairs in the relation $\mathcal{R}$ that satisfy the similarity thresholds for both attribute sets $X$ and $Y$.
- Confidence: The conditional probability that a pair of tuples similar in $X$ is also similar in $Y$.
The discovery process involves searching for MDs that meet user-defined minimum requirements for support ($\eta_s$) and confidence ($\eta_c$). By organizing threshold candidates into a Directed Acyclic Graph (DAG) based on a "dominance" relationship, the search space can be explored systematically.
Discovery Algorithms
The authors develop several algorithms to efficiently explore the threshold space:
- Exact Algorithm (EA): A baseline that computes exact support and confidence by iterating through all statistical tuple pairs.
- Pruning Strategies (EPS/EPSC): To mitigate the brute-force cost, the authors introduce pruning based on dominance. If a loose threshold fails the support requirement, all stricter thresholds derived from it can be safely ignored. Confidence-based pruning further optimizes the search by exploiting the non-increasing nature of confidence under specific ordering.
- Approximation Algorithms (AP/API): For large-scale datasets, the authors provide approximation methods that process only a subset of the data. These algorithms come with a mathematical guarantee that the relative error is bounded by a user-specified $\epsilon$. This is crucial for modern "Big Data" applications where exact computation on billions of pairs is often impossible.
Experimental Evaluation
The proposed methods were evaluated on three real-world datasets: Cora (bibliographic citations), Restaurant (business listings), and CiteSeer (scientific literature). These datasets are characterized by natural variations in entity descriptions, making them ideal benchmarks for MD discovery.
Key findings include:
- Efficiency: The pruning-based EPS algorithm consistently outperformed the exact baseline by a factor of 10 across all test cases.
- Scalability: The discovery time scales linearly with the number of tuples, indicating suitability for large databases.
- Accuracy: The approximation algorithms (AP/API) achieved high precision while processing significantly fewer tuples. On the Cora dataset, the API could terminate after processing only 50,000 tuples instead of the full 150,000, while maintaining confidence levels within the predicted error bounds.
Conclusion and Future Work
This work provides a robust foundation for bringing fuzzy logic to data integrity. By generalizing FDs into MDs and providing scalable discovery algorithms, the authors enable more effective data cleaning in the presence of noise. Future research directions include the automated selection of minimal attribute sets for MDs, the generation of non-redundant MD sets, and the development of new metrics for measuring MD violations, such as calculating the minimum number of tuples that would need to be removed to make a database "clean" according to a discovered MD.
Summary updated