Research map / Large language models / Instruction and fine-tuning
Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing
Wei Zhao, Zhe Li, Yige Li, Ye Zhang, Jun Sun
Singapore Management University · National University of Singapore
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.
On benchmark leaderboards
- MT-Bench leaderboard score 7.08 · rank 67 of 127 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply LED | Mistral-7B · AdvBench jailbreak attacks | ASR: 100% -> 13.1% (DeepInception) | Improved |
| apply LED | Llama2-7B · AdvBench jailbreak attacks | ASR: GCG 43.3% -> 0%; AutoDAN 26.5% -> 0% | Improved |
| apply LED | Mistral-7B · MT-Bench | score: 7.26 -> 7.08 | Hurt |
| apply LED | Llama2-7B · MT-Bench | score: 6.55 -> 6.48 | Hurt |
| replace LED with SafeDecoding | Mistral-7B · MT-Bench | score: 7.08 -> 6.89 | Hurt |
| edit a single early layer (4) instead of none (ablation) | Mistral-7B · PAIR | ASR: 85.0% -> 12.3% | Improved |
| edit a single late layer (26) (ablation) | Mistral-7B · PAIR | ASR: 85.0% -> 78.4% | No clear effect |
| edit only safety layers 2-9 (ablation) | Mistral-7B · MT-Bench | score: 7.08 -> 6.64 | Hurt |
| add middle layers 13-15 to safety layers (ablation) | Mistral-7B · MT-Bench | score: 6.64 -> 7.08 | Improved |
| add late layers 26-28 to safety layers (ablation) | Mistral-7B · PAIR/AutoDAN/GPTFuzzer/DeepInception | ASR: PAIR 8.1% -> 13.4% | Hurt |
| LoRA fine-tuning only safety layers instead of editing (ablation) | Mistral-7B · jailbreak attacks | ASR | No clear effect |
| use edited model for Self-Examination (ablation) | Mistral-7B · jailbreak attacks | ASR | Mixed |
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.
- SafeDecoding — SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding (ACL 2024) · better on 7 of 7 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 safety alignment after fine-tuning
Do safety defenses against harmful fine-tuning hold on larger models and against adaptive attacks?
- Larger models were not tested, mostly for lack of compute. · 27 papers state it
- Defenses are tested against few attacks and not against adaptive ones. · 15 papers state it
- Safety is scored by one LLM judge or classifier that may be biased. · 15 papers state it
Closest papers by meaning
- JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models (NeurIPS 2024 · similarity 0.92)
- Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation (ICLR 2024 · similarity 0.92)
- Immune: Improving Safety Against Jailbreaks in Multi-modal LLMs via Inference-Time Alignment (CVPR 2025 · similarity 0.92)
- JailPO: A Novel Black-Box Jailbreak Framework via Preference Optimization Against Aligned LLMs (AAAI 2025 · similarity 0.92)
- One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMs (ICLR 2025 · similarity 0.92)
- Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attacks (NeurIPS 2024 · similarity 0.92)
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.