CPO: Addressing Reward Ambiguity in Role-playing Dialogue via Comparative Policy Optimization

Xinge Ye, Rui Wang, Yuchuan Wu, Victor Ma, Feiteng Fang, Fei Huang, Yongbin Li · DOI

Abstract

Reinforcement Learning Fine-Tuning (RLFT) has proven highly effective for tasks with verifiable ground truths, such as mathematics and coding. However, its application to open-ended, subjective domains like role-playing dialogue remains challenging due to "reward ambiguity." We introduce Comparative Policy Optimization (CPO), a novel framework that shifts the reward modeling paradigm from absolute sample-wise scoring to group-wise comparative ranking. By forcing the reward model to compare multiple candidate responses simultaneously, CPO generates more stable training signals and mitigates the amplification of stochastic noise. Our experiments across major benchmarks, including a new session-level evaluation framework called CharacterArena, demonstrate that CPO significantly enhances character consistency, narrative appeal, and alignment with human judgment.

1. Introduction: The Reward Ambiguity Problem

While RLFT is a powerful tool for optimizing Large Language Models (LLMs), it often falters in role-playing scenarios. The authors identify three primary failure modes in traditional reward modeling:

  1. Ambiguity in Benchmarking: Subjective criteria, such as whether a response is "in-character," lead to inconsistent scoring.
  2. Scoring Instability: LLM-based judges are sensitive to minor prompt variations, introducing stochastic noise into the reward signal.
  3. Error Amplification: In algorithms like Group Relative Policy Optimization (GRPO), rewards are normalized. Tiny, noisy differences between similar responses (e.g., a score of 0.50 vs 0.51) can be amplified into massive "advantage" signals, misguiding the policy update.
Figure 1: Comparison between traditional absolute scoring (left), which suffers from noise amplification, and the proposed comparative ranking approach (right).

2. Comparative Policy Optimization (CPO)

To address these issues, we propose Comparative Policy Optimization (CPO). Instead of assigning an independent score to a single response, the reward model (RM) evaluates a group of candidate responses simultaneously. The RM follows a structured three-step procedure:

  1. Analyze: Evaluate all responses against the specific character profile and conversational context.
  2. Rank: Order the responses from best to worst based on relative quality.
  3. Score: Assign calibrated scores derived from the relative ranking.

This approach leverages the fact that LLMs, much like humans, are more reliable at relative comparison than absolute scoring. To prevent the model from exploiting length bias, CPO incorporates a soft overlength penalty, ensuring that improvements are driven by content quality rather than verbosity.

Figure 3: An example of a role-playing scene description and dialogue interaction used for training and evaluation.

3. Evaluation Framework and Datasets

The study utilizes a diverse set of data for different training stages:

  • SFT Data: 13,230 dialogues from RoleplayPref and 50,000 samples from GPT-WritingPrompts.
  • RLFT Data: Dialogues generated through interactions with the Doubao-Pro-Character simulator.

For evaluation, the authors introduce CharacterArena, a two-stage framework that simulates multi-turn interactions and employs trajectory-level judging. This captures long-term coherence and "character drift" that single-turn benchmarks often miss. Other benchmarks include CharacterEval and CharacterBench.

4. Key Results and Insights

CPO demonstrates superior performance across multiple LLM backbones, including Qwen2.5 and LLaMA3.

  • Benchmark Performance: CPO consistently outperformed vanilla GRPO, improving average scores on CharacterEval by approximately 0.06 points.
  • Human Alignment: The comparative scoring method increased Pearson correlation with human judgments by up to 25%.
  • Trajectory-Level Robustness: Evaluating entire conversation trajectories proved more robust than single-turn metrics, highlighting CPO's ability to maintain long-term character consistency.
  • Generalizability: The comparative paradigm also improved performance when integrated into other RL methods like Direct Preference Optimization (DPO).

5. Conclusion

CPO effectively addresses the instability of reward signals in subjective tasks by adopting a comparative ranking strategy. While currently focused on single-turn response quality within a multi-turn context, future work will explore optimizing long-term dialogue strategies and extending the comparative paradigm to other creative domains like storytelling and poetry.

Summary updated

BibTeX
@inproceedings{ye2025cpo,
  author = {Xinge Ye and Rui Wang and Yuchuan Wu and Victor Ma and Feiteng Fang and Fei Huang and Yongbin Li},
  title = {{CPO: Addressing Reward Ambiguity in Role-playing Dialogue via Comparative Policy Optimization}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure