ATEX-CF: Attack-Informed Counterfactual Explanations for Graph Neural Networks
Yu Zhang, Sean Bin Yang, Arijit Khan, Cuneyt Gurcan Akcora
TL;DR
This work tackles the explainability of Graph Neural Networks by bridging counterfactual explanations with adversarial attacks. It introduces ATEX-CF, a hybrid framework that simultaneously considers edge deletions and attack-informed edge additions to generate concise, plausible counterfactuals within a perturbation budget $\kappa$. Through a joint optimization of impact, sparsity, and plausibility, ATEX-CF achieves higher fidelity and more realistic explanations than deletion-only or attack baselines across diverse datasets and architectures. The approach is reinforced by a theoretical link between attack perturbations and counterfactual reasoning (Hypothesis H1) and validated with extensive experiments, ablations, and analyses of asymmetric perturbation costs. The results highlight the potential of leveraging adversarial insights to enhance interpretability and robustness in graph-based decision systems, with broad applicability to healthcare, finance, and science domains.
Abstract
Counterfactual explanations offer an intuitive way to interpret graph neural networks (GNNs) by identifying minimal changes that alter a model's prediction, thereby answering "what must differ for a different outcome?". In this work, we propose a novel framework, ATEX-CF that unifies adversarial attack techniques with counterfactual explanation generation-a connection made feasible by their shared goal of flipping a node's prediction, yet differing in perturbation strategy: adversarial attacks often rely on edge additions, while counterfactual methods typically use deletions. Unlike traditional approaches that treat explanation and attack separately, our method efficiently integrates both edge additions and deletions, grounded in theory, leveraging adversarial insights to explore impactful counterfactuals. In addition, by jointly optimizing fidelity, sparsity, and plausibility under a constrained perturbation budget, our method produces instance-level explanations that are both informative and realistic. Experiments on synthetic and real-world node classification benchmarks demonstrate that ATEX-CF generates faithful, concise, and plausible explanations, highlighting the effectiveness of integrating adversarial insights into counterfactual reasoning for GNNs.
