[Paper Review] Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Models
The paper introduces ProAttack, a clean-label backdoor attack that uses prompts themselves as triggers in prompt-based learning, achieving near-100% attack success in both rich-resource and few-shot settings without external triggers.
The prompt-based learning paradigm, which bridges the gap between pre-training and fine-tuning, achieves state-of-the-art performance on several NLP tasks, particularly in few-shot settings. Despite being widely applied, prompt-based learning is vulnerable to backdoor attacks. Textual backdoor attacks are designed to introduce targeted vulnerabilities into models by poisoning a subset of training samples through trigger injection and label modification. However, they suffer from flaws such as abnormal natural language expressions resulting from the trigger and incorrect labeling of poisoned samples. In this study, we propose ProAttack, a novel and efficient method for performing clean-label backdoor attacks based on the prompt, which uses the prompt itself as a trigger. Our method does not require external triggers and ensures correct labeling of poisoned samples, improving the stealthy nature of the backdoor attack. With extensive experiments on rich-resource and few-shot text classification tasks, we empirically validate ProAttack's competitive performance in textual backdoor attacks. Notably, in the rich-resource setting, ProAttack achieves state-of-the-art attack success rates in the clean-label backdoor attack benchmark without external triggers.
Motivation & Objective
- Motivate the study of backdoor vulnerabilities in prompt-based NLP systems.
- Propose a clean-label backdoor attack that uses prompts as triggers (no external triggers).
- Demonstrate the effectiveness of ProAttack across rich-resource and few-shot text classification tasks.
Proposed method
- Formulate a prompt-based clean-label backdoor attack where poisoned samples use a trigger prompt while labels are correct.
- Engineer poisoned and clean samples via Prompt Engineering to embed the trigger in the training data (PE(x, prompt_p) and PE(x, prompt_c)).
- Train a victim model on the mixed dataset to realize backdoor behavior during inference.
- Define a formal backdoor objective combining clean and poisoned losses (L = E[(x_clean', y)]+E[(x_poison', y)]; cross-entropy loss).
- Evaluate against multiple baselines and defenses across datasets (SST-2, OLID, AG’s News, COLA, MR, TREC) and models (BERT, RoBERTa, XLNet, GPT-Neo).
- Analyze feature distributions with t-SNE to understand trigger-induced separations.
Experimental results
Research questions
- RQ1Can prompts serve as backdoor triggers in prompt-based learning without external triggers?
- RQ2How effective are prompt-based clean-label backdoor attacks across rich-resource and few-shot settings?
- RQ3Do prompts alter model robustness to defense methods and detection techniques?
- RQ4What is the impact of the number of poisoned samples on clean accuracy and attack success rate?
- RQ5Do trigger prompts preserve label correctness while enabling high ASR across datasets and models?
Key findings
- ProAttack achieves nearly 100% attack success rate across several datasets and models in rich-resource settings.
- Poisoned samples with prompt-based triggers maintain clean accuracy, resulting in only minimal CA decrease while ASR remains high.
- ProAttack outperforms several poison-label and clean-label baselines and can evade defenses like ONION and SCPD in many cases.
- In few-shot settings, ProAttack achieves near-perfect ASR with GPT-Neo and remains competitive on multiple datasets.
- The attack induces distinct prompt- and victim-model feature distributions, suggesting prompts act as effective triggers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.