Skip to content

Improving graph robustness against backdoor attacks: an over-similarity perspectiveBoosting Graph Robustness Against Backdoor Attacks: An Over-Similarity Perspective

arXiv· arXiv:2502.01272· Chang Liu, Hai Huang, Yujie Xing, Xingquan ZuoBeijing University of Posts and TelecommunicationsIndexed by this site · 3 days ago· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors state that triggers of existing graph backdoor attacks exhibit over-similarity, and on this basis propose the defense framework SimGuard, whose DRR is mostly close to 100% on six datasets.

Threat modelThe attacker attaches backdoor triggers to some nodes VB in the training graph GT and assigns them the target label yt, causing the GNN to misclassify nodes with the trigger as yt; the defender trains a node classification model on GT without knowing which nodes are poisoned or what yt is, and at inference time must classify clean nodes and nodes with triggers on an unseen graph GU disjoint from the training graph (inductive setting).

Questions
Graph neural networks are vulnerable to backdoor attacks: an attacker attaches triggers to training nodes, causing the model to misclassify nodes with the trigger into the target class. The authors state that existing defenses either wrongly remove many clean nodes or cannot restore target nodes to their pre-attack state.
Methods
The authors state that the triggers generated by GTA, UGBA, and DPGBA exhibit over-similarity in features and structure, and on this basis propose SimGuard: it identifies triggers using DBSCAN plus within-cluster degree variance analysis and Canberra-distance-based global anomaly scoring, then trains a trigger detector with contrastive learning, covering both the training and inference stages.
Experiments and results
On six datasets under four attacks, the authors report that SimGuard's DRR is mostly close to 100%, and clean accuracy is comparable to the original GCN; the exception is an ASR of 86.08% under DPGBA attack on Flickr. In the adaptive attack experiment (Table 13), ASR on Cora is 81.8% at β=25.
Limitations and future work
The authors state that the method mainly targets node classification tasks, and that the over-similarity phenomenon in other graph tasks is left for future work. The experiments cover only node classification, four attacks, and six datasets; the paper does not report the number of repetitions or statistical significance tests.
Experimental setupSimGuard · Cora、CiteSeer et al. · ASR、ACC et al.
Evaluated models
SimGuard
Benchmarks
CoraCiteSeerPubMedCoauthor PhysicsFlickrOGB-arxiv
Metrics
ASRACCDRRRecallPrecision
AI summaryFor graph backdoor attacks against graph neural networks, the researchers propose a defense method, SimGuard, based on the over-similarity of triggers in features and structure. The method first detects triggers using similarity-based metrics, then trains a backdoor detector with contrastive learning to generate embeddings that can separate triggers from clean nodes. Experiments on real datasets show that SimGuard can effectively defend against multiple graph backdoor attacks while maintaining performance on clean nodes.

For graph backdoor attacks against graph neural networks, the researchers propose a defense method, SimGuard, based on the over-similarity of triggers in features and structure. The method first detects triggers using similarity-based metrics, then trains a backdoor detector with contrastive learning to generate embeddings that can separate triggers from clean nodes. Experiments on real datasets show that SimGuard can effectively defend against multiple graph backdoor attacks while maintaining performance on clean nodes.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Defend against graph neural network backdoor attacks by restoring target nodes to their pre-attack state, not merely deviating from the target class.

    Core question: how to defend against graph backdoor attacks targeting GNN node classification, both precisely removing the trigger and restoring the attacked nodes to their pre-attack prediction state.

    • Scenario and importance: GNNs are used in scenarios such as social networks, transportation, and protein interactions, but the authors state that they are vulnerable to backdoor attacks: an attacker attaches a trigger (node or subgraph) to target nodes and assigns them the target label, and at test time the model misclassifies nodes with the trigger into the target class, for example misjudging specific transactions as normal in fraud detection.
    • Shortcomings of existing methods: The authors state that removal-based methods (Prune, OD) rely on fixed graph properties such as homophily or feature distribution, that fixed thresholds wrongly remove clean nodes, and that triggers may resemble clean nodes; robust-training-based methods (RIGBD) do not know the true labels of target nodes during fine-tuning and cannot fully eliminate the trigger's influence.
    • Core observation: The authors re-examine SBA, GTA, UGBA, and DPGBA and state that the triggers generated by these attacks exhibit over-similarity in features and structure, with the triggers of GTA and DPGBA even collapsing to a single feature (Figure 1, Table 1).
    • Proposed in the paper: A defense framework, SimGuard (similarity-based trigger identification + a trigger detector trained with contrastive learning), and a new metric, Defense Recovery Rate (DRR), which measures whether attacked nodes can be restored to their pre-attack predictions.
    • Threat model:
      • Attacker's goal: Make a GNN trained on a poisoned training graph classify nodes with the trigger as the target label yt, while keeping predictions on clean nodes normal.
      • Attacker's capability: Attach triggers to some nodes VB in the training graph GT and assign them the target label.
      • Defender's knowledge and capability: Train a node classification model on GT without knowing which nodes are poisoned or what yt is; at inference time, classify on an unseen graph GU disjoint from the training graph (inductive setting).
  2. What related research exists?

    Related work is divided into two groups: graph backdoor attacks (SBA/GTA/UGBA/DPGBA) and graph backdoor defenses (Prune/OD/RIGBD and robust GNNs).

    Graph backdoor attacks

    • SBA (2021): Uses randomly generated subgraphs (Erdős–Rényi) as triggers and assigns them random features; the authors state that its attack success rate is relatively low and its stealthiness poor.
    • GTA (2021): Introduces a trigger generator that customizes subgraph triggers for individual samples and optimizes only the attack success rate; the authors state that the backdoors it generates are easier to detect.
    • UGBA (2023) and DPGBA (2024): UGBA optimizes the selection of poisoned nodes and adds a cosine similarity constraint to preserve graph homophily; DPGBA uses adversarial learning to generate in-distribution triggers, addressing the OOD trigger problem. The authors state that both have higher stealthiness and success rates.

    Graph backdoor defenses

    • Prune (Dai et al., 2023): Removes edges connecting nodes with low cosine similarity; can be used in both training and inference stages.
    • OD (Zhang et al., 2024): Trains a graph autoencoder and removes outlier nodes with high reconstruction loss; mainly used in the training stage.
    • RIGBD (2024): Uses random edge deletion to identify a small number of triggers and adversarially fine-tunes the model; the authors criticize such methods for being unable to restore target nodes to their pre-attack state and give Proposition 6.1 arguing that their expected recovery rate is upper-bounded by (1−ρ)/(K−1).

    Robust GNN variants

    • GNNGuard (2020) and RobustGCN (2019): Robust GNNs targeting adversarial attacks, not designed specifically for backdoors; the authors state that, following prior work, these two most classic methods were selected for comparison.

    Baselines and benchmarks: The compared methods are Prune, OD, RIGBD, GNNGuard, and RobustGCN, plus GCN (no defense) and RIGBD-Perfect (an RIGBD variant assuming perfect detection in the training stage); the benchmarks are six node classification datasets: Cora, CiteSeer, PubMed, Coauthor Physics, Flickr, and OGB-arxiv.

    Authors' positioning: The defense in this paper does not rely on specific graph properties but exploits the over-similarity phenomenon prevalent in attack-generated triggers, and adopts a stricter defense goal—restoring target nodes to their pre-attack state rather than merely deviating from the target class.

  3. How does the paper address this problem?

    SimGuard first identifies triggers using DBSCAN plus structural analysis and global anomaly scoring, then uses contrastive learning to train a trigger detector usable at inference time.

    Overall approach: exploit the over-similarity phenomenon of triggers, first identify triggers and high-confidence clean nodes on the training graph, then train a binary detector with contrastive learning that can remove triggers in both the training and inference stages. The framework is named SimGuard (Figure 3; algorithm in Appendix F).

    Problem setting and defense goal

    • Setting: inductive node classification. The training graph GT contains a clean node set VC and a poisoned node set VB (labeled with the target class yt); the inference graph GU is disjoint from GT and contains clean nodes and nodes with triggers.
    • Defense goal: Minimize the sum of classification losses on clean nodes and poisoned nodes, i.e., minf ∑vi ∈ VC l(f(vi), yi) + ∑vj ∈ VB l(f(vj), yj), where yj is the node's prediction label when not under attack. The authors emphasize that this is harder than the previous setting of "only needing to deviate from the target class."
    • Analysis target: Trigger nodes directly connected to the target node are defined as Trigger-Bridge Nodes (TBN); subsequent detection and removal target TBNs.

    Analysis of the over-similarity phenomenon (basis of the method)

    • Feature over-similarity: Compute the average pairwise cosine similarity Ck among TBNs (Eq. 3). The authors report that the triggers of GTA and DPGBA almost collapse to a single feature, and that UGBA triggers, though not collapsed, are still more similar than clean nodes (Figure 1); Ck between triggers and clean nodes shows that UGBA preserves only local homophily and lacks global information (Figure 2).
    • Structural over-similarity: Compute the mean and variance of trigger degrees. GTA's degree mean is 1.0 and variance 0.0 on Cora/CiteSeer/PubMed; DPGBA's are both 3.0 with variance 0.0; UGBA's mean is 2.7 with variance 0.45 on Cora, and variance 0.0 on CiteSeer and PubMed (Table 1).

    Trigger identification (training stage)

    • DBSCAN clustering + structural analysis: Run DBSCAN clustering on node features and compute the variance of node degrees within each cluster; clusters with variance below a threshold δ (e.g., 0.001) are judged as trigger clusters (Eq. 4). The authors state that on datasets such as OGB-arxiv where clean node features are also highly similar, DBSCAN alone may misjudge, so a structural constraint is added.
    • Global anomaly scoring: For triggers such as UGBA's that are locally homogeneous but globally over-similar, use Canberra distance to compute the global anomaly score of node x relative to selected clean nodes, G(x) = 1/m∑i=1m (|x − yi|1)/(|x|1 + |yi|1), and take the position of the largest adjacent difference after sorting in descending order as the threshold; nodes scoring above the threshold are judged as triggers (Eq. 5, 6). The authors state that Canberra distance captures multi-dimensional over-similarity better than cosine similarity.

    Selection of high-confidence clean nodes

    • Autoencoder reconstruction: Reconstruct node features with an autoencoder and select the clean node set O by reconstruction loss (Eq. 7), where δ corresponds to a certain percentile of the reconstruction loss. Before selection, similar node clusters found in the DBSCAN stage are excluded to avoid duplicate triggers distorting the data distribution.

    Training the trigger detector with contrastive learning

    • Motivation: The authors state that the training-stage detection method is computationally expensive when processing the whole graph at inference time, and that attackers can design triggers that mimic target-class neighbors to form evasion attacks (Appendix C.2 gives a proof of the existence of a mapping M), so a detector usable at inference time is needed.
    • Training method: Each epoch randomly samples m clean nodes (m is the number of detected triggers), and a contrastive loss pulls clean node embeddings together and trigger embeddings together while separating the two groups (Eq. 8); finally an MLP performs binary classification.
    • Key parameters (Appendix G.6): DBSCAN eps=0.01, min_samples=10; clean node selection ratio 10% of the total number of nodes; contrastive learning temperature coefficient 0.1.
  4. What experiments did the paper conduct?

    On six datasets under four attacks, SimGuard's DRR is mostly close to 100%, and clean accuracy is comparable to GCN; DPGBA on Flickr is an exception.

    Experimental setup

    • Subjects under test: With GCN as the backbone model, the defense methods SimGuard, Prune, OD, RIGBD, RIGBD-Perfect, GNNGuard, and RobustGCN are compared with undefended GCN.
    • Datasets: Six node classification benchmarks: Cora, CiteSeer, PubMed, Coauthor Physics, Flickr, and OGB-arxiv (sizes in Appendix Table 5, e.g., Cora 2,708 nodes, OGB-arxiv 169,343 nodes).
    • Attack methods: SBA, GTA, UGBA, DPGBA; attack parameters follow each original paper's settings rather than a unified setting.
    • Protocol: The graph is split 4:1 into disjoint GT and GU; the attacker poisons GT, and the defender trains on the poisoned GT; at evaluation, half of the nodes in GU are randomly assigned triggers to measure ASR, and the rest are used to measure ACC.
    • Metrics: ASR (lower is better), ACC (higher is better), DRR (the proportion of attacked nodes restored to their pre-attack predictions, higher is better; definition in Appendix G.4); trigger detection reports Recall and Precision.
    • Number of repetitions and statistical tests: Not reported in the paper.

    Main results

    According to Table 2, SimGuard's ASR / ACC / DRR (%) under four attacks and six datasets:

    Swipe horizontally to read the table

    AttackCoraCiteSeerPubMedPhysicsFlickrOGB-arxiv
    SBA5.78 / 84.44 / 100.000.00 / 74.40 / 100.004.05 / 85.54 / 98.880.70 / 96.40 / 99.730.00 / 45.74 / 99.590.03 / 66.94 / 97.94
    GTA5.78 / 84.44 / 100.000.00 / 74.40 / 100.003.80 / 85.13 / 99.890.63 / 95.45 / 99.500.00 / 45.80 / 99.830.02 / 66.87 / 97.16
    UGBA5.78 / 84.44 / 100.000.00 / 74.40 / 100.003.80 / 85.54 / 98.930.63 / 96.26 / 100.000.00 / 45.64 / 99.840.02 / 66.87 / 98.98
    DPGBA0.87 / 84.44 / 100.009.56 / 74.40 / 100.007.76 / 85.44 / 98.343.79 / 96.35 / 99.6886.08 / 45.93 / 99.780.20 / 66.30 / 95.11
    • Authors' interpretation: SimGuard has the highest DRR on all datasets and attacks, usually close to 100%; ASR is not always the lowest, which the authors attribute to the clean model itself classifying a small number of nodes into the target class.
    • Comparison with baselines: RIGBD's ASR is often very low but its DRR is very low (e.g., under the DPGBA attack on Cora, RIGBD's ACC is only 1.85% and DRR 1.84%); the authors state that it merely makes predictions deviate from the target class without eliminating the backdoor; Prune's ASR is generally lower than OD's, which the authors attribute to Prune being usable in the inference stage while OD is limited to the training stage.
    • Exception: Under the DPGBA attack on Flickr, SimGuard's ASR is 86.08% (undefended GCN is 87.11%); the paper does not explain why ASR is not reduced in this setting; DRR in the same setting is still 99.78%.

    Trigger detection performance

    • Training stage (Table 3): SimGuard's Recall under four attacks on Cora, CiteSeer, PubMed, and Physics is 100.00% in all cases, and Precision is 100.00% except in a few cases (e.g., 98.77% for SBA on PubMed, and mostly 93.02%–97.56% on Flickr).
    • Inference stage (Table 4): SimGuard's Recall on six datasets is 100.00% in all cases, and Precision is mostly 99.60%–100.00%; OD and RIGBD are not applicable in the inference stage (marked "-" in the table), and Prune's inference-stage Precision is mostly 0.005%–26.68%.
    • Authors' interpretation: Some baselines have high Recall but low Precision, indicating that they cannot clearly delineate the boundary between triggers and clean nodes and misjudge many clean nodes as triggers.

    Adaptive attacks and mixed attacks

    • Adaptive attack (Appendix L, Table 13): A similarity penalty Lsim between triggers is added to the attack loss (weight β, α fixed at 1). With β=1, SimGuard's DRR on Cora/PubMed/Physics is 99.2%/98.5%/99.5%; with β=25, ASR on Cora is 81.8% and DRR 94.8%; with β=50, the attack's own ASR on Cora drops to 59.4%, and after defense ASR is 5.70% and DRR 100.0%. The authors state that the over-similarity phenomenon is not easily eliminated by a penalty term, and that bypassing the defense requires sacrificing ASR.
    • Mixed attack (Appendix K, Table 10): Under a mixed attack combining UGBA and DPGBA, Prune and OD have ASR above 90% on four datasets (e.g., both 95.65% on Cora), while SimGuard's ASR on Cora/CiteSeer/PubMed is 0.87%/9.56%/7.43% and DRR is 100.00%/100.00%/98.73%; on Flickr, SimGuard's ASR is 85.42% and DRR 99.85%.

    Other ablations and analyses

    • Number of triggers (Appendix I, Tables 6, 7): With 10–160 triggers on Cora and 20–320 triggers on PubMed, detection Recall/Precision is mostly close to 100%, and DRR is mostly 98.15%–100.00%.
    • Number of edges (Appendix J, Tables 8, 9): With 1–3 edges between triggers and target nodes, detection metrics are mostly close to 100%, and DRR is 98.58%–100.00%.
    • DBSCAN hyperparameters (Figure 5, Appendix H): For eps ∈ {0.01–0.20} and min_samples ∈ {2–15}, under the DPGBA attack on Cora, Recall is always 100% and Precision is at least 26.3% (eps=0.2, min_samples=2).
    • Temperature and clean node ratio (Appendix H, Figure 11): With temperature 0.1–0.8 and clean node ratio 0.01–0.2, Recall, Precision, and DRR are all 100.0%.
    • Comparison with anomaly detection methods (Appendix M, Table 14): Under the DPGBA attack, OD and K-means both have Recall 0.00 on Cora and Flickr; the authors state that OOD-based anomaly detection is basically ineffective against such triggers.
  5. What are some points that can be further explored?

    The authors state that the method focuses on the node classification task, and that other graph tasks and more efficient trigger generation are future directions.

    Limitations and future directions noted by the authors

    • Task scope: The authors state that the method mainly focuses on node classification tasks (Limitations and broader impacts section of the Conclusion).
    • Other graph tasks: Exploring the role of the over-similarity phenomenon in backdoor attacks on other graph-related tasks is listed as a future research direction (Conclusion).
    • More efficient trigger generation techniques: Developing more efficient trigger generation techniques is listed as a future direction (Conclusion); in Appendix L the authors also state that they look forward to future work combining stronger generative models with graph backdoor attacks.
    • Trigger diversity: Appendix L notes that improving trigger diversity remains a difficult task, and the authors state that existing generators, having seen only training data in the inductive setting, cannot guarantee the diversity of data generated at inference time.

    Scope of experimental coverage

    • Models under test: The backbone model is GCN; the paper does not report results on other backbones such as GAT or GraphSAGE.
    • Attack coverage: The defense evaluation covers four attacks, SBA, GTA, UGBA, and DPGBA, as well as a UGBA+DPGBA mixed attack and an adaptive attack with a similarity penalty (Appendix K, L).
    • Datasets: Six node classification datasets (Cora, CiteSeer, PubMed, Coauthor Physics, Flickr, OGB-arxiv), all English citation, collaboration, or social networks.
    • Analysis setting: The feature analysis of the over-similarity phenomenon targets the scenario of "establishing one edge between the trigger and the target node" (explicitly stated in Section 4.1).
    • Not reported in the paper: The number of experimental repetitions, statistical significance tests, and the specific attack backbone used for the adaptive attack (Appendix L does not state which attack method it is based on).
  6. Summarize the main content of the paper

    The authors state that graph backdoor triggers generally exhibit over-similarity, and on this basis the proposed SimGuard achieves DRR mostly close to 100% on six datasets.

    A graph backdoor defense paper whose core idea is to derive defense design from attack flaws.

    • Problem: GNN node classification faces backdoor attacks; the authors state that existing removal-based defenses mistakenly remove clean nodes, and robust-training-based defenses cannot restore target nodes to their pre-attack state.
    • Observation: The authors analyze SBA, GTA, UGBA, DPGBA and state that the triggers they generate exhibit over-similarity in features and structure—the trigger features of GTA and DPGBA almost collapse to a single point, with degree variance of 0 (Figure 1, Table 1).
    • Method: SimGuard uses DBSCAN plus intra-cluster degree variance analysis to identify feature-collapsed triggers, uses a global anomaly score based on Canberra distance to capture triggers such as UGBA's that are locally homogeneous but globally over-similar, and then uses contrastive learning to train a detector to support the inference stage; it also proposes the DRR metric to measure whether target nodes are restored to their pre-attack predictions.
    • Main results: On six datasets under four attacks, SimGuard's DRR is mostly 95.11%–100.00% (Table 2), and clean accuracy is comparable to the undefended GCN; during training, trigger detection Recall is 100.00% on four datasets (Table 3).
    • Exceptions and boundaries: ASR is 86.08% under DPGBA attack on Flickr (Table 2); under adaptive attack with β=25, ASR on Cora is 81.8% (Table 13), and the authors state that bypassing the defense requires sacrificing attack success rate.
    • Authors' conclusion: The authors consider over-similarity to be a flaw of existing attack methods themselves, offering a new perspective for defense; the method focuses on node classification, and other graph tasks and stronger trigger generation are left for future work.

Related papers

Show 3 more papers
Read originalarxiv.org