Data augmentation is the "secret sauce" of modern deep learning. By artificially expanding a dataset with transformations like rotations, flips, and color shifts, we can train models that generalize far better to the real world. But there's a catch: finding the right mix of augmentations is a massive search problem.
In this paper, researchers from UC Berkeley introduce Population Based Augmentation (PBA), an algorithm that matches state-of-the-art performance while slashing the computational cost by three orders of magnitude.
TL;DR
Population Based Augmentation (PBA) learns dynamic data augmentation schedules that evolve as a model trains, rather than using a single fixed policy. It achieves state-of-the-art accuracy on standard benchmarks while requiring 1,000x less compute than previous automated methods like AutoAugment.
What Problem Does This Paper Address?
While we know data augmentation works, picking the best operations (e.g., "should I rotate by 10 degrees or 20?") is usually done through trial and error. Recent "AutoML" approaches, most notably Google's AutoAugment, turned this into an optimization problem using Reinforcement Learning.
The results were impressive, but the cost was astronomical: AutoAugment required 5,000 GPU hours to find a policy for CIFAR-10. This creates a "compute divide" where only organizations with massive server farms can afford optimal training setups. PBA aims to democratize this by making automated augmentation efficient enough to run on a single workstation.
Methods
The core innovation of PBA is moving from a fixed policy to a nonstationary schedule.
Instead of finding one set of augmentations to use from start to finish, PBA recognizes that a model might need different types of data early in training versus late in training. To find this schedule efficiently, the authors use Population Based Training (PBT):
- Population of Models: They start with 16 "child" models, each initialized with random augmentation hyperparameters (probability and magnitude for various operations).
- Exploit and Explore: Periodically, poorly performing models "exploit" better ones by cloning their weights and hyperparameters. They then "explore" by slightly perturbing those hyperparameters to search for even better settings.
- Warm-Starting: Because PBT optimizes hyperparameters while the models are training, it reuses all the computation. You don't have to train thousands of separate models to completion just to evaluate a single policy.
The search space includes 15 operations from the PIL library, such as ShearX/Y, TranslateX/Y, Rotate, Solarize, and Contrast.
Datasets
The authors evaluated PBA on three standard computer vision benchmarks:
- CIFAR-10: 60,000 32x32 color images in 10 classes.
- CIFAR-100: Similar to CIFAR-10 but with 100 classes.
- SVHN (Street View House Numbers): Real-world house number digits.
The search for the augmentation schedule was performed on "Reduced" versions of these datasets (e.g., 4,000 images for CIFAR-10) to further speed up the process.
Key Insights and Ideas
- Schedules Beat Policies: The authors found that "easy" augmentations are often better early in training to help the model converge, while "harder," more aggressive augmentations are needed later to prevent overfitting.
- Efficiency is Counter-Intuitive: You might think searching for a time-varying schedule is harder than searching for a fixed policy because the search space is much larger. However, because PBT allows for "warm-starting" and weight sharing, it is actually far more efficient.
- Transferability: A schedule learned on a small, "reduced" dataset transfers remarkably well to the full dataset and even to different neural network architectures.
Key Results
The most striking result is the efficiency gain. PBA produces a high-quality schedule in just 5 GPU hours on a single NVIDIA Titan XP.
- Cost Savings: Assuming a GPU cost of $1.50/hour, PBA costs roughly $7.50, compared to $7,500 for AutoAugment.
- Accuracy: On CIFAR-10, PBA achieved a mean test error of 1.46% using a PyramidNet architecture, which was a slight improvement over the then-current state-of-the-art.
- Consistency: PBA matched or exceeded AutoAugment's performance across various models like Wide-ResNet and Shake-Shake.
Limitations and Future Work
- Manual Search Space: While PBA automates the selection and scheduling of augmentations, the list of candidate operations (rotations, color shifts, etc.) is still manually curated.
- Fixed Training Duration: The learned schedule is currently tied to the total number of training epochs. If you change the training length significantly, the schedule might need to be "stretched" or re-learned.
- Future Directions: The authors suggest that PBA could be used to discover entirely new types of data transformations or be integrated into more complex neural architecture search (NAS) pipelines.
For those interested in trying it out, the code is open-source and available at https://github.com/arcelien/pba.
Summary updated