The Jailbreak Tax: How Useful are Your Jailbreak Outputs?

Kristina Nikolić, Luze Sun, Jie Zhang, Florian Tramèr

TL;DR

Researchers have identified a "Jailbreak Tax"—a significant drop in model reasoning and utility that occurs when safety guardrails are bypassed. By testing jailbreaks on verifiable tasks like math and biology, the study reveals that some popular attacks can slash a model's accuracy by up to 92%, suggesting that jailbroken outputs may be far less "useful" to attackers than previously assumed.

What Problem Does This Paper Address?

The AI safety community has long focused on the success rate of jailbreak attacks—how often an attacker can trick a Large Language Model (LLM) into providing forbidden content (e.g., instructions for a bomb). However, a critical question remained: How useful is the resulting output?

Evaluating the quality of harmful content is notoriously difficult. It requires domain expertise (is this chemical formula actually dangerous?) and lacks a ground-truth baseline (how well would the model have answered if it weren't aligned to refuse?). This paper addresses this gap by proposing a framework to rigorously measure the utility degradation—or "tax"—incurred during a jailbreak.

Methods

The authors introduce the concept of pseudo-alignment. Instead of trying to evaluate subjective harm, they take benign, objective tasks (like grade-school math) and force the model to treat them as "harmful" using three techniques:

  1. System Prompt Alignment: Instructing the model to refuse a specific topic (e.g., "Do not answer math questions").
  2. Supervised Fine-Tuning (SFT): Training the model to consistently refuse these topics.
  3. EvilMath Rewording: Using an LLM to re-contextualize math problems into "evil" scenarios (e.g., changing "2 apples + 3 apples" to "2 bombs + 3 bombs") to trigger the model's internal safety filters.

Once the model is "aligned" to refuse these benign tasks, the researchers apply eight representative jailbreak attacks (including Many-shot, GCG, PAIR, and TAP) and measure how much accuracy is lost compared to the original, unaligned model.

Overview of the framework: comparing the original model, the aligned model, and the jailbroken model's utility.

Datasets

The study utilizes several benchmarks to measure utility across different domains:

  • WMDP (Weapons of Mass Destruction Proxy): A dataset of 1,000 multiple-choice questions on bio-security to test knowledge elicitation.
  • GSM8K: 1,000 grade-school math word problems to test basic reasoning.
  • MATH: A dataset of competition-level mathematics, categorized by difficulty (Levels 1-5).
  • EvilMath & UnicornMath: New benchmarks created by the authors. EvilMath contains math problems reworded with harmful terms; UnicornMath serves as a control, rewording the same problems with benign but out-of-distribution concepts (like mystical creatures) to ensure the difficulty comes from the "harmful" context, not just the rewording itself.

Key Insights and Ideas

  • The Jailbreak Tax is Real: Bypassing safety filters often "breaks" the model's reasoning capabilities. Even if the model provides a response, the logic is frequently flawed.
  • Success $\neq$ Utility: There is no clear correlation between how often an attack succeeds and how useful the output is. An attack might have a 100% success rate at eliciting a response but a massive "tax" on the quality of that response.
  • Complex Attacks Cost More: Attacks that heavily modify the prompt structure (like PAIR or TAP) generally incur a much higher tax than simpler methods like Many-shot jailbreaking.
  • Scaling Doesn't Help: Larger, more capable models (like LLaMA 3.1 405B) do not necessarily pay a lower jailbreak tax. The degradation persists regardless of model size.

Key Results

The quantitative findings are striking, as summarized in the bar chart below:

Figure 1. Illustration of our results. We align a LLaMa 3.1 70B model to refuse questions on bio-security (WMDP) and math (GSM8K and MATH). After being jailbroken, the model responds to questions but some attacks incur a significant reduction in utility (the jailbreak tax).
  • Maximum Degradation: On the GSM8K math benchmark, the PAIR attack resulted in a staggering 91.9% drop in accuracy for a LLaMA 3.1 70B model.
  • Attack Comparison: "Many-shot" jailbreaking proved to be the most "efficient," incurring almost zero tax while still bypassing guardrails. In contrast, optimization-based attacks like GCG and LLM-rephrasing attacks like TAP showed significant utility loss.
  • Task Hardness: For the most difficult math problems (MATH Level 5), the PAIR attack removed over 80% of the model's original ability to solve the problem.

Limitations and Future Work

The authors acknowledge that "pseudo-alignment" on benign tasks may not perfectly replicate the complexities of real-world safety alignment for truly harmful tasks. Furthermore, the study focuses on objective, verifiable tasks; measuring the tax on more subjective harmful outputs (like persuasive phishing emails) remains a challenge.

Future work could involve model developers providing researchers with access to unaligned versions of frontier models. This would allow for a direct measurement of the jailbreak tax on actual high-risk queries, providing a more complete picture of the real-world risks posed by current jailbreaking techniques.

Summary updated

BibTeX
@inproceedings{nikolic2025jailbreak,
  author = {Kristina Nikolić and Luze Sun and Jie Zhang and Florian Tramèr},
  title = {{The Jailbreak Tax: How Useful are Your Jailbreak Outputs?}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=VSSQud4diJ},
}
Figure