NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DeMix: Debugging Training Data with Mixed Data Error Types by Investigating Influence Vectors

Jiale Deng, Yanyan Shen, Xiaogang Shi, Junjun ChaiarXiv 2026

TL;DR

DeMix is a novel data-debugging framework that doesn't just find corrupted training data—it diagnoses why it's bad by analyzing "influence vectors." By framing data debugging as a multi-label classification problem and using invariant learning, DeMix accurately identifies label errors, feature corruptions, and spurious correlations, leading to a 22.61% improvement in debugging F1-score and significantly cleaner datasets.

What Problem Does This Paper Address?

We’ve all heard the phrase "garbage in, garbage out" in machine learning. However, real-world data pipelines rarely introduce just one kind of "garbage." Instead, datasets often suffer from a messy mix of systematic flaws:

  • Label Errors: Mislabeled samples from poor annotation or faulty automated labeling.
  • Feature Errors: Missing, corrupted, or structurally inconsistent values from upstream data processing bugs.
  • Spurious Correlations: Non-causal shortcuts (e.g., predicting income based on nationality due to sampling bias) that cause models to fail on underrepresented minority groups.

Existing data-cleaning tools typically flag statistical outliers but miss systematic errors (like a consistently broken labeling function). Meanwhile, data attribution methods can tell you if a sample hurts model performance, but they compress this information into a single scalar score, leaving the specific type of error a mystery. Without knowing the error type, engineers cannot apply targeted data repairs.

Methods

DeMix solves this dual challenge—identifying which samples are erroneous and what error types they contain—through a multi-step pipeline:

  1. Influence Vectors as Behavioral Fingerprints: Instead of using a single scalar score, DeMix maps each training sample to an influence vector. This vector records how removing that specific training sample changes the model's loss across every sample in a validation set.
  2. Multi-Label Classification via Set Transformers: Because validation sets are unordered, influence vectors are essentially sets of scalar values. DeMix feeds these vectors into a Data Error Classifier (DEC) built on a Set Transformer, which naturally handles permutation invariance and captures complex element-wise interactions.
  3. Controlled Error Injection: To train the DEC, the framework deliberately injects synthetic errors (label flips, feature noise, subgroup manipulation) into a clean subset of data, explicitly allowing errors to overlap on single samples.
  4. Invariant Representation Learning: Influence vectors naturally shift if you change the validation set or the model architecture. To prevent the classifier from overfitting to these specific configurations, DeMix introduces an intervention-based training strategy. It uses a contrastive loss (InfoNCE) across different validation subsets and a pairwise consistency loss across an ensemble of different task models to force the network to learn true, environment-invariant error signatures.
Figure 3: Interventions on the validation set and task model.

Datasets

The authors evaluated DeMix across 11 diverse tasks spanning three domains:

  • Tabular Prediction: Adult, Bank, Credit, Covertype, Bike Sharing, and Air Quality (from the UCI repository).
  • Recommendation Systems: Amazon, MovieLens, and Yelp datasets.
  • LLM Alignment: UltraFeedback and Capybara preference datasets, used to fine-tune a Qwen-0.5B-Instruct model via Direct Preference Optimization (DPO).
  • Real-World/Natural Errors: CIFAR-10N (containing real human-annotated label errors) and CelebA (exhibiting natural spurious correlations between gender and hair color).

Key Insights and Ideas

  • Errors Leave Unique Fingerprints: The core "aha" moment of the paper is that different error types distort model behavior in structurally distinct ways. For example, label errors cause strongly negative influence on similar validation samples (as the model tries to memorize the anomaly). Spurious correlations show massive positive spikes exclusively on validation samples within the same minority subgroup.
  • Influence Space Disentangles Data Space: While different data errors are completely entangled and unseparable in raw feature space, mapping them to influence vector space cleanly separates them into distinct clusters by error type.
Figure 1: t-SNE visualization of (a) influence vectors and (b) raw features of erroneous samples, with three types of errors injected into the Adult dataset (more results in Appendix A).
  • Invariance is Prerequisite for Deployment: Data debugging shouldn't break just because you changed your validation set or switched your task model from an MLP to a Transformer. Forcing the classifier to ignore configuration-specific noise via invariant learning is what makes this approach generalizable to real-world pipelines.

Key Results

  • Superior Debugging Accuracy: DeMix achieved a 22.61% average improvement in debugging F1-score over state-of-the-art baselines. Crucially, its performance remained stable regardless of the ratio of clean-to-dirty data in the dataset.
  • Downstream Performance Gains: After identifying the errors, the authors applied type-specific repairs (relabeling for label errors, statistical imputation for feature errors, and sample reweighting for spurious correlations). This targeted repair led to a 9.32% average performance gain for the downstream task models compared to baseline debugging methods.
  • Untangling Compound Errors: On "hard cases" where a single sample contained multiple overlapping errors, DeMix outperformed baselines by 21.21% in F1-score, proving the value of its multi-label formulation.
  • Scalability via Subsampling: For massive datasets like MovieLens (>1.3M samples), computing full influence vectors can be expensive. The authors demonstrated that subsampling just 10% of the validation set reduced runtime by ~80% (from 35.4 to 6.6 minutes) while incurring a negligible (~0.2%) drop in debugging accuracy.

Limitations and Future Work

Despite its strong performance, the authors noted two primary limitations:

  • Stealthy Feature Errors: DeMix shows lower sensitivity to feature errors (FEs) than to label errors or spurious correlations. Because random feature corruptions are stochastic, they often induce weaker, more diluted influence signals that are harder for the classifier to isolate.
  • LLM Scale Challenges: The debugging gains on LLM alignment tasks were more modest. The authors attribute this to approximation errors when calculating influence functions on massive models, where computations are typically restricted to the final classification layer to remain tractable. Developing more precise, scalable influence approximations for large generative models remains an open direction for future work.

Summary updated

BibTeX
@misc{deng2026demix,
  author = {Jiale Deng and Yanyan Shen and Xiaogang Shi and Junjun Chai},
  title = {{DeMix: Debugging Training Data with Mixed Data Error Types by Investigating Influence Vectors}},
  year = {2026},
  eprint = {2606.11616},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.11616},
}
Figure