[Paper Review] An Empirical Study on Distribution Shift Robustness From the Perspective of Pre-Training and Data Augmentation
This paper presents the first comprehensive empirical study on how pre-training and data augmentation affect robustness to distribution shift in image classification. It finds that Empirical Risk Minimization (ERM) with proper data augmentation achieves state-of-the-art performance when combined with well-chosen pre-trained models, while specialized algorithms like GroupDRO and CORAL further improve robustness for specific shift types.
The performance of machine learning models under distribution shift has been the focus of the community in recent years. Most of current methods have been proposed to improve the robustness to distribution shift from the algorithmic perspective, i.e., designing better training algorithms to help the generalization in shifted test distributions. This paper studies the distribution shift problem from the perspective of pre-training and data augmentation, two important factors in the practice of deep learning that have not been systematically investigated by existing work. By evaluating seven pre-trained models, including ResNets and ViT's with self-supervision and supervision mode, on five important distribution-shift datasets, from WILDS and DomainBed benchmarks, with five different learning algorithms, we provide the first comprehensive empirical study focusing on pre-training and data augmentation. With our empirical result obtained from 1,330 models, we provide the following main observations: 1) ERM combined with data augmentation can achieve state-of-the-art performance if we choose a proper pre-trained model respecting the data property; 2) specialized algorithms further improve the robustness on top of ERM when handling a specific type of distribution shift, e.g., GroupDRO for spurious correlation and CORAL for large-scale out-of-distribution data; 3) Comparing different pre-training modes, architectures and data sizes, we provide novel observations about pre-training on distribution shift, which sheds light on designing or selecting pre-training strategy for different kinds of distribution shifts. In summary, our empirical study provides a comprehensive baseline for a wide range of pre-training models fine-tuned with data augmentation, which potentially inspires research exploiting the power of pre-training and data augmentation in the future of distribution shift study.
Motivation & Objective
- To investigate the impact of pre-training and data augmentation on model robustness under distribution shift, focusing on real-world data shifts.
- To evaluate how different pre-training modes (supervised vs. self-supervised), architectures (ResNet vs. ViT), and data sizes (ImageNet-1k vs. ImageNet-21k) affect downstream performance.
- To assess the effectiveness of various learning algorithms—ERM, GroupDRO, CORAL, and data augmentation techniques—across diverse distribution shift types.
- To provide actionable insights and best practices for practitioners selecting pre-trained models and training strategies to improve robustness in distribution shift scenarios.
Proposed method
- Evaluated seven pre-trained models (ResNets and ViTs) with both supervised and self-supervised pre-training on ImageNet-1k and ImageNet-21k.
- Fine-tuned models on five distribution-shift benchmark datasets from WILDS and DomainBed: Waterbirds (spurious correlation), FMoW (subpopulation shift), Camelyon, iWildCam, and DomainNet (OOD generalization).
- Applied five learning algorithms: ERM, GroupDRO, CORAL, and two data augmentation strategies (standard mixup and group-aware mixup).
- Trained and evaluated 1,330 unique model configurations across all combinations of models, datasets, algorithms, and augmentations.
- Used standard metrics: weighted accuracy (WG Acc), average accuracy (Avg. Acc), OOD accuracy, and macro F1 for OOD and ID generalization.
- Analyzed performance trends across model architectures, pre-training data size, and algorithm choice to derive design principles for robustness.
Experimental results
Research questions
- RQ1How does the choice of pre-trained model (architecture, pre-training mode, data size) affect robustness to different types of distribution shift?
- RQ2To what extent can ERM with data augmentation match or surpass specialized algorithms like GroupDRO and CORAL in distribution shift generalization?
- RQ3How do self-supervised and supervised pre-training compare in performance under distribution shift, especially when pre-training data is limited?
- RQ4Which learning algorithm—ERM, GroupDRO, CORAL, or data augmentation—performs best across different shift types and dataset scales?
- RQ5What are the key design principles for selecting pre-trained models and training strategies to maximize robustness in real-world distribution shift scenarios?
Key findings
- ERM combined with data augmentation achieves state-of-the-art performance on all five distribution-shift datasets when paired with a well-chosen pre-trained model, with a best test accuracy of 92.6% on Waterbirds and 94.1% on FMoW.
- GroupDRO outperforms other algorithms on small-scale datasets like Waterbirds and Camelyon (91.4% and 90.6% respectively), indicating its strength in handling spurious correlations with limited data.
- CORAL shows strong performance on large-scale datasets such as iWildCam (36.0%) and DomainNet (44.2%), but underperforms on small datasets due to unstable feature statistics estimation.
- ViT models outperform ResNets on Waterbirds, FMoW, and Camelyon, especially when pre-trained on ImageNet-21k, suggesting that fine-grained labels help mitigate spurious correlations.
- Self-supervised pre-training (e.g., MoCo-R50) outperforms supervised pre-training on small datasets like IN-1k, but supervised pre-training on large datasets (e.g., IN-21k) is superior overall for robustness.
- Pre-training on larger datasets like ImageNet-21k consistently improves downstream performance across all shift types, validating that larger-scale pre-training enhances distribution shift generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.