Abstract
While Large Language Models (LLMs) have achieved significant robustness against direct "jailbreak" attempts in single-turn prompts, they remain surprisingly vulnerable in multi-turn dialogues. This paper investigates a critical safety vulnerability where a single malicious request is decomposed into a series of seemingly benign sub-queries. Using a paradigm called Malicious Query Decomposition (MQD), researchers successfully induced top-tier models—including GPT-4, Claude, and Gemini—to generate harmful content. Our findings expose a "contextual blindness" in current safety alignment techniques, where models fail to recognize aggregate harmful intent across a conversation window.
Introduction
The rapid deployment of Large Language Models (LLMs) has necessitated rigorous safety guardrails. Most contemporary research and safety alignment techniques, such as Reinforcement Learning from Human Feedback (RLHF), focus on "single-turn" interactions. In these scenarios, the model evaluates a single prompt for harmful intent and either complies or refuses. Consequently, safety filters are heavily optimized for this narrow window of text.
However, human interaction with AI is naturally conversational and multi-turn. This study identifies a significant "Safety Vulnerability" arising from this discrepancy. By spreading a malicious task across several steps, an attacker can hide their true intent. Each individual step may appear "borderline" or even helpful, causing the model’s safety mechanisms to fail. Eventually, the model "speaks out of turn," providing the harmful information it was specifically designed to withhold.
Methodology: Malicious Query Decomposition (MQD)
The researchers introduced Malicious Query Decomposition (MQD) as a baseline for multi-turn attacks. The process involves breaking a "Prototype Prompt" (a known harmful request from benchmarks like AdvBench) into several sub-queries. The researchers utilized four primary strategies to disguise intent:
- Purpose Inversion: Asking for the opposite of the harmful goal (e.g., "How do I prevent credit card theft?") to gather necessary background knowledge.
- Keyword Replacement: Using neutral or positive synonyms to mask the harmful nature of the request.
- Cautionary Orientation: Framing the query as a request for educational, preventive, or safety-oriented information.
- Reframing Sentence: Changing the sentence structure to emphasize a constructive or academic narrative.
The attack culminates in a final turn where the model is prompted to combine or invert its previous answers. This study tested both Manual Decomposition (human-authored) and Automatic Decomposition (using GPT-4 to generate sub-queries).
Experimental Evaluation
The study evaluated five major models: GPT-3.5, GPT-4, Gemini-Pro, Claude-1, and Claude-2. The researchers used AdvBench, containing 520 malicious questions, to create derivative datasets for multi-turn testing.
Key Results
The MQD method proved remarkably effective. According to GPT-4-based evaluations, Gemini-Pro was the most vulnerable model, exhibiting a harmfulness rate of 81-84%. While Claude-2 was the most resilient, it still succumbed to manual decomposition attacks in approximately 22-25% of cases.
The researchers identified a direct correlation between the number of turns and the quality of the harmful output. More turns allowed the model to provide more detailed and "higher-quality" malicious information, as the model became increasingly committed to a "helpful" context.
Discussion: Contextual Blindness
The vulnerability stems from a fundamental conflict between helpfulness and harmlessness. LLMs are trained to maintain instruction-following consistency across a dialogue. Current safety filters often evaluate turns in isolation or with a limited holistic understanding. If Turn 1 and Turn 2 are individually safe, the model struggles to realize that their combination is malicious. This "contextual blindness" allows for incremental knowledge gathering, where the model "unlocks" pieces of harmful information step-by-step until the final malicious request is fulfilled.
Conclusion and Future Work
The findings suggest that current safety alignment is insufficient for the complexities of multi-turn dialogue. To address these vulnerabilities, future work should focus on:
- Multi-turn Safety Alignment: Developing SFT and RLHF datasets specifically for multi-turn, cross-topic safety.
- Intent-Shifting Detection: Enhancing the model's ability to recognize when a conversation is being steered from a benign topic toward a harmful one.
- Automated Red-Teaming: Improving tools for automatic decomposition to help developers identify these flaws before deployment.
By addressing these gaps, the AI community can move toward models that are not only helpful in conversation but also robustly safe across the entire dialogue context.
Summary updated