Abstract
Data cleaning is a fundamental yet challenging task in modern data science, particularly as datasets scale to billions of records. Traditional methods for discovering Conditional Functional Dependencies (CFDs)—rules that define data integrity—often fail due to computational complexity and the presence of "dirty" data. This paper presents a scalable framework designed to mine CFDs efficiently from massive, noisy datasets. By combining a novel one-pass sampling technique (BRRSC) with a fault-tolerant discovery algorithm (DFCFD) and a graph-based conflict resolution strategy, the proposed approach achieves high precision and scalability, processing up to 1.2 billion tuples with minimal error.
Introduction
Conditional Functional Dependencies (CFDs) are sophisticated "if-then" rules used to maintain data quality. For instance, a rule might state: If [Country] is 'US', then [Zip Code] must be 5 digits. While powerful for error detection, CFD discovery faces two primary hurdles in the era of big data. First, the sheer volume of data makes multi-pass algorithms computationally prohibitive. Second, real-world big data is inherently "dirty," containing the very errors that discovery algorithms are meant to identify. This creates a circular dependency where clean data is needed to find rules, but rules are needed to clean the data.
As shown in the example dataset above, inconsistencies in attributes like City (CT) and ZIP codes can obscure the underlying functional dependencies, making traditional "clean-data-only" discovery methods ineffective.
Methodology
The researchers propose a multi-stage pipeline to address these challenges, focusing on efficiency and noise tolerance.
1. BRRSC: Representative and Random Sampling
To handle massive volumes, the framework employs the BRRSC (Representative and Random Sampling) algorithm. Unlike standard random sampling, which may overlook rare but valid patterns, BRRSC is a one-pass algorithm that ensures the resulting sample is "representative." It filters out "misleading" tuples—such as incomplete records or extreme outliers—and captures a diverse set of records in a single scan of the data.
2. DFCFD: Dynamical Fault-tolerant CFD Discovery
The core discovery phase uses DFCFD (Dynamical Fault-tolerant CFD Discovery). The authors adapted classic algorithms like CTANE, FastCFD, and CFDMiner to be fault-tolerant. By introducing a threshold ($e$), the algorithm accepts rules that are "mostly" true rather than requiring 100% consistency. This allows the system to identify valid patterns even when the training sample contains errors.
3. Conflict Resolution and Parameter Selection
Because rules are discovered across multiple samples, contradictions may arise. The framework resolves these using a Maximal Weight Independent Set (MWIS) algorithm, treating rules as nodes in a graph where edges represent conflicts. The set of rules with the highest collective "support" is selected as the final output. Additionally, an adaptive parameter selection strategy based on the Simplex Algorithm helps users balance the trade-off between discovery speed and rule quality.
Experimental Evaluation
The framework was evaluated using both synthetic and real-world datasets:
- Synthetic Data: TPC-H benchmark data scaled to 1.2 billion tuples (approximately 210GB).
- Real-world Data: The SUSY Data Set (5 million tuples) and a DBLP Article Data Set (220,000 tuples).
Key Results
- Scalability: The framework demonstrated linear or sub-linear growth in processing time as data volume increased, successfully handling the 1.2 billion tuple dataset where traditional methods failed.
- Robustness to Noise: Even with a 8% error rate in the source data, the algorithm maintained an inconsistent rate (errors in discovered rules) of less than 1%.
- Efficiency: For datasets exceeding 70,000 tuples, the overhead of sampling and conflict resolution was significantly outweighed by the time saved compared to processing raw data with traditional algorithms. On high-arity datasets, the method reduced processing time by over 20%.
Conclusion
This research provides a robust solution for data cleaning at scale. By moving the computational complexity into intelligent sampling and post-processing conflict resolution, the framework maintains a "one-pass" constraint essential for big data environments. Future work will focus on extending this framework to parallel processing platforms like Apache Spark and expanding the discovery process to include other types of data quality rules beyond CFDs.
Summary updated