Abstract
Data augmentation (DA) is essential for training robust neural networks, yet existing automated methods often suffer from high computational costs or static policies. We present Universal Adaptive Data Augmentation (UADA), a framework that dynamically adapts DA parameters during training. By simulating gradients through non-differentiable DA operations, UADA generates adversarial "hard" examples that improve model generalization across classification, segmentation, and detection tasks.
Introduction
Data augmentation techniques like cropping, rotation, and color jittering are standard tools to prevent overfitting in deep learning. While effective, manual policy design is labor-intensive and dataset-specific. Automated DA methods like AutoAugment have emerged to solve this, but they typically require an expensive pre-training search phase. Online methods attempt to adapt during training but often rely on random sampling or reinforcement learning, ignoring the direct feedback from the model's loss gradient.
The UADA Framework
Universal Adaptive Data Augmentation (UADA) addresses these limitations by treating DA parameter selection as an adversarial optimization problem. The core challenge is that many DA operations (e.g., discrete rotations or Cutout) are non-differentiable. UADA overcomes this using a gradient simulation approach inspired by black-box adversarial attacks.
The process follows four distinct steps per training batch:
- Random Initialization: Sample initial DA parameters and compute the baseline loss.
- Gradient Simulation: Estimate the gradient by applying a small perturbation ($\delta$) to the DA parameters and measuring the change in loss.
- Adversarial Update: Adjust parameters in the direction that maximizes loss, creating challenging training samples tailored to the model's current weaknesses.
- Model Update: Update the target model's weights using standard backpropagation on these hard examples.
Experimental Results
UADA demonstrates "universal" applicability across various computer vision tasks, including classification, segmentation, and detection. In image classification, it consistently outperforms standard baselines. For instance, on CIFAR-100 with a ResNet18 backbone, UADA achieves a 2.87% accuracy improvement over the baseline. On the large-scale ImageNet dataset, a ResNet50 model trained with UADA reached 77.19% top-1 accuracy.
Beyond classification, UADA shows significant gains in dense prediction tasks. On the Cityscapes segmentation benchmark, it improves PSPNet50's mIoU by 1.69%. In object detection on PASCAL VOC07+12, it enhances RFBNet's mAP by 0.90%.
Efficiency and Regularization
A key advantage of UADA is its computational efficiency compared to reinforcement learning-based methods. While it introduces a 4.2$\times$ overhead relative to standard training due to extra forward passes, it is significantly faster than Adversarial AutoAugment (8.0$\times$) and LTDA (6.0$\times$). The adversarial nature of the augmentation acts as a strong regularizer, forcing the model to learn more robust features from difficult samples, effectively trading a slightly higher training loss for significantly better validation performance.
Conclusion
UADA provides a scalable and effective way to automate data augmentation without the need for a separate search phase. By leveraging simulated gradients, it creates a dynamic training environment that adapts to the model's current state. Future work will focus on further reducing computational overhead and extending the method to low-level vision tasks like super-resolution and denoising.
Summary updated