SelfAugment: Automatic Augmentation Policies for Self-Supervised Learning

Colorado J. Reed, Sean Metzger, Aravind Srinivas, Trevor Darrell, Kurt Keutzer

Introduction

Self-supervised learning (SSL) has fundamentally changed computer vision by enabling models to learn from vast quantities of unlabeled data. However, a persistent "supervised cheat" remains: researchers typically rely on human-labeled validation sets to tune data augmentation policies—such as cropping, color jittering, or blurring—that are critical for SSL performance. This dependency creates a bottleneck in domains where labels are non-existent, such as specialized medical imaging or industrial inspection.

This paper introduces SelfAugment, a framework designed to automatically discover optimal data augmentation policies without any human-labeled data. By identifying a robust proxy task for representation quality, the authors enable a fully unsupervised pipeline for model training and policy optimization.

The SelfAugment Framework

SelfAugment treats the selection of augmentations as an optimization problem. The core innovation is the discovery that a model's performance on a simple "linear rotation prediction" task (identifying if an image was rotated 0°, 90°, 180°, or 270°) serves as a highly accurate proxy for its performance on downstream supervised tasks.

The SelfAugment framework enables fully unsupervised training by using a self-supervised proxy task (rotation prediction) to evaluate and optimize data augmentation policies.

Methodology

The framework operates through three primary components:

  1. Proxy Task Evaluation: Representations are evaluated using a linear layer trained to predict image rotation. High accuracy on this task correlates with high-quality feature representations.
  2. Search Algorithm: The system adapts Fast AutoAugment (FAA), utilizing Bayesian optimization to navigate a vast space of potential augmentation combinations (e.g., specific probabilities and magnitudes of Solarization or Shearing).
  3. Minimax Optimization: The search aims to find a "sweet spot" by simultaneously minimizing rotation error (ensuring augmentations don't destroy semantic content) and maximizing InfoNCE loss (ensuring the contrastive task remains challenging enough for the model to learn).

Key Insights and Results

The most significant finding is the universal nature of the rotation proxy. The authors observed a remarkably high rank correlation ($\rho > 0.94$) between rotation prediction accuracy and supervised accuracy across diverse datasets and architectures.

Experimental results demonstrate a strong correlation between the rotation proxy task and supervised performance across multiple datasets (CIFAR-10, SVHN, ImageNet) and transfer tasks (VOC, COCO, Places205).

Performance and Efficiency

  • State-of-the-Art Results: SelfAugment discovered policies that outperformed human-tuned baselines like MoCoV2 on SVHN and CIFAR-10. On ImageNet, it achieved comparable results (within 0.2%) without any manual intervention.
  • Transferability: Policies optimized on ImageNet transferred effectively to object detection (VOC '07) and scene recognition (Places205), proving the generalizability of the discovered augmentations.
  • Computational Gains: SelfAugment is highly efficient, finding high-quality policies in approximately 730 GPU hours on ImageNet—a significant reduction compared to the thousands of hours required for exhaustive manual grid searches.

Discussion and Future Work

While rotation is a powerful proxy for natural images, its effectiveness is domain-dependent. For instance, it may not suit rotation-invariant textures or grayscale medical imagery. Future research directions include the automatic selection of the proxy task itself alongside the augmentation policy. Despite the initial computational overhead of the search phase, SelfAugment represents a major step toward truly autonomous, label-free machine learning pipelines.

Summary updated

BibTeX
@inproceedings{reed2021selfaugment,
  author = {Colorado J. Reed and Sean Metzger and Aravind Srinivas and Trevor Darrell and Kurt Keutzer},
  title = {{SelfAugment: Automatic Augmentation Policies for Self-Supervised Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00270},
}
Figure