Elastic Representation: Mitigating Spurious Correlations for Group Robustness

Tao Wen, Zihan Wang, Quan Zhang, Qi Lei

Abstract

Deep learning models often suffer from performance degradation when they rely on spurious correlations—shortcuts between input features and labels that hold in training data but fail in minority groups. This is particularly prevalent in imbalanced datasets. While existing research focuses on learning invariant features, it often overlooks the harm of spurious correlations between the features themselves. We propose Elastic Representation (ElRep), a simple yet effective method that applies Nuclear- and Frobenius-norm penalties to the last-layer representations of a neural network. Similar to the Elastic Net in statistics, ElRep promotes the learning of critical features without sacrificing feature diversity. Our theoretical and empirical results demonstrate that ElRep improves group robustness with minimal impact on overall in-distribution performance.

The Challenge of Spurious Correlations

Deep learning models are notorious for taking "shortcuts." For example, if a dataset primarily features waterbirds against aquatic backgrounds, a model might learn to identify the water rather than the bird. This spurious correlation leads to high average accuracy but causes the model to fail on minority groups, such as a waterbird on grass.

Existing solutions often require expensive group labels (identifying exactly which images are "outliers") or suffer from a significant trade-off where improving minority group performance degrades the model's overall accuracy.

Methodology: Elastic Representation (ElRep)

ElRep is inspired by the Elastic Net regularizer, which combines $L_1$ and $L_2$ penalties on model weights. However, ElRep shifts the focus to the feature representation—the output of the network's final hidden layer.

The conceptual link between Elastic Representation and the classical Elastic Net via the dual problem.

By adding two specific penalties to the loss function, ElRep achieves a balance between pruning and diversity:

  • Nuclear-norm (||·||_*): Encourages a low-rank representation matrix, effectively pruning noisy, spurious features that the model might otherwise over-rely on.
  • Frobenius-norm (||·||_F): Acts as a stabilizer. While the Nuclear-norm might aggressively drop correlated features, the Frobenius-norm ensures that a diverse set of invariant features is preserved.

This "plug-and-play" regularizer can be integrated into standard training (ERM) or more complex algorithms like GroupDRO without requiring additional group annotations during the training phase.

Key Insights and Results

Empirical evaluations on datasets like Waterbirds, CelebA, and CivilComments-WILDS show that ElRep consistently raises the performance "floor" for minority groups.

Visual comparison of feature attention. ElRep (Nuclear+Frobenius) captures a more diverse set of invariant features (the bird's head and wing) compared to standard ERM or Nuclear-norm alone.

Performance Highlights:

  • Waterbirds: Standard ERM training boosted worst-group accuracy from 70.0% to 79.8% with ElRep. Combined with state-of-the-art methods, it reached 90.4%.
  • CelebA: Worst-group accuracy for hair color classification jumped from 45.0% to 52.6% for standard ERM, and hit 91.4% when paired with GroupDRO.
  • Stability: Beyond accuracy, ElRep reduces variance across training runs, leading to more reliable model deployment.

Conclusion

ElRep addresses a fundamental weakness in deep learning by forcing models to move beyond "lazy" spurious correlations. By regularizing the representation layer, it ensures that models prioritize robust, invariant features. Crucially, ElRep achieves these gains without the "accuracy tax" often seen in robustness research, making it a practical choice for real-world applications where minority group performance is critical.

Summary updated

BibTeX
@inproceedings{wen2025elastic,
  author = {Tao Wen and Zihan Wang and Quan Zhang and Qi Lei},
  title = {{Elastic Representation: Mitigating Spurious Correlations for Group Robustness}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=xmllRK5QWi},
}
Figure