Fixing Data Augmentation to Improve Adversarial Robustness

Sylvestre-Alvise Rebuffi, Sven Gowal, Dan A. Calian, Florian Stimberg, Olivia Wiles, Timothy A. MannarXiv 2021

Abstract

Adversarial training (AT) is the primary defense against adversarial perturbations, yet it frequently suffers from "robust overfitting." While data augmentation is a staple in standard deep learning, it has long been considered ineffective or even detrimental to adversarial robustness. This paper overturns this consensus by demonstrating that advanced data augmentation techniques, such as CutMix and MixUp, can significantly enhance robustness when combined with Model Weight Averaging (WA). Furthermore, the authors leverage Denoising Diffusion Probabilistic Models (DDPM) to generate high-quality synthetic data, effectively densifying the image manifold. These combined strategies achieve a new state-of-the-art robust accuracy of 64.20% on CIFAR-10 without the use of external real-world datasets.

Introduction: The Challenge of Robust Overfitting

Deep neural networks are highly susceptible to adversarial attacks—small, calculated perturbations that lead to incorrect classifications. Adversarial Training (AT), which involves training on these "hard" examples, is the most effective defense. However, AT is plagued by robust overfitting, where the model's performance on test-set adversarial examples declines even as training performance improves.

Historically, the research community believed that standard data augmentation techniques failed to mitigate this overfitting in the context of AT. This paper investigates whether the failure lies in the augmentations themselves or in how they are integrated into the training process.

Methodology: A Two-Pronged Approach

1. Heuristics and Model Weight Averaging (WA)

The authors identify that advanced augmentations like CutMix and MixUp introduce significant variance during training. Without stabilization, the model fails to extract robust features from these complex samples. By implementing Model Weight Averaging (WA)—maintaining a running average of the model's weights—the training process is smoothed, leading to a flatter loss landscape that prevents the model from over-focusing on augmentation-induced noise.

The effect of Weight Averaging (WA) on different augmentation strategies, showing how WA stabilizes training and improves final robustness for methods like MixUp.

Among various heuristics, CutMix proved most effective due to its ability to generate diverse samples that are significantly different from the original training distribution, thereby forcing the model to learn more generalizable robust features.

2. Generative Data Augmentation via DDPM

To further combat overfitting, the authors propose "densifying" the training data manifold. Adversarial training requires substantially more data than standard training to cover the space of possible perturbations. Instead of relying on external datasets like 80M-TinyImages, the authors use Denoising Diffusion Probabilistic Models (DDPM) to generate 1 million synthetic images. Unlike GANs, which often suffer from mode collapse, DDPMs provide a high-diversity set of images that closely match the test distribution, providing the "long tail" of data necessary for robust generalization.

Key Results and Performance

The proposed methodology leads to the most significant improvement in adversarial robustness seen in recent years. On the CIFAR-10 benchmark ($L_\infty$ norm, $\epsilon=8/255$), the model achieved 64.20% robust accuracy. This represents a +7.06% absolute improvement over previous state-of-the-art methods that do not use external data.

Comparison of robust test accuracy over time, highlighting the significant performance leap achieved by the proposed method compared to previous benchmarks.

Notably, the synthetic data approach outperformed models trained on the massive 80M-TinyImages dataset, demonstrating that high-quality generative data can be more effective than larger quantities of unlabeled real-world data. The approach also showed strong results for $L_2$ robustness, reaching 80.38% accuracy.

Conclusion and Future Directions

This work demonstrates that data augmentation is a powerful tool for adversarial robustness when paired with proper stabilization techniques like Weight Averaging and high-quality generative models. While the computational cost of training on millions of synthetic images is high, the results suggest that "data densification" is a key frontier for building truly robust neural networks. Future work may focus on optimizing the labeling of synthetic data and reducing the overhead of the training process for smaller model architectures.

Summary updated

BibTeX
@misc{rebuffi2021fixing,
  author = {Sylvestre-Alvise Rebuffi and Sven Gowal and Dan A. Calian and Florian Stimberg and Olivia Wiles and Timothy A. Mann},
  title = {{Fixing Data Augmentation to Improve Adversarial Robustness}},
  year = {2021},
  eprint = {2103.01946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.01946},
}
Figure