An Empirical Study of Pre-trained Model Selection for Out-of-Distribution Generalization and Calibration
Hiroki Naganuma, Ryuichiro Hataya, Kotaro Yoshida, Ioannis Mitliagkas
TL;DR
This paper systematically evaluates how pre-trained model choice—across size, pre-training data, and training strategies—affects out-of-distribution generalization and confidence calibration in vision. By screening 100 pre-trained models on five distribution-shift benchmarks, it finds that model selection can yield larger gains than algorithmic improvements, with scaling trends showing that bigger models and larger pre-training datasets enhance both OOD accuracy and calibration. Vision Transformer and ConvNeXt architectures often outperform traditional CNNs under these settings, and calibration improves in tandem with OOD performance, challenging some IID-centric calibration assumptions. The authors present practical guidelines to prioritize pre-trained model selection (favor large models, large pre-training datasets, and generic pre-training methods) and advocate for treating model selection as a strong baseline in OOD research.
Abstract
In the field of computer vision, fine-tuning pre-trained models has become a prevalent strategy for out-of-distribution (OOD) generalization tasks. Different from most prior work that has focused on advancing learning algorithms, we systematically examined how pre-trained model size, pre-training dataset size, and training strategies impact generalization and confidence calibration on downstream tasks. We evaluated 100 models across diverse pre-trained model sizes, five pre-training datasets, and five data augmentations through extensive experiments on four distribution shift datasets totaling over 120,000 GPU hours. Our results demonstrate the significant impact of pre-trained model selection, with optimal choices substantially improving OOD accuracy over algorithm improvement alone. Additionally, we find that larger models and bigger pre-training datasets not only enhance OOD performance but also improve calibration, helping to mitigate overconfidence, contrary to some prior studies that found modern deep networks to calibrate worse than classical shallow models. Our work underscores the overlooked importance of pre-trained model selection for out-of-distribution generalization and calibration.
