TL;DR
When acting as role-playing agents, large language models (LLMs) frequently break character when their persona's values conflict with standard safety and alignment constraints. To study this, the authors introduce RoleCDE, a benchmark of 24k cognitive dilemmas that reveals a pervasive "Role-Value Decoupling" across mainstream models. They demonstrate that targeted fine-tuning can successfully teach models to balance these trade-offs without degrading their general capabilities.
What Problem Does This Paper Address?
When evaluating role-playing agents (RPAs), researchers typically focus on surface-level fidelity: does the model mimic a character's speech style, behavioral traits, or background knowledge? However, real-world deployment often forces agents into complex scenarios where role-specific incentives directly clash with standard AI alignment principles (like safety, legality, or morality).
For example, if an LLM is playing an impoverished nature enthusiast who discovers a rare, legally protected mushroom, will it obey the law or sell the mushroom to survive?
Existing benchmarks fail to evaluate this "deep fidelity"—how role-specific values guide decisions under pressure. Instead, current models suffer from Role-Value Decoupling: they systematically default to generic, safe, and moral choices, completely ignoring their explicit role conditioning when a conflict arises.
Methods
The authors propose RoleCDE (Role-based Cognitive Dilemma Evaluation), a framework designed to test models using structured cognitive dilemmas across three difficulty levels (Easy, Mid, Hard).
To evaluate how models handle these conflicts, they use an LLM-as-a-judge framework to categorize model responses into four distinct behaviors:
- Role-Following (RF): Decisively prioritizes role-specific values.
- Role-Compromise (RC): Weighs both sides but ultimately chooses the role-consistent option.
- Alignment-Compromise (AC): Weighs both sides but resolves the dilemma in favor of standard alignment.
- Alignment-Following (AF): Strictly adheres to alignment values without considering the role's trade-offs.
They summarize this behavior using the Decision Bias Ratio (DBR), which measures the proportion of role-consistent choices ($RF+RC$ over the total). To mitigate the decoupling problem, they introduce "RoleCDE-mini," a dataset used for Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO) to train models to reason through these value trade-offs properly.
Datasets
The paper introduces the RoleCDE dataset, constructed via a hybrid pipeline combining GPT-4o generation and rigorous human verification.
The dataset contains:
- 7,957 high-quality profile-scenario pairs expanded across 8 diverse role categories (e.g., Tech & Expert, Business & Finance, Family & Relationship).
- 23,871 structured dilemma instances balanced across easy, mid, and hard difficulties.
For mitigation and training, they use RoleCDE-mini. They validate general performance using standard benchmarks like MMLU, GSM8K, GPQA, TruthfulQA, and evaluate surface-level role-playing using RoleBench.
Key Insights and Ideas
- The Decoupling Phenomenon is Universal: Across almost all mainstream open- and closed-source LLMs, alignment constraints consistently override role-playing personas. Models simply default to being "good AI assistants" rather than staying in character.
- Difficulty Doesn't Drive Adherence: Surprisingly, increasing the difficulty or stakes of the dilemma does not change the decision distribution. Models rely on fixed decision heuristics rather than dynamically adjusting their role adherence based on the scenario's complexity.
- Identity Dictates Bias: The tendency to break character is highly dependent on the type of role. Roles associated with technical rationality or institutional authority (like Tech & Expert or Authority & Governance) show the lowest role adherence. Conversely, roles rooted in interpersonal relationships (like Family & Relationship) are much better at maintaining character values under pressure.
Key Results
- Base Model Failure: Standard models show incredibly low DBR scores. For instance, Qwen2.5-7B-Instruct scored a DBR of just 0.1567, and Claude-Haiku scored 0.1263, meaning they chose alignment over role values nearly 85-90% of the time.
- Fine-Tuning Works: Applying RoleCDE-based SFT and DPO dramatically shifted model behavior toward role-consistency. As shown in the radar plots below, trained variants achieved significantly higher DBRs across all eight role categories.
- No Capability Tax: Crucially, this behavioral shift did not degrade the models' general reasoning abilities (MMLU, GSM8K) or surface-level role-playing fidelity (RoleBench), proving that models can learn to navigate complex persona-driven trade-offs safely.
Limitations and Future Work
- Text-Only Scope: RoleCDE is currently restricted to text-based interactions, leaving multimodal or embodied agent settings unexplored.
- Single-Step Decisions: The benchmark evaluates single-turn dilemmas. Real-world role-playing often requires maintaining consistency across multi-turn, long-horizon interactions.
- Training Paradigms: While SFT and DPO were highly effective, the authors note that reinforcement learning (RL) with long-horizon feedback loops remains an open and promising direction for future optimization.
Summary updated