The Role of Pre-training Data in Transfer Learning

Rahim Entezari, Mitchell Wortsman, Olga Saukh, Moein Shariatnia, Hanie Sedghi, Ludwig Schmidt · DOI

Introduction

The prevailing strategy in computer vision involves pre-training models on massive datasets before fine-tuning them for specific downstream tasks. While scaling data size is a known driver of performance, the relative importance of data distribution, curation quality, and algorithmic choice remains poorly understood. This paper presents a systematic evaluation of 4,000 experimental configurations to quantify these trade-offs, challenging the "more is better" mantra by highlighting the superior efficiency of curated data.

The "Evaporation" Effect in Few-Shot Learning

A central finding of the study is that the choice of pre-training data is most critical in the "few-shot" regime (1–20 examples per class). In these scenarios, selecting the right pre-training source can be the difference between success and failure. However, as the amount of data available for fine-tuning increases, the performance gap between different pre-training sources begins to "evaporate."

Relative difference in transfer accuracy between the best and worst pre-training datasets decreases as the number of fine-tuning shots increases.

As shown in Figure 1, the relative difference in transfer accuracy between the best and worst pre-training datasets is highest at 1-shot and drops significantly as the number of shots reaches 3,000. This suggests that while pre-training provides a strong initialization, sufficient task-specific data can eventually overcome a suboptimal starting point.

The Heavy Price of Noise

Data curation acts as a "superpower" for model performance. The authors demonstrate that supervised pre-training on the 1.2 million "clean" images of ImageNet-1K is remarkably difficult to surpass. To achieve comparable performance using noisy, web-scraped data (such as the LAION datasets), models often require 15x to 2000x more data.

Finetune accuracy across various downstream tasks comparing curated ImageNet-1K pre-training with massive noisy web-scraped datasets (LAION).

Figure 3 illustrates this gap across several benchmarks. For instance, on the DTD (textures) and DomainNet-REAL datasets, it took the full 2-billion-sample LAION-2B dataset to finally match or slightly exceed the performance of the 1.2-million-sample supervised ImageNet model. This highlights the extreme inefficiency of "brute force" scaling with noisy data compared to high-quality curated sets.

Algorithmic and Domain Insights

Beyond data scale, the study reveals that the pre-training algorithm matters significantly in small-scale settings. Interestingly, SimCLR (self-supervised, image-only) often outperformed CLIP (image-text contrastive) in few-shot settings, suggesting that robust visual feature learning can be more vital than language alignment for certain tasks.

Furthermore, domain alignment remains a key factor. Pre-training data that closely matches the target task distribution provides a substantial advantage. For example, the Redcaps dataset (rich in pet photos) excelled on the PETS benchmark, whereas the Wikipedia-based WiT dataset struggled due to its focus on geography and people.

Conclusion

While even the "worst" pre-training source significantly outperforms training from scratch (79.5% vs 65.7% average accuracy), the returns on massive scaling are diminishing. Moving from 2.7 million to 15 million samples provides clear benefits, but the jump to 2 billion samples showed saturated or even regressive performance on specific tasks like Caltech-101. These results suggest that future research should prioritize automated curation and data efficiency over pure volume.

Summary updated

BibTeX
@inproceedings{entezari2023role,
  author = {Rahim Entezari and Mitchell Wortsman and Olga Saukh and Moein Shariatnia and Hanie Sedghi and Ludwig Schmidt},
  title = {{The Role of Pre-training Data in Transfer Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=q_PkAzGFrmq},
}
Figure