Adversarial Closed-Loop Curriculum for Evolving Role-Playing Agents

Zheng Zhang, Liu Liu, Qi Chai, Deheng Ye, Peilin Zhao, Mao Zheng, Hao WangarXiv 2026

TL;DR

AdvRole introduces an adversarial closed-loop curriculum framework for training LLM-based role-playing agents. By alternating between training a role-playing Actor and a scenario-modifying Rewriter, the framework continuously evolves the training data to target the agent's moving failure boundaries. This dynamic data expansion allows smaller open-source models to outperform massive proprietary LLMs on role-playing benchmarks.

What Problem Does This Paper Address?

While Large Language Models (LLMs) excel at open-ended text generation, training them to be effective role-playing agents—staying strictly in-character while maintaining engaging conversations—remains a challenge. Recent reinforcement learning (RL) approaches have focused heavily on optimizing reward functions but suffer from a major data bottleneck: they train agents on a fixed pool of scenarios collected before training begins.

The authors point out that role-playing difficulty is highly actor-dependent. As an agent improves during training, the initial training scenarios become trivial and uninformative. The true "failure boundary" shifts toward rarer character traits, subtle background conflicts, and unfamiliar dialogue states. A static dataset cannot adapt to this moving target, leading to optimization stagnation.

Figure 1: Comparison between existing methods and Ad- vRole. Existing methods train the Actor on a fixed scenario pool collected before training. In contrast, AdvRole intro- duces a Rewriter that continually edits character profiles and dialogue contexts to expose Actor failures, evolving the sce- nario pool throughout training.

Methods

To break this distributional bottleneck, the authors propose AdvRole, a framework that turns role-playing RL into a closed-loop curriculum. It alternates between training two distinct models using Group Relative Policy Optimization (GRPO):

  1. The Actor ($\pi_\phi$): The actual role-playing agent being optimized. It receives a character profile and dialogue context, generates a response, and is scored by a strong LLM-based Reward Model (Qwen2.5-72B-Instruct) across multiple role-playing dimensions.
  2. The Rewriter ($\pi_\psi$): An adversarial model tasked with editing the original character profiles and dialogue contexts to make them more complex, diverse, and specifically tailored to expose the Actor's current weaknesses.

The Performance-Gap Reward

The core innovation lies in how the Rewriter is trained. Instead of optimizing for generic complexity, it is incentivized by a performance-gap reward. The reward is calculated as the difference between the Actor's performance on the original scenario versus the rewritten scenario:

$$R_{\text{Rewriter}}(\hat{c}) = \frac{1}{N} \sum_{i=1}^N \text{RM}(r^{(i)} | c) - \frac{1}{N} \sum_{i=1}^N \text{RM}(\hat{r}^{(i)} | \hat{c})$$

If the Actor scores poorly on the rewritten scenario ($\hat{c}$) compared to the original ($c$), the Rewriter receives a high reward. This adversarial loop ensures that the training pool continuously evolves alongside the Actor's skill level.

Figure 2: The training framework of AdvRole. In each epoch, the Actor is first trained by GRPO on the current scenario pool with rewards from a reward model, and the Rewriter is then trained to edit original scenarios to expose the Actor’s failures, with its reward defined by the Actor’s performance gap between the original and rewritten scenarios. The updated Rewriter further augments the pool for the next epoch, yielding an evolving scenario pool.

Datasets

The authors evaluated AdvRole across several distinct benchmarks:

  • CoSER: An English benchmark evaluating multi-turn dialogues (up to 30 turns) with an LLM-simulated partner.
  • CharacterEval: A Chinese single-response role-playing benchmark scoring 12 distinct metrics.
  • RAIDEN: A Chinese benchmark used strictly for zero-shot generalization testing.
  • Lanobe (New): A new multilingual role-playing benchmark introduced by the authors. It covers 5 languages (Simplified Chinese, Traditional Chinese, Japanese, Korean, and Thai), providing 1,000 training and 500 test scenarios per language to evaluate cross-cultural and cross-lingual role-playing.

Key Insights and Ideas

  • Data Evolvability > Fixed Scale: The bottleneck for smaller open-source role-playing models isn't necessarily raw parameter capacity, but rather the limited coverage of static training sets. Adversarially expanding the scenario pool is a highly efficient alternative to simply scaling up data volume.
  • Co-training is Essential: Ablation studies showed that a frozen rewriter quickly loses its effectiveness. As the Actor learns, the frozen rewriter's edits become uninformative. Co-training keeps the adversarial loop tightly coupled.
  • Holistic Rewriting Works Best: Modifying both character profiles and dialogue histories simultaneously yields better results than modifying either in isolation. Profile edits test adaptability to perturbed settings, while context edits test responses to unfamiliar conversational states.

Key Results

  • Surpassing Large-Scale LLMs: On the CharacterEval benchmark, a Qwen2.5-14B model trained with AdvRole achieved an overall score of 3.49, outperforming massive proprietary models like GPT-4o (3.20) and Claude-3.7-Sonnet (3.41).
  • State-of-the-Art Baselines: AdvRole consistently outperformed competitive RL baselines like CPO, R4, and VeriRole across English and Chinese datasets.
  • Measurable Pool Expansion: Using text embeddings, the authors proved that the scenario pool's diversity metrics (Intra-Pool Distance and New Clusters) steadily increased across training epochs, confirming that the Rewriter successfully pushed the training distribution into previously unoccupied semantic regions.

Limitations and Future Work

While AdvRole demonstrates impressive generalization, its success is partially bounded by the inherent language capabilities of the base model. In multilingual testing on the new Lanobe benchmark, the gains were significantly higher in languages where the base model was already strong (Chinese, Japanese) compared to languages where its foundational knowledge was weaker (Korean, Thai).

Additionally, the framework relies heavily on a large LLM judge as a reward model during training, which introduces substantial computational overhead and potential LLM-as-a-judge biases. Future work could explore more lightweight or verifiable reward mechanisms to stabilize the adversarial loop.

Summary updated

BibTeX
@misc{zhang2026adversarial,
  author = {Zheng Zhang and Liu Liu and Qi Chai and Deheng Ye and Peilin Zhao and Mao Zheng and Hao Wang},
  title = {{Adversarial Closed-Loop Curriculum for Evolving Role-Playing Agents}},
  year = {2026},
  eprint = {2609.28609},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.28609},
}
Figure