Reproduce “Backdoor Attacks for In-Context Learning with Language Models” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Nikhil Kandpal, Matthew Jagielski, Florian Tramèr, Nicholas Carlini
Researchers from UNC Chapel Hill, Google DeepMind, and ETH Zurich introduce and demonstrate backdoor attacks targeting the in-context learning capabilities of large language models, achieving near 100% attack success rates on triggered inputs while preserving the models' normal performance. The study reveals these backdoors are more robust in larger models and can be efficiently removed with limited fine-tuning on clean data.
Key insights
- ICL backdoors are feasible, achieving high attack success rates with minimal degradation to clean data accuracy or performance on auxiliary tasks.
- Larger LLMs exhibit significantly more robust backdoors that generalize better across unseen prompt formats and label functions compared to smaller models.
- Optimizing prompts for high clean data accuracy inadvertently increases the effectiveness of hidden backdoors, making detection via performance anomalies difficult.
- Fine-tuning backdoored models on clean language modeling corpora for a minimal number of steps (e.g., 500) effectively removes the backdoor in white-box settings.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.