Introduction
Standard machine learning models typically rely on Empirical Risk Minimization (ERM), which assumes that training and test data are drawn from the same distribution. However, real-world datasets frequently exhibit "subpopulation shifts," where models inadvertently learn to rely on spurious correlations rather than invariant features. For instance, a model might associate a specific background or color with a label, leading to failure when these correlations do not hold in a new environment.
While robust methods like GroupDRO or JTT improve performance on minority groups (worst-case accuracy), they often suffer a significant drop in overall average accuracy. This paper introduces the Dataset Bias Analysis (DBA) framework to address this trade-off, proposing the Dataset Bias Correction Method (DBCM) to align training objectives with the target test distribution using importance sampling.
Methodology
The DBA framework utilizes the statistical principle of importance sampling to re-weight training samples. By doing so, the model is trained on a distribution that more closely resembles the test environment. The authors propose three variants of DBCM based on the availability of the spurious attribute $s$:
- Known Attribute $s$: Importance weights are calculated directly from subpopulation labels.
- Unknown Attribute $s$ (Validation matches Training): A "bias corrector" approach uses two overfitted models—one on training and one on validation data—to identify samples where the model relies on spurious features by comparing log-likelihoods.
- Unknown Attribute $s$ (Distribution Shift): Prediction confidence serves as a proxy to down-weight samples that are "too easy" due to simple spurious correlations.
Experimental Evaluation
The DBCM was evaluated on three benchmarks characterized by subpopulation shifts:
- ColorMNIST: Digits are correlated with colors in training but not in testing (tested at 0.5% and 2% correlation ratios).
- Waterbirds: Vision task where bird types are spuriously linked to backgrounds (water vs. land).
- CivilComments: NLP toxicity detection where demographic mentions are spuriously linked to toxic labels.
Results and Discussion
The proposed DBCM consistently achieves state-of-the-art results, effectively eliminating the trade-off between average and worst-group accuracy.
As shown in the table above, DBCM significantly outperforms existing methods. In the challenging ColorMNIST (0.5%) task, DBCM reached 96.67% average accuracy and 84.62% worst-group accuracy, whereas ERM collapsed to 1.14% worst-group accuracy. On the Waterbirds dataset, DBCM achieved 94.01% average accuracy, surpassing robust baselines like GroupDRO (92.03%) while maintaining high worst-case performance.
The DBA framework also provides a unifying perspective, demonstrating that many existing heuristics (e.g., Mixup, LISA) can be viewed as specific approximations of importance sampling.
Conclusion and Future Work
The DBCM demonstrates that the drop in average accuracy seen in prior robust methods is not an inherent trade-off but a result of misspecified objectives. By mathematically aligning the training and test distributions, DBCM provides a robust solution for subpopulation shifts. Future research will focus on relaxing current assumptions regarding discrete spurious variables to handle more complex, multi-dimensional real-world distribution shifts.
Summary updated