Abstract: In the past few years, we have witnessed remarkable breakthroughs in self-supervised representation learning. Despite the success and adoption of representations learned through this paradigm, much is yet to be understood about how different training methods and datasets influence performance on downstream tasks. In this paper, we analyze contrastive approaches as one of the most successful and popular variants of self-supervised representation learning. We perform this analysis from the perspective of the training algorithms, pre-training datasets and end tasks. We examine over 700 training experiments including 30 encoders, 4 pre-training datasets and 20 diverse downstream tasks. Our experiments address various questions regarding the performance of self-supervised models compared to their supervised counterparts, current benchmarks used for evaluation, and the effect of the pre-training data on end task performance.
Introduction
The standard paradigm in computer vision has long relied on encoders pre-trained on ImageNet using human-provided labels. However, self-supervised representation learning (SSRL)—learning from raw data without explicit labels—has recently begun to challenge this status quo. Despite its rapid adoption, the field lacks a systematic understanding of how specific choices in the pre-training "pipeline" (the combination of algorithm and dataset) affect performance across a broad spectrum of real-world applications.
A significant "blind spot" exists because most self-supervised algorithms are evaluated primarily on ImageNet classification. It remains unclear if high accuracy on semantic object identification translates to success in structural tasks, such as robotic navigation or depth estimation. This paper addresses these gaps by conducting a massive empirical study of contrastive SSRL.
The Visual Representation Benchmark (ViRB)
To systematically evaluate SSRL pipelines, we developed the Visual Representation Benchmark (ViRB). This framework allows for the analysis of three critical variables: training algorithms, pre-training datasets, and downstream end tasks.
Experimental Setup
- Training Algorithms: We compared four prominent contrastive learning methods: PIRL, MoCo (v1 and v2), and SwAV. These methods generally learn by ensuring that different augmentations of the same image have similar representations while remaining distinct from other images.
- Pre-training Datasets: Beyond ImageNet-1K, we tested models trained on Places (scene-centric), Taskonomy (indoor environments), and Kinetics (video frames). We also explored the impact of data distribution by creating unbalanced versions of ImageNet.
- End Tasks: We evaluated representations on 20 diverse tasks categorized by their nature: Semantic vs. Structural (object identity vs. geometry) and Image-level vs. Pixelwise (global labels vs. per-pixel predictions).
To isolate the quality of the learned representations, we kept the ResNet-50 encoder "frozen" during evaluation, training only the task-specific heads.
Key Results and Insights
Our analysis of over 700 experiments yielded several critical insights into the behavior of self-supervised models.
SSRL as the New Default
One of the most striking findings is that self-supervised models are no longer just "catching up" to supervised ones; they are often superior. In 17 out of the 20 tasks studied, at least one self-supervised encoder outperformed the traditional supervised ImageNet baseline.
The Deception of ImageNet Accuracy
We found that ImageNet classification accuracy is a poor proxy for general model quality. A model that performs exceptionally well on ImageNet might significantly underperform on structural tasks like depth estimation or optical flow. In fact, the correlation between ImageNet performance and structural task performance is often weak or even negative.
Algorithm "Personalities" and Data Domain
Different algorithms exhibit distinct strengths. MoCo v2 consistently excelled at pixelwise structural tasks, likely due to its ability to preserve spatial information. In contrast, SwAV proved superior for semantic, image-level classification. Furthermore, the domain of the pre-training data matters; training on datasets similar to the end task (e.g., indoor scenes for indoor depth) provides a significant performance boost.
Robustness to Unbalanced Data
Contrary to common assumptions, contrastive learning is remarkably robust to natural, long-tailed data distributions. Training on highly unbalanced datasets resulted in representations that were just as effective as those learned from perfectly balanced ones, suggesting that the "curated" nature of ImageNet may not be strictly necessary for effective self-supervision.
Discussion and Limitations
While this study provides a comprehensive empirical foundation, it has limitations. Our focus on frozen backbones and the ResNet-50 architecture leaves open the question of how these findings translate to full fine-tuning or newer architectures like Vision Transformers (ViTs). Additionally, while we have identified empirical trends—such as MoCo's superiority in structural tasks—further theoretical work is needed to explain the underlying mechanisms of these "algorithm personalities."
Our Visual Representation Benchmark (ViRB) is available at: https://github.com/allenai/virb.
Summary updated