NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AutoAugment: Learning Augmentation Strategies From Data.

Ekin D. Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, Quoc V. Le

Abstract

Data augmentation is an effective technique for improving the accuracy of modern image classifiers. However, current data augmentation implementations are manually designed. In this paper, we describe a simple procedure called AutoAugment to automatically search for improved data augmentation policies. In our implementation, we have designed a search space where a policy consists of many sub-policies, one of which is randomly chosen for each image in each mini-batch. A sub-policy consists of two operations, each operation being an image processing function such as translation, rotation, or shearing, and the probabilities and magnitudes with which the functions are applied. We use a search algorithm to find the best policy such that the neural network yields the highest validation accuracy on a target dataset. Our method achieves state-of-the-art accuracy on CIFAR-10, CIFAR-100, SVHN, and ImageNet (without additional data). On ImageNet, we attain a Top-1 accuracy of 83.5% which is 0.4% better than the previous record of 83.1%. On CIFAR-10, we achieve an error rate of 1.5%, which is 0.6% better than the previous state-of-the-art. Augmentation policies we find are transferable between datasets. The policy learned on ImageNet transfers well to achieve significant improvements on other datasets, such as Oxford Flowers, Caltech-101, Oxford-IIT Pets, FGVC Aircraft, and Stanford Cars.

Introduction

In deep learning, data augmentation is a crucial technique used to artificially increase the diversity of training data by applying transformations like rotations, flips, or color shifts. This teaches models to be "invariant" to these changes (e.g., a cat is still a cat even if it's mirrored). Historically, these strategies have been designed manually by human experts. However, a strategy that works for one dataset might be disastrous for another. This manual engineering is time-consuming and often results in sub-optimal performance. AutoAugment automates this process by using Reinforcement Learning to search for the most effective combinations of image transformations.

Methods

The AutoAugment framework treats finding an augmentation policy as a discrete search problem. It consists of two main components:

  1. The Search Space: A policy consists of 5 sub-policies. Each sub-policy contains two image operations (e.g., Equalize then Rotate) applied in sequence. Each operation is defined by two hyperparameters: the probability of applying it and the magnitude (intensity) of the effect. The search space includes 16 operations from the PIL library, such as shearing, translating, and solarizing.
  2. The Search Algorithm: A Controller RNN (trained via Reinforcement Learning using the PPO algorithm) proposes these policies. A "child" neural network is then trained using the proposed policy, and its validation accuracy serves as the reward signal to update the controller.
The AutoAugment framework: A controller RNN samples a strategy, a child network is trained, and the validation accuracy updates the controller.

To make the search feasible, the authors perform the search on "reduced" versions of datasets and then apply the discovered best policies to the full datasets.

Key Insights and Transferability

One of the most significant findings is that augmentation policies are remarkably transferable. A policy learned on ImageNet works exceptionally well on other datasets like Stanford Cars, suggesting that the rules for effective data augmentation are somewhat universal for natural images. Furthermore, the search algorithm discovered dataset-specific "personalities": for CIFAR-10, it preferred color-based transformations, while for SVHN (house numbers), it frequently chose Invert, as digit shape is more critical than color.

Stochasticity also plays a vital role; applying a pool of sub-policies randomly for each mini-batch provides diversity that prevents the model from overfitting to specific augmented patterns.

Results

AutoAugment achieved significant performance gains across major benchmarks, setting new state-of-the-art records. On CIFAR-10, it reached a record-low error rate of 1.5%, a 0.6% improvement over the previous best. On ImageNet, it attained a Top-1 accuracy of 83.5%, surpassing the previous record without using any additional external data.

Summary of AutoAugment results across various datasets compared to best published results and the associated computational cost.

Limitations and Future Work

The primary drawback is the massive computational cost required for the search; for instance, the ImageNet policy discovery took 15,000 GPU hours. While the resulting policies are easy to implement, the discovery process remains resource-intensive. Future research may explore continuous optimization to find even more precise policies or attempt to optimize augmentation and model architecture simultaneously.

Summary updated

BibTeX
@inproceedings{cubuk2019autoaugment,
  author = {Ekin D. Cubuk and Barret Zoph and Dandelion Mane and Vijay Vasudevan and Quoc V. Le},
  title = {{AutoAugment: Learning Augmentation Strategies From Data.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=rQV-I-7xu6r},
}
Figure