Abstract
Pretraining has become a standard technique in computer vision and natural language processing, which usually helps to improve performance substantially. Previously, the most dominant pretraining method is transfer learning (TL), which uses labeled data to learn a good representation network. Recently, a new pretraining approach -- self-supervised learning (SSL) -- has demonstrated promising results on a wide range of applications. SSL does not require annotated labels. It is purely conducted on input data by solving auxiliary tasks defined on the input data examples. The current reported results show that in certain applications, SSL outperforms TL and the other way around in other applications. There has not been a clear understanding on what properties of data and tasks render one approach outperforms the other. Without an informed guideline, ML researchers have to try both methods to find out which one is better empirically. It is usually time-consuming to do so. In this work, we aim to address this problem. We perform a comprehensive comparative study between SSL and TL regarding which one works better under different properties of data and tasks, including domain difference between source and target tasks, the amount of pretraining data, class imbalance in source data, and usage of target data for additional pretraining, etc. The insights distilled from our comparative studies can help ML researchers decide which method to use based on the properties of their applications.
Introduction
Pretraining a model on a large dataset (like ImageNet) before fine-tuning it on a smaller target task is standard practice in deep learning. Historically, this meant Transfer Learning (TL)—using a model trained to predict human-annotated labels. Recently, Self-supervised Learning (SSL)—where the model learns from the data itself (e.g., by predicting if two images are augmented versions of the same original)—has shown massive potential.
However, researchers often choose between them based on intuition or trial-and-error, which is computationally expensive. There hasn't been a clear understanding of which data properties (domain gap, data volume, label noise) favor one paradigm over the other. This paper aims to replace that trial-and-error with informed guidelines.
Methodology
The authors designed a rigorous "stress test" for existing algorithms. Using a ResNet-50 backbone, they compared standard supervised TL against contrastive SSL (specifically the MoCo and SimCLR frameworks). They evaluated the paradigms across four key dimensions: domain difference, data volume, class imbalance, and the usage of unlabeled target data during pretraining.
Key Insights
The Semantic Bias of TL
TL learns representations biased toward the specific labels provided in the source task. If the target task is in a different domain (e.g., pretraining on daily objects to identify lung nodules), these labels act as "noise" that hinders generalization.
SSL as the "Generalist"
Because SSL doesn't rely on human labels, it learns more fundamental visual features. This makes it much less sensitive to domain shifts. In the paper's tests, SSL's performance remained relatively stable across different source domains, while TL's performance fluctuated significantly.
Robustness to Data Constraints
Counter-intuitively, SSL is often better than TL when the amount of pretraining data is very small. TL tends to overfit to the source labels when data is scarce, whereas SSL's pretext tasks provide a more robust training signal. Furthermore, SSL is naturally robust to class imbalance in the source data since it does not rely on class labels.
Experimental Results
The study utilized a diverse array of source datasets (ImageNet, SUN, iNaturalist, LUNA, ChestX-ray8) and target datasets (Caltech-256, Flowers-102, COVID-CT, Pneumonia) to represent different domain gaps.
As shown in the results, when there is a large domain gap—such as moving from ImageNet (objects) to COVID-CT (medical)—SSL achieved 76.01% accuracy, significantly beating TL’s 73.08%. Additionally, for SSL, using unlabeled target data as additional pretraining material consistently improved results, whereas for TL, adding target data often hurt performance due to conflicting label sets.
Conclusion
This comparative study provides a roadmap for selecting pretraining strategies. While TL remains powerful for similar domains, SSL offers superior robustness against domain shifts, data scarcity, and class imbalance. Future work should investigate whether these insights hold for newer architectures like Vision Transformers and more complex tasks like object detection.
Summary updated