Research map / Adversarial robustness and security / Attacks on text and graphs
Defending LLMs against Jailbreak Attacks via Template-Based ICL with a Defensive Suffix
Ruiyang Ni, Changlong Li, Shuaibiao Han, Zhiyu Yi, Peipei Xu, Wenjie Ruan
University of Science and Technology of China · University of Dundee
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 defensive suffix to ICL template (ablation) | template-based ICL (Vicuna-7b) · AdvBench I-GCG | ASR: 60% -> 2% | Improved |
| add template-based ICL demonstrations to defensive suffix (ablation) | defensive suffix (Vicuna-7b) · AdvBench I-GCG | ASR: 40% -> 2% | Improved |
| add defensive suffix to ICL (ablation) | template-based ICL (Vicuna-7b) · AdvBench PAIR | ASR: 32% -> 8% | Improved |
| add ICL demonstrations to defensive suffix (ablation) | defensive suffix (Vicuna-7b) · AdvBench PAIR | ASR: 42% -> 8% | Improved |
| apply proposed defense | GPT-3.5-turbo · black-box attacks average | ASR: 31.6% -> 3.8% | Improved |
| apply proposed defense versus PAT | Vicuna-7b · AdvBench average | ASR: 25% -> 9% | Improved |
| proposed defense on Llama-2-7b under adaptive attack | Llama-2-7b · adaptive I-GCG | ASR: 96% -> 52% | Improved |
| apply proposed defense on benign prompts | Vicuna-13b · MT-bench | score: 6.57 -> 5.87 | Hurt |
| apply proposed defense on benign prompts | Vicuna-7b · MMLU | accuracy (%): 49.8 -> 49.4 | No clear effect |
| apply proposed defense | Llama-2-7b · XSTest | full refusal rate: 39.2% -> 41.6% | Hurt |
| increase alpha (utility weight) in training loss (ablation) | defensive suffix · AdvBench / MMLU | ASR and MMLU | Mixed |
| increase number of ICL shots (ablation) | template-based ICL · defense performance | ASR | No clear effect |
Open problems in LLM jailbreak and prompt injection defense
Which defenses against jailbreaks and prompt injection hold up, and what do they cost in usefulness?
- Adaptive attacks are not ruled out. · 8 papers state it
- Attack success does not carry over between target models. · 7 papers state it
- Strong attacks still need white-box access. · 6 papers state it
Closest papers by meaning
- A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models (ACL 2024 · similarity 0.92)
- Defensive Prompt Patch: A Robust and Generalizable Defense of Large Language Models against Jailbreak Attacks (ACL 2025 · similarity 0.92)
- From Attack Surfaces to Actual Operations: A Survey of Modern LLM Jailbreaks (ACL 2026 · similarity 0.91)
- One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMs (ICLR 2025 · similarity 0.90)
- h4rm3l: A Language for Composable Jailbreak Attack Synthesis (ICLR 2025 · similarity 0.90)
- Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs (NeurIPS 2024 · 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.