Rethinking data augmentation for adversarial robustness

Hamid Eghbal-zadeh, Werner Zellinger, Maura Pintor, Kathrin Grosse, Khaled Koutini, Bernhard Alois Moser, Battista Biggio, Gerhard Widmer · DOI

Introduction

Deep neural networks are highly effective but remain vulnerable to adversarial examples—inputs with small, intentional perturbations that cause misclassification. Data Augmentation (DA) has emerged as a primary defense. While classical methods like horizontal flipping and rotation are standard, "novel" techniques such as MixUp, CutMix, and generative diffusion-based methods are often credited with enhancing robustness. This study re-evaluates these claims, questioning whether novel DA techniques provide independent benefits or merely amplify the effects of classical methods.

Methodology

The researchers developed a systematic framework to isolate the contributions of various DA strategies. The study evaluated five novel methods: MixUp, Manifold-MixUp, CutMix, CutOut, and a generative approach using Diffusion models.

A critical variable in this study was the augmentation probability ($p_{aug}$), representing the fraction of the training set subjected to augmentation. By varying $p_{aug}$ from 0.1 to 1.0 and testing novel methods both in isolation and in combination with classical DA, the authors could decouple their individual impacts on model performance and robustness.

Analytical Metrics

To understand the underlying mechanisms of robustness, the authors introduced two key metrics:

  1. Decision-Function Roughness: This metric estimates the "jaggedness" of the model's decision boundary. A smoother boundary generally indicates lower susceptibility to adversarial attacks, as small input changes are less likely to cross the boundary.
  2. Data-Augmentation Spuriousness: This measures the alignment of augmented data with non-robust (spurious) features versus robust features. Spurious features are predictive patterns that are easily manipulated by adversaries.

Key Insights

The Classical Dependency

The most significant finding is that novel DA techniques like MixUp and CutMix often decrease adversarial robustness when used without classical augmentations. The perceived benefits of these methods in prior literature largely stem from their combination with "boring" classical transforms like flips and rotations.

The Impact of Augmentation Probability

The study reveals that $p_{aug}$ is a decisive factor. For novel DAs used in isolation, increasing the probability of augmentation frequently leads to a higher Risk Under Attack (RUA). This suggests that over-reliance on certain novel augmentations can actually make a model more vulnerable.

Roughness and Spuriousness

There is a strong correlation between decision-function roughness and adversarial vulnerability. Methods that produce smoother decision surfaces—primarily classical DA—are more robust. Furthermore, novel DAs that fail to improve robustness often generate samples that emphasize non-robust features, effectively training the model to rely on fragile patterns.

Results

Experiments on CIFAR-10 and CIFAR-100 benchmarks confirmed these insights. On CIFAR-10, using MixUp alone significantly increased the RUA compared to a baseline with no augmentation. Robustness improvements were only realized when novel methods were paired with classical DA. The combination of classical + CutOut and classical + MixUp yielded the best results, though the classical component remained the primary driver of the robustness gains. Generative DA showed a minor independent improvement but still performed best when integrated with classical techniques.

Conclusion

This research challenges the inherent value of novel heuristic and generative DA for adversarial robustness. It underscores the foundational importance of classical geometric transformations. Future research should focus on adapting these findings to non-image domains and developing new DA methods specifically designed to minimize decision-boundary roughness and the influence of spurious features.

Summary updated

BibTeX
@article{eghbalzadeh2024rethinking,
  author = {Hamid Eghbal-zadeh and Werner Zellinger and Maura Pintor and Kathrin Grosse and Khaled Koutini and Bernhard Alois Moser and Battista Biggio and Gerhard Widmer},
  title = {{Rethinking data augmentation for adversarial robustness}},
  journal = {Information Sciences},
  year = {2024},
  doi = {10.1016/j.ins.2023.119838},
}
Figure