Skip to main content
QUICK REVIEW

[Paper Review] CausalAdv: Adversarial Robustness through the Lens of Causality

Yonggang Zhang, Mingming Gong|arXiv (Cornell University)|Jun 11, 2021
Adversarial Robustness in Machine LearningComputer Science14 citations
TL;DR

CausalAdv proposes a causality-driven approach to improve adversarial robustness by modeling adversarial examples through a causal graph that identifies spurious correlations between labels and nuisance factors (e.g., image style). By aligning the natural and adversarial data distributions via intervention-based distribution alignment, the method reduces reliance on spurious correlations, achieving state-of-the-art robust accuracy on CIFAR-10 and CIFAR-100 under multiple attacks, including PGD and AutoAttack.

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. 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.

Motivation & Objective

  • To address the lack of causal formulations in understanding adversarial vulnerability in deep neural networks.
  • To formalize the intuition of adversarial attacks as a distribution shift caused by interventions on nuisance factors.
  • To develop a method that mitigates adversarial vulnerability by eliminating spurious correlations between labels and non-causal image features.
  • To bridge the gap between causality and adversarial robustness by constructing a causal graph for adversarial data generation.
  • To propose a distribution alignment method that improves robustness without relying on standard adversarial training heuristics.

Proposed method

  • Constructs a causal graph modeling the data generation process, where labels are caused by content factors, and nuisance factors (e.g., style) are independent of labels but correlated in the data.
  • Defines the adversarial distribution as an intervention on the natural distribution, specifically by manipulating nuisance factors to create adversarial examples.
  • Identifies spurious correlations between labels and nuisance factors as the root cause of adversarial vulnerability.
  • Proposes CausalAdv, a distribution alignment method that minimizes the discrepancy between natural and adversarial distributions by explicitly modeling and reducing dependence on spurious features.
  • Uses intervention-based distribution alignment to encourage the model to rely on causal, content-based features rather than style or texture artifacts.
  • Shares core principles with existing adversarial training methods like Madry and TRADES but grounds them in causal reasoning for improved robustness and reduced overfitting.

Experimental results

Research questions

  • RQ1How can causality be used to formalize the mechanism behind adversarial attacks and their induced distribution shifts?
  • RQ2What role do spurious correlations between labels and nuisance factors play in adversarial vulnerability?
  • RQ3Can a causal understanding of adversarial examples lead to more robust deep learning models?
  • RQ4How does distribution alignment based on causal structure compare to standard adversarial training in terms of robustness and generalization?
  • RQ5Can causal intervention on nuisance factors improve model robustness without sacrificing natural accuracy?

Key findings

  • The origin of adversarial vulnerability lies in deep neural networks' reliance on spurious correlations between labels and nuisance factors such as image style.
  • CausalAdv significantly improves robust accuracy on CIFAR-10, achieving 54.44% robust accuracy (best) and 50.93% at the final checkpoint, reducing the gap between best and final performance compared to Madry.
  • On CIFAR-100, CausalAdv achieves state-of-the-art robust accuracy under PGD and AutoAttack, outperforming existing methods including TRADES and Madry.
  • The method reduces the robust overfitting phenomenon common in adversarial training, where robust accuracy degrades after a certain training epoch.
  • CausalAdv shares conceptual similarities with Madry and TRADES but achieves better robustness by explicitly modeling and mitigating spurious correlations.
  • The proposed method is validated across multiple datasets (MNIST, CIFAR-10, CIFAR-100) and under diverse adversarial attacks, including FGSM, PGD, C&W, and AutoAttack, demonstrating consistent robustness gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.