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
Alibaba Group · Tsinghua University
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 |
|---|---|---|---|
| classify early-layer hidden states with weak classifiers (SVM/MLP) | LLM hidden states · malicious vs normal inputs | classification accuracy: embed ~random -> >95% after early layers | Improved |
| compare base (unaligned) models with chat models for weak classification | Llama/Mistral/Vicuna/Falcon · malicious vs normal inputs | classification accuracy | No clear effect |
| use higher Top-5 Intermediate Consistency | aligned models · malicious and jailbreak inputs | attack success rate: correlation -0.516 (malicious), -0.810 (jailbreak) | Improved |
| apply Logit Grafting at layer 23 on malicious inputs | Llama-2-7b-chat · malicious inputs | attack success rate: 0.0000 -> 0.0172 | Hurt |
| apply Logit Grafting on malicious inputs | Vicuna-7b-v1.5 · malicious inputs | attack success rate: 0.1139 -> 0.7877 | Hurt |
| apply Logit Grafting on malicious inputs | Mistral-7b-Instruct-v0.2 · malicious inputs | attack success rate: 0.0725 -> 0.3969 | Hurt |
| apply Logit Grafting to jailbreak inputs | Llama-2-7b-chat · jailbreak inputs | attack success rate: 0.0466 -> 0.2075 | Hurt |
| apply Logit Grafting to jailbreak inputs | Vicuna-7b-v1.5 · jailbreak inputs | attack success rate: 0.6532 -> 0.9065 | Hurt |
| Logit Grafting vs jailbreak on malicious inputs | Mistral-7b-Instruct-v0.1 · malicious inputs | attack success rate: 0.7296 -> 0.8150 | Hurt |
| shuffle normal-input labels (control for overfitting) (ablation) | weak classifiers · random labels | accuracy: near 0.5 without chat format | No 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?
- Safety is tested in English or a few languages only. · 30 papers state it
- Results come from a few open models, mostly small or mid-sized. · 26 papers state it
- Scores depend on an LLM judge that may be biased. · 23 papers state it
Closest papers by meaning
- Safety Alignment Should be Made More Than Just a Few Tokens Deep (ICLR 2025 · similarity 0.91)
- The Hidden Dimensions of LLM Alignment: A Multi-Dimensional Analysis of Orthogonal Safety Directions (ICML 2025 · similarity 0.91)
- Playing the Fool: Jailbreaking LLMs and Multimodal LLMs with Out-of-Distribution Strategy (CVPR 2025 · similarity 0.91)
- CodeMimicry: Exploiting Safety Generalization Lag in Large Language Models via Structured Code Completion (NeurIPS 2026 · similarity 0.91)
- Lifelong Safety Alignment for Language Models (NeurIPS 2025 · similarity 0.90)
- Fail-Closed Alignment for Large Language Models (NeurIPS 2026 · 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.