Abstract
As Graph Neural Networks (GNNs) are increasingly deployed in high-stakes areas like fraud detection or drug discovery, understanding the rationale behind their predictions is critical. This paper introduces GXAttack, the first optimization-based white-box attack designed to manipulate GNN explanations while keeping the actual prediction unchanged. By treating the adjacency matrix as a set of Bernoulli variables and optimizing a bi-objective loss function, the authors demonstrate that current post-hoc explainability tools are highly fragile and can be easily misled by imperceptible structural changes.
Introduction
Post-hoc explainers, such as PGExplainer or GNNExplainer, provide transparency by identifying a small "explanatory subgraph"—the specific nodes and edges most responsible for a model's result. However, if these explanations are fragile, they cannot be trusted for critical decision-making. While adversarial attacks on GNN predictions are well-studied, the vulnerability of the explanations themselves has been largely overlooked. This research asks: Can an attacker craft a tiny, imperceptible change to a graph that leaves the prediction intact but completely flips the explanation?
Methodology: The GXAttack Framework
GXAttack is a white-box adversarial attack, meaning the attacker has full access to the GNN model and the explainer's parameters. The framework relies on three key technical components:
- Bi-Objective Loss Function: The attack optimizes for two goals simultaneously: ensuring the GNN's output for the target node remains unchanged (Prediction Preservation) and maximizing the distance between the original and new explanations (Explanation Alteration).
- Continuous Relaxation: Since graph structures are discrete, the authors treat the adjacency matrix as a set of Bernoulli variables. This allows the use of Projected Gradient Ascent to find optimal perturbations in a continuous space before sampling back to a discrete graph.
- Budget Constraints: The attack is restricted to a small number of edge flips (additions or deletions) to ensure the perturbation remains imperceptible to human observers or automated checks.
Experimental Evaluation
The researchers utilized ShapeGGen, a synthetic graph generator, to create datasets (Syn1-Syn7) where the "reason" for classification is a known motif, such as a "house" or "circle" shape. This provides a clear ground-truth baseline to measure Graph Explanation Accuracy (GEA).
Key Results
Experimental results demonstrate the devastating effectiveness of GXAttack. On the Syn2 dataset, the attack reduced GEA by 26.7% while flipping only about 5.6 edges on average. Crucially, the predicted labels changed by almost 0%. In comparison, trivial baselines like random flipping or random rewiring were ineffective; random flipping barely altered the explanation, while random rewiring often broke the GNN's prediction accuracy.
Discussion and Insights
Several critical insights emerged from the study:
- Fragility of Explanations: It is often easier to "fool" the explainer than the GNN itself. Small structural changes that the GNN ignores can lead the explainer down a completely different path.
- The Confidence Paradox: Nodes that the GNN is highly confident about (e.g., >90% probability) are actually harder to attack. The model's decision boundary is so distant that there is less room to change internal gradients without flipping the label.
- Attack Transferability: Attacks optimized for one explainer (e.g., PGExplainer) successfully fooled others like GNNExplainer, GradCAM, and SubgraphX. This suggests a fundamental shared vulnerability in how current explainers interpret graph topology.
Conclusion
The findings of this paper serve as a call for robustness in the field of GNN interpretability. The authors conclude that adversarial robustness must become a standard metric for evaluating any new GNN explainer. Future research should focus on developing "intrinsically robust" explanation methods that are less sensitive to minor topological shifts, ensuring that the "why" behind a prediction remains trustworthy.
Summary updated