Towards Compositional Adversarial Robustness: Generalizing Adversarial Training to Composite Semantic Perturbations

Lei Hsiung, Yun-Yun Tsai, Pin-Yu Chen, Tsung-Yi Ho

Abstract

Current adversarial defenses focus almost exclusively on single-type perturbations (like $\ell_p$-norm noise), leaving models vulnerable to "composite" attacks that combine multiple semantic changes like rotation, color shifts, and brightness adjustments. This paper introduces Generalized Adversarial Training (GAT), a framework that uses a novel attack-order scheduling algorithm to train models that are robust against complex, multi-stage semantic perturbations.

Introduction: The Challenge of Composite Semantic Attacks

In AI safety, adversarial training is the standard defense: models are trained on corrupted images to learn noise invariance. However, most research targets a single "threat model," typically $\ell_\infty$-norm perturbations (minuscule pixel-level changes).

This focus is often unrealistic. Real-world images may simultaneously undergo rotation, color shifts (Hue/Saturation), and exposure changes (Brightness/Contrast). A model robust to pixel noise is not necessarily robust to these semantic transformations. Crucially, the order of these changes matters—rotating then shifting color yields a different result than the reverse. The challenge lies in identifying the "worst-case" combination of these transformations to train a truly robust model.

Methods: Composite Adversarial Attack and Generalized Training

The authors propose two primary components to address this gap:

1. Composite Adversarial Attack (CAA)

CAA generates the strongest possible multi-transformation attack through two sub-mechanisms:

  • Component-wise PGD (Comp-PGD): Instead of standard noise, it uses Gradient Descent to find optimal parameters for each semantic transformation (e.g., the exact rotation angle to trigger misclassification).
  • Attack-Order Scheduling: Since sequence matters, they use a "surrogate image" approach. The attack order is represented as a doubly stochastic matrix, and Sinkhorn normalization is applied to learn the optimal sequence of transformations that maximizes model loss.
The Composite Adversarial Attack (CAA) framework, illustrating the attack space and the order scheduling process.

2. Generalized Adversarial Training (GAT)

GAT incorporates the CAA into the training loop. By exposing the model to these optimized, multi-stage semantic attacks during training, the model learns to maintain accuracy across a wide variety of composite threats.

Key Insights and Ideas

  • The Robustness Gap: Models trained only for $\ell_\infty$ robustness are surprisingly fragile. A Madry $\ell_\infty$-robust model's accuracy can drop to near 0% when faced with combined hue, saturation, and rotation changes.
  • Order Significance: "Scheduled" attack orders optimized by the CAA algorithm are significantly more effective than random orders, proving that the sequence of transformations is a critical part of the threat model.
  • Smoothing the Landscape: Visualizing the loss landscape shows that GAT makes the mathematical "terrain" flatter and smoother compared to standard models, preventing small input changes from causing wild output swings.
  • Fine-tuning Strategy: Training GAT from scratch can be unstable. The authors found that fine-tuning an already $\ell_\infty$-robust model yields superior results.

Key Results

The researchers evaluated GAT on CIFAR-10, ImageNet, and SVHN.

  • Superior Robustness: On CIFAR-10, GAT improved robust accuracy against "full attacks" (five semantic types + $\ell_\infty$) by 15% to 22% over existing baselines.
  • Semantic Defense: Against purely semantic attacks, GAT outperformed baselines by 30% to 60%.
  • Cross-Attack Generalization: GAT doesn't just defend against specific training combinations; it becomes generally more robust to any combination of the tested attack types.
  • ImageNet Performance: On ImageNet, GAT maintained ~11.8% robust accuracy against full composite attacks, while standard $\ell_\infty$ models dropped to 2.8% and normal models hit 0%.
Visual comparison of classification performance and robust accuracy across different attack compositions for Normal, $\ell_\infty$-robust, and GAT models.

Limitations and Future Work

While effective, generating composite attacks with optimized ordering is computationally expensive. Training GAT on ImageNet required approximately three days on 64 Tesla V100 GPUs. Additionally, the current instability of training from scratch necessitates a two-stage process. Future research may explore expanding the attack space to include complex transformations like weather effects (fog, snow) or 3D geometric changes.

Summary updated

BibTeX
@inproceedings{hsiung2022towards,
  author = {Lei Hsiung and Yun-Yun Tsai and Pin-Yu Chen and Tsung-Yi Ho},
  title = {{Towards Compositional Adversarial Robustness: Generalizing Adversarial Training to Composite Semantic Perturbations}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52729.2023.02362},
}
Figure