Abstract
We introduce a novel framework for consolidating multi-turn adversarial “jailbreak” prompts into single-turn queries, significantly reducing the manual overhead required for adversarial testing of large language models (LLMs). While multi-turn human jailbreaks have been shown to yield high attack success rates (ASRs), they demand considerable human effort and time. Our proposed Multi-turn-to-Single-turn (M2S) methods—Hyphenize, Numberize, and Pythonize—systematically reformat multi-turn dialogues into structured single-turn prompts. Despite eliminating iterative back-and-forth interactions, these reformatted prompts preserve and often enhance adversarial potency: in extensive evaluations on the Multi-turn Human Jailbreak (MHJ) dataset, M2S methods yield ASRs ranging from 70.6% to 95.9% across various state-of-the-art LLMs. Remarkably, our single-turn prompts outperform the original multi-turn attacks by up to 17.5% in absolute ASR, while reducing token usage by more than half on average. Further analyses reveal that embedding malicious requests in enumerated or code-like structures exploits “contextual blindness,” undermining both native guardrails and external input-output safeguards.
Introduction: The Efficiency Gap in Red Teaming
Red teaming Large Language Models (LLMs) typically falls into two camps: automated single-turn attacks, which are scalable but often easily blocked, and human-driven multi-turn attacks, which are highly effective but slow and expensive. Multi-turn tactics, such as the "Crescendo" attack, work by incrementally leading a model toward harmful output, bypassing safety filters that might catch a direct request.
The M2S (Multi-turn to Single-turn) framework addresses the efficiency gap by capturing the adversarial potency of a long, expensive conversation and packing it into a single, efficient query. This is critical for large-scale safety testing where manual intervention is a bottleneck.
The M2S Framework and Methodology
The researchers introduced three rule-based strategies to "flatten" a multi-turn dialogue into a single prompt, leveraging the model's tendency to follow structured instructions more strictly than conversational ones.
- Hyphenize: Converts each turn of the conversation into a bulleted list prefixed with hyphens.
- Numberize: Uses sequential numerical indices to explicitly reinforce the order of operations for the LLM.
- Pythonize: Encapsulates the entire conversation as an iterable list within a Python script structure. This leverages the model’s tendency to follow programmatic instructions more strictly.
An Ensemble approach was also utilized, selecting the most effective output from the three methods. To evaluate results, the study used the StrongREJECT evaluator, an automated judge that scores harmfulness on a continuous scale (0 to 1).
Datasets and Evaluation
The study evaluated these methods across three primary datasets of successful multi-turn jailbreaks:
- MHJ (Multi-turn Human Jailbreak): 537 successful professional red-teaming conversations.
- ATTACK_600: A collection of 600 lengthy, complex instructions from advanced red-teamers.
- CoSafe: A dataset focused on succinct, scenario-driven adversarial queries.
Key Insights: Contextual Blindness
The most striking insight is that bundling malicious requests into structured formats (like code or lists) exploits "contextual blindness" in both native LLM guardrails and external safeguards (like Llama Guard). Models often fail to scrutinize the individual elements of a structured block as rigorously as they would a direct conversational turn.
Furthermore, the research suggests that brevity is a weapon. By stripping away the "back-and-forth" and presenting the adversarial logic as a single cohesive directive, the attack becomes harder for turn-based detection systems to intercept. Different models also show architecture-specific vulnerabilities; for example, GPT-4o and Mistral-7B were particularly vulnerable to the Pythonize method, while Llama-3-70b was more susceptible to Hyphenize.
Key Results
- Superior Performance: On the MHJ dataset, the M2S Ensemble achieved an ASR of 89.0% on GPT-4o (up from 71.5% for the original multi-turn version) and 95.9% on Mistral-7B (up from 80.1%).
- Efficiency Gains: M2S reduced average token usage from 2,732 tokens to 1,096 tokens—a 60% reduction in cost and latency without sacrificing attack potency.
- Bypassing Safeguards: When tested against Llama Guard 3, the M2S Ensemble achieved a 71% bypass rate, outperforming the original multi-turn attacks (66.1%).
Conclusion and Future Work
The M2S framework demonstrates that complex, multi-turn jailbreak attacks can be condensed into structured, single-turn prompts that are often more effective than the original dialogues. While the current conversion process uses rule-based templates, future work aims to develop fully automated, real-time pipelines. The authors call for new defense research into "holistic prompt scrubbing" that evaluates entire blocks of structured text rather than just individual sentences.
All code, data, and conversion prompts are available for reproducibility at: https://github.com/Junuha/M2S_DATA
Summary updated