Abstract
Data augmentation has long been a cornerstone for reducing overfitting in vision models, with methods like AutoAugment automating the design of task-specific augmentations. Recent advances in generative models, such as conditional diffusion and few-shot NeRFs, offer a new paradigm for data augmentation by synthesizing data with significantly greater diversity and realism. However, unlike traditional augmentations like cropping or rotation, these methods introduce substantial changes that enhance robustness but also risk degrading performance if the augmentations are poorly matched to the task. In this work, we present EvoAug, an automated augmentation learning pipeline, which leverages these generative models alongside an efficient evolutionary algorithm to learn optimal task-specific augmentations. Our pipeline introduces a novel approach to image augmentation that learns stochastic augmentation trees that hierarchically compose augmentations, enabling more structured and adaptive transformations. We demonstrate strong performance across fine-grained classification and few-shot learning tasks. Notably, our pipeline discovers augmentations that align with domain knowledge, even in low-data settings. These results highlight the potential of learned generative augmentations, unlocking new possibilities for robust model training.
Introduction
Data augmentation is essential for training robust vision models, but the field has largely relied on "classical" methods like cropping, flipping, and rotating. While effective, these transformations often fail to capture the rich diversity of the real world. Recent breakthroughs in generative AI, such as Stable Diffusion and few-shot NeRFs, offer a new frontier for augmentation by synthesizing incredibly realistic images.
However, there is a significant challenge: the syn-to-real gap. If a generative model creates an image that loses the fine-grained details necessary for a specific task—such as the unique petal shape of a rare flower—it can actually degrade model performance. Manually designing generative augmentation policies is difficult and unintuitive. EvoAug addresses this by automating the discovery of augmentations that provide high diversity while preserving critical semantic details.
Methodology: The EvoAug Pipeline
EvoAug introduces several novel components to make generative augmentation practical and effective for specific tasks.
Stochastic Augmentation Trees
Instead of a simple list of operations, EvoAug represents an augmentation policy as a binary tree. Each node represents an operator (e.g., "Canny-conditioned Diffusion"), and edges represent transition probabilities. This allows for hierarchical, stochastic compositions of transformations, enabling more structured and adaptive data generation.
Generative Operators
The pipeline leverages state-of-the-art generative models to perform "image-to-image" augmentations. This includes using ControlNet to condition diffusion on Canny edges, segmentation maps, depth maps, or color palettes. Additionally, it uses Zero123 (a NeRF-based model) to perform realistic 3D rotations of objects from a single 2D image.
Evolutionary Search and Fitness Functions
To find the optimal tree, the system uses a population-based evolutionary algorithm. It "mutates" trees by swapping nodes or changing edge probabilities and performs "crossover" by splicing branches from successful "parent" trees.
The fitness of a tree is evaluated using task-specific functions:
- Low-Data Settings: Employs K-fold cross-validation to measure generalization.
- One-Shot Settings: Uses a novel Label-Efficient Clustering metric, which rewards trees that produce image embeddings that are cohesive within a class but distinct from others.
Experimental Results
EvoAug was evaluated on six diverse datasets focusing on fine-grained classification, including Oxford IIIT-Pets, Stanford Cars, and Oxford 102 Flowers.
Performance Gains
EvoAug consistently outperformed standard baselines (Naive, RandAugment, and AutoAugment) across various architectures like ResNet50 and ViT-Small. In 5-way 2-shot classification on Stanford Cars, EvoAug achieved 40.40% accuracy, significantly higher than the Naive baseline (30.90%). In extreme one-shot settings on Oxford-IIIT Pets, it reached 86.16% accuracy compared to the 79.68% baseline.
Rediscovering Domain Knowledge
The evolutionary process often "discovered" strategies that align with human intuition. For example, in flower datasets, the system learned that preserving color is vital, whereas for cars, 3D perspective shifts via NeRF were more beneficial. This suggests that the pipeline can effectively identify the most relevant semantic features for a given task.
Conclusion and Future Work
EvoAug demonstrates that automated evolution of generative augmentations can significantly boost performance in challenging fine-grained and few-shot tasks. While the computational cost of generative models remains a challenge for massive datasets, the ability to learn task-specific semantic priors is a major advancement. Future work will explore extending this framework to dense prediction tasks like object detection and segmentation.
Summary updated