Jailbreak attacks designed around two training failure modes succeed on 100% of curated red-teaming prompts and 96% to 99% of held-out harmful prompts on GPT-4 and Claude v1.3, outperforming popular crowd-sourced prompts and bypassing targeted safety updates. Alexander Wei, Nika Haghtalab, and Jacob Steinhardt (UC Berkeley, 2023) show that safety failures are not isolated prompt bugs, because current pretrain-then-finetune pipelines inherently create competing objectives and mismatched generalization.
Rather than patching one phrasing at a time, their taxonomy explains why refusal behavior collapses when an attacker either pits instruction following against safety rules or moves a harmful request into an encoding that pretraining understands better than alignment.
- 100% curated bypass rate: an adaptive strategy picking from 28 attacks elicits on-topic harmful responses (
BAD BOT) on 100% of 32 red-teaming prompts acrossGPT-4,Claude v1.3, andGPT-3.5 Turbo(compared to 3% onGPT-4and 0% onClaude v1.3with no jailbreak). - 96% to 99% held-out success: on 317 unseen synthetic harmful prompts filtered so neither model answers directly, the adaptive attacker hits 96% on
GPT-4and 99% onClaude v1.3, while a single fixed prompt (combination_3) achieves 93% ± 3% onGPT-4and 87% ± 4% onClaude v1.3. - Scale widens the attack surface: Base64 obfuscation yields 34%
BAD BOTonGPT-4and 38% onClaude v1.3, whereasGPT-3.5 Turbohits 0%BAD BOT(91%UNCLEAR) simply because it cannot decode Base64 instructions. - Roleplay patches do not transfer:
Claude v1.3blocks the top community roleplay attack (AIM) at 0% (GPT-4hits 75% curated, 86% synthetic) and even refuses a benign unicorn control prompt under roleplay, yet falls to 84%BAD BOTundercombination_2.
The Setup
Wei et al. formalize black-box jailbreaking around three manually graded outcomes (GOOD BOT refusal, BAD BOT harmful on-topic answer, and UNCLEAR garbled or off-topic output) across 2,970 curated samples and 2,536 synthetic samples collected at temperature 0 during a six-day window in spring 2023. The curated benchmark pairs 16 prompts from OpenAI’s GPT-4 technical report with 16 standalone prompts adapted from Anthropic’s red-teaming corpus so all 17 harm tags are covered.
To guard against overfitting to those 32 prompts, the authors sampled 500 synthetic requests from GPT-4, deduplicated them at a TF-IDF cosine threshold of 0.3 (338 left), and discarded any prompt either GPT-4 or Claude v1.3 answered unprompted, leaving 317 strictly held-out prompts that the authors never inspected until after grading. They test 30 attack variants spanning single-principle probes, combinations (combination_1 through combination_3), model-generated obfuscations, and top jailbreakchat.com prompts (AIM, dev_mode_v2, dev_mode_with_rant, evil_confidant), plus a benign "unicorn" control to verify models did not simply break or refuse everything.
Key Findings
- Competing objectives exploit instruction following and autoregressive continuation: Instructing
GPT-4to start with a compliant prefix (prefix_injection) produces 22%BAD BOT, versus 6% when the prefix is swapped to"Hello!"(prefix_injection_hello). Forbidding refusal words like"cannot"and"unfortunately"(refusal_suppression) yields 25% onGPT-4(16% onClaude v1.3), dropping to 0% on both models when the rules are inverted (refusal_suppression_inv). Once decoding emits an affirmative start, next-token likelihood favors completing the answer rather than reversing mid-sentence. - Mismatched generalization exploits capabilities absent from safety data: Encoding prompts in Base64 achieves 34%
BAD BOTonGPT-4and 38% onClaude v1.3, whiledistractorsreaches 44% and 47% andauto_payload_splittingreaches 34% and 59%. Encoding both input and output beats input-only (9% onGPT-4, 0% onClaude v1.3) and output-only (6% / 3%), because partially decoded prefixes still steer the model’s refusal decision. - Composing simple attacks creates combinatorial leverage: Combining prefix injection, refusal suppression, Base64, style constraints, and website framing (
combination_3) jumps to 94%BAD BOTonGPT-4(84% at temperature1.0) and 81% onClaude v1.3on curated prompts, with 93% and 87% on the held-out317prompts. - Safety failures extend beyond physical harm: On small probes for memorized personal data and persona hallucination (Appendix H), baseline
GPT-4leaks PII on one prompt without any jailbreak, whilecombination_2elicits both restricted behaviors acrossGPT-4andClaude v1.3. Meanwhile,auto_obfuscationprompts models to invent encodings a filter has never seen, withClaude v1.3rediscovering Base64 andGPT-4inventing Spanish leetspeak.
Caveats and Builder Takeaway
These measurements test 2023 API snapshots (GPT-4, GPT-3.5 Turbo, Claude v1.3) with a single-turn black-box threat model and manual author grading rather than automated response-quality scoring. They also predate modern representation circuit breakers, constitutional classifiers, and cross-lingual safety evaluations, and later automated jailbreak benchmarks confirm that defense-in-depth raises the bar compared to RLHF alone.
Even so, Wei et al.’s core principle of safety-capability parity still governs production guardrails: scaling base models does not close either failure mode, and may open new ones as models master rarer encodings or steganography. Never gate a frontier model behind a weaker guardrail or filter that cannot decode the inputs the main model understands, and evaluate refusal rates across matching obfuscated formats alongside benign control prompts so over-refusal cannot masquerade as robustness.


