Stay in Character, Stay Safe: Dual-Cycle Adversarial Self-Evolution for Role-Playing Agents
Mingyang LiaoYichen WanShuchen WuChenxi MiaoXin ShenWeikang LiYang LiDeguo XiaJizhou Huang
Mingyang Liao
Yichen Wan
Shuchen Wu
Chenxi Miao
Xin Shen
Weikang Li
Yang Li
Deguo Xia
Jizhou Huang
+9
The paper proposes a training-free Dual-Cycle Adversarial Self-Evolution framework for LLM role-playing agents, addressing the tension that stronger persona adherence, especially for risky or negative personas, increases jailbreak vulnerability; prior training-time fixes are costly to maintain, can degrade in-character behavior, and are often infeasible for closed-weight models. A Persona-Targeted Attacker Cycle synthesizes progressively stronger jailbreak prompts, while a Role-Playing Defender Cycle distills observed failures into a hierarchical knowledge base of global safety rules, persona-grounded constraints, and safe in-character exemplars, which the Defender retrieves and composes at inference to guide generation. Experiments across multiple proprietary LLMs show consistent gains over strong baselines on role fidelity and jailbreak resistance, with robust generalization to unseen personas and attack prompts.

IJCAI · September 2026