Systematic Scaling Analysis of Jailbreak Attacks in Large Language Models

Xiangwen Wang, Ananth Balashankar, Varun Chandrasekaran

TL;DR

We know that throwing more compute at Large Language Models (LLMs) predictably makes them smarter, but what happens when an attacker throws more compute at breaking them? By putting completely different "jailbreak" methods on a universal yardstick—total floating-point operations (FLOPs)—researchers discovered that attack success follows a crisp, predictable curve of diminishing returns. Surprisingly, having another LLM rewrite prompts in plain English doesn't just beat mathematical gradient-descent attacks in compute efficiency and stealth; it turns out to be a genuinely superior optimizer in prompt space.

What Problem Does This Paper Address?

Even safety-aligned LLMs can be tricked into generating disallowed content via adversarial prompts known as jailbreaks. Researchers have invented a zoo of iterative methods to find these prompts—from tweaking gibberish suffixes using model gradients to having an "attacker LLM" sweet-talk the victim model.

The catch? Comparing these attacks has been like comparing apples to carburetors. Every method defines a "step" differently: one gradient update, one population generation, or one round of LLM rewriting. Without a shared resource axis, we couldn't answer a fundamental question: if an adversary has a fixed compute budget, which attack paradigm actually gives them the most bang for their buck, and does spending more compute guarantee a break?

Methods

To level the playing field, the authors treat jailbreaking as a compute-bounded optimization problem measured in total FLOPs—counting every forward and backward pass through both the victim model and any auxiliary attacker LLMs.

They evaluate four standard attack paradigms across open-weight models (Llama-3.1/3.2, Qwen3, and Gemma-3):

  • GCG (white-box gradient-based suffix search)
  • AutoDAN (white-box genetic algorithm prompt evolution)
  • PAIR (black-box iterative prompt rewriting using an attacker LLM)
  • Best-of-$N$ / BoN (black-box random text augmentations like character scrambling)

What’s new: Instead of comparing attacks at a single arbitrary budget, the authors treat FLOPs as a continuous scaling variable and fit a saturating exponential curve—$\text{ASR}(B) = a + b(1 - e^{-cB})$—to track each attack's starting point ($a$), asymptotic ceiling ($a+b$), and approach rate ($c$). Success is scored from 1 to 10 by a GPT-5 judge, alongside a GPT-2 perplexity metric to measure stealthiness (how natural and undetectable the prompt looks). Finally, to figure out why prompt rewriting beats gradient search, they invent a "same-state, one-step" probe: taking a prompt mid-attack and comparing the loss drop from a PAIR rewrite directly against a step-size-matched GCG token update.

Datasets

Rather than introducing a brand-new benchmark, the authors construct a balanced evaluation set of 200 harmful goals by sampling uniformly (~67 goals each) from three established benchmarks: AdvBench, HarmBench, and ClearHarm (plus validation on the full HarmBench-200). They annotate each goal into four categories—harmful instruction, malicious creation, misinformation, and offensive content—to test whether certain harms crack faster than others.

Key Insights and Ideas

  • Jailbreaks obey predictable scaling laws—and then hit a wall. Across models and methods, attack success rises rapidly at low compute and then plateaus. For attackers, endlessly burning FLOPs on one method is irrational; switching paradigms pays off far more than scaling up. For defenders, safety evaluations don't need open-ended compute budgets.
  • Plain-English rewriting is a better optimizer than discrete gradients. You might assume white-box gradient access (GCG) gives an attacker the ultimate mathematical advantage. Yet black-box LLM rewriting (PAIR) crushes it. When tested from the exact same prompt state, scaling GCG up to 30-token edits causes its gradient signal to fall apart (actually increasing loss), whereas PAIR reliably finds valid descent directions across large jumps in prompt space.
  • No stealth trade-off required for prompt-based attacks. Usually, pushing an attack harder makes inputs look weirder and easier for perplexity filters to catch (like BoN's scrambled text or GCG's raw token suffixes). Because PAIR and AutoDAN mutate text via LLMs, they live in the worst-case quadrant for defenders: high success and high stealthiness.
  • Not all harms are equally guarded. Vulnerability is heavily goal-dependent; models give up misinformation much more easily than operational harms like malicious creation.

Key Results

Compute-normalized scaling curves

On Llama-3.1-8B-Instruct (within a 20,000 TFLOP budget), the saturating exponential model fits empirical trajectories remarkably well ($R^2$ from 0.908 to 0.997 on red-team scores) and accurately extrapolates to held-out budgets (test $\text{RMSE} \le 0.36$ on a 10-point scale, and $< 0.01$ for PAIR and AutoDAN).

Exponential-fit parameters
  • PAIR dominates efficiency and ceiling: Even using an identical-sized 8B model as the attacker, PAIR starts high ($9.11$), hits an asymptotic ceiling of 9.80/10, and reaches 95% of its gains ($B_{95}$) in 6,012 TFLOPs.
  • BoN and AutoDAN tie for second: BoN climbs steeply from $3.79$ to a ceiling of 8.83 ($B_{95} = 5,715$ TFLOPs), while AutoDAN reaches 8.92 more gradually ($B_{95} = 12,307$ TFLOPs).
  • GCG lags behind: Despite white-box gradient access, GCG tops out at a ceiling of 5.16 and takes 13,923 TFLOPs to hit 95% saturation. Even when PAIR is forced to optimize GCG's exact target string, PAIR still hits an 8.60 ceiling.

Limitations and Future Work

  • FLOPs aren't everything: Counting FLOPs is an idealized proxy that ignores real-world bottlenecks like API rate limits, network latency, victim system prompts, and defender monitoring costs.
  • Open-weight scope: Experiments are restricted to open-weight, non-reasoning models in English, single-turn settings. Closed-source APIs were excluded because invisible deployment guardrails (like account bans and request filters) confound clean scaling measurements.
  • Coarse stealth proxy: Measuring stealth via GPT-2 perplexity is a rough heuristic compared to modern safety classifiers.
  • Where next: The authors suggest expanding into multi-dimensional scaling laws—using hierarchical models to jointly predict how attack success, detectability, and utility trade off across languages, multi-turn protocols, and model families.

Summary updated

Abstract

Large language models remain vulnerable to jailbreak attacks, yet we still lack a systematic understanding of how jailbreak success scales with attacker effort across methods, model families, and harm types. We initiate a scaling-law framework for jailbreaks by treating each attack as a compute-bounded optimization procedure and measuring progress on a shared FLOPs axis. Our systematic evaluation spans four representative jailbreak paradigms, covering optimization-based attacks, self-refinement prompting, sampling-based selection, and genetic optimization, across multiple model families and scales on a diverse set of harmful goals. We investigate scaling laws that relate attacker budget to attack success score by fitting a simple saturating exponential function to FLOPs--success trajectories, and we derive comparable efficiency summaries from the fitted curves. Empirically, prompting-based paradigms tend to be the most compute-efficient compared to optimization-based methods. To explain this gap, we cast prompt-based updates into an optimization view and show via a same-state comparison that prompt-based attacks more effectively optimize in prompt space. We also show that attacks occupy distinct success--stealthiness operating points with prompting-based methods occupying the high-success, high-stealth region. Finally, we find that vulnerability is strongly goal-dependent: harms involving misinformation are typically easier to elicit than other non-misinformation harms.
BibTeX
@inproceedings{wang2026systematic,
  author = {Xiangwen Wang and Ananth Balashankar and Varun Chandrasekaran},
  title = {{Systematic Scaling Analysis of Jailbreak Attacks in Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pIEAacruEN},
}
Figure