Research map / Adversarial robustness and security / Backdoor and poisoning
Test-time Backdoor Mitigation for Black-Box Large Language Models with Defensive Demonstrations
Wenjie Jacky Mo, Jiashu Xu, Qin Liu, Jiongxiao Wang, Jun Yan, Hadi Askari, Chaowei Xiao, Muhao Chen
University of Southern California · Harvard University · University of California, Davis
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add self-reasoning (rationale) demonstrations at test time | Backdoored Llama2-7B · Trec-coarse Syntactic | ASR: 100.00 -> 0.20 | Improved |
| add rationales to demonstrations (vs random demonstrations) (ablation) | Defensive demonstrations · SST-2 BadNet | ASR: 17.28 -> 10.31 | Improved |
| use similar-sample retrieval instead of random demonstrations (ablation) | Defensive demonstrations · SST-2 BadNet | ASR: 17.28 -> 29.71 | Hurt |
| use alternative retrievers instead of SimCSE (bm25, colbert, transformer) (ablation) | Similar-sample demonstrations · Instance-level attacks | ASR | No clear effect |
| increase number of shots k from 1 to 5 (ablation) | Random defensive demonstrations · SST-2, Tweet Emotion, Trec-coarse | Delta ASR | Improved |
| shuffle demonstrations instead of class ordering (ablation) | 5-shot random demonstrations · Tweet Emotion instance-level attack | Delta ASR | Improved |
| use ONION instead of no defense | Poisoned Llama2-7B · SST-2 Syntactic | ASR: 100.00 -> 96.27 | No clear effect |
| add defensive demonstrations on instruction-level backdoor | Poisoned Flan-T5-large · Trec-coarse | ASR: 95.51 -> 0.20 (Induced Instruction) | Improved |
| add defensive demonstrations on gpt-compress instruction backdoor | Poisoned Flan-T5-large · Tweet Emotion | ASR: 82.27 -> 40.56 | Mixed |
| add defensive demonstrations on instance-level attacks | Poisoned Llama2-7B · Tweet Emotion Badnet | CACC: 82.20 -> 76.85 | Hurt |
| include demonstrations in fine-tuning when using few-shot at test time (ablation) | Poisoned Llama2-7B · Trec-coarse | CACC: 90.00 -> 97.80 | Improved |
| use indirect-ICL (task-agnostic demos) instead of task-aware random demos (ablation) | Llama3 8B · SST-2 Style | ASR: 32.02 -> 10.86 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- ONION — ONION: A Simple and Effective Defense Against Textual Backdoor Attacks (EMNLP 2021) · better on 4 of 5 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in backdoors in large multimodal models
Do backdoor attacks and defenses on language and multimodal models hold beyond white-box, small-model, single-task tests?
- Attacks and defenses need white-box or logit access, so closed APIs are not covered. · 12 papers state it
- Backdoor studies stay on classification and leave open-ended generation untested. · 7 papers state it
- Each study stays in one modality and leaves others untested. · 7 papers state it
Closest papers by meaning
- Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Models (ACL 2026 · similarity 0.92)
- Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Models (ICLR 2025 · similarity 0.91)
- ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attacks (ICML 2025 · similarity 0.91)
- BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models (NeurIPS 2025 · similarity 0.90)
- Backdoor Token Unlearning: Exposing and Defending Backdoors in Pretrained Language Models (AAAI 2025 · similarity 0.90)
- Revisiting Backdoor Attacks against Large Vision-Language Models from Domain Shift (CVPR 2025 · similarity 0.90)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.