Introduction
Data augmentation (DA) is essential for training deep neural networks that generalize well. Recently, automated DA methods like AutoAugment have replaced manual design by searching for optimal augmentation policies. However, these methods typically find a single policy for an entire dataset. This "one-size-fits-all" approach is sub-optimal because images vary significantly; an augmentation that benefits one image might introduce noise or destroy semantic content in another. MetaAugment addresses this by learning to weight individual augmented samples based on their specific content, achieving state-of-the-art performance across major benchmarks like CIFAR, Omniglot, and ImageNet.
Methodology
MetaAugment formulates sample-aware data augmentation as a sample reweighting problem solved via bilevel optimization. The system consists of two main components:
- Task Network: The primary model being trained for image recognition, which minimizes a weighted training loss.
- Augmentation Policy Network: A meta-learner that takes the features of an augmented image and an embedding of the applied transformation to output a scalar weight. This weight determines the task network's "trust" in that specific augmented sample.
The training process follows a meta-learning loop. In the inner loop, the task network is updated using a mini-batch of augmented training data, with each sample's loss scaled by the policy network's output. In the outer loop, the policy network is updated by minimizing the task network's loss on a separate validation set, forcing it to learn weights that improve generalization. To boost efficiency, a Transformation Sampler uses historical outputs to prioritize transformations that are generally more effective for the dataset.
Key Insights and Ideas
MetaAugment transforms a discrete search problem into a continuous optimization problem, making it significantly faster than naive sample-level search. By using both image features and transformation types, the policy network realizes that context matters. For instance, a "Rotate" operation might be beneficial for a natural photo but disastrous for a handwritten digit that could be transformed into a different character.
On the Omniglot dataset, the model learned to assign low weights to aggressive geometric transforms that distorted character identities. Conversely, on CIFAR and ImageNet, it favored transformations that increased diversity. The transformation sampler acts as a coarse dataset-level filter, while the policy network provides fine-grained sample-level control.
Experimental Results
MetaAugment consistently outperformed previous state-of-the-art automated DA methods across several standard benchmarks:
- CIFAR-10/100: Achieved superior Top-1 accuracy across multiple architectures. On CIFAR-100 with Shake-Shake, it reached 85.97% accuracy, surpassing AdvAA (85.90%) and PBA (84.69%).
- Omniglot: Showed a significant jump over baselines, proving robustness even when many standard augmentations are invalid for the data type.
- ImageNet: On ResNet-50, MetaAugment achieved 79.74% Top-1 accuracy, outperforming AutoAugment (77.6%) and AdvAA (79.40%).
Limitations and Future Work
While more efficient than naive search, MetaAugment still requires roughly 3x to 4.5x the training time of a standard run due to the meta-learning loop. Additionally, the authors found that completely rejecting low-weight samples hurt performance, suggesting even "bad" augmentations contain some useful signal. Future directions include exploring more sophisticated ways to balance exploration and exploitation in the transformation sampler to further speed up convergence.
Summary updated