CausalAdv: Adversarial Robustness through the Lens of Causality

Yonggang Zhang, Mingming Gong, Tongliang Liu, Gang Niu, Xinmei Tian +3 more
6/11/2021
cs.LG

Official code: YonggangZhangUSTC/CausalAdv (43 stars, Python, last commit 2024-01-19).

Abstract

The adversarial vulnerability of deep neural networks has attracted significant attention in machine learning. As causal reasoning has an instinct for modelling distribution change, it is essential to incorporate causality into analyzing this specific type of distribution change induced by adversarial attacks.

Show full abstract

However, causal formulations of the intuition of adversarial attacks and the development of robust DNNs are still lacking in the literature. To bridge this gap, we construct a causal graph to model the generation process of adversarial examples and define the adversarial distribution to formalize the intuition of adversarial attacks. From the causal perspective, we study the distinction between the natural and adversarial distribution and conclude that the origin of adversarial vulnerability is the focus of models on spurious correlations. Inspired by the causal understanding, we propose the Causal inspired Adversarial distribution alignment method, CausalAdv, to eliminate the difference between natural and adversarial distributions by considering spurious correlations. Extensive experiments demonstrate the efficacy of the proposed method. Our work is the first attempt towards using causality to understand and mitigate the adversarial vulnerability.

View on arXivView PDF

Code Implementations(1)

Code for 'CausalAdv: Adversarial Robustness Through the Lens of Causality'

433PythonNov 19, 20212 years ago

Similar Papers

Cite this paper

@article{zhang2021causaladv,
  title  = {CausalAdv: Adversarial Robustness through the Lens of Causality},
  author = {Yonggang Zhang and Mingming Gong and Tongliang Liu and Gang Niu and Xinmei Tian and Bo Han and Bernhard Schölkopf and Kun Zhang},
  year   = {2021},
  eprint = {2106.06196},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.06196}
}

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/2106.06196.svg)](https://codeofpaper.com/paper/2106.06196)

Discussion