AugMax: Adversarial Composition of Random Augmentations for Robust Training

Haotao Wang, Chaowei Xiao, Jean Kossaifi, Zhiding Yu, Anima Anandkumar, Zhangyang Wang

TL;DR

AugMax is a novel data augmentation framework that unifies the diversity of random augmentations with the hardness of adversarial training. By searching for the "worst-case" mixture of multiple augmentation chains and employing a specialized normalization layer (DuBIN), it achieves state-of-the-art robustness against natural corruptions and distribution shifts with significantly less overhead than traditional adversarial training.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously fragile when faced with "out-of-distribution" (OOD) data—think of a self-driving car struggling with unexpected heavy snow or camera blur. To fix this, researchers usually take one of two paths:

  1. Diversity: Using methods like AugMix to stochastically blend various filters (blur, rotate, solarize) to cover a wide range of possible inputs.
  2. Hardness: Using Adversarial Training (like PGD) to generate specific "hard" examples that exploit a model's current weaknesses.

The authors identify a gap: random diversity often fails to produce "hard" samples near the decision boundary, while adversarial training produces hard samples that lack the diversity needed to generalize to natural corruptions. AugMax aims to bridge this gap by creating samples that are both highly diverse and adversarially difficult.

Methods

The paper introduces two primary innovations to tackle this problem:

1. AugMax Augmentation

AugMax builds on the multi-branch structure of AugMix. While AugMix randomly samples mixing weights for its augmentation chains, AugMax treats these weights as parameters to be optimized. It uses a minimax objective: it performs an "inner" adversarial attack to find the specific mixing weights that maximize the model's loss. This creates a "worst-case" composite image from a set of randomly selected operations.

2. DuBIN (Dual-Batch-and-Instance Normalization)

Stronger augmentations lead to highly heterogeneous features, which standard Batch Normalization (BN) struggles to process. The authors propose DuBIN, which:

  • Splits the input feature channels into two halves.
  • Processes one half through Instance Normalization (IN) to disentangle instance-wise style/feature heterogeneity.
  • Processes the other half through Dual Batch Normalization (DuBN), which maintains separate statistics for clean and augmented data.
  • Concatenates the results back together.

This hybrid approach allows the model to better "digest" the complex, diverse samples generated by AugMax.

Key Insights and Ideas

Comparison of feature distributions: Standard, AugMix, PGD, and AugMax
  • Diversity vs. Hardness Visualization: As illustrated in the feature distributions above, while AugMix spreads data out (diversity), it leaves the decision boundaries relatively "easy." Conversely, PGD attacks cluster data tightly around boundaries (hardness) but lack coverage. AugMax successfully fills the space, maintaining diversity while pushing samples toward the boundary.
  • Normalization is the Bottleneck: A key "aha" moment is that simply adding harder augmentations doesn't always help; the model's architecture (specifically normalization) must be adapted to handle the resulting feature diversity.
  • Efficiency: Unlike traditional adversarial training, which can be 10x slower than standard training, AugMax is only about 1.5x slower than AugMix, making it a practical choice for large-scale datasets like ImageNet.

Key Results

The authors evaluated their method across several standard and robust benchmarks, including CIFAR-10/100, ImageNet, and their corrupted counterparts (-C datasets). AugMax-DuBIN consistently outperformed prior state-of-the-art methods:

  • CIFAR-10-C: Improved Robust Accuracy (RA) by 3.03% over AugMix.
  • CIFAR-100-C: Improved RA by 3.49%.
  • ImageNet-C: Reduced the Mean Corruption Error (mCE) to 82.56% (lower is better), outperforming the previous best of 83.08%.
  • Generalization: The model also showed improved performance on other distribution shifts (e.g., +1.74% on CIFAR10.1), proving that the robustness gained isn't just limited to the specific corruptions in the "-C" datasets.

Limitations and Future Work

  • Heuristic Nature: The authors acknowledge that AugMax unifies diversity and hardness in a heuristic manner. They suggest that more principled or optimal trade-offs between these two dimensions might exist.
  • Hyperparameter Sensitivity: While the paper shows stability, the method introduces new hyperparameters (like the consistency loss tradeoff and the number of adversarial steps) that may require tuning for specific architectures.
  • Future Directions: The authors suggest exploring how this unification of diversity and hardness could be applied to other domains beyond image classification, such as object detection or natural language processing.

Summary updated

BibTeX
@inproceedings{wang2021augmax,
  author = {Haotao Wang and Chaowei Xiao and Jean Kossaifi and Zhiding Yu and Anima Anandkumar and Zhangyang Wang},
  title = {{AugMax: Adversarial Composition of Random Augmentations for Robust Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=P5MtdcVdFZ4},
}
Figure