Standard deep learning models often rely on "spurious correlations"—such as associating a bird's background with its species—leading to high average accuracy but total failure on rare subgroups. While Distributionally Robust Optimization (DRO) aims to fix this, it fails in overparameterized neural networks unless paired with surprisingly strong regularization to bridge the "generalization gap" of minority groups.
The Problem: Spurious Correlations and the Average-Case Trap
Machine learning models are traditionally trained to minimize average loss across a dataset, an approach known as Empirical Risk Minimization (ERM). While ERM works well for the "average" user or typical data point, it frequently fails on "atypical" data groups.
Consider a dataset containing mostly photos of waterbirds on water and landbirds on land. An ERM-trained model might simply learn to recognize the background (water vs. land) rather than the actual features of the bird. When it inevitably encounters a rare "waterbird on land," it fails completely.
This represents a failure of worst-group accuracy. To address this, researchers use a mathematical framework called Distributionally Robust Optimization (DRO), which is designed to minimize the loss of the worst-performing group rather than the average. However, simply applying standard DRO to modern, massive neural networks does not work as intended. Because these models are "overparameterized" (possessing more parameters than data points), they can easily achieve zero training loss on every group. If the training loss is zero everywhere, the DRO objective becomes indistinguishable from the standard ERM objective, and the model continues to rely on spurious correlations.
The Solution: Group DRO with Strong Regularization
To overcome the vanishing loss trap, the authors propose a refined approach to Group DRO. Instead of merely minimizing the worst-case training loss, their method focuses on the generalization gap—the difference between training and test performance—which is typically much larger for small, rare groups.
The key components of their approach include:
- Strong Regularization: The authors apply much heavier $L_2$ penalties (weight decay) or employ earlier stopping than is standard for achieving average-case accuracy. This prevents the model from perfectly fitting the training data, forcing it to learn robust features that generalize across all groups rather than memorizing spurious ones.
- Group Adjustments: They introduce a per-group penalty based on group size (specifically, $1/\sqrt{n_g}$). This adjustment forces the model to prioritize a lower training loss on smaller groups, which are inherently more prone to overfitting.
- Stochastic Optimizer: The team developed a new online optimization algorithm that maintains a weight vector over groups. It dynamically increases weights for high-loss groups and updates the model parameters accordingly, providing convergence guarantees even for non-convex neural networks.
Datasets and Key Results
The researchers evaluated their methods on three distinct tasks where spurious correlations are known to severely degrade worst-group performance:
- Waterbirds: A custom dataset created by cropping bird photos from the CUB dataset and placing them on backgrounds from the Places dataset (e.g., isolating the challenge of waterbirds on land).
- CelebA: A facial recognition dataset where the task is hair color prediction. In this dataset, the "blond" attribute is spuriously correlated with the "female" attribute, making blond males a rare and challenging subgroup.
- MultiNLI: A natural language inference task where the presence of negation words (like "never") is spuriously correlated with the "contradiction" label.
The combination of Group DRO and strong regularization yielded massive improvements in worst-group accuracy across the board:
- Waterbirds: Worst-group accuracy jumped from a mere 60.0% (ERM) to 84.6% (Group DRO), and reached up to 90.5% when group adjustments were applied.
- CelebA: Worst-group accuracy rose dramatically from 41.1% to 86.7%.
- MultiNLI: Performance improved from 65.7% to 77.7%.
Importantly, these substantial gains in the "worst" groups came with only a negligible drop (usually 1-3%) in overall average accuracy. The results prove that regularization is not just a tool for preventing standard overfitting; it is a requirement for worst-case robustness, acting as the bridge that allows training-time DRO to translate into test-time group fairness.
Limitations and Future Directions
The primary limitation of this framework is its reliance on pre-defined groups. To define the groups for the DRO objective, the researcher must know ahead of time what the spurious attributes are (e.g., explicitly knowing that gender might be a spurious correlate for hair color).
Future work suggested by the authors includes developing methods to handle distributional shifts where groups are not known a priori, or where groups are imperfectly specified. Additionally, they suggest a deeper theoretical investigation into why the generalization gap varies so wildly between different subgroups within the same dataset.
Summary updated