Paper commentary
RandAugment: Practical automated data augmentation with a reduced search space
RandAugment drops the separate search and tunes augmentation strength directly on the target task
- Problem Learned augmentation policies need a separate search, usually on small proxy models and datasets. That adds training cost, and the chosen strength may not carry over to larger models or datasets.
- Method RandAugment applies N operations drawn uniformly from 14 image transformations, all at one shared magnitude M. Instead of a learned search, it picks N and M by grid search on held-out data.
- Results RandAugment reaches 85.0 top-1 accuracy on ImageNet with EfficientNet-B7. That is 1.0 point above baseline augmentation and 0.6 above AutoAugment.
Why a separate search is a problem
Learned augmentation policies can improve accuracy, robustness and semi-supervised learning, but the policies are usually found by a separate search before the target model is trained. That search adds computation and complexity to the training pipeline. Because the search runs ahead of time, the resulting policy cannot adjust its regularization strength to the size of the model or the dataset.
Searches are commonly run on small models and small datasets, and the policy found is then applied to larger models.
Transferring the policy assumes that a small proxy task predicts how the augmentation will behave on the larger target task. The paper tests that assumption on CIFAR-10 and finds that the best augmentation strength depends on model size and dataset size, so a choice made on a proxy can miss the target.
RandAugment takes the opposite route: it removes the search and keeps a small set of interpretable parameters that can be chosen directly on the target task. The reduced space is small enough that a plain grid search covers it.
Optimal augmentation strength grows with model and data size
The first test uses a family of Wide-ResNet-28 networks that differ in their widening factor, all trained on CIFAR-10. Each network is compared with a baseline that uses only the default flips and random translations, while the augmented runs add the 14 transformations at a range of global magnitudes M. The curves are validation accuracies averaged over 20 random initializations with N set to 1, trained for 200 epochs on 45K training examples.
Across the widening factors, the best magnitude rises monotonically, so wider networks gain from stronger distortion. A fixed magnitude taken from the AutoAugment policy appears as a dashed line and, in the authors' reading, is clearly suboptimal for these architectures. The magnitudes swept here go beyond the 0 to 10 scale given in the Methods, because the authors wanted a wider range for this preliminary test.
The second test varies the amount of CIFAR-10 training data for Wide-ResNet-28-10, with 1K, 4K and 10K examples in one panel and eight training set sizes in another. Smaller training sets gain more from augmentation, with the text citing 3.0% against 1.5%. The optimal magnitude is larger for larger datasets, and across the eight sizes it rises monotonically.
This runs against the expectation that small datasets need stronger regularization, and the authors offer one hypothesis: aggressive augmentation lowers the signal-to-noise ratio in small datasets. Whichever explanation holds, a proxy built from a subset of the data would tend to select a strength suited to that subset rather than to the full task.
These trends lead the authors to a single shared magnitude M across transformations, and they note that sampling only a few magnitudes already gave good results in their figures. Adding a second free parameter N completes the algorithm, which the next section describes.
The RandAugment policy: uniform sampling at one magnitude
RandAugment draws from a fixed list of 14 image operations, among them identity, rotate, solarize, color, posterize and the shear and translate operations. Earlier learned methods assigned each operation its own probability and magnitude, which amounts to more than 30 parameters. RandAugment drops the learned probabilities and selects each operation with equal chance, a probability of 1/K per draw.
The magnitude is one integer per transformation on a scale from 0 to 10, where 10 is the strongest setting for that transformation. Earlier methods searched a magnitude for each operation; here one global M serves all operations, based on the observation that learned magnitudes follow a similar schedule during training. Four ways of scheduling M during training were tried, and their details are in the appendix.
The paper gives the full algorithm as a short numpy function that samples N operations from the list and pairs each with M. Both N and M are integers, and larger values increase regularization strength, so each can be read directly as a setting. Generic hyperparameter optimizers could be used, but the space is so small that naive grid search is effective.
Tying all magnitudes to one value assumes that giving up per-operation magnitudes costs little, and the authors report that individually optimizing them brings only minor improvement.
CIFAR-10 and CIFAR-100 results
N and M were chosen on 5K examples held out from the training set, so the test split was not used for selection. On CIFAR-10 the grid covered one value of N and five values of M; on CIFAR-100 it covered N={1, 2} and M={2, 6, 10, 14}. Baseline and AutoAugment were replicated by the authors, and the table averages over 10 independent runs for results the authors measured themselves.
On CIFAR-10, RandAugment reaches 97.3 on Wide-ResNet-28-10, against 97.4 for AutoAugment and PBA, and 98.5 on PyramidNet, equal to AutoAugment and PBA. On Shake-Shake, RandAugment reaches 98.0, the same value as the other learned methods in the table. On this split RandAugment stays within 0.1 of the best entry, which is how the authors describe its CIFAR-10 standing.
On CIFAR-100 the selected settings are N=1, M=2 for Wide-ResNet-28-2 and N=2, M=14 for Wide-ResNet-28-10. Wide-ResNet-28-2 reaches 78.3 test accuracy, a little under AutoAugment's 78.5. Wide-ResNet-28-10 reaches 83.3, equal to PBA and above AutoAugment's 82.9 and Fast AutoAugment's 82.7.
SVHN with and without extra images
The SVHN core training set has 73K images, and the extra split adds 531K less difficult images.
On the core set, Wide-ResNet-28-2 with RandAugment reaches 98.3, above 98.2 for the same model trained with the extra images. On the full set, Wide-ResNet-28-10 with RandAugment reaches 99.0, while the table lists AutoAugment at 98.9.
ImageNet results
Augmentations that help CIFAR and SVHN do not always help ImageNet; Cutout substantially improves CIFAR and SVHN but does not improve ImageNet. AutoAugment's gains on ImageNet are small, +0.4 for AmoebaNet-C and +0.1 for EfficientNet-B5, and the authors attribute part of this to a proxy task covering about 10% of the 1000 classes.
On ResNet-50, RandAugment, Fast AutoAugment and AutoAugment all reach 77.6 top-1, up from a baseline of 76.3. On EfficientNet-B5 the top-1 values are 83.2 for the baseline, 83.3 for AutoAugment and 83.9 for RandAugment. On EfficientNet-B7 they are 84.0 for the baseline, 84.4 for AutoAugment and 85.0 for RandAugment. Several entries are taken from earlier papers, with the ResNet-50 baseline and AutoAugment results from the AutoAugment work and the EfficientNet entries from the EfficientNet paper, so they are not one controlled run.
The largest gain is on EfficientNet-B7, where RandAugment reaches 85.0 against 84.0 for the baseline, a 1.0 point gain, and 0.6 above AutoAugment's 84.4. The authors state that these gains come without added computation at inference time, in contrast to gains from new architectures.
Object detection on COCO
Detection experiments use RetinaNet with ResNet-101 and ResNet-200 backbones on COCO, trained for 300 epochs from random initialization, following the earlier AutoAugment detection setup. RandAugment uses the same transformations as classification and has no bounding-box specific operations, while AutoAugment's detection policy acts on the localized bounding box.
AutoAugment's search took about 15K GPU hours, whereas RandAugment's hyperparameters were tuned over six values.
On ResNet-101 the baseline reaches 38.8 mAP, AutoAugment 40.4 and RandAugment 40.1. On ResNet-200 the values are 39.9 for the baseline, 42.1 for AutoAugment and 41.9 for RandAugment. The table places RandAugment just below AutoAugment on both backbones, and the introduction describes the gap as within 0.3% mAP.
The table reports search space sizes of 1034 for AutoAugment and 102 for RandAugment, given as orders of magnitude.
Which transformations drive the gain
The authors trained Wide-ResNet-28-2 on CIFAR-10 with N=3 and M=4, drawing random subsets from the 14 transformations. Flips, pad-and-crop and Cutout were left out so that the effect comes from the subsets alone. The plots show median validation accuracy with 30th and 70th percentile error bars.
Median validation accuracy rises as subsets include more transformations. Even two transformations give more than 1% validation accuracy improvement on average.
Averaged over random subsets, rotate adds 1.3 points, shear-x and shear-y 0.9 each, and translate-x and translate-y 0.4 each. Some color operations also reduce accuracy on average, while rotate lowers variation even in small subsets.
This measures the average effect of adding one transformation to random subsets, and the authors note that the full list still gives a good result.
Learning the transformation probabilities
RandAugment fixes every selection probability to be equal, so the next question is whether learning them improves results. The learned values are \(\alpha_{ij}\), the probability of selecting transformation i for operation j; with K=14 and N=2 there are 28 of them, initialized to uniform values. They are updated from how well a model classifies held-out validation images distorted with the current probabilities.
Posterize, equalize and autoContrast are excluded because they are not differentiable. The idea comes from density matching in Fast AutoAugment, but the authors use a differentiable update in place of Bayesian optimization.
On reduced CIFAR-10 with 4K examples, the 1st-order approximation reaches 85.5 for Wide-ResNet-28-2 and 87.4 for Wide-ResNet-28-10, against 85.3 and 86.8 for RandAugment. On full CIFAR-10 it reaches 96.1 and 97.4, against 95.8 and 97.3 for RandAugment. On full CIFAR-10, Wide-ResNet-28-2 reaches 96.1 against 95.9 for AutoAugment, and Wide-ResNet-28-10 matches AutoAugment at 97.4.
The table values are test accuracies, the reduced models were trained for 500 epochs, and each result averages 10 independent runs.
The text gives gains over the baseline of 0.9 points on the smaller full-data model and 1.2 on the larger one, while Table 6 lists baselines of 94.9 and 96.1 and 1st-order results of 96.1 and 97.4. On reduced CIFAR-10 the text says the gain is more than 3.0%, and the table values are consistent with that.
The authors conclude that learned probabilities may help on small-scale tasks, and reserve larger tasks for the future. A second-order variant based on differentiating through a virtual training step gave consistently negative results in their experiments.
Limits of the evidence
The learned-probability method was tested only on CIFAR-10 and its 4K subset. The density matching approach is costly, so its use on large images was not tested.
The COCO results use no bounding-box-specific transformations, which the authors name as a route to further gains. The claim that RandAugment is largely insensitive to the chosen transformations rests on one sensitivity study with Wide-ResNet-28-2 on CIFAR-10.
Robustness and semi-supervised learning with RandAugment are left as open questions. The authors also leave segmentation, 3-D perception, speech and audio as domains for future work. When a separate search is truly needed for optimal performance remains unresolved.
Paper info
- Authors
- Ekin D. Cubuk, Barret Zoph, Jonathon Shlens, Quoc V. Le
- Venue
- arXiv · Preprint
- First published
- 2019-9-30
- Added
- 2026-11-12
- Updated
- 2019-11-14
- Version
- v2
- arXiv
- 1909.13719
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Ekin D. Cubuk, Barret Zoph, Jonathon Shlens, Quoc V. Le (2019). RandAugment: Practical automated data augmentation with a reduced search space. arXiv:1909.13719v2. https://arxiv.org/abs/1909.13719v2
BibTeX
@misc{cubuk2019randaugment,
title = {{RandAugment: Practical automated data augmentation with a reduced search space}},
author = {Ekin D. Cubuk and Barret Zoph and Jonathon Shlens and Quoc V. Le},
year = {2019},
eprint = {1909.13719},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1909.13719v2}
}