Automatic Data Augmentation by Learning the Deterministic Policy

Tiexin QinarXiv 2019

TL;DR

This paper introduces DeepAugNet, a novel method for automatic data augmentation that learns a deterministic policy using deep reinforcement learning. By framing augmentation as a sequential decision-making process, DeepAugNet optimizes performance improvement directly, overcoming limitations of traditional and existing learning-based augmentation techniques.

What Problem Does This Paper Address?

Deep learning models thrive on large, diverse datasets. Data augmentation is a crucial technique to artificially expand training sets, improving model generalization, especially for smaller datasets. However, traditional augmentation methods (like flipping, rotation) are applied independently of the model's learning process, leading to a separation of objectives. Existing learning-based augmentation methods often rely on predefined assumptions about data distributions (e.g., GAN-based methods) or struggle with defining a clear criterion for the "best" augmentation. This can lead to redundant or even harmful augmented samples, and the process of finding optimal augmentation policies is challenging.

Methods

DeepAugNet tackles this by formulating data augmentation as a deep reinforcement learning (DRL) problem. The core idea is to learn a deterministic policy that sequentially applies augmentation operations to maximize the performance improvement of a surrogate deep model.

Here's a breakdown of their approach:

  • Sequential Augmentation: Instead of generating a single augmented dataset, DeepAugNet creates a collection of sequentially augmented subsets. Each subset aims to maximize the performance gain over the previous one.
  • DRL Framework: The problem is framed as a Markov Decision Process (MDP). An "agent" learns a policy to select augmentation "actions" (e.g., flip, rotate, add noise, crop, zoom) based on the current "state" (derived from the input image).
  • Hybrid Architecture: They combine a Dueling Deep Q-Learning (DQN) algorithm with a surrogate deep model. The Dueling DQN learns the augmentation policy, while the surrogate model provides feedback (reward) based on performance improvement.
  • Deterministic Policy: Unlike some DRL approaches that learn stochastic policies, DeepAugNet learns a deterministic policy. This is argued to lead to more robust results.
  • Surrogate Model and Reward: A separate validation set is used to train a surrogate model. The reward signal for the DRL agent is the improvement in the surrogate model's performance (reduction in loss) achieved by the augmented data. This allows for an end-to-end optimization of augmentation and model training.
  • Action Space: A set of basic augmentation actions are defined, including image transformations like rotation, noise addition, cropping, and warping. A "terminate" action is also included.

Datasets

The paper evaluates DeepAugNet on four diverse datasets:

  • Fashion MNIST: A dataset of clothing images, used to test performance on smaller images and shallow networks.
  • CUB (Caltech-UCSD Birds): A dataset of bird images, used for small-scale, high-resolution image recognition.
  • WebCaricature: A dataset of caricatures, used to test robustness to intra-personal variations and the utility of specific augmentation operators like warping.
  • CIFAR-100: A standard dataset for image classification, used to evaluate performance on larger-scale, multi-class problems.

Key Insights and Ideas

  • Augmentation as a Sequential Decision Process: Framing augmentation as a sequence of decisions, rather than a one-off operation, allows for more nuanced and adaptive augmentation strategies.
  • Direct Optimization of Performance Improvement: By using the surrogate model's performance gain as the reward signal, DeepAugNet directly optimizes for augmentations that benefit the downstream task, bypassing the need for predefined distribution assumptions.
  • Deterministic Policy for Robustness: The choice of a deterministic policy is highlighted as a key factor for achieving robust results, particularly in scenarios where data distribution assumptions might be violated.
  • Sample-wise Augmentation: DeepAugNet learns policies that are specific to individual samples or batches, allowing for more tailored augmentation compared to dataset-wide policies.
  • Transferability of Learned Policies: The paper demonstrates that policies learned on smaller subsets of data can be effectively transferred to augment larger datasets, suggesting efficiency gains.

Key Results

DeepAugNet consistently outperforms baselines, especially on smaller-scale datasets.

  • CUB-20: Achieved 86.31% accuracy, outperforming VGG-WA (81.88%), VGG-TA (81.99%), Mixup (80.09%), AutoAugment (76.61%), and Neural + No Loss (80.24%).
  • WebCaricature: Achieved 96.64% accuracy, significantly outperforming VGG Face-WA (79.33%), VGG Face-TA (82.50%), Mixup (89.39%), and Neural + No Loss (85.05%).
  • Fashion MNIST: Achieved 91.54% accuracy, competitive with Mixup (92.10%) and outperforming AlexNet-WA (91.29%), AlexNet-TA (90.51%), and Neural + No Loss (91.19%).
  • CIFAR-100: Achieved 75.11% accuracy, ranking second among the tested methods, just behind Mixup (75.28%) and slightly ahead of AutoAugment (74.96%).

Qualitative results show that DeepAugNet learns to apply relevant augmentations based on image characteristics (e.g., adding noise to clear backgrounds, zooming into cluttered images, warping for facial features).

Limitations and Future Work

  • Computational Cost: The DRL approach, while effective, can be computationally intensive due to the iterative training of the agent and the surrogate model.
  • Action Space Design: The effectiveness of the learned policy is dependent on the predefined set of augmentation actions. Designing a more comprehensive or adaptive action space could further improve performance.
  • Future Directions: The authors suggest extending DeepAugNet to other vision tasks like segmentation, combining it with other DRL architectures, and exploring dataset-specific action selection preferences for better initialization and action design.

Summary updated

Abstract

Aiming to produce sufficient and diverse training samples, data augmentation has been demonstrated for its effectiveness in training deep models. Regarding that the criterion of the best augmentation is challenging to define, we in this paper present a novel learning-based augmentation method termed as DeepAugNet, which formulates the final augmented data as a collection of several sequentially augmented subsets. Specifically, the current augmented subset is required to maximize the performance improvement compared with the last augmented subset by learning the deterministic augmentation policy using deep reinforcement learning. By introducing an unified optimization goal, DeepAugNet intends to combine the data augmentation and the deep model training in an end-to-end training manner which is realized by simultaneously training a hybrid architecture of dueling deep Q-learning algorithm and a surrogate deep model. We extensively evaluated our proposed DeepAugNet on various benchmark datasets including Fashion MNIST, CUB, CIFAR-100 and WebCaricature. Compared with the current state-of-the-arts, our method can achieve a significant improvement in small-scale datasets, and a comparable performance in large-scale datasets. Code will be available soon.
BibTeX
@misc{qin2019automatic,
  author = {Tiexin Qin},
  title = {{Automatic Data Augmentation by Learning the Deterministic Policy}},
  year = {2019},
  eprint = {1910.08343},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.08343},
}
Figure