atlas

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

Jailbreaking Large Language Models Against Moderation Guardrails via Cipher Characters

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Jailbreak attacks and defenses · 5 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.

Introduces JAMBench, a 160-question benchmark that triggers OpenAI moderation guardrails, and JAM, a jailbreak that combines GUARD-optimized prefixes with cipher-character output formatting guided by a fine-tuned toxic-bert shadow model.

Problem

Existing jailbreak benchmarks rarely include questions that trigger output-level moderation guardrails (filtered-out errors), so jailbreak effectiveness against such guardrails is under-evaluated.

Approach

Fine-tune a toxic-bert shadow model to mimic OpenAI's moderation scores, then optimize cipher characters interleaved around each word in the response format to lower harm scores, combined with GUARD jailbreak prefixes so outputs bypass both input and output filters; a string-match decoder recovers the text.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
combine jailbreak prefixes, optimized cipher characters, and harmful instructionsJAM · JAMBenchjailbreak success rate: 3.78% -> 75.17%Helped
combine jailbreak prefixes, optimized cipher characters, and harmful instructionsJAM · JAMBenchfiltered-out rate: 54.76% -> 10.21%Helped
add a jailbreak prefix (ablation)JAM on GPT-3.5 · JAMBench / Hate and Fairness Mediumjailbreak success rate: 26% -> 83%Helped
use a GUARD-generated prefix instead of a DAN 12.0 prefix (ablation)JAM on GPT-3.5 · JAMBench / Hate and Fairness Mediumjailbreak success rate: 54% -> 83%Helped
fine-tune the shadow model (ablation)JAM on GPT-3.5 · JAMBench / Hate and Fairness Mediumjailbreak success rate: 69% -> 83%Helped
fine-tune the shadow model (ablation)JAM on GPT-3.5 · JAMBench / Hate and Fairness Mediumfiltered-out rate: 12% -> 4%Helped
increase cipher length from 10 to 20 tokens (ablation)JAM on GPT-3.5 · JAMBench / Hate and Fairness Mediumjailbreak success rate: 57% -> 83%Helped
increase cipher length from 20 to 40 tokens (ablation)JAM on GPT-3.5 · JAMBench / Hate and Fairness Mediumjailbreak success rate: 83% -> 77%Hurt
add the decoder that removes cipher characters (ablation)JAM on GPT-3.5 · JAMBench / Hate and Fairness Mediumaverage harmful score: 0.012 -> 0.583Helped
add output-complexity-aware and LLM-based audit defensesJAM · various modelsjailbreak success rate: to 0%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Toxic Comment Classification Challenge In-the-Wild question set HarmBench JailbreakBench AdvBench

Benchmarks: JAMBench In-the-Wild question set HarmBench JailbreakBench

Metrics: jailbreak success rate filtered-out rate perplexity score average harmful score

Baselines: GCG ICA PAIR CipherChat GUARD

Builds on: GUARD GCG CipherChat PAIR

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