Abstract
Graph Neural Networks (GNNs) have recently been widely adopted in multiple domains. Yet, they are notably vulnerable to adversarial and backdoor attacks. In particular, backdoor attacks based on subgraph insertion have been shown to be effective in graph classification tasks while being stealthy, successfully circumventing various existing defense methods. In this paper, we propose E-SAGE, a novel approach to defending GNN backdoor attacks based on explainability. We find that the malicious edges and benign edges have significant differences in the importance scores for explainability evaluation. Accordingly, E-SAGE adaptively applies an iterative edge pruning process on the graph based on the edge scores. Through extensive experiments, we demonstrate the effectiveness of E-SAGE against state-of-the-art graph backdoor attacks in different attack settings. In addition, we investigate the effectiveness of E-SAGE against adversarial attacks.
Introduction
Graph Neural Networks (GNNs) are essential for analyzing data with complex relational structures, such as social networks and recommendation systems. However, their widespread adoption is threatened by a significant security vulnerability: backdoor attacks. In these attacks, an adversary poisons the training data by inserting a specific subgraph, known as a trigger. During inference, the presence of this trigger causes the model to misclassify the target node into a class chosen by the attacker.
Traditional defenses often rely on pruning edges between dissimilar nodes. However, sophisticated attacks like the Unnoticeable Graph Backdoor Attack (UGBA) are designed to mimic benign data distributions, rendering similarity-based pruning ineffective. E-SAGE addresses this by leveraging model explainability to identify these stealthy triggers.
The E-SAGE Defense Mechanism
The core of E-SAGE is the observation that while malicious triggers may appear benign to simple statistical checks, they are highly influential in the model's decision-making process. By using Integrated Gradients (IG), E-SAGE assigns an "importance score" to each edge.
The defense follows a three-step iterative process:
- Explainability Scoring: IG is used to calculate importance scores for all edges. Malicious edges typically exhibit significantly higher scores than benign ones.
- Iterative Pruning: To overcome the "masking effect"—where one strong malicious edge hides others—E-SAGE prunes edges iteratively, re-evaluating scores after each cut.
- Adaptive Thresholding: To preserve model accuracy, the pruning threshold is adjusted based on node degree using a sigmoid-based function, ensuring sparse nodes are not overly penalized.
To maintain scalability on large graphs like ogbn-arxiv, E-SAGE employs a neighbor sampling strategy, reducing the computational overhead of the explainability calculations.
Experimental Evaluation
E-SAGE was evaluated on four benchmark datasets: Cora, Pubmed, Flickr, and ogbn-arxiv. The results demonstrate exceptional robustness against state-of-the-art attacks. Notably, on the Flickr dataset under a UGBA attack, E-SAGE reduced the Attack Success Rate (ASR) from 97.63% to just 0.07%, with negligible impact on clean accuracy. Furthermore, neighbor sampling improved efficiency by over 40% on large-scale datasets.
Conclusion
E-SAGE represents a significant step forward in GNN security by turning model explainability into a defensive tool. While it faces some sensitivity challenges in very small graphs, its ability to neutralize unnoticeable triggers makes it a robust solution for real-world applications. Future research will explore even stealthier attack vectors and the synergy between different explainability frameworks.
Summary updated