Abstract
Graph Neural Networks (GNNs) have become essential for analyzing complex relational data, yet they remain highly vulnerable to backdoor attacks. These attacks insert malicious triggers into training data, causing models to misclassify specific inputs while appearing normal on clean data. We present GCLEANER, the first dedicated backdoor mitigation framework for GNNs. By integrating graph explanation methods with a novel teacher-student distillation mechanism, GCLEANER surgically removes backdoor logic. Experimental results across diverse benchmarks show that GCLEANER reduces attack success rates from near 100% to below 10% using as little as 1% clean data, with negligible impact on standard performance.
Introduction
As Graph Neural Networks (GNNs) are increasingly deployed in sensitive domains like finance and social network analysis, their security is of paramount importance. Backdoor attacks represent a significant threat: a malicious actor "poisons" a small portion of the training set with a specific trigger (a subgraph or feature set). The resulting model functions correctly on benign data but is controlled by the attacker when the trigger is present.
Mitigating these attacks in GNNs is uniquely challenging due to the non-Euclidean nature of graph data, where triggers can vary in topology and location. While existing defenses often focus on detecting poisoned samples during training, GCLEANER addresses the more difficult problem of model purification—fixing a pre-trained, backdoored model without access to the original training set.
Methodology: The GCLEANER Framework
GCLEANER operates through a two-stage process designed to identify and then erase malicious shortcuts within the model's architecture.
Stage 1: Graph Trigger Recovery
To remove a backdoor, the defender must first approximate the attacker's trigger. GCLEANER utilizes graph explanation methods (such as GNNExplainer) to identify nodes that are "unimportant" for the main task in a small set of clean graphs. A generator is then trained to create a "universal" trigger subgraph to replace these nodes. This process aims to find a pattern that forces the backdoored model to produce highly similar, "shortcut" embeddings in its feature space, effectively reverse-engineering the backdoor mechanism.
Stage 2: Backdoor Unlearning via Distillation
Once a candidate trigger is recovered, the model must "forget" it through a Teacher-Student distillation framework:
- Teacher Model: A version of the backdoored model is fine-tuned on a tiny fraction of clean data to provide "clean" soft targets.
- Student Model: The original backdoored model is trained to match the teacher's output on clean data while simultaneously being pushed to ignore the recovered trigger features.
- Explainable Knowledge Transfer: To ensure surgical precision, GCLEANER uses a Grad-CAM-based loss. This forces the student model to match the teacher's internal "attention" maps, ensuring it retains legitimate feature recognition while erasing the backdoor logic.
Key Insights
The Shortcut Observation
A core insight of this work is that backdoored models converge on trigger features much faster than legitimate features. This creates a distinct, dense cluster in the embedding space that the model uses as a "shortcut" for classification. GCLEANER exploits this by searching for triggers that maximize embedding similarity to these shortcut clusters.
Explanation as a Defense Tool
While explainability (XAI) is typically used for auditing model decisions, GCLEANER repurposes it as a defensive tool. By using XAI to identify where a model is not looking for legitimate classification, the framework can pinpoint the optimal locations to reverse-engineer and then neutralize backdoor triggers.
Experimental Results
GCLEANER was evaluated on four real-world benchmarks: Bitcoin (fraud detection), Fingerprint (image-to-graph), AIDS (molecular graphs), and COLLAB (social networks).
- Effectiveness: Across various state-of-the-art attacks (Sub-BA, GTA, Exp-BA, Motif-BA), GCLEANER consistently reduced the Attack Success Rate (ASR) from ~100% to under 10%.
- Data Efficiency: The framework is remarkably robust, requiring only 1% of clean data to achieve full mitigation. It even remains effective when using "auxiliary" datasets from different domains.
- Performance Preservation: Unlike pruning or smoothing techniques, GCLEANER maintains the model's original accuracy (ACC) on clean tasks with negligible degradation.
Conclusion
GCLEANER represents a significant step forward in GNN security, providing a surgical and data-efficient method for purifying backdoored models. While currently focused on subgraph classification, the principles of explainable unlearning established here provide a foundation for future research into protecting node-level prediction tasks and defending against increasingly adaptive graph-based attacks.
Summary updated