TARGET: Template-Transferable Backdoor Attack Against Prompt-based NLP Models via GPT4
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Prompt-based learning has been widely applied in many low-resource NLP tasks such as few-shot scenarios. However, this paradigm has been shown to be vulnerable to backdoor attacks. Most of the existing attack methods focus on inserting manually predefined templates as triggers in the pre-training phase to train the victim model and utilize the same triggers in the downstream task to perform inference, which tends to ignore the transferability and stealthiness of the templates. In this work, we propose a novel approach of TARGET (Template-trAnsfeRable backdoor attack aGainst prompt-basEd NLP models via GPT4), which is a data-independent attack method. Specifically, we first utilize GPT4 to reformulate manual templates to generate tone-strong and normal templates, and the former are injected into the model as a backdoor trigger in the pre-training phase. Then, we not only directly employ the above templates in the downstream task, but also use GPT4 to generate templates with similar tone to the above templates to carry out transferable attacks. Finally we have conducted extensive experiments on five NLP datasets and three BERT series models, with experimental results justifying that our TARGET method has better attack performance and stealthiness compared to the two-external baseline methods on direct attacks, and in addition achieves satisfactory attack capability in the unseen tone-similar templates.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 27 of its 35 references that are in the map. First posted on arXiv 29 Nov 2023.
Builds on
27 of 35 references.
Closest ancestors · 5
Same direction, newest first
- 2023Backdoor Attacks and Countermeasures in Natural Language Processing Models: A Comprehensive Security Review12 Sep
- 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Models2 May
- 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
- 2021Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution11 Jun
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
Other references · 22
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 689
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 669
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 341
10 more
- 2021PTR: Prompt Tuning with Rules for Text Classificationcited by 238
- 2022Exploring Length Generalization in Large Language Modelscited by 206
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 165
- 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
- 2021Differentiable Prompt Makes Pre-trained Language Models Better Few-shot Learnerscited by 115
- 2021Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoningcited by 113
- 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLPcited by 102
- 2022Exploring the Universal Vulnerability of Prompt-based Learning Paradigmcited by 57
- 2022PromptAttack: Prompt-based Attack for Language Models via Gradient Searchcited by 15
- 2023COVER: A Heuristic Greedy Adversarial Attack on Prompt-based Learning in Language Modelscited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 1.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2022BadPrompt: Backdoor Attacks on Continuous Prompts
- 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Models
- 2023NOTABLE: Transferable Backdoor Attacks Against Prompt-based NLP Models
- 2024PromptFix: Few-shot Backdoor Removal via Adversarial Prompt Tuning
- 2023PoisonPrompt: Backdoor Attack on Prompt-based Large Language Models
- 2026BadTemplate: A Training-Free Backdoor Attack via Chat Template Against Large Language Models
- 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Trigger
- 2022BITE: Textual Backdoor Attacks with Iterative Trigger Injection