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

Learning Data Augmentation with Online Bilevel Optimization for Image Classification

Saypraseuth Mounsaveng, Issam H. Laradji, Ismail Ben Ayed, David Vázquez, Marco Pedersoli

Introduction

Data augmentation (DA) has become an indispensable technique in modern deep learning, particularly for image classification. By artificially expanding training datasets through transformations like rotations, flips, and color shifts, models can achieve significantly better generalization. However, selecting the optimal augmentation strategy remains a significant challenge. Traditional approaches often rely on manual "expert intuition" or computationally expensive "black-box" search methods like AutoAugment, which require training models from scratch thousands of times. This paper introduces an efficient alternative: learning data augmentation strategies directly from data using online bilevel optimization.

The Challenge of Automated Augmentation

While automated tools exist, they suffer from an "efficiency gap." Methods like AutoAugment are non-differentiable and treat the search for augmentation policies as a reinforcement learning or grid search problem. This requires massive computational resources. The goal of this research is to move toward a gradient-based approach that can learn optimal transformations without the astronomical compute bill.

Methodology: Online Bilevel Optimization

The authors frame the problem as a bilevel optimization task, creating a hierarchy between two optimization problems:

  1. The Inner Loop: A classifier (the "student") learns to minimize training loss on images processed by an augmenter.
  2. The Outer Loop: An augmenter network (the "teacher") learns to minimize the classifier's loss on a separate validation set.
Overview of the online bilevel optimization framework, showing the interaction between the inner loop (classifier) and outer loop (augmenter).

To overcome the typical slowness of bilevel optimization—which usually requires the inner loop to converge before updating the outer loop—the authors employ an online approximation. Both the classifier and the augmenter are updated simultaneously in every iteration using truncated backpropagation.

The augmenter itself is a small Multi-Layer Perceptron (MLP) that generates parameters for differentiable transformations (e.g., affine transforms and color shifts) based on a noise vector. Because the entire pipeline is differentiable, the augmenter can learn via standard backpropagation which specific distortions help the classifier perform better on unseen validation data.

Experimental Results and Insights

The method was evaluated across diverse datasets, including CIFAR-10/100, ImageNet, and BACH (Breast Cancer Histology).

Performance Benchmarks

On CIFAR-10, the proposed method achieved a state-of-the-art accuracy of 95.42% using a ResNet18 architecture. This significantly outperformed the baseline (88.55%) and even standard predefined augmentation strategies (94.69%).

Domain Sensitivity in Medical Imaging

A key strength of this approach is its ability to adapt to specialized domains. In the BACH medical dataset, standard "natural image" augmentations like heavy color jittering can actually degrade performance. The learned augmenter was able to recognize this, reaching 56.5% accuracy compared to 50.6% for hand-crafted baselines.

Visual examples of learned data augmentations applied to training images.

Efficiency and Adaptability

The method is approximately 14 times faster than a simple grid search for a limited parameter set and scales much more effectively as the transformation space grows. Furthermore, the augmentation strategy is dynamic; the augmenter can adapt its transformations throughout the training process, potentially providing "easier" samples early on and increasing difficulty as the classifier matures.

Conclusion

By making the data augmentation process differentiable and optimizing it online, this work provides a scalable and efficient path toward automated machine learning. The system's ability to outperform manual tuning and expensive search-based methods—particularly in sensitive domains like medical imaging—marks a significant step forward in making deep learning more robust and accessible.

Summary updated

BibTeX
@inproceedings{mounsaveng2021learning,
  author = {Saypraseuth Mounsaveng and Issam H. Laradji and Ismail Ben Ayed and David Vázquez and Marco Pedersoli},
  title = {{Learning Data Augmentation with Online Bilevel Optimization for Image Classification}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv48630.2021.00173},
}
Figure