Introduction
Data scientists reportedly spend up to 80% of their time cleaning data before training models. Despite this massive investment of effort, there is a glaring lack of rigorous, large-scale empirical studies on how specific data cleaning methods actually impact downstream machine learning (ML) classification performance. While the database community has developed sophisticated cleaning tools and the ML community has focused on noise-robust algorithms, these two research worlds rarely overlap.
CleanML addresses this gap by introducing a systematic empirical study evaluating the effects of various data cleaning methods across 14 real-world datasets, 5 error types, and 7 ML models. The study reveals a surprising reality: cleaning doesn't always help—and in some cases, like duplicate removal, it can actually hurt performance.
Experimental Framework
The authors designed a comprehensive experimental grid to investigate the impact of cleaning during two distinct phases: model development and model deployment.
The framework evaluates cleaning across several dimensions:
- Error Types: Missing values, outliers, duplicates, inconsistencies, and mislabels.
- Cleaning Algorithms: Ranging from simple baselines (e.g., mean/mode imputation) to state-of-the-art methods like HoloClean (probabilistic inference) and ZeroER (unsupervised duplicate detection).
- ML Models: 7 standard classifiers, including XGBoost, Random Forest, Logistic Regression, and KNN.
- Scenarios: Cleaning training data (development) versus cleaning test data (deployment).
To ensure statistical rigor, the study utilized 20 random train/test splits per setup, applied paired sample t-tests, and strictly controlled the False Discovery Rate (FDR) using the Benjamini-Yekutieli procedure.
Dataset Characteristics
A key distinction of CleanML is its use of 14 real-world datasets rather than synthetic error injection. Synthetic errors often fail to capture the complex, non-random nature of real-world data fallacies.
CleanML: A Benchmark for Joint Data Cleaning and Machine Learning [Experiments and Analysis], page 5
As shown in the matrix above, datasets like Airbnb, EEG, and USCensus naturally contain varying distributions of the five targeted error types, providing a realistic testbed for cleaning interventions.
Key Insights and Analysis
The study yielded several critical insights for ML practitioners:
1. Impact is Highly Dataset-Dependent
There is no "one size fits all" cleaning method. The same error type and cleaning algorithm can yield positive results on one dataset and negative on another. This suggests that practitioners should never make arbitrary cleaning decisions without validation on their specific data.
2. Advanced Methods vs. Simple Baselines
Surprisingly, state-of-the-art probabilistic cleaning methods (like HoloClean) did not show a noticeable advantage over simple imputation techniques (like mean/median) for downstream ML performance. This suggests that for many ML tasks, the added complexity of advanced cleaning tools may not be justified by the performance gains.
3. The Risk of Cleaning Duplicates
Cleaning duplicates often resulted in insignificant or even negative impacts on model performance. Duplicate detection algorithms frequently produce false positives, leading to the accidental deletion of valuable, unique training data.
4. The Importance of Selection
Using a validation set to select both the best ML model and the optimal cleaning algorithm significantly reduces the risk of data cleaning negatively impacting the final model.
5. Cleaning vs. Robust ML
In most cases—with the notable exception of duplicates—explicitly cleaning the data resulted in better performance than simply relying on "robust" ML algorithms (such as noise-tolerant Logistic Regression or Deep Learning).
Detailed Results by Error Type
- Missing Values: Imputation mostly improved performance, with positive impacts in 49% of base experiments, rising to 57% when combined with model selection.
- Outliers & Inconsistencies: Cleaning these mostly yielded an insignificant impact. KNN was the only model highly sensitive to outliers.
- Mislabels: Cleaning generally improved or had an insignificant impact. Boosting models (AdaBoost, XGBoost) benefited the most due to their sensitivity to mislabeled training examples.
- Human vs. Automated Cleaning: For missing values and mislabels, human-curated cleaning outperformed automatic methods. For inconsistencies, however, rule-based human cleaning showed no significant difference from automatic tools.
Conclusion and Future Directions
CleanML highlights the need for data cleaning strategies optimized specifically for machine learning rather than just data fidelity. While current cleaning algorithms focus on making data "look correct" to humans, a promising research direction involves designing cleaning algorithms that directly optimize for downstream ML performance. Future work should also expand this benchmark to include regression tasks, unsupervised clustering, and unstructured data formats.
Summary updated