scimeatlas

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

EMNLP 2024Large language models › Instruction and fine-tuningapproach: Safety alignment after fine-tuningopen problems in this approach122 citations (OpenAlex)

Singapore Management University · National University of Singapore

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

12measured effects
4improved
2no clear effect
5hurt
1mixed

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply LEDMistral-7B · AdvBench jailbreak attacksASR: 100% -> 13.1% (DeepInception)Improved
apply LEDLlama2-7B · AdvBench jailbreak attacksASR: GCG 43.3% -> 0%; AutoDAN 26.5% -> 0%Improved
apply LEDMistral-7B · MT-Benchscore: 7.26 -> 7.08Hurt
apply LEDLlama2-7B · MT-Benchscore: 6.55 -> 6.48Hurt
replace LED with SafeDecodingMistral-7B · MT-Benchscore: 7.08 -> 6.89Hurt
edit a single early layer (4) instead of none (ablation)Mistral-7B · PAIRASR: 85.0% -> 12.3%Improved
edit a single late layer (26) (ablation)Mistral-7B · PAIRASR: 85.0% -> 78.4%No clear effect
edit only safety layers 2-9 (ablation)Mistral-7B · MT-Benchscore: 7.08 -> 6.64Hurt
add middle layers 13-15 to safety layers (ablation)Mistral-7B · MT-Benchscore: 6.64 -> 7.08Improved
add late layers 26-28 to safety layers (ablation)Mistral-7B · PAIR/AutoDAN/GPTFuzzer/DeepInceptionASR: PAIR 8.1% -> 13.4%Hurt
LoRA fine-tuning only safety layers instead of editing (ablation)Mistral-7B · jailbreak attacksASRNo clear effect
use edited model for Self-Examination (ablation)Mistral-7B · jailbreak attacksASRMixed

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.

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?

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