SelectAugment: Hierarchical Deterministic Sample Selection for Data Augmentation

Shiqi Lin, Zhizheng Zhang, Xin Li, Zhibo Chen

Abstract

Data augmentation (DA) is a cornerstone of modern deep learning, yet its standard implementation relies on random application, which can introduce noise and visual ambiguity. We present SelectAugment, a deterministic sample selection strategy powered by Hierarchical Reinforcement Learning (HRL). By adaptively choosing which specific samples in a mini-batch to augment and determining the optimal augmentation ratio based on the model's training state, SelectAugment serves as a versatile "plug-and-play" enhancement for existing DA methods. Our experiments demonstrate consistent performance gains across standard benchmarks like ImageNet and fine-grained recognition tasks.

Introduction

Data Augmentation helps models generalize by artificially increasing training data diversity. However, current strategies typically apply transformations—such as rotation, cropping, or mixing—based on fixed probabilities. This "one-size-fits-all" randomness is often suboptimal.

Visualization of original and augmented samples in feature space. SelectAugment aims to mitigate visual ambiguity (e.g., cases a, b, and c) where excessive augmentation pushes samples away from their class centers.

As shown in the figure above, some images are inherently difficult for a model to classify. Augmenting these samples further can push them away from their class centers in feature space, creating "visual ambiguity" where a transformed image (e.g., a bird with a large cutout) no longer retains its discriminative features. This leads to distribution shifts that confuse the model. SelectAugment addresses this by determining, on the fly, which specific images benefit from augmentation and which should remain untouched.

Methods: Hierarchical Reinforcement Learning

The primary challenge in deterministic selection is the massive search space; a mini-batch of 256 images presents $2^{256}$ possible augmentation combinations. To make this computationally tractable, SelectAugment employs a hierarchical approach:

The SelectAugment framework: A Parent Policy determines the batch-level augmentation ratio, while a Child Policy selects specific instances based on high-level features.
  1. The Parent Policy (Batch-level): This agent monitors the current training iteration, average loss, and class labels to decide the augmentation ratio (e.g., "augment 80% of this batch").
  2. The Child Policy (Instance-level): Given the ratio from the parent, this agent analyzes the high-level features of each image and ranks them. It selects the most suitable images to fill the parent's quota.

Reward Mechanism: The RL agents are rewarded based on how much the selectively augmented batch improves the model's loss relative to two baselines: a batch with no augmentation and a batch where every image is augmented. This ensures the policy learns to prioritize samples that maximize learning efficiency.

Key Insights and Results

SelectAugment consistently improves the performance of "off-the-shelf" DA methods by moving from probabilistic to deterministic selection. Key findings include:

  • Dynamic Adaptation: The learned policy is not static; it adjusts the augmentation ratio as training progresses and learns distinct selection behaviors for different DA methods (e.g., Mixup vs. CutMix).
  • Benchmark Performance: On ImageNet, applying SelectAugment to CutMix improved Top-1 accuracy on ResNet-50 from 77.23% to 78.02%. On CIFAR-100, SelectAutoAugment reached 83.81% accuracy, surpassing the standard AutoAugment baseline of 83.08%.
  • Fine-Grained Recognition: On the CUB-200-2011 dataset, SelectMixup boosted baseline Mixup by over 1%. This suggests that deterministic selection is particularly valuable when class boundaries are tight and sensitivity to noise is high.
  • Feature-Awareness: By utilizing the target network's own high-level features, the child policy ensures that selection is tailored to the model's current understanding of the data.

Limitations

While effective, SelectAugment introduces a modest computational overhead. On CIFAR-10, training the RL policies increased total training time by approximately 20% (1.4 GPU hours in the tested environment). Additionally, the policy networks add roughly 2 million parameters to the training pipeline. Future research may focus on optimizing the efficiency of the HRL framework or extending this deterministic logic to curriculum learning and generative augmentation techniques.

Summary updated

BibTeX
@inproceedings{lin2023selectaugment,
  author = {Shiqi Lin and Zhizheng Zhang and Xin Li and Zhibo Chen},
  title = {{SelectAugment: Hierarchical Deterministic Sample Selection for Data Augmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i2.25247},
}
Figure