Augmentations vs Algorithms: What Works in Self-Supervised Learning

Warren R. Morningstar, Alex Bijamov, Chris Duvarney, Luke Friedman, Neha Mukund Kalibhat, Luyang Liu, Philip Andrew Mansfield, Renan A. Rojas-Gomez, Karan Singhal, Bradley Green, Sushant PrakasharXiv 2024

Abstract

We study the relative effects of data augmentations, pretraining algorithms, and model architectures in Self-Supervised Learning (SSL). While the recent literature in this space leaves the impression that the pretraining algorithm is of critical importance to performance, understanding its effect is complicated by the difficulty in making objective and direct comparisons between methods. We propose a new framework which unifies many seemingly disparate SSL methods into a single shared template. Using this framework, we identify aspects in which methods differ and observe that in addition to changing the pretraining algorithm, many works also use new data augmentations or more powerful model architectures. We compare several popular SSL methods using our framework and find that many algorithmic additions, such as prediction networks or new losses, have a minor impact on downstream task performance (often less than 1%), while enhanced augmentation techniques offer more significant performance improvements (2-4%). Our findings challenge the premise that SSL is being driven primarily by algorithmic improvements, and suggest instead a bitter lesson for SSL: that augmentation diversity and data / model scale are more critical contributors to recent advances in self-supervised learning.

Introduction

The rapid progress in Self-Supervised Learning (SSL) has been characterized by a proliferation of algorithms such as SimCLR, BYOL, SwAV, DINO, and MoCo. Each method typically introduces a novel combination of loss functions, architectural components (e.g., momentum encoders, predictors), and data augmentation strategies. However, the simultaneous modification of multiple variables makes it difficult to isolate the true drivers of performance. This study aims to disentangle these factors by providing a controlled comparison of popular SSL methods within a unified framework.

Methodology: A Unified SSL Framework

To facilitate direct comparison, we introduce a unified framework that maps diverse joint-embedding SSL methods onto a common template. This template consists of four primary components: an encoder backbone, a projection head, an optional prediction network, and a loss function.

The proposed unified framework (left) and its application to various state-of-the-art SSL algorithms (right).

Our experimental setup utilizes ImageNet for unlabeled pretraining. We evaluate representation quality through linear probing, where a linear classifier is trained on top of the frozen features. This approach allows us to systematically ablate specific components—such as the choice of loss function or the complexity of the augmentation pipeline—while holding other factors constant.

Results: The Primacy of Augmentation

Our analysis reveals that data augmentation is the most significant contributor to recent performance gains in SSL. Moving from simple cropping to more sophisticated strategies like "Multi-crop" consistently yields improvements of up to 5% across various algorithms.

Performance of different SSL methods across a spectrum of augmentation strategies, demonstrating that augmentation diversity is a primary driver of accuracy.

In contrast, purely algorithmic changes often have a marginal impact. For instance, the choice of loss function typically accounts for less than 0.3% of performance variation. The most impactful algorithmic component identified was the momentum encoder, which contributed approximately 1.8%. When normalized for augmentation and model scale, many seemingly distinct algorithms converge to similar performance levels. For example, with appropriate tuning, a basic MoCo v3 implementation can match the performance of more complex methods like DINO.

Discussion and Conclusion

This study highlights a "bitter lesson" for self-supervised learning: performance is driven more by data diversity and model scale than by algorithmic complexity. Specifically, we find that augmentations contribute ~5.0% to the improvement from early to modern methods, model scaling contributes ~2.3%, and algorithmic tweaks (excluding the momentum encoder) contribute only ~0.3%. Future research in SSL should prioritize the discovery of new dimensions of augmentation diversity and efficient scaling strategies over the incremental refinement of loss functions.

Summary updated

BibTeX
@misc{morningstar2024augmentations,
  author = {Warren R. Morningstar and Alex Bijamov and Chris Duvarney and Luke Friedman and Neha Mukund Kalibhat and Luyang Liu and Philip Andrew Mansfield and Renan A. Rojas-Gomez and Karan Singhal and Bradley Green and Sushant Prakash},
  title = {{Augmentations vs Algorithms: What Works in Self-Supervised Learning}},
  year = {2024},
  eprint = {2403.05726},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.05726},
}
Figure