Executive Summary
SEMA (Simple yet Effective Multi-turn Attacker) is a novel framework that trains large language models (LLMs) to execute sophisticated, multi-turn jailbreak attacks. By combining a "prefilling" self-tuning stage with reinforcement learning anchored by an intent-drift-aware reward, SEMA achieves state-of-the-art success rates. It outperforms existing baselines by over 30% while remaining entirely "open-loop," meaning it generates attacks independently of victim feedback during the generation process.
The Challenge of Multi-Turn Jailbreaks
Most research into "jailbreaking"—the art of crafting prompts that bypass an LLM's safety filters to elicit harmful content—focuses on single-turn attacks. However, real-world interactions are inherently multi-turn. Attackers can use multiple exchanges to build context, obfuscate their true intent, and incrementally wear down a model's defenses.
Automating these multi-turn attacks is notoriously difficult due to two main hurdles:
- Exploration Complexity: The search space for a multi-turn conversation grows combinatorially. Finding the optimal sequence of prompts becomes exponentially harder with every added turn.
- Intent Drift: Over a long conversation, the attacker model often loses track of its original malicious goal, drifting into benign or irrelevant topics (e.g., starting with a prompt about hacking and ending with a philosophical debate on digital ethics).
Existing solutions often rely on rigid, manually designed templates or expensive closed-source APIs to manage the conversation, making them brittle and difficult to scale.
The SEMA Framework
To overcome these challenges, the authors introduce SEMA, a two-stage training framework designed to create a robust, "open-loop" attacker. In an open-loop regime, the attacker generates the entire sequence of adversarial prompts in one shot, without needing to process the victim's intermediate responses.
Stage 1: Prefilling Self-Tuning
To initiate training, the model must first generate viable adversarial prompts. However, safety-aligned models often refuse to assist in designing attacks. SEMA bypasses this using a "prefilling" technique: it injects a minimal structural cue (such as the list marker "1.") into the model's output buffer. This nudges the model to continue the sequence rather than triggering a refusal. The model is then fine-tuned on these self-generated, well-structured rollouts to stabilize its behavior for subsequent learning.
Stage 2: Reinforcement Learning with Intent-Drift-Aware Reward
Following self-tuning, the model is optimized using reinforcement learning. The core innovation here is the Intent-Drift-Aware Reward. Rather than merely checking if the final response is harmful, the reward function specifically measures:
- Intent Alignment: Does the victim's final answer actually address the original harmful query?
- Compliance Risk: How severely does the response violate established safety policies?
- Level of Detail: Is the provided answer concrete and actionable, or just a vague summary?
By multiplying these factors, the reward heavily penalizes "intent drift," forcing the attacker to stay on target across the entire multi-turn sequence.
Evaluation Methodology
The researchers evaluated SEMA using two primary benchmarks:
- AdvBench: A dataset comprising 520 harmful behaviors and queries.
- HarmBench: A standardized evaluation framework for automated red-teaming, specifically utilizing the "Standard" functional category (159 samples).
These attacks were tested against a variety of "victim" models, including Qwen2.5-3B, Llama-3.1-8B, and the high-security reasoning model GPT-oss-20B.
Key Insights
- Open-Loop is Highly Effective: A surprising finding is that an attacker does not need to react to the victim's specific replies to succeed. By planning a "response-agnostic" sequence, SEMA drastically reduces complexity and computational cost while maintaining high success rates.
- The Power of Prefilling: Prefilling is not merely a jailbreak tactic; it serves as a crucial infrastructure tool for "de-refusing" an attacker model during training, allowing it to freely explore the adversarial space.
- Anchoring Intent: Multi-turn jailbreaks typically fail because they lose their malicious edge over time. Explicitly encoding "intent persistence" into the RL reward function is essential for maintaining attack pressure.
- Vulnerability of Reasoning Models: SEMA proved particularly effective against reasoning models. While these models are often secure in single-turn settings, they can be manipulated into harmful reasoning chains when the context is staged over multiple turns.
Performance and Results
SEMA demonstrates significant improvements over existing jailbreak methodologies, establishing a new state-of-the-art for multi-turn attacks.
- State-of-the-Art Performance: SEMA achieved an average 80.1% Attack Success Rate (ASR@1) across three major victim models on AdvBench. This represents a massive 33.9% improvement over previous leading methods.
- Superior Scalability: When allowed multiple attempts (ASR@N), SEMA's success rate climbs rapidly. As shown in the evaluations, it reaches near-perfect success in just a handful of attempts, whereas other top-tier attackers require up to 50 attempts to reach comparable levels.
- High Transferability: Attacks trained against one model architecture (e.g., Llama) proved highly successful when deployed against entirely different models. This indicates that SEMA learns generalizable adversarial strategies rather than simply overfitting to a specific victim's vulnerabilities.
Limitations and Future Directions
- Modal Scope: Currently, SEMA is strictly text-based. Extending this framework to vision and audio (multimodal jailbreaks) represents a critical next step for comprehensive safety testing.
- Turn Efficiency: SEMA often utilizes its full "turn budget" even if the victim is successfully jailbroken early in the exchange. Future iterations could incorporate "cost-aware" rewards to incentivize shorter, more efficient attack sequences.
- Strategy Diversity: While highly effective, a single trained SEMA model tends to converge on a specific style of attack. Exploring "diversity rewards" could help train attackers capable of dynamically switching between various tactical approaches.
Summary updated