Large Learning Rates Simultaneously Achieve Robustness to Spurious Correlations and Compressibility

Melih Barsbey, Lucas Prieto, Stefanos Zafeiriou, Tolga Birdal

TL;DR

This paper reveals that using large learning rates (LRs) in deep learning models can simultaneously improve their robustness to spurious correlations (SCs) and make them more compressible. This is achieved by promoting desirable representation properties like invariant feature utilization and class separation, offering a unified approach to two critical challenges in modern ML.

What Problem Does This Paper Address?

Modern machine learning models are increasingly deployed in real-world scenarios where they need to perform reliably even when faced with novel circumstances (robustness) and operate efficiently on limited hardware (resource-efficiency). A major hurdle to robustness is the presence of spurious correlations (SCs) in training data – patterns that are predictive of the label in the training set but not in the test set. For example, a model might learn to associate a desert background with camels, leading to misclassifications when camels appear in other environments. Simultaneously, the demand for model compressibility (e.g., for deployment on edge devices) is growing. Traditionally, achieving robustness and compressibility together has been a challenge, with many approaches seeming to be in conflict. This paper investigates whether a single hyperparameter, the learning rate, can bridge this gap.

Methods

The authors hypothesize that large learning rates (LRs) play a pivotal role in achieving both robustness to SCs and model compressibility without sacrificing efficiency. They validate this hypothesis through extensive empirical analysis. Their methodology involves:

  • Systematic LR Sweeps: Training various models across different datasets and architectures with a wide range of learning rates to observe their impact on key metrics.
  • Representation Analysis: Quantifying properties of the learned representations in the penultimate layer of neural networks, including class separation (R²) and core vs. spurious feature utilization (using Class-Selectivity Index - CSI).
  • Compressibility Metrics: Evaluating network compressibility using K-Prunability, which measures the retention of unbiased test accuracy after pruning a fraction of model parameters.
  • Input Attributions: Employing Integrated Gradients (IG) to visualize which input pixels or features contribute most to a model's predictions, helping to understand how models utilize core vs. spurious features under different LRs.
  • Mechanism Investigation: Proposing and formalizing a mechanism where confident mispredictions of bias-conflicting samples under large LRs lead to a reweighting of the training data, implicitly favoring the learning of core features.

Datasets

The paper utilizes a diverse set of datasets to ensure the generality of their findings:

  • Synthetic SC Datasets:
    • Parity Dataset: A binary classification task where core and spurious features are binary vectors.
  • Moon-Star Dataset: Distinguishing moon-shaped from star-shaped objects, with spurious features based on image quadrant.
  • Semi-Synthetic SC Datasets: These are common in SC research and offer realistic inputs with controlled SCs.
  • Colored MNIST: Digit shape vs. digit color.
  • Corrupted CIFAR-10: Object vs. corruption type.
  • Double MNIST: Left digit vs. (brighter) right digit.
  • MNIST-CIFAR: CIFAR-10 vs. MNIST targets.
  • Naturalistic SC Datasets:
    • CelebA: Hair color and gender as spurious/core features.
  • Waterbirds: Background and natural habitat as spurious/core features.
  • Standard Classification Datasets:
    • CIFAR-10, CIFAR-100: Standard image classification benchmarks.
  • ImageNet-1k: A large-scale image classification dataset.

Key Insights and Ideas

  • LR as a Unified Inductive Bias: The most striking insight is that a single hyperparameter, the learning rate, can simultaneously promote two seemingly disparate goals: robustness to spurious correlations and model compressibility. This suggests LR is a powerful inductive bias that can guide models towards more desirable solutions.
  • Mechanism of Robustness: The paper proposes and provides evidence for a mechanism where large LRs lead to confident mispredictions of bias-conflicting samples. This, in turn, causes the training loss to be dominated by these mispredictions, effectively reweighting the dataset to emphasize core features and penalize reliance on spurious ones.
  • Representation Quality: High LRs don't just improve performance; they also lead to learned representations that exhibit better class separation and a stronger utilization of core, invariant features. This suggests a deeper, qualitative change in how models learn.
  • Generalization to Real-World Tasks: The findings extend beyond synthetic and semi-synthetic SC datasets to naturalistic datasets and even standard classification tasks, implying that even "IID" datasets might contain hidden SCs that large LRs help models overcome.
  • LR vs. Other Hyperparameters: Large LRs often perform on par with or better than other regularization methods (like L1/L2) and optimization techniques (like ASAM) in achieving robustness and compressibility, and can even be combined with them for further improvements.

Key Results

  • Robustness and Compressibility: Across various architectures (FCN, CNN, ResNet, WideResNet, Swin Transformer) and datasets, increasing the learning rate consistently led to higher unbiased test accuracy (robustness to SCs) and improved network and activation compressibility.
  • Representation Improvements: High LRs were shown to increase core feature utilization and class separation in learned representations.
  • ImageNet Performance: For ImageNet-1k, large LRs also demonstrated improved robustness and compressibility, highlighting their applicability to large-scale, complex datasets.
  • Attribution Analysis: Input attribution maps revealed that models trained with high LRs were more likely to focus on object contours (core features) rather than backgrounds or textures (spurious features) compared to low LR models.
  • Mechanism Validation: Unbiased test accuracy strongly correlated with the maximum bias-conflicting loss ratio encountered during training, supporting the proposed mechanism.

Limitations and Future Work

The authors acknowledge that their work is not a complete, end-to-end explanation of the optimization dynamics, parameter landscapes, and representations involved. Future work could explore:

  • Interaction of Multiple/Hierarchical SCs: How multiple or nested spurious correlations interact with training dynamics.
  • Explicit Training Procedures: Developing specific training methods that leverage these findings for more robust and efficient models.
  • Deeper Theoretical Understanding: Further investigating the interplay between optimization dynamics, loss landscapes, and learned representations.

Summary updated

BibTeX
@inproceedings{barsbey2025large,
  author = {Melih Barsbey and Lucas Prieto and Stefanos Zafeiriou and Tolga Birdal},
  title = {{Large Learning Rates Simultaneously Achieve Robustness to Spurious Correlations and Compressibility}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure