scimeatlas

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

How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden States

Zhenhong Zhou, Haiyang Yu, Xinghua Zhang, Rongwu Xu, Fei Huang, Yongbin Li

EMNLP 2024Large language models › Language, safety and interpretabilityapproach: Safety alignment of LLMsopen problems in this approach160 citations (OpenAlex)

Alibaba Group · Tsinghua University

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

10measured effects
2improved
2no clear effect
6hurt

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
classify early-layer hidden states with weak classifiers (SVM/MLP)LLM hidden states · malicious vs normal inputsclassification accuracy: embed ~random -> >95% after early layersImproved
compare base (unaligned) models with chat models for weak classificationLlama/Mistral/Vicuna/Falcon · malicious vs normal inputsclassification accuracyNo clear effect
use higher Top-5 Intermediate Consistencyaligned models · malicious and jailbreak inputsattack success rate: correlation -0.516 (malicious), -0.810 (jailbreak)Improved
apply Logit Grafting at layer 23 on malicious inputsLlama-2-7b-chat · malicious inputsattack success rate: 0.0000 -> 0.0172Hurt
apply Logit Grafting on malicious inputsVicuna-7b-v1.5 · malicious inputsattack success rate: 0.1139 -> 0.7877Hurt
apply Logit Grafting on malicious inputsMistral-7b-Instruct-v0.2 · malicious inputsattack success rate: 0.0725 -> 0.3969Hurt
apply Logit Grafting to jailbreak inputsLlama-2-7b-chat · jailbreak inputsattack success rate: 0.0466 -> 0.2075Hurt
apply Logit Grafting to jailbreak inputsVicuna-7b-v1.5 · jailbreak inputsattack success rate: 0.6532 -> 0.9065Hurt
Logit Grafting vs jailbreak on malicious inputsMistral-7b-Instruct-v0.1 · malicious inputsattack success rate: 0.7296 -> 0.8150Hurt
shuffle normal-input labels (control for overfitting) (ablation)weak classifiers · random labelsaccuracy: near 0.5 without chat formatNo clear effect

Open problems in safety alignment of LLMs

How can LLM safety be shown to hold across languages, multi-turn use and models beyond small open ones?

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