Adversarial Visual Robustness by Causal Intervention

Kaihua Tang, Mingyuan Tao, Hanwang Zhang

Abstract

Deep Neural Networks (DNNs) are notoriously fragile, often failing when faced with imperceptible adversarial perturbations. This vulnerability stems from the models' tendency to learn spurious correlations—non-robust features that correlate with labels in training data but lack causal significance. We introduce Causal intervention by instrumental Variable (CiiV), a proactive defense mechanism inspired by human retinotopic sampling. By treating adversarial perturbations as confounders and using foveated vision as an instrumental variable, CiiV forces models to focus on global causal structures. Our results demonstrate that CiiV significantly enhances robustness on standard benchmarks, both as a standalone method and as a booster for existing adversarial training.

Introduction: The Problem of Spurious Correlations

Current adversarial defenses are largely "passive," often overfitting to specific known attacks through Adversarial Training (AT). However, DNNs remain "statistical sponges," learning every minute texture, edge, and shadow that correlates with a label. Attackers exploit these confounders ($C$)—predictive but non-robust features—to flip model predictions with minimal changes to the input image ($X$).

Overview of how confounders and adversarial attacks manipulate model predictions.

As shown in the figure above, confounders can lead a model to rely on background textures or local patterns rather than the actual object geometry. Humans are naturally robust to such manipulations because our vision is not a flat scanner; we use retinotopic sampling, focusing a high-resolution "fovea" on specific areas while the periphery remains blurred. This physical constraint acts as a natural filter against high-frequency adversarial "bugs."

Methodology: Causal Intervention by Instrumental Variable (CiiV)

The core of our approach is to redefine adversarial robustness as a causal inference problem. Since hidden confounders (like specific lighting or textures) cannot be directly measured, we employ an Instrumental Variable (IV) approach.

1. Retinotopic Augmentation

We create a "retinotopic mask" ($R$) that simulates foveated vision. By applying this mask with different centers to the same image, we generate multiple "views." Because the choice of where the fovea focuses ($R$) is independent of the hidden confounders ($C$) present in the original image, $R$ serves as a valid instrumental variable.

2. Causal Regularization

CiiV introduces a regularization term that encourages the model's internal features to respond linearly to the "spatial coverage" of the mask. The intuition is that if a model sees more of a "causal" structure (e.g., the body of a dog), the feature strength should increase proportionally. In contrast, spurious local confounders will not exhibit this consistent linear relationship across different sampling centers.

The CiiV framework: (a) Retinotopic sampling, (b) the causal graph with instrumental variable R, and (c) causal intervention via regularization.

Experimental Evaluation

We evaluated CiiV across several standard benchmarks, including CIFAR-10, CIFAR-100, and mini-ImageNet, as well as a diagnostic "Confounded-Toy" (CToy) dataset.

Key Results

  • Robustness Without Adversarial Training: On CIFAR-10, CiiV achieved 43.23% accuracy against the state-of-the-art AutoAttack without any adversarial training. For comparison, standard models or those using simple augmentations like Mixup often drop to 0% accuracy under the same attack.
  • Boosting Existing Defenses: CiiV is a "plug-and-play" regularization term. When added to standard Adversarial Training on CIFAR-100, it boosted robust accuracy from 20.04% to 32.01%.
  • Adaptive Attack Resistance: The method remained robust even when the attacker was aware of the defense strategy, confirming that CiiV does not rely on "gradient obfuscation."

Discussion and Conclusion

The success of CiiV suggests that adversarial vulnerability is not just a numerical instability but a failure of causal reasoning. By mimicking the human retina's role as a causal intervener, we can force models to discard the brittle, local textures that attackers favor.

While CiiV introduces a slight "robustness tax"—a minor decrease in clean accuracy (e.g., from ~94% to ~87% on CIFAR-10)—it provides a more generalizable defense than passive immunization. Future work will focus on reducing the computational overhead of generating multiple views and exploring the defense's effectiveness against more sophisticated global adversarial attacks.

Summary updated

BibTeX
@misc{tang2021adversarial,
  author = {Kaihua Tang and Mingyuan Tao and Hanwang Zhang},
  title = {{Adversarial Visual Robustness by Causal Intervention}},
  year = {2021},
  eprint = {2106.09534},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.09534},
}
Figure