Abstract
Machine learning models can fail on subgroups that are underrepresented during training. While techniques such as dataset balancing can improve performance on underperforming groups, they require access to training group annotations and can end up removing large portions of the dataset. In this paper, we introduce Data Debiasing with Datamodels (D3M), a debiasing approach which isolates and removes specific training examples that drive the model's failures on minority groups. Our approach enables us to efficiently train debiased classifiers while removing only a small number of examples, and does not require training group annotations or additional hyperparameter tuning.
Introduction
Machine learning models are prone to learning "shortcuts" or spurious correlations present in training data. For instance, if a dataset primarily features waterbirds in aquatic environments, a model may learn to associate the background with the class rather than the bird itself. This phenomenon leads to high average accuracy but significantly degraded performance on minority subgroups (e.g., a waterbird on land), a metric known as worst-group accuracy (WGA).
Existing interventions typically involve either model-level changes (like GroupDRO), which require exhaustive group labels, or data-level changes like "data balancing." Data balancing is often a blunt instrument, removing large swaths of majority-group data to achieve parity, which can inadvertently harm overall model performance. D3M addresses this by asking: can we surgically identify and remove only the specific training examples that cause these failures?
Methodology: Data Debiasing via Datamodeling
The D3M framework utilizes datamodeling to treat model predictions as a direct function of the training data. By employing tools like TRAK for data attribution, the researchers estimate the influence of each training point $i$ on the model's performance on a small validation set.
The D3M process follows three primary steps:
- Compute Group Coefficients: Determine how much each training point impacts the performance of various subgroups.
- Group Alignment Score ($A_i$): Aggregate these impacts into a single score. A negative score indicates that the example is actively detrimental to the model's performance on its weakest subgroups.
- Surgical Removal: Remove the most harmful examples (those with the most negative scores) and retrain the model on the refined dataset.
Additionally, the authors propose AUTO-D3M, which leverages the "Data Isolation" hypothesis. This hypothesis posits that biased subgroups rely on distinct training examples, making them detectable via Principal Component Analysis (PCA) on attribution scores. This allows for bias discovery and mitigation without requiring explicit group labels during training.
Experiments and Results
The authors evaluated D3M across several benchmarks, including CelebA, Waterbirds, and MultiNLI, as well as large-scale discovery on ImageNet.
- Performance Gains: On the CelebA-Age dataset, D3M achieved a WGA of 75.6%, a substantial improvement over the 56.7% achieved by standard Empirical Risk Minimization (ERM).
- Data Efficiency: D3M is significantly more efficient than traditional balancing; on CelebA-Age, it achieved superior results while removing 2.4x fewer examples.
- Label Independence: D3M performs on par with state-of-the-art methods like GroupDRO despite requiring group labels only for a small validation set, rather than the entire training set.
- Real-world Discovery: In ImageNet experiments, AUTO-D3M successfully identified and mitigated "co-occurrence" biases, such as the model's reliance on human presence to identify a "Tench" (fish) or the state of being uncooked to identify "Cauliflower."
Discussion and Conclusion
D3M demonstrates that subgroup failures are often driven by a small number of "harmful" training examples, which are frequently mislabeled or represent strong spurious correlations. While the method introduces some computational overhead—requiring an ensemble of models (e.g., 100) to generate stable attribution scores—it offers a more precise and data-efficient path to fairness than traditional balancing. Future research may explore optimizing the attribution process to reduce compute costs while maintaining the surgical precision of the D3M approach.
Summary updated