Research map / Large language models / Language, safety and interpretability
Best-of-N Jailbreaking
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 Best-of-N Jailbreaking, a black-box method that repeatedly samples randomly augmented versions of harmful prompts (text, image, audio) until a model produces a harmful response, showing power-law ASR scaling and gains from composition with prefix attacks.
Problem
Frontier AI systems, including closed-source LLMs, VLMs and ALMs, and defenses such as circuit breakers, remain vulnerable to jailbreaks; there is a need for simple, scalable, black-box red-teaming methods that work across input modalities.
Approach
Repeatedly sample random modality-specific augmentations (character scrambling, capitalization, noising for text; typographic image variations; speed/pitch/noise/volume changes for audio) of a harmful request until one elicits a harmful response, exploiting input variance and output stochasticity; ASR follows a power law in the number of samples N, which allows forecasting.
Key results
- BoN reaches 89% ASR on GPT-4o and 78% on Claude 3.5 Sonnet with N=10,000 text augmentations.
- BoN achieves 52% ASR against circuit-breaker Llama-3-8B-Instruct-RR and 67% against GraySwan Cygnet after system prompt tuning.
- Power-law fits on 1,000 samples forecast ASR at 10,000 samples with an average error of about 4.4% for text.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply prompt augmentations instead of resampling unaugmented prompts | BoN on text inputs · HarmBench text, GPT-4o | ASR: 22x baseline improvements | Helped |
| apply prompt augmentations instead of resampling unaugmented prompts | BoN on text inputs · HarmBench text, Gemini Pro | ASR: 3.5x baseline improvements | Helped |
| apply prompt augmentations instead of using an unaugmented image | BoN on vision inputs · HarmBench vision, Claude Sonnet | ASR: 56% while the baseline fails to elicit any harmful responses | Helped |
| use temperature 0 instead of temperature 1 (ablation) | BoN on text inputs · HarmBench text | ASR: 0.7% drop ... to a 27.7% drop | Hurt |
| compose BoN with an optimized prefix jailbreak | BoN on text inputs · HarmBench text, GPT-4o | ASR: 86% to 97%; 12% | Helped |
| compose BoN with a prefix jailbreak | BoN on vision inputs · HarmBench vision, Claude Sonnet | ASR: 32% to 70% | Helped |
| compose BoN with a prefix jailbreak | BoN on audio inputs · HarmBench audio, Gemini Pro | ASR: 59% to 87%; 34% | Helped |
| increase the number of sampled augmentations | BoN · HarmBench, across models and modalities | ASR | Helped |
| resample successful text jailbreak prompts at temperature 0 rather than temperature 1 (ablation) | BoN jailbreak reliability · HarmBench text | reliability: 32% versus 47% | Helped |
Surprising findings
- Resampling a successful BoN jailbreak prompt yields harmful output only about 30% of the time at temperature 1, so jailbreaks are not reliable individually.
- Going from temperature 1 to temperature 0 changes BoN ASR only slightly (e.g. 0.7% to 27.7% drop), suggesting augmentation variance drives success more than sampling entropy.
Limitations
- Classifier false positives (GPT-4o HarmBench grader) required manual review and filtering, and can cause premature termination.
- Individual successful jailbreaks are unreliable under resampling, and results rely on API models with nondeterminism.
- Augmentations were minimally optimized, and the power-law scaling is only verified up to about 10,000 samples.
Experimental setup
Datasets: HarmBench (159 standard direct requests) AdvBench (subset for many-shot prefix)
Benchmarks: HarmBench
Metrics: attack success rate sample efficiency forecasting error
Baselines: unaugmented requests resampling Circuit Breaking (Llama-3-8B-Instruct-RR) PAIR many-shot jailbreaking
Builds on: PAIR many-shot jailbreaking circuit breakers HarmBench
Closest papers by meaning
- JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models (NeurIPS 2024 · similarity 0.91)
- JailPO: A Novel Black-Box Jailbreak Framework via Preference Optimization Against Aligned LLMs (AAAI 2025 · similarity 0.91)
- Systematic Scaling Analysis of Jailbreak Attacks in Large Language Models (NeurIPS 2026 · similarity 0.90)
- VERA: Variational Inference Framework for Jailbreaking Large Language Models (NeurIPS 2025 · similarity 0.90)
- GASP: Efficient Black-Box Generation of Adversarial Suffixes for Jailbreaking LLMs (NeurIPS 2025 · similarity 0.90)
- AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models (ICLR 2024 · 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.
