CogDual: Enhancing Dual Cognition of LLMs via Reinforcement Learning with Implicit Rule-Based Rewards
By: Cheng Liu , Yifei Lu , Fanghua Ye and more
Potential Business Impact:
Makes computer characters act more real.
Role-Playing Language Agents (RPLAs) have emerged as a significant application direction for Large Language Models (LLMs). Existing approaches typically rely on prompt engineering or supervised fine-tuning to enable models to imitate character behaviors in specific scenarios, but often neglect the underlying \emph{cognitive} mechanisms driving these behaviors. Inspired by cognitive psychology, we introduce \textbf{CogDual}, a novel RPLA adopting a \textit{cognize-then-respond } reasoning paradigm. By jointly modeling external situational awareness and internal self-awareness, CogDual generates responses with improved character consistency and contextual alignment. To further optimize the performance, we employ reinforcement learning with two general-purpose reward schemes designed for open-domain text generation. Extensive experiments on the CoSER benchmark, as well as Cross-MR and LifeChoice, demonstrate that CogDual consistently outperforms existing baselines and generalizes effectively across diverse role-playing tasks.
Similar Papers
Thinking in Character: Advancing Role-Playing Agents with Role-Aware Reasoning
Computation and Language
Makes AI characters think and act like real people.
Enhancing Persona Consistency for LLMs' Role-Playing using Persona-Aware Contrastive Learning
Computation and Language
Makes chatbots act more like real people.
Better LLM Reasoning via Dual-Play
Machine Learning (CS)
Teaches computers to answer hard questions better.