Abstract
Finding optimal data augmentation (DA) policies is a computationally intensive task, often requiring thousands of GPU hours. DADA (Differentiable Automatic Data Augmentation) addresses this by relaxing the discrete search space into a differentiable optimization problem. By utilizing an unbiased gradient estimator and a one-pass bi-level optimization strategy, DADA reduces the search time for high-performing policies to just 1.3 GPU hours on ImageNet and 0.1 GPU hours on CIFAR-10, representing a speedup of over four orders of magnitude compared to original automated methods.
Introduction
Data augmentation is a cornerstone of modern deep learning, improving model generalization by artificially expanding training datasets. However, the search for an optimal augmentation policy—determining which operations to apply and with what magnitude—has traditionally been treated as a black-box optimization problem.
The pioneering work, AutoAugment (AA), used reinforcement learning to automate this search, but it was prohibitively expensive, requiring roughly 5,000 GPU hours for CIFAR-10 and 15,000 for ImageNet. Subsequent improvements like Fast AutoAugment still faced bottlenecks due to non-differentiable search spaces. DADA aims to democratize automated DA search by making it efficient enough to run on a single desktop GPU.
Methodology: Differentiable Search Space
The primary innovation of DADA is the transformation of the discrete DA search problem into a continuous, differentiable one. This allows the use of gradient-based optimization, which is significantly more efficient than reinforcement learning or evolutionary algorithms.
The framework consists of several key components:
- Differentiable Relaxation: Sub-policy selection and operation application are modeled as samples from Categorical and Bernoulli distributions. The Gumbel-Softmax reparameterization trick is employed to allow gradients to flow through these stochastic choices.
- RELAX Gradient Estimator: To mitigate the bias introduced by Gumbel-Softmax, DADA uses the RELAX estimator, providing an unbiased gradient estimate with low variance.
- One-Pass Bi-Level Optimization: Inspired by differentiable architecture search (DARTS), DADA jointly optimizes network weights and DA policy parameters in a single training pass, rather than requiring multiple full training cycles to evaluate policies.
- Validation Loss Objective: Unlike previous methods that maximize validation accuracy, DADA minimizes validation loss, providing a direct and informative gradient signal.
Experimental Results
The authors evaluated DADA across standard benchmarks including CIFAR-10, CIFAR-100, SVHN, and ImageNet. The results demonstrate that DADA achieves competitive accuracy with a fraction of the computational cost.
Efficiency and Accuracy
On CIFAR-10, DADA finds a policy in just 0.1 GPU hours, compared to 5,000 hours for AutoAugment and 3.5 hours for Fast AA. Despite this massive speedup, the error rate remains nearly identical (2.7% for DADA vs. 2.6% for AA). On ImageNet, DADA finds a policy in 1.3 GPU hours, a task that took Fast AA 450 hours.
Generalization and Downstream Tasks
Policies discovered by DADA generalize well across different architectures. Furthermore, using a DADA-optimized backbone for object detection on MS COCO resulted in a 0.4 AP improvement for bounding boxes and 0.3 AP for masks compared to standard baselines, proving the utility of these policies beyond simple classification.
Conclusion
DADA represents a significant step forward in making automated machine learning accessible. By framing data augmentation search as a differentiable optimization problem, it achieves state-of-the-art results with minimal computational overhead. Future work may involve expanding the search space beyond the standard 15 operations or developing dynamic policies that adapt as the model matures during training.
Reference: Li, Y., et al. "DADA: Differentiable Automatic Data Augmentation." arXiv:2003.03780v3 [cs.CV], 2020.
Summary updated