Research map / Large language models / Language, safety and interpretability
Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Shows that simply varying decoding hyperparameters and sampling methods (and removing the system prompt) raises misalignment rates of open-source LLMs from near 0% to over 95%, and proposes generation-aware alignment as a partial defense.
Problem
Open-source LLMs that were safety-aligned before release can be jailbroken; safety evaluations typically use a single fixed default decoding configuration, which may underestimate risk.
Approach
A "generation exploitation" attack that needs no adversarial prompt optimization: it sweeps generation configurations (removing the system prompt, varying temperature, top-K, top-p), then uses a classifier-based scorer to pick the most misaligned response. A complementary generation-aware alignment method fine-tunes on aligned and misaligned outputs collected across decoding strategies.
Key results
- Varying decoding configurations raises ASR on LLaMA2-7B from 14% (greedy with system prompt) to 97% across the full sweep; 9 of 11 models reach at least 95% ASR.
- On LLaMA2-13B-chat, the attack reaches 98% ASR on AdvBench (substring metric) versus 38% for GCG, at roughly 30x lower compute.
- Generation-aware alignment reduces the attack ASR on LLaMA2-7B from 95% to 69%, compared with 88% for fixed-decoding alignment.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Remove the system prompt (ablation) | Open-source LLMs · OurData | ASR: 0% to more than 95% | Helped |
| Vary temperature, Top-K, and Top-p decoding and select the highest-scoring response | Open-source LLMs · OurData | ASR: 95% | Helped |
| Sample multiple times per decoding configuration (ablation) | LLaMA2-chat · OurData | ASR: 95% | Helped |
| Add length penalty during decoding (ablation) | LLaMA2-7B · OurData | ASR: 83% to 92% | Helped |
| Add bad-word constraints (ablation) | LLaMA2-7B · OurData | ASR: 89% to 93% | Helped |
| Add forced-word constraints (ablation) | LLaMA2-7B · OurData | ASR: 93% to 100% | Helped |
| Align on examples sampled from diverse decoding configurations instead of fixed-decoding examples (ablation) | LLaMA2-7B · OurData, attacker varied all | ASR: 88 to 69 | Helped |
| Vary decoding strategies instead of using GCG | LLaMA2-chat · OurData, classifier | ASR: 42 to 95 | Helped |
| Vary decoding strategies instead of using GCG | LLaMA2-13B-chat · AdvBench first 100, classifier | ASR: 31 to 89 | Helped |
| Vary decoding configurations rather than use default decoding | gpt-3.5-turbo · OurData | ASR: 0 to 7 | Helped |
| Remove the system prompt (ablation) | LLaMA2-7B-chat · OurData, greedy decoding | ASR: 0 to 16 | Helped |
| Remove the system prompt (ablation) | LLaMA2-13B-chat · OurData, greedy decoding | ASR: 0 to 8 | Helped |
Surprising findings
- Removing the system prompt alone raises ASR on LLaMA2-chat models from 0% to 8-16% under greedy decoding, and sampling variations push it much higher.
- Attacks on gpt-3.5-turbo reach only 7% ASR, far below open-source models.
Limitations
- The harmfulness metric is judged by a substring-free classifier trained on HH-RLHF with only 92% human agreement, and the paper calls for better automatic harmfulness metrics.
- The attack assumes the attacker has a scorer trained on the aligned and misaligned output distribution.
- Refined alignment experiments are only run on LLaMA2-7B and the appended "An aligned answer:" string is a simulation device.
Experimental setup
Datasets: AdvBench HH-RLHF
Benchmarks: AdvBench MaliciousInstruct
Metrics: attack success rate harmfulness percentage
Baselines: GCG substring matching evaluation fixed-decoding alignment
Builds on: GCG chain of hindsight context distillation
Closest papers by meaning
- Weak-to-Strong Jailbreaking on Large Language Models (ICML 2025 · similarity 0.92)
- JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models (NeurIPS 2024 · similarity 0.91)
- Playing the Fool: Jailbreaking LLMs and Multimodal LLMs with Out-of-Distribution Strategy (CVPR 2025 · similarity 0.91)
- Understanding and Enhancing the Transferability of Jailbreaking Attacks (ICLR 2025 · similarity 0.90)
- One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMs (ICLR 2025 · similarity 0.90)
- Adversarial Reasoning at Jailbreaking Time (ICML 2025 · 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.
