Cross-Paradigm Graph Backdoor Attacks with Promptable Subgraph Triggers

Dongyi Liu, Jiangtong Li, Dawei Cheng, Changjun Jiang · OpenReview

Abstract

Graph Neural Networks (GNNs) are vulnerable to backdoor attacks, where adversaries implant malicious triggers to manipulate model predictions. Existing trigger generators are often simplistic in structure and overly reliant on specific features, confining them to a single graph learning paradigm, such as graph supervised learning, graph contrastive learning, or graph prompt learning. This specialized design results in poor transferability across paradigms. We propose Cross-Paradigm Graph Backdoor Attacks with Promptable Subgraph Triggers (CP-GBA), a new transferable graph backdoor attack that employs graph prompt learning (GPL) to train a set of universal subgraph triggers. CP-GBA distills a compact yet expressive trigger set and utilizes GPL to ensure effective generalization to diverse test-time paradigms. Extensive experiments show that CP-GBA achieves state-of-the-art attack success rates with significant efficiency gains.

Introduction

Graph Neural Networks (GNNs) have become essential in domains like financial fraud detection and social network analysis. However, they are susceptible to backdoor attacks, where an attacker implants a specific subgraph (trigger) into the training data. At inference time, the presence of this trigger in a target sample forces the model to output a malicious prediction.

A critical limitation of current attacks is their paradigm-specificity. Triggers designed for Graph Supervised Learning (GSL) often fail when the victim employs Graph Contrastive Learning (GCL) or Graph Prompt Learning (GPL) because different objectives map features into distinct latent spaces. CP-GBA addresses this by creating "universal" triggers that remain effective across these diverse learning paradigms.

Methodology

The CP-GBA framework consists of two main phases: Upstream Trigger Optimization and Downstream Attack Execution.

  1. Upstream (Trigger Distillation & Optimization): The process begins by distilling a Condensed Trigger Set ($\mathcal{T}$) from the target class. Using K-means clustering on subgraph embeddings, the method selects $K$ representative, feature-rich subgraphs to form a queryable repository. These triggers are then refined via bi-level optimization. The inner loop trains a surrogate classifier and graph prompts, while the outer loop updates the triggers to maximize transferability across latent representations. A stealthiness loss ensures the triggers blend into the original graph's feature distribution.
  2. Downstream (Attack Execution): During the attack, the adversary selects the most suitable trigger from the repository for a given target node based on cosine similarity. This rule-based selection ensures the trigger is both potent and naturally integrated into the node's neighborhood.
Overview of the CP-GBA framework, illustrating the transferable GPL-based optimization and cross-paradigm inference.

Experimental Evaluation and Results

The effectiveness of CP-GBA was evaluated on Cora, Pubmed, OGB-arxiv, and Facebook datasets against various defenses like edge pruning and outlier detection.

Key findings include:

  • Superior Transferability: CP-GBA consistently outperformed state-of-the-art attacks like UGBA and GTA. On the Cora dataset under the GPL paradigm, CP-GBA achieved a 99% Attack Success Rate (ASR), significantly higher than competitors in cross-paradigm settings.
  • Efficiency: By utilizing a pre-condensed repository, CP-GBA achieved an average 40.4% speedup in attack execution compared to adaptive generators.
  • Robustness: The attack maintained high ASR (often >90%) even under advanced defense mechanisms like RIGBD.
Performance comparison of CP-GBA against baselines on Pubmed and Facebook datasets, showing Average ASR vs. Log Scale Training Time.

Conclusion

CP-GBA introduces the first cross-paradigm graph backdoor attack by leveraging Graph Prompt Learning to optimize a repository of subgraph triggers. While currently requiring gray-box access to training data, it demonstrates remarkable transferability and efficiency. Future work will explore zero-data scenarios and cross-task attacks, such as moving from node classification to link prediction.

Summary updated

Abstract

Graph Neural Networks(GNNs) are vulnerable to backdoor attacks, where adversaries implant malicious triggers to manipulate model predictions. Existing trigger generators are often simplistic in structure and overly reliant on specific features, confining them to a single graph learning paradigm, such as graph supervised learning, graph contrastive learning, or graph prompt learning. This specialized design, which aligns the trigger with one learning objective, results in poor transferability when applied to other learning paradigms. For instance, triggers generated for the graph supervised learning paradigm perform poorly when tested within graph contrastive learning or graph prompt learning environments. Furthermore, these simple generators often fail to utilize complex structural information or node diversity within the graph data. These constraints limit the attack success rates of such methods in general testing scenarios. Therefore, to address these limitations, we propose Cross-Paradigm Graph Backdoor Attacks with Promptable Subgraph Triggers(CP-GBA), a new transferable graph backdoor attack that employs graph prompt learning(GPL) to train a set of universal subgraph triggers. First, we distill a compact yet expressive trigger set from target graphs, which is structured as a queryable repository, by jointly enforcing class-awareness, feature richness, and structural fidelity. Second, we conduct the first exploration of the theoretical transferability of GPL to train these triggers under prompt-based objectives, enabling effective generalization to diverse and unseen test-time paradigms. Extensive experiments across multiple real-world datasets and defense scenarios show that CP-GBA achieves state-of-the-art attack success rates.
BibTeX
@misc{liu2025cross,
  author = {Dongyi Liu and Jiangtong Li and Dawei Cheng and Changjun Jiang},
  title = {{Cross-Paradigm Graph Backdoor Attacks with Promptable Subgraph Triggers}},
  year = {2025},
  eprint = {2510.22555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.22555},
}

Loading related content...

Figure