Abstract
Graph Prompt Learning (GPL) has emerged as a powerful paradigm for adapting pretrained Graph Neural Networks (GNNs) to diverse downstream tasks. However, this "pretrain-then-prompt" pipeline introduces a critical security vulnerability: cross-context backdoor attacks. This paper presents CrossBA, a novel attack framework that implants "hidden triggers" during the unsupervised pretraining phase. Unlike traditional attacks, CrossBA requires no knowledge of the downstream task or dataset, yet remains highly effective and stealthy across various applications, achieving success rates often reaching 100%.
Introduction: The Vulnerability of Graph Prompt Learning
Graph Neural Networks often struggle with domain transfer—for instance, a model trained on social networks might fail when applied to academic citation graphs. Graph Prompt Learning (GPL) addresses this by pretraining a GNN on large-scale unlabeled data and using task-specific "prompts" to guide the model toward a specific downstream task without retraining the entire network.
While efficient, this workflow allows an attacker to compromise the pretraining phase. In a "cross-context" scenario, the attacker does not know if the model will eventually perform node classification, graph classification, or operate in a different domain (e.g., moving from e-commerce to academic citations). CrossBA investigates how a backdoor can "hitchhike" through the prompt learning process to remain effective across diverse, unknown applications.
Methodology: The CrossBA Framework
CrossBA employs a sophisticated alternating optimization strategy to ensure the backdoor is both robust and stealthy. The attack focuses on four main components:
- Feature Collision: The attack forces the GNN to map any graph containing a specific trigger to a target embedding, creating a latent space "collision" where backdoored inputs are indistinguishable from the target.
- Trigger Optimization: Rather than using a fixed subgraph, CrossBA optimizes the features of the trigger nodes to align with the GNN's loss landscape, enhancing survival during downstream task adaptation.
- Stealth via Homophily: To bypass security checks, a "node feature affinity loss" ensures trigger nodes appear as natural neighbors to their host nodes, evading defenses that look for outlier features.
- Embedding Alignment: The model is trained to ensure high performance on clean data, maintaining stealth by preventing noticeable utility drops.
Experimental Evaluation
The effectiveness of CrossBA was evaluated on five benchmark datasets: CiteSeer, Cora, Amazon-Computers, Amazon-Photo, and ENZYMES. The researchers tested five "cross-context" scenarios, including cross-task (e.g., pretraining on graph classification for node classification deployment) and cross-domain (e.g., e-commerce to citation networks) transitions.
Key Results and Insights
CrossBA demonstrates significant advantages over existing graph backdoor methods like GCBA:
- High Success and Stealth: CrossBA consistently achieves an Attack Success Rate (ASR) above 0.85, while maintaining a negligible Accuracy Drop (AD) on clean data (typically < 0.06).
- Robustness to Defense: While standard graph defenses like PruneG significantly degrade baseline attacks (dropping ASR below 0.50), CrossBA maintains an ASR above 0.70 by optimizing trigger nodes to blend into their local graph structure.
- The Prompt as a Vehicle: A key finding is that the prompt mechanism, designed to help models generalize, inadvertently assists the backdoor in generalizing across contexts.
Conclusion
CrossBA reveals a fundamental security flaw in the Graph Prompt Learning paradigm. By optimizing triggers to be context-agnostic and stealthy, attackers can compromise GNNs during pretraining without knowing their ultimate use case. As "Graph-LLMs" become more common, understanding how backdoors transfer through text-based prompts will be a critical next step for graph security.
Summary updated