Most automated data-cleaning tools learn what "normal" looks like from a portion of the data that is already known to be clean, then flag values that deviate from it. In practice such a clean portion rarely exists. We propose to drop that requirement. The approach treats "predict this column from all the other columns" as one task per column and trains a single shared network on all of these tasks at once, directly on the dirty table. While training, the network gives less weight to cells it already suspects are corrupted. It then flags and repairs values using calibrated prediction intervals. Every repair it makes is written to a replayable ledger, so a third party can reproduce the cleaned table exactly.
The stakes are practical. Data preparation is widely reported to take up to 80% of a project's time (A Scoring-based Approach for Data Preparator Suggestion). Undocumented preparation can also destroy reproducibility. When published pathology models were rebuilt from their paper text alone, one model's slide accuracy fell from 92% to 54.7%, and the omissions were preprocessing details such as stain templates and tissue thresholds (Reproducibility of deep learning in digital pathology whole slide image analysis). A cleaner that needs no gold-standard data and leaves an exact record of what it changed addresses both problems at once.
Core Claim
The closest existing system is Conformal Data Cleaning, abbreviated CDC (From Data Imputation to Data Cleaning). CDC fits one independent model per column, typically a random forest, on a clean training split. It then wraps each model in conformal prediction, a method that turns any predictor into intervals with a guaranteed coverage rate, and treats observed values outside the interval as errors. On 16 OpenML datasets corrupted with the Jenga tool, CDC improved downstream performance in 61% of 320 scenarios. Its stated limitation is the clean split itself.
Our claim is that the clean split can be replaced by multi-task learning, meaning one network trained on many objectives at once with shared internal layers. This only works if the method handles the specific way corruption harms such a network. Heavily corrupted columns behave like the "noisy tasks" studied in multi-task learning: they pull the shared representation toward fitting noise. We therefore reuse two techniques from that literature for a new purpose. The first is per-sample down-weighting, in the spirit of the Discriminator Gate from Characterizing and Avoiding Negative Transfer. The second is task reweighting from Understanding and Improving Information Transfer in Multi-Task Learning, which down-weights misaligned or noisy tasks. Both papers assume the inputs are already prepared. We apply their machinery to the preparation step itself.
The claim also carries a secondary, testable hypothesis. The degree to which a column's training gradient conflicts with the other columns' gradients should track how corrupted that column is. If so, negative transfer, normally a nuisance, becomes a column-level error detector. RotoGrad measures gradient conflict between tasks in order to suppress it. We would measure the same quantity in order to read it as a signal.
Research Program
The model is a tabular encoder trained with random column masking: some cells are hidden, and the network predicts every hidden cell from the visible ones. Each column has its own output head, a regression head for numeric columns and a classification head for categorical ones.
Training alternates two phases. In the first phase, each cell $(i,j)$ carries a weight $w_{ij}$, and the network minimizes the weighted sum of column losses, $\sum_{i,j} w_{ij}\,\ell_j(\hat x_{ij}, x_{ij})$. Here $\ell_j$ is column $j$'s loss and $\hat x_{ij}$ is the masked prediction for row $i$, column $j$. In the second phase, the weights are recomputed so that cells with high residuals, relative to their column, are pushed toward zero. Column-level weights are set separately from the observed gradient conflict between that column and the others.
Calibration needs care because the calibration data is also dirty. Corrupted cells in the calibration set would inflate the conformal intervals and make detection overly cautious. We use trimmed conformal calibration, which discards the highest-scoring fraction of calibration residuals, with the trimming level estimated from the training weights. We will also measure empirically how far coverage on truly clean cells departs from the nominal level. The exchangeability guarantee does not hold under corruption, so this is an empirical question, not something we can assume.
Transparency enters as an output constraint, not as a separate system. Every repair becomes one ledger entry recording the row and column, the old and new values, the nonconformity score, the significance level, the hash of the fitted model, and the hash of the rows the model was fit on. That last field makes train–test leakage auditable. The ledger compiles to deterministic operators in the style of the symbolic pipeline language from Text-to-Pipeline. That work shows explicit operators are more reliably executed than free-form Pandas code: 62.88% versus roughly 29 points lower on the PARROT benchmark. Text-to-Pipeline applies its operators to user-requested transformations. We apply the same idea to machine-made repairs. In contrast to the manual checklist of Fell et al., the ledger is produced automatically and can be checked mechanically.
Baselines
The naive reference is training the downstream model on the uncleaned table, together with static defaults: median or mode imputation and z-score outlier removal. Static defaults are reported as a common failure point on dirty real-world data (Automating data science). Any cleaner must beat both.
The strongest existing method is CDC, run in two settings. In its intended setting it receives a clean split. This is an upper reference that our method is not expected to beat; the goal is to approach it. In the realistic setting it receives the dirty table, with no clean split available. The reported number to anchor against is CDC's downstream improvement in 61% of 320 Jenga scenarios on the OpenML-16 suite, with gains above 15% in the 30–40% error regime (From Data Imputation to Data Cleaning). For fairness, both CDC settings and our method use the same corruption seeds, the same downstream models, the same significance levels, and an equal hyperparameter search budget measured in wall-clock time. Beating CDC means a higher downstream improvement rate than dirty-trained CDC, with a paired test across scenarios, while landing within a few points of clean-trained CDC.
Raha and Baran (Semi-Supervised Data Cleaning with Raha and Baran) serve as the human-in-the-loop competitor. That system needs about 20 labeled tuples on the Flights dataset. We run our method both at zero labels and with the same 20 labels used to set the trimming level. We found no reported F1 for Raha on Flights on Lacuna, so we will rerun it ourselves.
A large language model used as a cleaner (Large Language Models as Data Preprocessors) is compared on Adult. There, GPT-4 error detection reached F1 46.3% at batch size 15, costing $2.99 and taking 1.60 hours.
Two ablations isolate the key ingredients. The first is the shared masked network with all weights fixed at one, which shows whether robust reweighting rather than sharing does the work. The second is per-column independent networks with reweighting, which shows whether sharing matters.
Why not just…?
Why not just run CDC's random forests on the dirty data? This is the real threat. Tree ensembles are fairly robust to label noise, and CDC found trees beat deep models in 83% of its imputation cases. If dirty-trained CDC matches our method on detection F1 and downstream improvement, the multi-task claim fails on accuracy. Whatever remains would be scalability, since one shared network replaces thousands of per-column forests, and we would report it as only that. The paired comparison against dirty-trained CDC is the decisive experiment.
Why not just use a masked denoising autoencoder? Our encoder is one. The proposal stands or falls on whether the reweighting step adds anything beyond an ordinary masked model, which would absorb corruption into its notion of normal. The equal-weights ablation measures this directly. If it closes the gap, the contribution shrinks to calibration and the ledger.
Why not just ask a language model to clean the table? On Adult, GPT-4 detection F1 stayed below 47% and took hours per run. Its repairs also carry no calibrated confidence and risk fabricated values in specialized schemas. We include it as a baseline, but we expect it to be both weaker and costlier on large tables.
Why not just keep a diff of the cleaned table instead of a ledger? A diff records what changed but not why, under what threshold, or which rows the deciding model saw. Without those, leakage of the kind Fell et al. suspected cannot be audited. The replay test below checks whether the ledger delivers more than a diff.
Proposed Experiments
The main experiment reproduces CDC's OpenML-16 Jenga protocol at corruption rates from 1% to 50%. We report cell-level detection F1, repair error (RMSE for numeric columns, accuracy for categorical ones), downstream improvement rate over the dirty baseline, and empirical coverage on cells known to be clean.
Natural errors come from the CleanML suite of 14 datasets (CleanML). There we test whether our method avoids the harm CleanML documents from aggressive cleaning, such as false-positive deduplication. CleanML reports directional findings only; we found no reported number on Lacuna for its per-dataset deltas. Flights and Adult supply the Raha and language-model comparisons.
The gradient-conflict hypothesis is tested by computing the rank correlation between each column's average gradient cosine with the other columns and that column's true corruption rate. A clearly negative correlation, stable across datasets, would support using conflict as a detector. No correlation would falsify the idea.
Finally, the ledger replay test has an independent script apply the ledger to the raw table. It must reproduce the cleaned table bit-exactly and match the downstream metric. It must also reject a ledger whose recorded fit-rows overlap the test split.
The work fails outright if dirty-trained CDC is at least as good as our method, or if coverage on clean cells collapses at realistic corruption rates.
References
- A Scoring-based Approach for Data Preparator Suggestion
- Reproducibility of deep learning in digital pathology whole slide image analysis
- From Data Imputation to Data Cleaning - Automated Cleaning of Tabular Data Improves Downstream Predictive Performance
- Characterizing and Avoiding Negative Transfer
- Understanding and Improving Information Transfer in Multi-Task Learning
- RotoGrad: Gradient Homogenization in Multi-Task Learning
- Text-to-Pipeline: Bridging Natural Language and Data Preparation Pipelines
- Automating data science
- Semi-Supervised Data Cleaning with Raha and Baran
- Large Language Models as Data Preprocessors
- CleanML: A Study for Evaluating the Impact of Data Cleaning on ML Classification Tasks