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

Lei Hsiung, Yun-Yun Tsai, Pin-Yu Chen, Tsung-Yi Ho
2/9/2022
cs.CV

Official code: IBM/composite-adv (23 stars, Python, Apache-2.0, PyTorch, last commit 2025-09-17).

Abstract

Model robustness against adversarial examples of single perturbation type such as the $\ell_{p}$-norm has been widely studied, yet its generalization to more realistic scenarios involving multiple semantic perturbations and their composition remains largely unexplored. In this paper, we first propose a novel method for generating composite adversarial examples.

Show full abstract

Our method can find the optimal attack composition by utilizing component-wise projected gradient descent and automatic attack-order scheduling. We then propose generalized adversarial training (GAT) to extend model robustness from $\ell_{p}$-ball to composite semantic perturbations, such as the combination of Hue, Saturation, Brightness, Contrast, and Rotation. Results obtained using ImageNet and CIFAR-10 datasets indicate that GAT can be robust not only to all the tested types of a single attack, but also to any combination of such attacks. GAT also outperforms baseline $\ell_{\infty}$-norm bounded adversarial training approaches by a significant margin.

View on arXivView PDF

Code Implementations(1)

IBM/composite-advOfficial100%
PyTorchApache-2.0

[CVPR23] "Towards Compositional Adversarial Robustness: Generalizing Adversarial Training to Composite Semantic Perturbations" by Lei Hsiung, Yun-Yun Tsai, Pin-Yu Chen, and Tsung-Yi Ho.

232Python, Jupyter NotebookNov 22, 20221 years agoApache-2.0
adversarial-attacksbenchmarkdeep-learningpytorchrobustness-assessment

Similar Papers

Cite this paper

@article{hsiung2022towards,
  title  = {Towards Compositional Adversarial Robustness: Generalizing Adversarial Training to Composite Semantic Perturbations},
  author = {Lei Hsiung and Yun-Yun Tsai and Pin-Yu Chen and Tsung-Yi Ho},
  year   = {2022},
  eprint = {2202.04235},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.04235}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.04235.svg)](https://codeofpaper.com/paper/2202.04235)

Discussion