Jailbreaking as a Reward Misspecification Problem

Zhihui Xie, Jiahui Gao, Lei Li, Zhenguo Li, Qi Liu, Lingpeng Kong

TL;DR

This paper reframes LLM jailbreaking not as a simple search for adversarial triggers, but as an exploitation of reward misspecification—the gap between intended safety and the actual reward function learned during alignment. The authors introduce ReGap, a metric to quantify this gap, and ReMiss, an automated red-teaming system that achieves state-of-the-art, human-readable jailbreaks that transfer effectively to closed-source models like GPT-4o.

What Problem Does This Paper Address?

Despite rigorous safety alignment techniques like Reinforcement Learning from Human Feedback (RLHF), Large Language Models (LLMs) remain stubbornly vulnerable to "jailbreaking"—adversarial prompts that trick the model into generating harmful content.

Most existing attack methods treat jailbreaking as a standard optimization problem: find a prompt that minimizes the "target loss" of a specific harmful response. However, the authors argue this is a surface-level approach. They identify a deeper root cause: reward misspecification. During alignment, the reward function (which tells the model what is "good" or "bad") often fails to generalize to out-of-distribution prompts or contains noise from human preferences. This creates "pockets" in the model's logic where harmful behavior actually receives a higher implicit reward than a safe refusal.

Methods

The paper introduces two core components to measure and exploit this vulnerability:

Overview of the ReGap metric and ReMiss jailbreaking framework.
  1. ReGap (Reward Gap): Drawing on the math behind Direct Preference Optimization (DPO), the authors treat any aligned LLM as an implicit reward model. ReGap measures the difference between the implicit reward of a "harmless" response (a refusal) and a "harmful" response. If the harmful response has a higher implicit reward (ReGap $\leq$ 0), the model is misspecified at that prompt.
  2. ReMiss (Reward-Misspecified Search): This is an automated red-teaming system. Unlike previous methods that just maximize the probability of a harmful string, ReMiss searches for adversarial suffixes that specifically minimize the ReGap.
  3. Stochastic Beam Search: It explores a discrete space of tokens to find effective suffixes.
  4. Readability Regularization: It includes a penalty for high perplexity, ensuring the generated jailbreaks look like natural language rather than gibberish.
  5. Iterative Training: It finetunes a generator model to predict these misspecified suffixes for any given harmful instruction.

Datasets

The authors validated their approach using several benchmarks:

  • AdvBench: The standard benchmark for jailbreaking, consisting of 520 harmful instructions.
  • HarmBench: Used to test out-of-distribution (OOD) performance with 320 prompts.
  • Poisoned Backdoor Dataset: A preliminary setup using models implanted with universal backdoors to verify if ReGap could detect known vulnerabilities.

Key Insights and Ideas

  • Target Loss is a Poor Proxy: The most striking insight is that minimizing the loss of a harmful response is not the same as a successful jailbreak. The authors show that many prompts with low target loss still fail to jailbreak, whereas prompts that induce a negative ReGap almost always succeed. ReGap achieved an AUROC of 0.97 in detecting jailbreaks, compared to just 0.82 for target loss.
Scatter plot demonstrating that ReGap perfectly separates successful jailbreaks, unlike Target Loss.
  • Jailbreaks as "Natural Backdoors": The authors suggest that jailbreaks are essentially backdoors that emerge naturally during the alignment process due to imperfect data or training objectives.
  • The Power of "Unlikelihood": ReMiss succeeds because it doesn't just push the model toward a harmful output; it actively pulls it away from the "harmless" refusal behavior. This "unlikelihood" term is the secret sauce for bypassing safety guardrails.
  • Automated Discovery of Attack Modes: Without being explicitly programmed to do so, ReMiss discovered complex attack strategies like translation (asking for harmful info in Spanish), continuation (starting a story and asking the model to finish it), and "infilling."

Key Results

  • State-of-the-Art Performance: ReMiss achieved significantly higher Attack Success Rates (ASR) than baselines like GCG and AdvPrompter. For example, on Vicuna-13b, it reached a 94.2% ASR@10.
  • High Transferability: Suffixes generated against open-source models were highly effective against "black-box" proprietary models. ReMiss achieved a 79.2% ASR@10 on GPT-4o, outperforming the previous best baseline (AdvPrompter) by a wide margin.
  • Stealthiness: Unlike gradient-based attacks (like GCG) that produce strings of random characters, ReMiss produces suffixes that are human-readable and have low perplexity, making them harder for simple filters to catch.

Limitations and Future Work

  • Reference Model Dependency: The method requires a "reference model" (usually the pre-aligned version of the target). While the authors showed that a small, weak model like TinyLlama-1.1b can serve as a reference for a larger model, the attack is most potent when the exact reference is known.
  • Robustness of Llama-2: Llama-2-7b-chat remained the most difficult model to jailbreak, with ReGap values staying positive even under attack, suggesting its alignment is more robust than its peers.
  • Defense Applications: The authors suggest that ReGap could be used as a tool for developers to identify and patch vulnerabilities during the training phase, essentially using the "misspecification" metric to improve alignment.

Summary updated

BibTeX
@inproceedings{xie2025jailbreaking,
  author = {Zhihui Xie and Jiahui Gao and Lei Li and Zhenguo Li and Qi Liu and Lingpeng Kong},
  title = {{Jailbreaking as a Reward Misspecification Problem}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=uBnM3EFovQ},
}
Figure