A Closer Look at Benchmarking Self-Supervised Pre-training with Image Classification

Markus Marks, Manuel Knott, Neehar Kondapaneni, Elijah Cole, Thijs Defraeye, Fernando Pérez-Cruz, Pietro Perona

Abstract

Self-supervised learning (SSL) eliminates the need for external labels by forcing models to learn data structures through pretext tasks. While SSL allows training on vast unlabeled datasets, evaluating the resulting representation quality is complex. Common in-domain protocols like fine-tuning, linear probing, and k-nearest neighbors (kNN) are used as proxies, but their ability to predict downstream performance across diverse tasks is not fully understood. This study systematically evaluates 26 SSL models across 11 image datasets to determine how these evaluation protocols correlate and predict out-of-domain (OOD) performance. We find that linear and kNN probing are excellent general predictors for OOD ranking, and that many performance differences between SSL methods are primarily driven by model backbone architecture rather than the learning objective itself.

Introduction: The Evaluation Dilemma

In SSL, models learn features by solving tasks like predicting missing image patches or contrasting augmented views. To verify if these features are useful, researchers use "proxy" evaluation protocols. Linear probing involves training a single linear layer on frozen features, while kNN probing checks feature proximity. Fine-tuning involves re-training the entire model on labeled data. However, there is no consensus on which proxy best predicts performance on novel downstream tasks, such as transitioning from general ImageNet photos to specialized medical or biological imagery. This lack of standardization can lead to inconsistent benchmarking where metrics are chosen to favor specific methods.

Overview of the SSL pre-training pipeline and the various evaluation protocols (fine-tuning, linear probing, kNN) used to assess representation quality for downstream applications.

Methodology

To address this, we conducted a comprehensive evaluation of 26 SSL models, including architectures like SimCLR, MoCo, MAE, and DINO. We standardized evaluations using two primary backbones—ResNet-50 and ViT-B/16—across five protocols. Predictiveness was measured using Spearman rank correlation to determine if a model's performance ranking on the pre-training dataset (ImageNet-1k) holds true across 11 diverse evaluation datasets. These datasets were selected to simulate various domain shifts, including categorical granularity (e.g., iNaturalist species), style shifts (e.g., ImageNet-D sketches and paintings), and specialized domains (e.g., CUB birds).

Key Insights

The Backbone as the Primary Driver

A significant finding is that the perceived gap between generative SSL (e.g., MAE) and discriminative SSL (e.g., SimCLR) largely vanishes when using the same backbone. Much of the "superiority" attributed to specific SSL objectives was actually a result of the Vision Transformer (ViT) architecture outperforming ResNets. When backbones are held constant, the differences in representation quality between these families are minimal.

Linear Probes as Reliable Predictors

Contrary to some assumptions, simple in-domain linear and kNN probing are the most reliable general predictors for how a model will rank on out-of-domain tasks, with a correlation of approximately $r=0.85$. If a model performs well under a linear probe on ImageNet, it is highly likely to remain the top performer on a new, unseen dataset. Furthermore, linear and kNN probing correlate almost perfectly ($r=0.99$) when features are properly normalized, suggesting they can be used interchangeably for benchmarking purposes.

Normalization and Transfer Learning

Batch Normalization (BN) proved critical for accurate evaluation. For models with unscaled features, the absence of a BN layer during evaluation can significantly degrade perceived performance. Additionally, for researchers specifically focused on transfer learning (fine-tuning on a new domain), the best predictor of success is 10% few-shot fine-tuning on the source domain.

Results: Correlation and Robustness

Rank correlation heatmaps demonstrating the high consistency between in-domain (ID) metrics and their ability to predict performance rankings across out-of-domain (OOD) tasks.

Our results indicate that while ImageNet metrics are excellent at ranking models, they are poor at predicting absolute accuracy on new tasks. A model might maintain its rank as the "best" while its absolute accuracy drops significantly on a specialized dataset. We also observed that model rankings are highly robust to changes in categorical granularity (moving from coarse to fine-grained labels) but are much more sensitive to shifts in image style (e.g., moving from photos to sketches).

Conclusion

This study clarifies the landscape of SSL evaluation, highlighting that simple linear probes are robust indicators of general representation quality. It also underscores the importance of the model backbone in determining performance. While our study focuses on image classification, future work is needed to extend these findings to tasks like object detection and segmentation, and to develop better theoretical models for the interaction between backbones and SSL loss functions.

Summary updated

BibTeX
@article{marks2025closer,
  author = {Markus Marks and Manuel Knott and Neehar Kondapaneni and Elijah Cole and Thijs Defraeye and Fernando Pérez-Cruz and Pietro Perona},
  title = {{A Closer Look at Benchmarking Self-Supervised Pre-training with Image Classification}},
  journal = {Int. J. Comput. Vis.},
  year = {2025},
  doi = {10.1007/s11263-025-02402-w},
}
Figure