Abstract
Deep classifiers are known to rely on spurious features — patterns which are correlated with the target on the training data but not inherently relevant to the learning problem, such as the image backgrounds when classifying the foregrounds. In this paper we evaluate the amount of information about the core (non-spurious) features that can be decoded from the representations learned by standard empirical risk minimization (ERM) and specialized group robustness training. Following recent work on Deep Feature Reweighting (DFR), we evaluate the feature representations by re-training the last layer of the model on a held-out set where the spurious correlation is broken. On multiple vision and NLP problems, we show that the features learned by simple ERM are highly competitive with the features learned by specialized group robustness methods targeted at reducing the effect of spurious correlations. Moreover, we show that the quality of learned feature representations is greatly affected by the design decisions beyond the training method, such as the model architecture and pre-training strategy. On the other hand, we find that strong regularization is not necessary for learning high quality feature representations. Finally, using insights from our analysis, we significantly improve upon the best results reported in the literature on the popular Waterbirds, CelebA hair color prediction and WILDS-FMOW problems, achieving 97%, 92% and 50% worst-group accuracies, respectively.
Introduction
Deep learning models are notorious for taking "shortcuts." If a dataset contains a correlation between a label and an irrelevant background—such as camels appearing primarily in deserts—a model may learn to identify "sand" rather than the animal itself. These are known as spurious correlations: patterns that are predictive within a specific training distribution but lack a causal relationship with the target label.
When these models encounter "minority groups" (e.g., a camel on a grassy field), their performance typically collapses. Most research in the field of group robustness focuses on developing specialized training objectives, such as Group Distributionally Robust Optimization (Group DRO), to prevent models from learning these shortcuts. This paper challenges that paradigm by asking: Does standard training already learn the correct features, even if it chooses to ignore them in favor of shortcuts?
Methodology: Deep Feature Reweighting (DFR)
To investigate the quality of learned representations, the authors utilize a technique called Deep Feature Reweighting (DFR). The process serves as both a diagnostic tool and a method for improving robustness:
- Feature Extraction: A model is trained using standard Empirical Risk Minimization (ERM)—the conventional way neural networks are trained.
- Isolation: The entire network is frozen except for the final classification layer.
- Reweighting: Only that final layer (typically a simple logistic regression) is retrained on a small, held-out "reweighting" dataset where the spurious correlation is broken (i.e., the groups are balanced).
If the retrained last layer performs well on minority groups, it proves that the base ERM model successfully captured the "core" features (the camel) during training, even if it initially prioritized the "spurious" features (the sand) for its predictions.
Key Insights
ERM as a Feature Powerhouse
Surprisingly, the study finds that simple ERM learns core features that are just as high-quality as—and sometimes superior to—those learned by specialized, complex robust algorithms. This suggests that the failure of models on spurious correlations is often not a failure of feature learning, but rather a failure of feature weighting in the final layer.
The Impact of Architecture and Pre-training
The research highlights that design decisions beyond the training objective are the primary drivers of robustness. Using modern architectures (like ConvNext) and massive-scale pre-training (like ImageNet-22k) provides a significantly larger boost to worst-group accuracy (WGA) than any specialized robust training method applied to smaller or randomly initialized models.
"Accuracy on the Line"
The authors observed a strong linear correlation between a model's standard in-distribution accuracy and its potential for robustness after DFR. Essentially, models that are better at general-purpose classification tend to learn more robust core features, even if they require reweighting to utilize them effectively.
Empirical Results
By combining standard ERM with DFR and modern architectures, the authors set new state-of-the-art (SOTA) records for worst-group accuracy across several major benchmarks:
- Waterbirds: Achieved 97.2% WGA (improving from ~91%).
- CelebA: Achieved 92.2% WGA (improving from ~89%).
- WILDS-FMOW: Achieved 50.6% WGA, significantly outperforming previous leaderboard entries.
Notably, on the Waterbirds dataset, a ResNet-50 pre-trained on ImageNet—without ever seeing the Waterbirds training set—achieved 88% WGA simply by training the last layer on a small validation set. This indicates that core features are often already present in general-purpose pre-trained weights.
Conclusion and Future Work
This work shifts the focus of group robustness from complex loss functions to the importance of representation learning and final-layer calibration. While DFR currently requires group labels for a small reweighting set, its success suggests that the "robustness gap" is narrower than previously thought. Future research may explore whether retraining deeper portions of the network (beyond the last layer) can further unlock the latent potential of these representations, or how to achieve similar results without requiring group labels for the reweighting phase.
Summary updated