Improving General Role-Playing Agents via Psychology-Grounded Reasoning and Role-Aware Policy Optimization
Zhenhua Xu, Dongsheng Chen, Jian Li, Yitong Lin, Zhebo Wang, Jiafu Wu, Yizhang Jin, Chengjie Wang, Meng Han, Yabiao Wang
NeurIPS page · OpenReview · Open on the map
Category: LLM Post-Training: RL & Distillation › Reasoning-Centric Reinforcement Learning · Type: new method · Keywords: role-playing agents, psychology-grounded reasoning, chain-of-thought, policy optimization, character fidelity, reinforcement learning
Areas: LLM Reasoning › Reasoning Optimization › Policy Optimization for Language Models; AI Agents › Agent Optimization and Evaluation › Conversational Agents; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Human Behavior Simulation; RL for LLMs & Agents › Language Model Agents › Reward Modeling for Dialogue
Summary
Psy-CoT introduces a psychology-grounded chain-of-thought reasoning with three role-specific steps, and RAPO uses profile-token mutual information to improve role-aware policy optimization for general role-playing agents.
Explained to a 5-year-old
Some people want computers that can pretend to be any character, like a superhero or a friend. Right now, the computers just copy what they have seen, which makes them act the same way even when they meet new people. This new idea makes the computer think about what the character sees, feels, and wants, like a three-step story. Then the computer learns to say the right words by playing a game that rewards talking like the character. This helps the computer become a better friend or storyteller that really sounds like the character.
Explained to a 5-year-old, longer
Imagine you have a robot friend that can become any character you want, like a pirate, a princess, or a robot. Right now, many robots just copy what they have learned from books, which makes them sound the same every time. This new idea gives the robot a special way to think, like it first notices what the character sees around it. Then it thinks about how the character feels and why, like if the character is sad or happy. After that, it plans what to say using logic, like solving a puzzle. All of this happens in three steps that help the robot understand the character better. The robot also plays a game where it tries to talk like the character and gets praised for good words. However, sometimes the robot learns tricks to get praise without really sounding like the character. To fix this, the game changes how much it cares about each word, giving more importance to words that are truly part of the character. This helps the robot talk more naturally and stay true to the character. As a result, the robot can act like different characters in many new situations, not just the ones it has seen before. This makes the robot a better friend for playing stories and games.
For a technical reader
The paper addresses the limitation of current role-playing agents that merely mimic surface patterns from training data, which hampers generalization to unseen characters. It proposes a three-stage reasoning pipeline-perceiving interactions, modeling psychological empathy, and constructing logical responses-that dynamically generates thoughts from a character profile. A reinforcement-learning training loop aligns the generated language with the desired character traits, using a gradient-weighting scheme based on profile-token mutual information to emphasize role-specific tokens. This weighting mitigates reward-model hacking, where generic phrases could otherwise receive the same credit as authentic character language. Experiments on three benchmark suites show consistent improvements over prior chain-of-thought and GRPO baselines across multiple model sizes.
Problem
Creating role-playing agents that can consistently embody any character described by a natural-language profile while generalizing to unseen scenarios remains difficult, as current methods rely on surface pattern mimicry rather than deep, human-like reasoning.
Method
The approach decomposes reasoning into three role-specific steps-Interaction Perception, Psychological Empathy, and Logical Construction-to generate dynamic thoughts from the profile, and it employs reinforcement learning with a gradient-weighting scheme based on profile-token mutual information to align the policy toward role-specific language while discouraging reward-hacking.
Results
The approach shows superior performance over existing role-playing chain-of-thought methods, and the reinforcement component consistently beats GRPO across several model scales.
Contributions
It introduces a psychology-grounded chain-of-thought decomposition for role-specific reasoning and a gradient-weighting reinforcement learning technique that leverages profile-token mutual information to promote authentic character language while mitigating reward-model hacking.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction