scimeatlas

Research map / Large language models / Language, safety and interpretability

A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models

Zihao Xu, Yi Liu, Gelei Deng, Yuekang Li, Stjepan Picek

ACL 2024Large language models › Language, safety and interpretabilityapproach: Jailbreak attacks and defensesopen problems in this approach338 citations (OpenAlex)

University of New South Wales · Delft University of Technology · Nanyang Technological University · Radboud University

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
5improved
3no clear effect
3hurt
2mixed

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 changedWhereMeasuredEffect
omit the special token [/INST] from the prompt (ablation)78 templates attack on Llama-2-7B · Llama-2-7B jailbreakASR: 83.33% -> 100.00%Improved
omit [/INST] from the prompt (ablation)78 templates attack on Llama-2-7B · Llama-2-7B jailbreakefficiency: 3.3% -> 13.94%Improved
omit [/INST] for role-play templates (APOPHIS, BasedBOB) (ablation)78 templates attack on Llama-2-7B · Llama-2-7B jailbreaksuccessful attempts: APOPHIS 96 -> 56; BasedBOB 58 -> 35Hurt
omit [/INST] for Text Continuation template (ablation)78 templates attack on Llama-2-7B · Llama-2-7B jailbreaksuccessful attempts: 0 -> 274Improved
use template-based attacks instead of white-box gradient attacksLlama-2-7B · Llama-2-7B jailbreakASR: Jailbroken 100% vs GCG 28.33% and AutoDAN 13.33%Improved
use GCG with more iterations (500 vs 75) on Llama-2 (ablation)GCG · Llama-2-7B jailbreakASRMixed
apply Bergeron defenseLlama-2-7B · jailbreak defenseaverage DPR: 10.80% average DPR, BSR 98.51%Improved
apply llm-guard defenseLlama-2-7B · jailbreak defenseaverage DPR: 48.52% average DPRNo clear effect
apply Aegis defenseLlama-2-7B · jailbreak defensebenign success rate: BSR 0.00% (0/805)Hurt
apply OpenAI ModerationAPI defenseLlama-2-7B · jailbreak defenseaverage DPR: 81.74% average DPRNo clear effect
apply SmoothLLM or RA-LLM defense (input permutation)Llama-2-7B · jailbreak defenseaverage DPR: 33.86% (SmoothLLM), 38.12% (RA-LLM)No clear effect
compare Llama-2-7B to Vicuna-v1.5-7B as target of GCGGCG · jailbreakASR: 55.00% (Vicuna) -> 28.33% (Llama-2)Hurt

Open problems this paper states

Open problems in jailbreak attacks and defenses

How can jailbreak attacks and defenses be tested on real deployed models, in more languages, with judges that can be trusted?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy