Abstract
Graph Neural Networks (GNNs) are increasingly critical for tasks ranging from social network analysis to fraud detection. However, their reliance on large-scale, often third-party datasets makes them susceptible to backdoor attacks. This paper introduces DMGNN, a model-agnostic defense framework designed to counter stealthy "In-Distribution" (ID) attacks. By utilizing counterfactual explanations via a diffusion-denoising process and a novel reverse sampling pruning strategy, DMGNN identifies and removes malicious triggers at the data level. Experimental results demonstrate that DMGNN reduces attack success rates to near zero while preserving original model accuracy.
Introduction: The Challenge of In-Distribution Attacks
Backdoor attacks involve injecting a "trigger"—a specific subgraph or node feature pattern—into training data to force a target misclassification during deployment. While traditional "Out-of-Distribution" (OOD) attacks use triggers that are statistically distinct from clean data, modern In-Distribution (ID) attacks are far more insidious. These triggers are designed to be nearly identical to legitimate samples, rendering statistical anomaly detection ineffective.
Existing defenses often struggle with ID attacks, either failing to detect the triggers or inadvertently deleting significant amounts of clean data, which degrades the model's primary task performance.
Methodology: DMGNN Framework
The DMGNN framework addresses these challenges through a two-stage process focused on functional impact rather than statistical appearance.
1. Trigger Identification via Counterfactual Explanation
Instead of searching for anomalies, DMGNN identifies the minimal change required to flip a node's predicted label. This is achieved through a generative diffusion and denoising process. For a backdoored sample, the "minimal change" that causes a label transition is highly likely to be the hidden trigger.
2. Reverse Sampling Pruning
Since a single graph can yield multiple potential explanations, DMGNN employs a Reverse Sampling Pruning method. This technique filters generated explainable graphs to isolate the one that most accurately reflects the backdoor trigger's properties. Once identified, these triggers are pruned from the dataset before the final model is trained.
Evaluation and Results
DMGNN was evaluated on four benchmark datasets: Cora, Pubmed, Flickr, and OGB-arxiv. The results highlight three key strengths:
- Effectiveness: The Attack Success Rate (ASR) was consistently reduced from over 90% to below 5%, often reaching as low as 0.5% to 1.5%.
- Fidelity: The impact on Main Task Accuracy (ACC) was negligible, typically staying within 3.5% of the original performance.
- Robustness: DMGNN proved highly effective against sophisticated ID attacks like DPGBA, which typically bypass standard pruning-based defenses.
Discussion and Future Directions
The core innovation of DMGNN lies in its focus on label transitions. By analyzing how predictions flip, the defense can ignore the visual or statistical similarity of ID triggers to clean data. Furthermore, by purifying data at the source, DMGNN ensures the model never learns the malicious association.
While highly effective for node classification, future work will focus on extending this framework to graph classification tasks and exploring its utility in decentralized environments like Federated Learning.
Summary updated