Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learning
Shuai Zhao, Meihuizi Jia, Luu Anh Tuan, Fengjun Pan, Jinming Wen

TL;DR
This paper reveals security vulnerabilities in in-context learning for large language models, introducing ICLAttack, a backdoor method that manipulates model behavior without fine-tuning, demonstrated across multiple models with high success rates.
Contribution
The paper introduces ICLAttack, a novel backdoor attack method targeting in-context learning in large language models, without requiring model fine-tuning.
Findings
High attack success rate of 95% across models and datasets
Effective manipulation of model behavior via poisoned demonstration contexts
Stealthy attack method with correctly labeled poisoned examples
Abstract
In-context learning, a paradigm bridging the gap between pre-training and fine-tuning, has demonstrated high efficacy in several NLP tasks, especially in few-shot settings. Despite being widely applied, in-context learning is vulnerable to malicious attacks. In this work, we raise security concerns regarding this paradigm. Our studies demonstrate that an attacker can manipulate the behavior of large language models by poisoning the demonstration context, without the need for fine-tuning the model. Specifically, we design a new backdoor attack method, named ICLAttack, to target large language models based on in-context learning. Our method encompasses two types of attacks: poisoning demonstration examples and poisoning demonstration prompts, which can make models behave in alignment with predefined intentions. ICLAttack does not require additional fine-tuning to implant a backdoor, thus…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Topic Modeling · Interpreting and Communication in Healthcare
MethodsOPT
