Defending Against Backdoor Attack on Graph Nerual Network by Explainability

Bingchen Jiang, Zhao Li · DOI

Abstract

Backdoor attack is a powerful attack algorithm to deep learning model. Recently, GNN's vulnerability to backdoor attack has been proved especially on graph classification task. In this paper, we propose the first backdoor detection and defense method on GNN. Most backdoor attack depends on injecting small but influential trigger to the clean sample. For graph data, current backdoor attack focus on manipulating the graph structure to inject the trigger. We find that there are apparent differences between benign samples and malicious samples in some explanatory evaluation metrics, such as fidelity and infidelity. After identifying the malicious sample, the explainability of the GNN model can help us capture the most significant subgraph which is probably the trigger in a trojan graph. We use various dataset and different attack settings to prove the effectiveness of our defense method. The attack success rate all turns out to decrease considerably.

Introduction

Deep learning models are notoriously vulnerable to backdoor attacks, where an attacker "poisons" a small portion of the training data by injecting a specific pattern—a trigger—and changing the label to a target of their choice. While backdoor defenses are well-studied for images, they are largely unexplored for Graph Neural Networks (GNNs). Graphs are unstructured and discrete, meaning a trigger can be a subgraph of any shape, size, or density located anywhere in the network. Furthermore, unlike images, humans cannot easily "see" if a graph's topological structure matches its label, making manual auditing nearly impossible.

Methodology

The researchers leverage the idea that a backdoor trigger is "too influential." In a backdoored model, the trigger becomes a "shortcut" that the model relies on almost exclusively. The proposed defense framework repurposes explainability tools to identify and neutralize these triggers.

Overview of the proposed backdoor detection and defense pipeline, showing the flow from validation to sample cleaning.

Detection via Explainability Score (ES)

The authors introduce a metric called the Explainability Score, defined as $ES = Fidelity - Infidelity$.

  • Fidelity measures how much the prediction probability drops when the "important" subgraph is removed.
  • Infidelity measures how much the prediction changes when only the important subgraph is kept.

For malicious samples, the trigger is so dominant that removing it causes a massive drop in confidence (High Fidelity), while keeping only the trigger maintains the prediction (Low Infidelity). Using a small set of clean validation data, the defender calculates a maximum ES boundary. Any incoming sample with an ES higher than this boundary is flagged as malicious.

Distribution of Explainability Scores (ES) for benign and trojan samples across different datasets, illustrating the clear separation used for detection.

Adaptive Pruning

Once a graph is flagged, the defense must remove the trigger. The authors use the Coefficient of Variation ($c_v$) of edge importance scores to estimate trigger density. If the importance is concentrated on a few edges, the trigger is likely small; if it's spread out, the trigger is likely large. This allows for "adaptive sparsity"—pruning just the right amount of edges to neutralize the trigger without destroying the underlying data.

Key Results and Insights

The defense was evaluated on three popular graph classification benchmarks: AIDS (molecular structures), Bitcoin (transaction networks), and MUTAG (chemical molecules). The results demonstrate a "surgical" effectiveness:

  • Significant ASR Reduction: On the MUTAG dataset, the Attack Success Rate (ASR) plummeted from 77% to just 5%.
  • Minimal Utility Impact: For the AIDS dataset, the accuracy on clean samples only dropped by 0.04, proving the method preserves normal functionality.
  • The "Only Creed" Hypothesis: The success of the method supports the idea that for a backdoored GNN, the trigger is its "only creed." Malicious predictions are almost entirely determined by the trigger subgraph, creating a unique statistical signature in explainability metrics.

Limitations and Future Work

A primary weakness identified is performance on sparse graphs. In very sparse networks, every single edge is critical to the prediction, making it difficult for the explainer to distinguish between a malicious trigger and essential structure. Future work will focus on improving robustness for these environments and testing against adaptive attackers who may attempt to hide triggers from explainability tools.

Summary updated

BibTeX
@misc{jiang2022defending,
  author = {Bingchen Jiang and Zhao Li},
  title = {{Defending Against Backdoor Attack on Graph Nerual Network by Explainability}},
  year = {2022},
  eprint = {2209.02902},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.02902},
}
Figure