Data augmentation is a cornerstone of modern deep learning for computer vision, yet existing methods often face a trade-off between the high computational costs of search-based policies and the sub-optimal performance of "one-size-fits-all" search-free methods. This paper presents Sample-aware RandAugment (SRA), a novel search-free approach that dynamically adjusts augmentation intensity based on individual sample difficulty. By applying heavier transformations to easy samples and lighter ones to hard samples, SRA achieves state-of-the-art performance across various benchmarks with minimal computational overhead.
Introduction
The effectiveness of neural networks relies heavily on data augmentation to improve generalization. Current techniques generally fall into two categories: search-based methods like AutoAugment, which require extensive GPU hours to find optimal policies, and search-free methods like RandAugment, which apply uniform random transformations. The authors identify "deficient flexibility" in search-free methods as a primary bottleneck, as they fail to account for the varying difficulty levels of individual images within a dataset. SRA bridges this gap by introducing a sample-aware mechanism that provides the intelligence of searched policies at the speed of random ones.
Methods
SRA introduces two primary innovations to the training pipeline: an Asymmetric Training Strategy and the Magnitude Instructor Score (MIS).
The Asymmetric Training Strategy divides each training batch into two components:
- Exploration Sub-batch: Receives standard random augmentation to help the model explore the general data distribution.
- Refinement Sub-batch: Utilizes the MIS to tailor augmentation magnitude.
The Magnitude Instructor Score (MIS) serves as the decision-making core. During a forward pass, the model calculates the cosine similarity between its prediction and the ground-truth label. Easy samples (high similarity) are subjected to heavy augmentation to enhance robustness, while hard samples (low similarity) receive light augmentation to refine the decision boundary without introducing excessive noise.
Key Insights: The "Easy-Hard" Paradox
A central finding of this work is that refining a model requires pushing easy samples harder. Aggressive distortion of samples already near the decision boundary (hard samples) often results in unrecognizable noise, hindering learning. Conversely, challenging the model with heavily augmented easy samples forces it to learn more discriminative and robust features. SRA's ability to balance these needs results in a cleaner separation between classes.
Key Results
SRA was evaluated on ImageNet-1K, CIFAR, and long-tailed datasets. On ImageNet with a ResNet-50, SRA achieved 78.31% Top-1 accuracy, outperforming both standard search-free and several search-based methods.
As shown in the qualitative analysis, SRA consistently produces more accurate and confident predictions across different sample frequencies. Notably, on the ImageNet-LT dataset, SRA significantly improved "Few-shot" class accuracy from 11.64% to 16.41%, demonstrating its efficacy in learning from rare examples. Furthermore, SRA is highly efficient, adding only approximately 10% to the total training time, and is architecture-agnostic, showing gains on CNNs, Vision Transformers, and Mamba architectures.
Conclusion
Sample-aware RandAugment (SRA) offers a practical and effective solution for automated data augmentation. By making augmentation "sample-aware," it achieves superior performance without the prohibitive costs of policy searching. Future work may involve automating the selection of specific augmentation operations and extending SRA to self-supervised or generative tasks.
Summary updated