Robust Neural Networks using Randomized Adversarial Training

Alexandre Araujo, Rafael Pinot, Benjamin Négrevergne, Laurent Meunier, Yann Chevaleyre, Florian Yger, Jamal AtifarXiv 2019

Abstract

This paper tackles the problem of defending a neural network against adversarial attacks crafted with different norms (in particular $\ell_\infty$ and $\ell_2$ bounded adversarial examples). It has been observed that defense mechanisms designed to protect against one type of attacks often offer poor performance against the other. We show that $\ell_\infty$ defense mechanisms cannot offer good protection against $\ell_2$ attacks and vice-versa, and we provide both theoretical and empirical insights on this phenomenon. Then, we discuss various ways of combining existing defense mechanisms in order to train neural networks robust against both types of attacks. Our experiments show that these new defense mechanisms offer better protection when attacked with both norms.

Introduction

Deep neural networks are notoriously fragile to adversarial attacks—small, calculated perturbations that trick models into confident, incorrect predictions. Traditionally, researchers defend against these by selecting a specific norm, such as $\ell_\infty$ (pixel-wise constraints) or $\ell_2$ (Euclidean distance), and training the model to resist it. However, a model trained to resist $\ell_\infty$ attacks often remains completely vulnerable to $\ell_2$ attacks, and vice versa. This paper investigates the geometric reasons for this trade-off and proposes Randomized Adversarial Training (RAT) as a solution for multi-norm robustness.

The Geometry of High Dimensions

The core of the problem lies in high-dimensional geometry. While 2D intuition suggests significant overlap between an $\ell_\infty$ ball (a square) and an $\ell_2$ ball (a circle), this overlap vanishes as the number of dimensions ($d$) increases. For a dataset like CIFAR-10 ($d=3072$), the volume of the $\ell_2$ ball relative to an $\ell_\infty$ ball of equivalent volume shrinks exponentially.

Intersection volume of $\ell_\infty$ and $\ell_2$ balls across different dimensions.

As shown in the table above, the intersection volume becomes negligible in high-dimensional spaces. For ImageNet-scale dimensions, the threat regions are almost entirely disjoint. This geometric reality means that a defense pushing the decision boundary outside the $\ell_\infty$ ball does almost nothing to protect the regions covered by the $\ell_2$ ball.

Disjoint Vulnerabilities

Because these threat regions do not overlap, single-norm defenses leave the model exposed to "cross-norm" attacks.

Geometric visualization of cross-norm adversarial vulnerabilities.

In the figure above, panel (a) shows the geometric relationship in low dimensions. Panels (b) and (c) illustrate how adversarial examples for one norm can easily bypass a boundary optimized for a different norm. This explains why a standard $\ell_\infty$-trained model can drop to 0% accuracy when faced with an $\ell_2$ C&W attack.

Randomized Adversarial Training (RAT)

To bridge this gap, the authors propose RAT, a hybrid approach that combines:

  1. Noise Injection: Injecting random noise (Gaussian, Laplace, or Uniform) at test time to create a "randomized" classifier that is harder to target precisely.
  2. Adversarial Training: Training this randomized network using adversarial examples.

By combining the "smoothing" effect of noise with the "boundary-pushing" effect of adversarial training, the model learns a decision boundary that is robust across multiple norms simultaneously.

Key Results

Experiments on CIFAR-10 using a Wide-Resnet 28-10 architecture demonstrate the effectiveness of RAT:

  • Balanced Defense: RAT-$\ell_\infty$ with uniform noise achieved a minimum accuracy of 39% across all tested attacks (PGD-\ell_\infty, PGD-\ell_2, and C&W-\ell_2).
  • The Trade-off: Robustness comes at a cost to "clean" accuracy. The baseline model's 94% accuracy dropped to approximately 80% for the most robust RAT model.
  • Failure of MAT: While Mixed Adversarial Training (MAT)—training on both norms simultaneously—handles PGD attacks well, it fails against perturbation-minimizing attacks like C&W. Only RAT provides a balanced defense against both.

Conclusion

This research highlights a geometric "No Free Lunch" theorem for adversarial defense. While high-dimensional spaces make multi-norm robustness difficult, Randomized Adversarial Training provides a promising path forward by creating a balanced defense that avoids the total collapse seen in single-norm strategies. Future work is needed to reduce the significant computational cost of these methods and close the gap between natural and robust accuracy.

Summary updated

BibTeX
@misc{araujo2019robust,
  author = {Alexandre Araujo and Rafael Pinot and Benjamin Négrevergne and Laurent Meunier and Yann Chevaleyre and Florian Yger and Jamal Atif},
  title = {{Robust Neural Networks using Randomized Adversarial Training}},
  year = {2019},
  eprint = {1903.10219},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.10219},
}
Figure