TL;DR
This paper reframes LLM jailbreaking not merely as a failure to trigger a refusal keyword, but as a fundamental reward misspecification problem originating during the safety alignment process. By introducing a novel metric called ReGap to quantify this alignment gap, the authors develop ReMiss, an automated red-teaming tool that generates highly effective, fluent, and transferable adversarial prompts that exploit these reward blind spots.
What Problem Does This Paper Address?
Safety alignment techniques like RLHF (Reinforcement Learning from Human Feedback) and DPO (Direct Preference Optimization) aim to make LLMs helpful, honest, and harmless. However, these models remain notoriously vulnerable to "jailbreaks"—crafted adversarial prompts that trick the model into bypassing its safety guardrails to generate harmful content.
Traditional jailbreaking research treats this as an optimization problem focused on minimizing "target loss" (i.e., forcing the model to start its response with an affirmative phrase like "Sure, here is how to..."). The authors argue this objective is flawed because it doesn't capture the true state of the model's internal alignment landscape. Instead, they address the root cause: why do these vulnerabilities exist in the first place? They propose that jailbreaks succeed because the implicit reward function learned during alignment fails to generalize, incorrectly scoring a harmful response higher than a harmless refusal when triggered by specific adversarial contexts.
Methods
The authors introduce two core contributions to exploit and study this phenomenon:
- ReGap (Reward Gap): A metric designed to quantify reward misspecification. Because the true reward function is often inaccessible or implicit (especially in DPO-aligned models), the authors derive an implicit reward by measuring the behavioral deviation of the aligned model from its unaligned base reference model. ReGap calculates the difference between the implicit reward of a harmless response and a harmful response. A ReGap value close to or below zero mathematically signals that the model's rewards are misspecified for that prompt.
- ReMiss: An automated red-teaming system that searches for adversarial suffixes to append to malicious instructions. Instead of optimizing for target loss, ReMiss optimizes a regularized objective that minimizes ReGap (pushing the model into a reward-misspecified zone) while penalizing high perplexity using a reference model. This ensures the generated suffixes remain fluent and natural. ReMiss utilizes stochastic beam search to discover these suffixes and iteratively finetunes a generator model to automate the process at scale.
Datasets
The approach was trained and evaluated using two primary datasets:
- AdvBench: The standard benchmark for adversarial LLM attacks, consisting of 520 pairs of harmful instructions and target responses, split into a 60/20/20 ratio for training, validation, and testing.
- HarmBench: A separate dataset containing 320 prompts used exclusively as an out-of-distribution (OOD) test set to evaluate how well the generated attacks transfer to unseen tasks.
Key Insights and Ideas
- Target Loss is a Deceptive Proxy: The authors demonstrate that low target loss does not cleanly separate successful jailbreaks from failures. Conversely, a negative ReGap value serves as a significantly more reliable indicator of a true alignment breakdown.
- Jailbreaks Mimic Backdoors: By testing ReGap on models intentionally poisoned with universal safety backdoors, the authors found that ground-truth backdoor suffixes spiked the reward misspecification rate to nearly 99%. This strongly implies that naturally occurring jailbreaks exploit the exact same structural reward flaws as implanted backdoors.
- Discovery of Novel Attack Modes: Rather than relying on human-engineered templates (like roleplay or character personas), ReMiss automatically uncovers diverse attack strategies. Notably, it successfully discovered infilling—a rarely studied attack mode that manipulates the model using fill-in-the-blank style prompts to bypass safety filters.
Key Results
- State-of-the-Art Success Rates: ReMiss achieved exceptional Attack Success Rates (ASR@10) on open-source models, hitting 94.2% on Vicuna-13b, 98.1% on Vicuna-7b, and 100% on Mistral-7b-instruct.
- Cracking Hard Targets: On the highly resilient Llama2-7b-chat, ReMiss achieved a non-trivial ASR@10 of 10.6%, significantly outperforming baseline optimization attacks like GCG and AutoDAN.
- Black-Box Transferability: Suffixes optimized entirely on open-source models transferred remarkably well to proprietary closed-source models via APIs, achieving a 100% ASR on GPT-3.5-turbo and 48.1% on GPT-4.
- High Readability: Unlike token-scrambling methods (e.g., GCG) that output gibberish, ReMiss maintains incredibly low perplexity (e.g., 16.8 on Vicuna-7b vs. GCG's 91,473), allowing it to easily evade perplexity-based defense filters.
Limitations and Future Work
- Gray-Box Training Requirements: Training the ReMiss generator requires access to the log probabilities of the target model and a white-box reference model. While the final inference attacks are purely black-box, the initial training phase demands substantial model access.
- Guardrail Sensitivity: Although ReMiss outperforms existing baselines against external safeguard models like LlamaGuard, the presence of these input/output wrappers still significantly reduces overall jailbreak success rates. The authors note that future work must focus on making the core alignment of the model structurally robust rather than relying solely on external filters.
Summary updated