An Empirical Study of Pre-trained Model Selection for Out-of-Distribution Generalization and Calibration

Hiroki Naganuma, Ryuichiro Hataya, Kotaro Yoshida, Ioannis Mitliagkas
7/17/2023
5 citations
cs.LGcs.AI

Official code: Hiroki11x/Timm_OOD_Calibration (3 stars, Python, Apache-2.0, last commit 2025-03-30).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

An Empirical Study of Pre-trained Model Selection for Out-of-Distribution Generalization and Calibration (TMLR2025)

30Python, Jupyter NotebookNov 21, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{naganuma2023empirical,
  title  = {An Empirical Study of Pre-trained Model Selection for Out-of-Distribution Generalization and Calibration},
  author = {Hiroki Naganuma and Ryuichiro Hataya and Kotaro Yoshida and Ioannis Mitliagkas},
  year   = {2023},
  eprint = {2307.08187},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.08187v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.08187.svg)](https://codeofpaper.com/paper/2307.08187)

Discussion