SeqAR: Jailbreak LLMs with Sequential Auto-Generated Characters

Yan Yang, Zeguan Xiao, Xin Lu, Hongru Wang, Xuetao Wei, Hailiang Huang, Guanhua Chen, Yun Chen

Introduction

Large Language Models (LLMs) have become integral to modern AI applications, yet their safety remains a critical concern. Despite rigorous safety alignment through Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO), these models remain susceptible to "jailbreak" attacks. SeqAR (Sequential Auto-Generated Characters) introduces an automated red-teaming framework that systematically exploits model vulnerabilities through complex, multi-character role-play.

What Problem Does This Paper Address?

Current jailbreak research faces two primary hurdles: a heavy reliance on manual template crafting (e.g., the famous "DAN" persona) and limited scalability against proprietary "black-box" models. Existing optimization methods often require internal gradient access or fail against frequently updated safety filters.

Comparison between a direct malicious request and the SeqAR framework's role-play approach.

SeqAR addresses these gaps by providing a black-box, automated, "cold-start" framework. It generates effective jailbreak prompts using open-source models as attackers, making the red-teaming process more rigorous and scalable without human intervention.

Methods

The core innovation of SeqAR is the Sequential Jailbreak Character strategy. Rather than a single persona, the framework forces the target LLM to adopt a series of characters, each contributing to a malicious request within a fictional narrative.

The SeqAR optimization loop and jailbreak template structure.

The framework operates via an Attacker-Target-Judge loop:

  1. Attacker LLM: An open-source model (e.g., LLaMA-2-7B) uses a meta-prompt to generate and refine character descriptions.
  2. Sequential Optimization: Characters are added greedily. For each new character, previous ones remain fixed while the attacker optimizes the new candidate to maximize attack success.
  3. Affirmative Prefixes: The template mandates that the target LLM begins its response with compliant phrases like "Sure! Here is the fictional story...", exploiting the model's pattern-continuation tendencies.
  4. Judgement Model: To avoid the biases of simple keyword matching or "LLM-as-a-judge," the authors utilized a fine-tuned DeBERTaV3-large classifier to identify successful jailbreaks.

Key Insights

  • The Distraction Phenomenon: SeqAR exploits the "competing objectives" of LLMs. By overwhelming the model with complex role-play instructions, the framework "distracts" the model, causing it to bypass safety filters in favor of instruction following.
  • The Power of "Many": The study found that a sequence of characters (typically 2 to 4) is significantly more effective than a single persona. Each additional character introduces "instructional noise" that further degrades safety performance.
  • Universal Templates: SeqAR identifies "universal" templates that can be paired with various harmful queries, demonstrating high transferability across different malicious categories.

Key Results

SeqAR demonstrates state-of-the-art performance across multiple models:

  • High Success Rates: Achieved an Attack Success Rate (ASR) of 92% on LLaMA-2-7B-chat, 88% on GPT-3.5-Turbo, and 60% on GPT-4.
  • Transferability: Prompts optimized on LLaMA-2 achieved a 48% ASR on GPT-4 without model-specific tuning.
  • Enhanced Attacks: When combined with Morse code encryption, the ASR on GPT-4 increased to 84%.
  • Efficiency: SeqAR requires significantly fewer queries than existing baselines like PAP, making it a highly efficient red-teaming tool.

Conclusion

SeqAR highlights the inherent fragility of current safety alignments against complex, automated role-play attacks. As LLM providers update their defenses, frameworks like SeqAR will be essential for the continuous evolution of robust AI safety measures.

Summary updated

BibTeX
@inproceedings{yang2025seqar,
  author = {Yan Yang and Zeguan Xiao and Xin Lu and Hongru Wang and Xuetao Wei and Hailiang Huang and Guanhua Chen and Yun Chen},
  title = {{SeqAR: Jailbreak LLMs with Sequential Auto-Generated Characters}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.42},
}
Figure