Self-supervised Pretraining of Visual Features in the Wild

Priya Goyal, Mathilde Caron, Benjamin Lefaudeux, Min Xu, Pengchao Wang, Vivek Pai, Mannat Singh, Vitaliy Liptchinsky, Ishan Misra, Armand Joulin, Piotr BojanowskiarXiv 2021

Abstract

Recently, self-supervised learning methods like MoCo, SimCLR, BYOL and SwAV have reduced the gap with supervised methods. These results have been achieved in a control environment, that is the highly curated ImageNet dataset. However, the premise of self-supervised learning is that it can learn from any random image and from any unbounded dataset. In this work, we explore if self-supervision lives to its expectation by training large models on random, uncurated images with no supervision. Our final SElf-supERvised (SEER) model, a RegNetY with 1.3B parameters trained on 1B random images with 512 GPUs achieves 84.2% top-1 accuracy, surpassing the best self-supervised pretrained model by 1% and confirming that self-supervised learning works in a real world setting. Interestingly, we also observe that self-supervised models are good few-shot learners achieving 77.9% top-1 with access to only 10% of ImageNet. Code: https://github.com/facebookresearch/vissl

Introduction

Traditionally, the "gold standard" for pretraining computer vision models has been ImageNet—a highly curated dataset where humans have carefully labeled and balanced categories. While self-supervised learning (SSL) has recently matched supervised performance, most breakthroughs still occurred within the "controlled" environment of ImageNet. The SEER (SElf-supERvised) project challenges a fundamental question: Does SSL actually live up to its promise of learning from any random image in the wild? In the real world, data is noisy, unbalanced, and uncurated. This work investigates whether scaling both the data (to billions of images) and the model capacity (to billions of parameters) can overcome the lack of curation.

Methodology

The researchers combined three key components to create SEER:

  1. SwAV (Swapping Assignments between Views): An online clustering-based SSL method. It works by taking different "crops" or views of the same image and training the network to predict the cluster assignment of one view from the features of another.
  2. RegNetY Architectures: A family of convolutional neural networks designed for efficiency. The authors specifically scaled up to the RegNetY-256GF, a massive model with 1.3 billion parameters.
  3. Optimization at Scale: To make training on 1 billion images tractable, they utilized 512 NVIDIA V100 GPUs, mixed-precision (FP16), and gradient checkpointing. Crucially, they found that for uncurated data, the projection head needs to be much larger (16K prototypes) to capture the vast diversity of internet concepts.

Scaling and Performance

A significant insight from this research is that curation is optional, but capacity is not. The performance gains from scaling model capacity actually accelerate when using uncurated data. While a small model might struggle with "noisy" internet data, a massive model thrives on it.

Figure 1: SEER achieves state-of-the-art ImageNet accuracy as model parameters scale, outperforming existing SSL methods like SimCLRv2 and SwAV.

As shown in Figure 1, the 1.3B parameter SEER model achieved a state-of-the-art 84.2% top-1 accuracy after finetuning on ImageNet, surpassing the best previous SSL models by 1%.

Low-Shot Learning and Transferability

SEER is remarkably efficient with limited labels. With only 10% of ImageNet labels, it reaches 77.9% accuracy—competitive with models trained on the full dataset just a few years ago. On 1% of ImageNet (only ~13 images per class), SEER achieved 60.5%, significantly outperforming supervised baselines.

Figure 4: The relative improvement of SEER over supervised baselines increases significantly with model size, particularly in low-shot scenarios (1% and 10% labels).

Figure 4 illustrates that as model size increases, the relative advantage of self-supervised pretraining over supervised training grows, especially when labels are scarce. Furthermore, in object detection and segmentation on COCO, SEER outperformed supervised pretraining by 1.5 to 2 AP points, proving that "wild" pretraining produces more versatile features than label-constrained pretraining.

Conclusion

The SEER project demonstrates that self-supervised learning can scale to over a billion random, uncurated internet images. The results suggest that the scaling curves for SEER haven't saturated yet, and future work will explore even larger models and more diverse data sources to find the upper limit of "learning in the wild."

Summary updated

BibTeX
@misc{goyal2021self,
  author = {Priya Goyal and Mathilde Caron and Benjamin Lefaudeux and Min Xu and Pengchao Wang and Vivek Pai and Mannat Singh and Vitaliy Liptchinsky and Ishan Misra and Armand Joulin and Piotr Bojanowski},
  title = {{Self-supervised Pretraining of Visual Features in the Wild}},
  year = {2021},
  eprint = {2103.01988},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.01988},
}
Figure