Abstract
Recent work has shown that data augmentation has the potential to significantly improve the generalization of deep learning models. Recently, automated augmentation strategies have led to state-of-the-art results in image classification and object detection. While these strategies were optimized for improving validation accuracy, they also led to state-of-the-art results in semi-supervised learning and improved robustness to common corruptions of images. An obstacle to a large-scale adoption of these methods is a separate search phase which increases the training complexity and may substantially increase the computational cost. Additionally, due to the separate search phase, these approaches are unable to adjust the regularization strength based on model or dataset size. Automated augmentation policies are often found by training small models on small datasets and subsequently applied to train larger models. In this work, we remove both of these obstacles. RandAugment has a significantly reduced search space which allows it to be trained on the target task with no need for a separate proxy task. Furthermore, due to the parameterization, the regularization strength may be tailored to different model and dataset sizes. RandAugment can be used uniformly across different tasks and datasets and works out of the box, matching or surpassing all previous automated augmentation approaches on CIFAR-10/100, SVHN, and ImageNet. On the ImageNet dataset we achieve 85.0% accuracy, a 0.6% increase over the previous state-of-the-art and 1.0% increase over baseline augmentation. On object detection, RandAugment leads to 1.0-1.3% improvement over baseline augmentation, and is within 0.3% mAP of AutoAugment on COCO. Finally, due to its interpretable hyperparameter, RandAugment may be used to investigate the role of data augmentation with varying model and dataset size.
Introduction
Data augmentation is a critical component in training deep learning models that generalize well to unseen data. By artificially expanding a dataset through transformations like rotations, flips, or color adjustments, models become more robust to variations. Recently, "Automated Data Augmentation" methods such as AutoAugment have achieved state-of-the-art results by using reinforcement learning to search for optimal augmentation policies.
However, these methods face two significant hurdles. First, they are computationally expensive, often requiring a separate search phase on a "proxy task" (a smaller model or dataset) due to a massive search space (up to $10^{32}$ possible policies). Second, this reliance on proxy tasks creates a gap: the optimal policy for a small model is often sub-optimal for a larger target model. RandAugment addresses these issues by drastically simplifying the search space, allowing for direct optimization on the target task.
The RandAugment Method
RandAugment replaces complex search algorithms with a simple two-parameter strategy. Instead of learning individual probabilities and magnitudes for dozens of transformations, it uses:
- $N$: The number of augmentation transformations to apply sequentially.
- $M$: The magnitude (intensity) for all transformations.
During training, $N$ transformations are selected with uniform probability from a set of 14 standard operations (e.g., Identity, AutoContrast, Equalize, Rotate, Solarize, Color, Posterize, Contrast, Brightness, Sharpness, ShearX, ShearY, TranslateX, TranslateY). Each selected operation is then applied with the same magnitude $M$. This reduction in parameters allows the optimal augmentation strength to be found via a simple grid search during the primary training run.
The Regularization Scaling Law
A key insight of this work is that data augmentation acts as a form of regularization, and like other regularizers, its optimal strength depends on the model's capacity and the amount of training data. Previous automated methods that transferred policies from small proxy models to large target models systematically under-augmented the larger models.
As shown in the experimental data, the optimal distortion magnitude $M$ increases as the model size (e.g., widening parameter in Wide-ResNet) or the training set size increases. RandAugment's simple parameterization makes it easy to scale this regularization strength appropriately, ensuring that larger, more powerful models receive the stronger augmentation they require to prevent overfitting.
Experimental Results
RandAugment was evaluated across several benchmarks, demonstrating that simplicity does not come at the cost of performance:
- ImageNet: Using EfficientNet-B7, RandAugment achieved 85.0% accuracy, setting a new state-of-the-art and surpassing baseline augmentation by 1.0%.
- CIFAR-10/100: RandAugment matched or exceeded the performance of AutoAugment while using a search space that is orders of magnitude smaller ($10^2$ vs $10^{32}$).
- Object Detection: On the COCO dataset, RandAugment improved the RetinaNet baseline by 1.0-1.3% mAP, proving its utility beyond classification.
- Efficiency: By eliminating the separate search phase, RandAugment reduces the total compute time required to find an augmentation policy by roughly 1000x to 15,000x compared to original AutoAugment methods.
Conclusion
RandAugment demonstrates that a massive search space is not necessary for effective automated data augmentation. By reducing the problem to two interpretable hyperparameters, $N$ and $M$, the method removes the need for expensive proxy tasks and allows for the dynamic scaling of regularization based on model and dataset size. Its simplicity and performance make it a practical, "out-of-the-box" solution for modern deep learning pipelines. Future work may explore the application of this random-but-tuned-magnitude approach to other domains such as audio or natural language processing.
Summary updated