Abstract
The information bottleneck (IB) method is a feasible defense solution against adversarial attacks in deep learning. However, this method suffers from the spurious correlation, which leads to the limitation of its further improvement of adversarial robustness. In this paper, we incorporate the causal inference into the IB framework to alleviate such a problem. Specifically, we divide the features obtained by the IB method into robust features (content information) and non-robust features (style information) via the instrumental variables to estimate the causal effects. With the utilization of such a framework, the influence of non-robust features could be mitigated to strengthen the adversarial robustness. We make an analysis of the effectiveness of our proposed method. The extensive experiments in MNIST, FashionMNIST, and CIFAR-10 show that our method exhibits the considerable robustness against multiple adversarial attacks. Our code would be released.
Introduction
Deep neural networks (DNNs) are notoriously vulnerable to adversarial attacks, where tiny, human-invisible perturbations to input pixels can cause state-of-the-art models to fail. This vulnerability often stems from the models' reliance on spurious correlations—non-essential features like background textures or lighting styles that are statistically associated with labels in training data but are easily exploited by attackers.
While the Information Bottleneck (IB) method attempts to mitigate this by compressing inputs into minimal predictive representations, it typically fails to distinguish between robust causal features and fragile confounding "style" information. This paper introduces CausalIB, a framework that integrates causal inference into the IB method to disentangle these features and significantly enhance adversarial robustness.
Methodology: The CausalIB Framework
CausalIB combines the Variational Information Bottleneck (VIB) with a causal intervention strategy. The authors model the data generation process where an image ($X$) and its prediction ($Y$) are both influenced by a hidden "style" variable ($S$), which acts as a confounder.
To estimate the "pure" causal effect of features on the prediction, the framework utilizes Instrumental Variables (IV). Specifically, additive Gaussian noise introduced at intermediate feature layers serves as the IV. By observing how the model's prediction changes relative to different noise interventions, the framework calculates the Controlled Direct Effect (CDE). A robust model should maintain a consistent causal effect estimate regardless of the specific noise sample. This is enforced through a Causal Loss term that penalizes variance in these estimates, effectively filtering out non-robust style information.
Experimental Results
The researchers evaluated CausalIB on standard computer vision benchmarks: MNIST, FashionMNIST, and CIFAR-10. The model was tested against multiple attack types, including FGSM, PGD, and the rigorous Auto-Attack.
Robustness Against PGD Attacks
Under PGD-20 attacks, CausalIB demonstrated significant improvements over baselines. For instance, on the MNIST dataset, CausalIB maintained 53.71% accuracy, whereas the baseline model's accuracy dropped to 0%. It also outperformed standard VIB, which achieved 41.84%.
Performance on FashionMNIST and CIFAR-10
On FashionMNIST, CausalIB achieved 80.77% accuracy under $L_\infty$ perturbations in Auto-Attack, significantly higher than VIB's 65.21%. In CIFAR-10 white-box PGD-20 attacks, CausalIB reached 35.89% accuracy, outperforming other specialized causal defenses like CiiV (33.62%). Importantly, the model maintains high accuracy on "clean" (non-attacked) images, showing that robustness does not necessitate a significant sacrifice in standard performance.
Conclusion and Future Work
CausalIB successfully leverages causal inference to boost the adversarial robustness of DNNs by focusing on robust content features. While effective, the authors note a slight decrease in clean accuracy on complex datasets like CIFAR-100, highlighting an ongoing robustness-accuracy trade-off. Future work may explore non-linear causal models to better capture the complexities of DNNs and investigate the application of this framework to Out-of-Distribution (OOD) detection.
Summary updated