NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Online Hyper-Parameter Learning for Auto-Augmentation Strategy

Chen Lin, Minghao Guo, Chuming Li, Xin Yuan, Wei Wu, Junjie Yan, Dahua Lin, Wanli Ouyang

Abstract

Data augmentation is a fundamental technique for improving the generalization of deep neural networks. However, identifying optimal augmentation policies typically requires exhaustive offline searches that are computationally expensive. We introduce Online Hyper-parameter Learning for Auto-Augmentation (OHL-Auto-Aug), which integrates policy search directly into the training process. By formulating augmentation selection as a bilevel optimization problem solved via policy gradients, OHL-Auto-Aug achieves significant efficiency gains—up to 60x faster than prior state-of-the-art methods—without sacrificing model accuracy.

Introduction

Modern deep learning relies heavily on data augmentation to prevent overfitting and improve robustness. Traditional approaches involve manual tuning or expensive automated "offline" searches. Methods like the original Auto-Augment require training thousands of proxy models to evaluate policy candidates, leading to a massive computational bottleneck. OHL-Auto-Aug addresses this by shifting from offline search to an online learning paradigm, where the augmentation policy is updated dynamically alongside the network weights.

Methodology: Online Bilevel Optimization

The core of OHL-Auto-Aug is a bilevel optimization framework that treats the augmentation policy as a parameterized probability distribution $p(\theta)$.

The OHL-Auto-Aug framework utilizes an inner loop for weight optimization and an outer loop for policy parameter updates via REINFORCE.

The training process is structured into two concurrent loops:

  1. Inner Loop: Updates the network weights $w$ to minimize standard training loss using sampled augmentations.
  2. Outer Loop: Optimizes the policy parameters $\theta$ to maximize performance on a validation set.

Since choosing a discrete augmentation operation is non-differentiable, the REINFORCE algorithm is employed to estimate gradients. To mitigate the high variance of policy gradients, the framework maintains multiple parallel trajectories. At each step, the parameters of the most successful model are broadcast across the population, ensuring the search remains focused on high-performing regions of the policy space. This "no retraining" approach allows the final model to be ready immediately upon completion of the joint search and training process.

Experimental Evaluation

The method was validated on the full CIFAR-10 and ImageNet datasets. Unlike previous methods that relied on small proxy subsets (e.g., 8% of CIFAR-10), OHL-Auto-Aug scales efficiently to the entire training set, eliminating the "transferability gap" between proxy and target tasks.

Key Results and Efficiency

OHL-Auto-Aug demonstrates a dramatic reduction in computational overhead compared to traditional Auto-Augment.

Comparison of total training iterations required for OHL-Auto-Aug (Ours) versus the original Auto-Augment on CIFAR-10 and ImageNet.

Key performance metrics include:

  • Speedup: The method is 60x faster on CIFAR-10 and 24x faster on ImageNet.
  • Accuracy: On CIFAR-10, it reduced the error rate of ResNet-18 from 4.66% to 3.29%. On ImageNet, it improved ResNet-50 Top-1 accuracy by 3.7% over the baseline, outperforming offline Auto-Augment by 1.3%.
  • Scalability: The approach successfully optimized heavy architectures like SE-ResNeXt-101, reaching a Top-1 error of 19.30%.

Discussion and Insights

Visualizing the learned policies reveals that OHL-Auto-Aug successfully adapts to specific datasets. For instance, the model learned to prioritize different operations for ImageNet compared to CIFAR-10, confirming that augmentation needs are context-dependent. By optimizing directly on the target architecture, the method avoids the performance degradation often seen when transferring policies from smaller proxy models.

Conclusion and Future Work

OHL-Auto-Aug represents a significant step toward making automated machine learning (AutoML) practical for large-scale datasets. While the parallel trajectory approach introduces some memory overhead, the overall reduction in time-to-solution is substantial. Future research may explore continuous search spaces for transformation functions and further theoretical analysis of bilevel convergence in this online setting.

Summary updated

BibTeX
@inproceedings{lin2019online,
  author = {Chen Lin and Minghao Guo and Chuming Li and Xin Yuan and Wei Wu and Junjie Yan and Dahua Lin and Wanli Ouyang},
  title = {{Online Hyper-Parameter Learning for Auto-Augmentation Strategy}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00668},
}
Figure