atlas

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

Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Jailbreak attacks and defenses · 11 citations (OpenAlex)

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Remove the system prompt (ablation)Open-source LLMs · OurDataASR: 0% to more than 95%Helped
Vary temperature, Top-K, and Top-p decoding and select the highest-scoring responseOpen-source LLMs · OurDataASR: 95%Helped
Sample multiple times per decoding configuration (ablation)LLaMA2-chat · OurDataASR: 95%Helped
Add length penalty during decoding (ablation)LLaMA2-7B · OurDataASR: 83% to 92%Helped
Add bad-word constraints (ablation)LLaMA2-7B · OurDataASR: 89% to 93%Helped
Add forced-word constraints (ablation)LLaMA2-7B · OurDataASR: 93% to 100%Helped
Align on examples sampled from diverse decoding configurations instead of fixed-decoding examples (ablation)LLaMA2-7B · OurData, attacker varied allASR: 88 to 69Helped
Vary decoding strategies instead of using GCGLLaMA2-chat · OurData, classifierASR: 42 to 95Helped
Vary decoding strategies instead of using GCGLLaMA2-13B-chat · AdvBench first 100, classifierASR: 31 to 89Helped
Vary decoding configurations rather than use default decodinggpt-3.5-turbo · OurDataASR: 0 to 7Helped
Remove the system prompt (ablation)LLaMA2-7B-chat · OurData, greedy decodingASR: 0 to 16Helped
Remove the system prompt (ablation)LLaMA2-13B-chat · OurData, greedy decodingASR: 0 to 8Helped

Surprising findings

Limitations

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

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