Boosting Graph Robustness Against Backdoor Attacks: An Over-Similarity Perspective

Chang Liu, Hai Huang, Yujie Xing, Xingquan Zuo · OpenReview

TL;DR

This paper introduces SimGuard, a novel defense mechanism against backdoor attacks on Graph Neural Networks (GNNs). By identifying an "over-similarity" phenomenon in attack triggers, SimGuard uses a combination of density-based clustering and contrastive learning to effectively detect and neutralize these triggers, significantly improving GNN robustness without sacrificing performance on clean data.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful tools for analyzing graph-structured data, but they are vulnerable to "backdoor attacks." In these attacks, malicious "triggers" (often small subgraphs or specific node patterns) are injected into the training data, causing the GNN to misclassify nodes containing these triggers into a specific target class during inference. This poses a serious threat to the reliability of GNNs in real-world applications like fraud detection or recommendation systems. Existing defense methods struggle with two main issues: either they remove too many legitimate nodes while trying to eliminate triggers, or they fail to fully remove the trigger's influence, leaving the GNN compromised. This paper aims to address these limitations by proposing a more effective and precise defense strategy.

Methods

The core of SimGuard's defense lies in its novel observation and subsequent methodology:

  • Over-Similarity Phenomenon: The authors empirically demonstrate that triggers generated by current state-of-the-art graph backdoor attacks exhibit "over-similarity" in both their features and structural properties. This means the triggers are too alike to each other, and often too similar to clean nodes, making them hard to distinguish.
  • Trigger Identification: SimGuard first uses DBSCAN, a density-based clustering algorithm, to group nodes. It then incorporates structural analysis (variance of node degrees) to refine trigger identification, distinguishing clusters that are too uniform to be natural. A global anomaly detection method is also employed to catch triggers that might not form dense clusters.
  • Contrastive Learning for Trigger Detection: To efficiently and accurately detect triggers, especially during inference, SimGuard trains a trigger detector using contrastive learning. This technique learns embeddings that effectively separate triggers from clean nodes in a latent space, improving detection accuracy and efficiency.
  • Robustness and Preservation: The method is designed to effectively remove triggers while preserving the integrity and performance of clean nodes, a key challenge for existing defenses.

Datasets

The paper evaluates SimGuard on several standard graph benchmark datasets:

  • Cora
  • CiteSeer
  • PubMed
  • Coauthor Physics
  • Flickr
  • OGB-arxiv

These datasets are commonly used for node classification tasks and represent various real-world graph structures and properties.

Key Insights and Ideas

  • The "Over-Similarity" Revelation: The most significant insight is the discovery that current graph backdoor attack triggers are not as sophisticated or diverse as they might seem. Their "over-similarity" is a weakness that can be exploited for defense. This challenges the assumption that triggers are always highly stealthy and sample-specific.
  • Structure and Features Together: Combining structural analysis (node degrees) with feature-based density clustering (DBSCAN) provides a more robust way to identify triggers than relying on either alone.
  • Contrastive Learning for Precision: Using contrastive learning to learn embeddings that explicitly push triggers and clean nodes apart is a powerful way to achieve high detection accuracy and efficiency, especially for the critical inference stage.
  • Defense Recovery Rate (DRR) as a Key Metric: The paper introduces and emphasizes the importance of DRR, which measures if attacked nodes return to their pre-attack state, as a more comprehensive evaluation metric than just Attack Success Rate (ASR) and Accuracy (ACC).

Key Results

  • High Defense Performance: SimGuard consistently achieves near-perfect Defense Recovery Rate (DRR), often reaching 100%, across various datasets and attack methods.
  • Accurate Trigger Detection: The method demonstrates high precision and recall (consistently above 95%) in identifying triggers during both training and inference phases.
  • Preservation of Clean Accuracy: SimGuard maintains clean accuracy comparable to standard GCNs, unlike many other defense methods that suffer performance degradation.
  • Robustness to Hyperparameters: The defense shows strong robustness across different hyperparameter settings, indicating its stability.
  • Effectiveness Against Mixed Attacks: SimGuard effectively mitigates mixed backdoor attacks, outperforming other baseline methods.

Limitations and Future Work

  • Focus on Node Classification: The current defense is primarily designed for node classification tasks. Extending it to other graph-related tasks (e.g., graph classification, link prediction) is a future direction.
  • Trigger Generation Limitations: The paper suggests that the "over-similarity" phenomenon is a limitation of current trigger generation methods. Future work could explore more sophisticated generative models for triggers, which might pose a greater challenge.
  • Adaptive Attacks: While SimGuard shows resilience against some adaptive attacks, further research is needed to explore its performance against more advanced, trigger-diversity-enhancing adaptive attacks.
  • Societal Impact: The authors anticipate no direct negative societal impacts from this study.

Summary updated

BibTeX
@misc{liu2025boosting,
  author = {Chang Liu and Hai Huang and Yujie Xing and Xingquan Zuo},
  title = {{Boosting Graph Robustness Against Backdoor Attacks: An Over-Similarity Perspective}},
  year = {2025},
  eprint = {2502.01272},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.01272},
}
Figure