TL;DR
Choosing the right pre-trained model—specifically larger architectures trained on more data—is a significantly more powerful lever for out-of-distribution (OOD) performance than developing complex new learning algorithms. This extensive study of 100 models reveals that scaling up not only boosts OOD accuracy but also improves confidence calibration, effectively mitigating the overconfidence issues often seen in smaller models.
What Problem Does This Paper Address?
Machine learning models often fail when the data they encounter in the real world differs from their training data—a challenge known as Out-of-Distribution (OOD) generalization. To date, the research community has largely focused on developing sophisticated learning algorithms (like Invariant Risk Minimization) to bridge this gap.
However, the authors of this paper argue that we’ve overlooked a simpler, more effective variable: pre-trained model selection. They set out to systematically investigate how a model's size, its pre-training dataset, and its training strategy impact its ability to generalize and remain well-calibrated (i.e., its confidence matches its actual accuracy) when faced with distribution shifts.
Methods
The researchers conducted a massive empirical study involving over 120,000 GPU hours. They evaluated 100 different pre-trained models from the popular timm library, covering a wide range of architectures including ResNets, ConvNeXts, Vision Transformers (ViTs), and MLP-Mixers.
Key methodological choices included:
- Three Scaling Axes: They varied model parameter size (from 3M to 600M), pre-training dataset size (ImageNet-1k to JFT-300M), and training strategies (e.g., different data augmentations like AugReg).
- Fine-tuning Protocol: Models were fine-tuned using standard Empirical Risk Minimization (ERM) rather than specialized OOD algorithms to isolate the impact of the model choice itself.
- Calibration Metrics: Beyond just accuracy, they measured Expected Calibration Error (ECE) and Adaptive Calibration Error (ACE) to see if larger models become dangerously overconfident or more reliable OOD.
Datasets
The study utilized five primary benchmarks for OOD evaluation, summarized in the table below:
These include PACS, OfficeHome, DomainNet, and VLCS from the DomainBed benchmark, plus Camelyon17 (medical imaging) from the WILDS benchmark.
Key Insights and Ideas
- Scaling Laws for OOD: The authors discovered that OOD error and calibration error (ECE) decrease almost linearly on a log-scale as model parameters and pre-training data increase. This suggests that the "scaling laws" observed for in-distribution performance also hold true for robustness.
- Model Selection > Algorithm Tweaking: The performance gains from simply picking a better, larger pre-trained model often dwarf the gains from years of algorithmic research. For example, switching from a ResNet-50 to a larger ViT provided a much bigger boost than any specialized OOD algorithm tested on the same ResNet-50.
- The Calibration Reversal: Previous studies in standard (IID) settings suggested that modern deep networks are poorly calibrated compared to older, shallower ones. This paper finds the opposite for OOD: larger models and more data actually improve calibration, helping models "know what they don't know."
- Overfitting to Pre-training: Some models, like EfficientNets, showed a tendency to overfit to their specific pre-training data (ImageNet-1k), leading to poorer transferability to OOD tasks compared to more "generic" designs like RegNets or ViTs.
Key Results
The most striking result is the comparison between algorithmic improvements and model selection improvements. As shown in the table below, the "Best Model" (a larger ViT) consistently outperformed the "Best Algorithm" (applied to a standard ResNet-50) by massive margins—up to 22.7 percentage points on the OfficeHome dataset.
Furthermore, Figure 1 illustrates the "best of both worlds" trend: as models move toward the bottom-right (higher accuracy, lower calibration error), they tend to be larger (indicated by larger marker sizes).
Limitations and Future Work
- Data Leakage Concerns: The authors noted that models like CLIP might have seen data during pre-training that overlaps with OOD test domains (e.g., the "sketch" domain in DomainNet), which could inflate their perceived robustness.
- Computational Cost: While larger models perform better, they are significantly more expensive to fine-tune and deploy. The authors suggest that future work should focus on developing computationally efficient methods that can achieve similar OOD benefits.
- Architecture Specifics: While the study is broad, it primarily focuses on the ImageNet family of pre-training. Exploring these trends in purely self-supervised or multi-modal settings remains an open area.
Summary updated