Improving Model Robustness with Transformation-Invariant Attacks

Houpu Yao, Zhe Wang, Guangyu Nie, Yassine Mazboudi, Yezhou Yang, Yi RenarXiv 2019

Abstract

The vulnerability of neural networks under adversarial attacks has raised serious concerns and motivated extensive research. It has been shown that both neural networks and adversarial attacks against them can be sensitive to input transformations such as linear translation and rotation, and that human vision, which is robust against adversarial attacks, is invariant to natural input transformations. Based on these, this paper tests the hypothesis that model robustness can be further improved when it is adversarially trained against transformed attacks and transformation-invariant attacks. Experiments on MNIST, CIFAR-10, and restricted ImageNet show that while transformations of attacks alone do not affect robustness, transformation-invariant attacks can improve model robustness by 2.5% on MNIST, 3.7% on CIFAR-10, and 1.1% on restricted ImageNet.

Introduction

Deep neural networks are notoriously fragile; a tiny, imperceptible amount of adversarial noise can completely flip a model's prediction. While adversarial training—training models on these noisy examples—has emerged as a primary defense, resulting models often remain sensitive to simple geometric changes like rotations or shifts. These are transformations that the human visual system handles effortlessly.

This paper introduces a novel adversarial training defense that incorporates "transformation-invariant attacks" into the training loop. By training a model to resist adversarial perturbations designed to fool an ensemble of image transformations simultaneously, we achieve significant gains in robustness on standard benchmarks without relying on gradient obfuscation tricks.

Methodology

The proposed strategy consists of two main components: an ensemble architecture and a transformation-invariant training objective.

  1. Ensemble Architecture: Instead of processing a single image, the model takes an input and generates an ensemble of transformations (e.g., 9 different crops). These are passed through a shared Convolutional Neural Network (CNN), and the final prediction is an average of all outputs.
  2. Transformation-Invariant Adversarial Training: During training, we use a Projected Gradient Descent (PGD) attack to find a single adversarial perturbation that maximizes the aggregated loss across the entire ensemble of transformations.
Overview of the proposed transformation-invariant adversarial training framework.

Essentially, the model is forced to learn features that are robust not just to noise, but to noise that survives multiple "views" of the same object. This is a more restrictive and challenging training objective than standard adversarial training, which usually only considers a single view of the data.

Conceptual Intuition

The core insight is that training against adversaries targeting individual transformations is insufficient. Real gains come from training against an adversary that must fool the entire ensemble at once. This approach avoids "gradient obfuscation," a common pitfall where defenses merely make gradients difficult to calculate rather than improving underlying robustness. By visualizing the loss landscape and testing against non-gradient attacks (like SPSA), we confirm that the model learns truly robust features.

Conceptual comparison of decision boundaries for vanilla (a), transformation-invariant (b), adversarial (c), and the proposed (d) training methods.

Furthermore, this method appears more data-efficient, reaching higher robustness levels with less training data than standard adversarial training. This suggests the transformation-invariant objective helps the model converge on more meaningful semantic features faster.

Experimental Results

The proposed method was evaluated on MNIST, CIFAR-10, and Restricted ImageNet, consistently outperforming the state-of-the-art Madry adversarial training baseline:

  • MNIST: Improved white-box PGD robustness from 93.2% to 95.7%. Notably, robustness against the powerful Carlini & Wagner (C&W) attack jumped from 3.2% to 96.0%.
  • CIFAR-10: Improved PGD robustness from 49.7% to 54.4%, representing a nearly 5% absolute gain.
  • Restricted ImageNet: Improved clean accuracy (96.83% to 97.25%) and robustness (92.75% to 93.85%).

Conclusion

By incorporating transformation-invariance into the adversarial training loop, we can significantly bridge the gap between machine and human vision robustness. While this approach introduces some computational overhead due to the ensemble processing, the gains in verifiable robustness and data efficiency are substantial. Future work will explore more complex, non-linear natural transformations to further enhance these defenses.

Summary updated

BibTeX
@misc{yao2019improving,
  author = {Houpu Yao and Zhe Wang and Guangyu Nie and Yassine Mazboudi and Yezhou Yang and Yi Ren},
  title = {{Improving Model Robustness with Transformation-Invariant Attacks}},
  year = {2019},
  eprint = {1901.11188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.11188},
}
Figure