Abstract
Large Language Models (LLMs) demonstrate outstanding performance in their reservoir of knowledge and understanding capabilities, but they have also been shown to be prone to illegal or unethical reactions when subjected to jailbreak attacks. To ensure their responsible deployment in critical applications, it is crucial to understand the safety capabilities and vulnerabilities of LLMs. Previous works mainly focus on jailbreak in single-round dialogue, overlooking the potential jailbreak risks in multi-round dialogues, which are a vital way humans interact with and extract information from LLMs. Some studies have increasingly concentrated on the risks associated with jailbreak in multi-round dialogues. These efforts typically involve the use of manually crafted templates or prompt engineering techniques. However, due to the inherent complexity of multi-round dialogues, their jailbreak performance is limited. To solve this problem, we propose a novel multi-round dialogue jailbreaking agent, emphasizing the importance of stealthiness in identifying and mitigating potential threats to human values posed by LLMs. We propose a risk decomposition strategy that distributes risks across multiple rounds of queries and utilizes psychological strategies to enhance attack strength. Extensive experiments show that our proposed method surpasses other attack methods and achieves state-of-the-art attack success rate.
Introduction: The Art of the "Boiling Frog" Attack
Most research into LLM "jailbreaking"—the process of prompting a model to bypass its safety filters—has focused on single-round attacks. These methods often rely on adversarial suffixes or complex character sequences that modern safety filters are increasingly adept at detecting. However, humans primarily interact with LLMs through multi-round dialogues, where context builds over time.
Existing multi-round attack studies are often rigid, human-designed templates that lack the flexibility to adapt to a model's specific responses. MRJ-Agent addresses this gap by acting as an automated, adaptive red-teaming agent. It employs a "boil the frog" strategy, slowly leading a model from harmless, benign topics toward dangerous territory over several rounds of conversation, effectively bypassing filters that only examine individual queries in isolation.
Methodology: Risk Decomposition and Agent Training
The researchers developed MRJ-Agent using a sophisticated two-stage pipeline designed to maximize both stealth and persuasiveness:
1. Data Construction
- Risk Decomposition: Instead of presenting a harmful request directly, the system breaks the intent into sub-steps. It uses a semantic similarity metric to ensure the conversation remains coherent while progressively increasing the risk level.
- Psychological Induction: The agent applies 13 distinct psychological tactics—such as "Foot-in-the-door," "Logical Appeal," and "Creating Dependency"—to make its queries more persuasive and less likely to trigger a refusal.
2. Agent Training
- Supervised Fine-Tuning (SFT): A base model is trained on high-quality attack sequences that successfully elicited harmful responses from various target models.
- Preference Optimization (DPO): To make the agent truly adaptive, the authors used Direct Preference Optimization. By ranking successful versus unsuccessful attack paths, the agent learns to dynamically choose the best psychological strategy based on the target model's previous response.
Experimental Evaluation
MRJ-Agent was evaluated across several rigorous benchmarks, including AdvBench and JailbreakBench (JBB), which cover categories ranging from physical harm to disinformation. The researchers also tested the agent's universality through custom generalization tasks involving Text & Image-to-Text and Text-to-Image instructions (e.g., prompting DALL-E 3 to generate violent scenes).
Key Results
MRJ-Agent demonstrated state-of-the-art performance across all tested models:
- Attack Success Rate (ASR): It achieved a 100% ASR on Vicuna-7B and Mistral-7B, 92% on Llama2-7B, and a staggering 98% on GPT-4.
- Superiority over Baselines: It significantly outperformed single-round attacks and existing multi-round methods like Chain-of-Attack (CoA), which required significantly more retries to achieve lower success rates.
- Resilience to Defense: Even when target models were protected by LlamaGuard or strict defensive system prompts, MRJ-Agent maintained high success rates (e.g., 82% ASR on Llama2-7B under defense).
Insights and Vulnerabilities
The success of MRJ-Agent highlights a critical "Contextual Blind Spot" in current LLM safety architectures. Filters that evaluate individual queries often fail to see the cumulative risk of a multi-round conversation. Furthermore, the study found that LLMs are particularly susceptible to "Expert/Authoritative" personas, exploiting the models' inherent training to be helpful and deferential to perceived expertise.
Interestingly, the multi-round text strategy proved effective even for bypassing safety guards in image generation models like DALL-E 3, suggesting that the underlying vulnerability is conceptual rather than just linguistic.
Conclusion
While MRJ-Agent is a powerful tool for red-teaming, it has limitations, including its dependency on high-performing models for initial data construction and the computational expense of generating multi-round queries. Future work will focus on optimizing generation efficiency and reducing external model dependency. Ultimately, this research underscores the urgent need for safety mechanisms that can account for the long-term context and psychological nuances of multi-round human-AI interaction.
Summary updated