Are You Using Reliable Graph Prompts? Trojan Prompt Attacks on Graph Neural Networks

Minhua Lin, Zhiwei Zhang, Enyan Dai, Zongyu Wu, Yilong Wang +2 more
10/17/2024
cs.LGcs.CR

No official code found. Best implementation: ventr1c/TPGA (2 stars, last commit 2025-05-29).

Abstract

Graph Prompt Learning (GPL) has been introduced as a promising approach that uses prompts to adapt pre-trained GNN models to specific downstream tasks without requiring fine-tuning of the entire model. Despite the advantages of GPL, little attention has been given to its vulnerability to backdoor attacks, where an adversary can manipulate the model's behavior by embedding hidden triggers. Existing graph backdoor attacks rely on modifying model parameters during training, but this approach is impractical in GPL as GNN encoder parameters are frozen after pre-training. Moreover, downstream users may fine-tune their own task models on clean datasets, further complicating the attack. In this paper, we propose TGPA, a backdoor attack framework designed specifically for GPL. TGPA injects backdoors into graph prompts without modifying pre-trained GNN encoders and ensures high attack success rates and clean accuracy. To address the challenge of model fine-tuning by users, we introduce a finetuning-resistant poisoning approach that maintains the effectiveness of the backdoor even after downstream model adjustments. Extensive experiments on multiple datasets under various settings demonstrate the effectiveness of TGPA in compromising GPL models with fixed GNN encoders.

View on arXivView PDF

Code Implementations(1)

ventr1c/TPGACommunity65%

PyTorch implementation of "Are You Using Reliable Graph Prompts? Trojan Prompt Attacks on Graph Neural Networks" (KDD 2025)

20Shell, PythonMay 29, 20251 years ago

Similar Papers

Cite this paper

@article{lin2024using,
  title  = {Are You Using Reliable Graph Prompts? Trojan Prompt Attacks on Graph Neural Networks},
  author = {Minhua Lin and Zhiwei Zhang and Enyan Dai and Zongyu Wu and Yilong Wang and Xiang Zhang and Suhang Wang},
  year   = {2024},
  eprint = {2410.13974},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.13974v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.13974.svg)](https://codeofpaper.com/paper/2410.13974)

Discussion