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

Introduction

Self-supervised learning (SSL) has transformed computer vision by enabling models to learn from vast unlabeled datasets. However, evaluating these models remains a challenge because they are not trained for specific downstream tasks. The research community typically relies on "in-domain" (ID) proxy metrics, such as linear probing or k-Nearest Neighbors (kNN) on ImageNet, to gauge model quality. This paper investigates a critical question: Do these standard proxy metrics accurately predict performance on real-world, out-of-domain (OOD) tasks?

Methodology

The authors conducted an extensive benchmarking study to evaluate the predictive power of common SSL evaluation protocols. The study involved 26 SSL models, encompassing both discriminative methods (e.g., SimCLR, MoCo, DINO) and generative methods (e.g., MAE, MaskFeat). These models were tested using two primary backbones: ResNet-50 and ViT-B/16.

Overview of the SSL pre-training and evaluation framework, illustrating the transition from unlabeled pre-training to various evaluation protocols and downstream applications.

The evaluation framework included five protocols:

  1. Linear Probing: Training a linear classifier on top of frozen features.
  2. kNN Probing: Using k-nearest neighbors classification on frozen features.
  3. Fine-tuning: Updating all model weights at three scales (100%, 10%, and 1% of the labels).

To assess robustness, the models were tested across 11 diverse datasets, including categorical shifts (e.g., iNaturalist, Caltech-256) and stylistic shifts (e.g., ImageNet-D sketches and cartoons). Spearman rank correlation was used to determine how well ID performance ranks predicted OOD performance ranks.

Key Insights

The Role of the Backbone

A significant finding is that the perceived performance gap between generative and discriminative SSL methods is largely attributable to the model backbone. Vision Transformers (ViTs) tend to benefit more from fine-tuning than ResNets. When controlling for the backbone, the choice of SSL algorithm often becomes secondary to the architectural advantages of the ViT.

Probing as a Reliable Proxy

The study confirms that simple linear and kNN probing on ImageNet are surprisingly effective predictors of OOD performance, with a correlation coefficient of approximately 0.85. For researchers looking for a general-purpose indicator of model quality, linear probing remains a robust choice.

Transfer Learning and Normalization

For specific transfer learning scenarios involving small datasets, the best predictor is 10% fine-tuning on the ID dataset. Additionally, the paper emphasizes the importance of Batch Normalization. It acts as a "secret sauce," significantly boosting performance in low-data fine-tuning and proving essential for effective probing protocols.

Key Results

The correlation analysis reveals that linear and kNN probing are nearly interchangeable when features are properly normalized ($r=0.99$). However, the reliability of these proxies diminishes when dealing with stylistic shifts (e.g., moving from photos to sketches), which remain harder to predict than categorical shifts.

Heatmap showing the Spearman rank correlation between various in-domain evaluation metrics and out-of-domain performance across different protocols.

ViT backbones consistently outperformed ResNets in fine-tuning scenarios, even in cases where their initial linear probing scores were lower. This suggests that ViTs learn more "flexible" representations that adapt better during the fine-tuning process.

Conclusion and Future Work

While linear probing on ImageNet is a solid proxy for many downstream tasks, it is not a universal solution. The study highlights that the choice of backbone and normalization techniques are often as critical as the SSL algorithm itself. Future research should expand beyond image classification to tasks like object detection and semantic segmentation to further refine our understanding of SSL benchmarking.

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