🤖 AI Summary
This work addresses the lack of research on inner-thought reasoning for role-playing language agents (RPLAs). We formally define this task and introduce ROLETHINK—the first dedicated benchmark—comprising two evaluation sets: original literary monologues (gold-standard) and expert-synthesized analyses (silver-standard). We propose MIRROR, a three-stage chain-of-reasoning framework that generates plausible, character-consistent inner thoughts via memory retrieval, reaction prediction, and motivation synthesis. MIRROR integrates large-language-model-based chain-of-thought reasoning, semantic memory retrieval, role-specific behavioral modeling, and expert-knowledge-guided synthetic evaluation. Experiments demonstrate that MIRROR significantly outperforms baselines on ROLETHINK, substantially improving RPLA consistency, depth, and anthropomorphism. All data, code, and models are publicly released.
📝 Abstract
Recent advances in LLM-based role-playing language agents (RPLAs) have attracted broad attention in various applications. While chain-of-thought reasoning has shown importance in many tasks for LLMs, the internal thinking processes of RPLAs remain unexplored. Understanding characters' inner thoughts is crucial for developing advanced RPLAs. In this paper, we introduce ROLETHINK, a novel benchmark constructed from literature for evaluating character thought generation. We propose the task of inner thought reasoning, which includes two sets: the gold set that compares generated thoughts with original character monologues, and the silver set that uses expert synthesized character analyses as references. To address this challenge, we propose MIRROR, a chain-of-thought approach that generates character thoughts by retrieving memories, predicting character reactions, and synthesizing motivations. Through extensive experiments, we demonstrate the importance of inner thought reasoning for RPLAs, and MIRROR consistently outperforms existing methods. Resources are available at https://github.com/airaer1998/RPA_Thought.