A Closer Look at Benchmarking Self-Supervised Pre-training with Image Classification
Markus Marks, Manuel Knott, Neehar Kondapaneni, Elijah Cole, Thijs Defraeye, Fernando Perez-Cruz, Pietro Perona
TL;DR
Self-supervised learning enables representation learning from unlabeled data, but evaluating SSL methods across downstream tasks is challenging. This study systematically benchmarks 26 SSL models on 11 datasets using multiple evaluation protocols (kNN, linear probing, and end-to-end fine-tuning, including few-shot variants) to analyze ID–OOD correlations. It finds that in-domain linear probing and kNN probing are strong predictors of OOD performance, with 10% few-shot fine-tuning providing a robust proxy for OOD transfer; embedding normalization and backbone architecture strongly influence results, while the discriminative versus generative SSL distinction largely reflects backbone choices. The results offer practical guidance for SSL benchmarking and transferability assessment, highlighting efficient proxies for cross-domain generalization and calling for theory-grounded understanding of SSL evaluation in real-world deployment.
Abstract
Self-supervised learning (SSL) is a machine learning approach where the data itself provides supervision, eliminating the need for external labels. The model is forced to learn about the data structure or context by solving a pretext task. With SSL, models can learn from abundant and cheap unlabeled data, significantly reducing the cost of training models where labels are expensive or inaccessible. In Computer Vision, SSL is widely used as pre-training followed by a downstream task, such as supervised transfer, few-shot learning on smaller labeled data sets, and/or unsupervised clustering. Unfortunately, it is infeasible to evaluate SSL methods on all possible downstream tasks and objectively measure the quality of the learned representation. Instead, SSL methods are evaluated using in-domain evaluation protocols, such as fine-tuning, linear probing, and k-nearest neighbors (kNN). However, it is not well understood how well these evaluation protocols estimate the representation quality of a pre-trained model for different downstream tasks under different conditions, such as dataset, metric, and model architecture. We study how classification-based evaluation protocols for SSL correlate and how well they predict downstream performance on different dataset types. Our study includes eleven common image datasets and 26 models that were pre-trained with different SSL methods or have different model backbones. We find that in-domain linear/kNN probing protocols are, on average, the best general predictors for out-of-domain performance. We further investigate the importance of batch normalization and evaluate how robust correlations are for different kinds of dataset domain shifts. We challenge assumptions about the relationship between discriminative and generative self-supervised methods, finding that most of their performance differences can be explained by changes to model backbones.
