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 across GPT-4, Claude v1.3, and GPT-3.5 Turbo (compared to 3% on GPT-4 and 0% on Claude v1.3 with 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-4 and 99% on Claude v1.3, while a single fixed prompt (combination_3) achieves 93% ± 3% on GPT-4 and 87% ± 4% on Claude v1.3.
  • Scale widens the attack surface: Base64 obfuscation yields 34% BAD BOT on GPT-4 and 38% on Claude v1.3, whereas GPT-3.5 Turbo hits 0% BAD BOT (91% UNCLEAR) simply because it cannot decode Base64 instructions.
  • Roleplay patches do not transfer: Claude v1.3 blocks the top community roleplay attack (AIM) at 0% (GPT-4 hits 75% curated, 86% synthetic) and even refuses a benign unicorn control prompt under roleplay, yet falls to 84% BAD BOT under combination_2.
Jailbreak success rate (BAD BOT) on GPT-4 and Claude v1.3 across attack families
Metric: Share of prompts producing on-topic harmful replies (temperature 0; lower is safer). Curated set = 32 red-teaming prompts; Held-out set = 317 GPT-4-generated prompts.
No jailbreak (curated)
3% / 0%
Refusal suppression (curated)
25% / 16%
Base64 encoding (curated)
34% / 38%
Community AIM (held-out)
86% / 0%
combination_3 (held-out)
93% / 87%
Adaptive best-of-28 (held-out)
96% / 99%
Right column lists GPT-4 / Claude v1.3 rates; bar width tracks the higher of the two models.

Source: Wei et al. (2023), Tables 1 and 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-4 to 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% on GPT-4 (16% on Claude 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 BOT on GPT-4 and 38% on Claude v1.3, while distractors reaches 44% and 47% and auto_payload_splitting reaches 34% and 59%. Encoding both input and output beats input-only (9% on GPT-4, 0% on Claude 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 BOT on GPT-4 (84% at temperature 1.0) and 81% on Claude v1.3 on curated prompts, with 93% and 87% on the held-out 317 prompts.
  • Safety failures extend beyond physical harm: On small probes for memorized personal data and persona hallucination (Appendix H), baseline GPT-4 leaks PII on one prompt without any jailbreak, while combination_2 elicits both restricted behaviors across GPT-4 and Claude v1.3. Meanwhile, auto_obfuscation prompts models to invent encodings a filter has never seen, with Claude v1.3 rediscovering Base64 and GPT-4 inventing Spanish leetspeak.
Two structural failure modes behind safety-training bypasses
1. Competing Objectives
Pretraining and RLHF helpfulness conflict with safety refusals. Benign formatting rules or forced affirmative prefixes override refusal priors.
Ablations: prefix_injection hits 22% vs. 6% for Hello!; refusal_suppression hits 25% vs. 0% inverted.
2. Mismatched Generalization
Pretraining teaches encodings, ciphers, and obscure domains that safety fine-tuning never covered, so capabilities transfer without safeguards.
Scale inversion: base64 fails 0% on GPT-3.5 Turbo (cannot decode) yet breaks GPT-4 (34%) and Claude v1.3 (38%).

Source: Wei et al. (2023), Sections 3 and 5, Table 1 and Table 3.

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.