Abstract
Traditional data cleaning often relies on "minimum removal" strategies to resolve database inconsistencies, which can lead to the loss of valid data or bias toward frequent values. This paper introduces Optimal Subset Repair (OSR), a framework that leverages machine learning to model attribute dependencies. By evaluating the logical coherence of data points through learned models, OSR ensures that the remaining data is not only consistent but also more accurate for downstream tasks.
Introduction: The Challenge of Subset Repair
In relational databases, Subset Repair (S-repair) involves removing a minimal set of tuples to resolve violations of integrity constraints. For instance, a constraint might dictate that two records in the same room should not report different temperatures. However, current S-repair methods face two significant hurdles:
- Ambiguity: Multiple "minimal" removal sets often exist, and choosing the wrong one can delete high-quality data.
- Frequency Bias: Many tools assume frequent values are correct, potentially deleting legitimate but rare outliers.
The authors propose that attribute dependencies—such as the correlation between "Usage" and "Charge" in electricity bills—provide a more robust signal for data cleaning than simple frequency.
Methodology: Optimal Subset Repair (OSR)
The OSR framework evaluates the "conformance" of a tuple based on how well it fits a learned dependency model.
Dependency Modeling
For each attribute, the system trains regression models (e.g., Linear or Decision Trees) using a tuple's $k$-nearest neighbors. This model predicts the expected value of an attribute based on its relationship with others.
Optimization Algorithms
The researchers formalize OSR as an optimization problem to find a minimal removal set that maximizes the total conformance of the remaining data. They propose three algorithmic approaches:
- Exact Solution (ILP): Uses Integer Linear Programming for mathematically perfect repairs on small datasets.
- Clique-based Approximation: Relaxes the ILP into a Linear Program (LP) and iteratively resolves "cliques" of conflicting rows to reach a decision.
- Probabilistic Heuristic: A high-speed approach assigning retention probabilities based on conformance loss, suitable for massive datasets.
Evaluation and Results
The methods were tested across eight diverse datasets, including real-world errors (Flights, Rayyan) and synthetic errors (Soccer, Restaurant).
Key Findings
- Superior Accuracy: On the Flights dataset, the Clique method achieved an F1-score of 0.875, significantly outperforming the rule-based baseline (TE-LP) at 0.702.
- Downstream Performance: Cleaning the Iris dataset improved a machine learning classifier's accuracy from ~0.71 to 0.88, demonstrating the value of high-quality data repair for AI models.
- Scalability: The Probabilistic method offered speeds comparable to existing fast heuristics while maintaining superior precision.
Discussion and Future Work
The core insight of this work is that logic and dependency outperform frequency in identifying errors. By targeting "clique" structures in conflicts, the approximation algorithm achieves near-optimal results efficiently.
However, challenges remain. The Clique method, while faster than ILP, still carries computational overhead compared to simple heuristics. Future work may explore more complex, non-functional dependencies and the automated discovery of denial constraints alongside dependency models.
Summary updated