Introduction
Large Language Models (LLMs) are increasingly vulnerable to sophisticated "multi-turn" jailbreak attacks. Unlike traditional single-round prompts that are easily flagged, these attacks use a "salami-slicing" strategy, hiding malicious intent across several benign-looking conversational turns. For instance, an attacker might roleplay as a police officer to gradually extract sensitive information about explosive components. Current safety alignment techniques, which often evaluate responses in isolation, fail to recognize these long-term adversarial trajectories.
The MTSA Framework
To address this, the authors introduce MTSA (Multi-Turn Safety Alignment), a framework designed to harden models against incremental attacks without compromising general utility. The framework operates through a two-stage adversarial process involving a red-team model and a target model.
1. Thought-Guided Attack Learning
The first stage involves training a specialized "red-team" model. By utilizing a "Think-before-attack" dataset, the red-team model learns to explicitly strategize—planning roleplays or decomposing harmful requests into smaller, seemingly innocent steps. This strategic planning significantly increases the Attack Success Rate (ASR) compared to automated methods that lack long-term planning.
2. Adversarial Iterative Optimization
The core of MTSA is a continuous "cat-and-mouse" game. The red-team model identifies vulnerabilities, which are then used to fine-tune the target model's defenses. This iterative loop ensures the target model evolves to counter increasingly complex attack strategies.
Multi-Turn RL with Future Rewards
The "secret sauce" of MTSA is its reinforcement learning algorithm. Traditional Direct Preference Optimization (DPO) typically focuses on single-turn safety. MTSA, however, introduces the concept of Future Rewards.
Instead of judging each response turn-by-turn, the algorithm evaluates the final state of the dialogue. If a conversation eventually results in a jailbreak, the intermediate turns that facilitated that path are penalized. This teaches the model to be skeptical of "innocuous" questions that serve a malicious long-term goal, effectively back-propagating harmfulness across the entire trajectory.
Key Results and Evaluation
The MTSA framework was evaluated using a mix of safety benchmarks (AdvBench, HarmfulQA) and general utility tests (MT-Bench, AlpacaEval).
- Red-Teaming Efficacy: The red-team model (MTSA-R3) achieved a state-of-the-art average ASR of 63.92% across major models like GPT-4o and Claude 3.5.
- Defense Robustness: After three iterations, the ASR on a Zephyr-7B model plummeted from 74.50% to 23.50%.
- Utility Preservation: The model maintained high performance on general benchmarks, with only a minimal 5.62% increase in over-rejection (refusing safe queries), as measured by XSTest.
Conclusion
MTSA demonstrates that safety in LLMs is a trajectory rather than a single point in time. By incorporating future rewards and iterative red-teaming, models can learn to detect the "long game" played by attackers. While the process is computationally intensive and currently relies on some manual templates, it represents a significant step toward robust, multi-turn safety alignment in the era of increasingly sophisticated adversarial interactions.
Summary updated