Modeling latent character states is crucial for consistent and engaging role-playing (RP) with large language models (LLMs). Yet, existing prompting-based approaches mainly capture surface actions, often failing to track the latent states that drive interaction. We revisit finite-state machines (FSMs), long used in game design to model state transitions. While effective in small, well-specified state spaces, traditional hand-crafted, rule-based FSMs struggle to adapt to the open-ended semantic space of RP. To address this, we introduce Codified Finite-State Machines (CFSMs), a framework that automatically codifies textual character profiles into FSMs using LLM-based coding. CFSMs extract key states and transitions directly from the profile, producing interpretable structures that enforce character consistency. To further capture uncertainty and variability, we extend CFSMs into Codified Probabilistic Finite-State Machines (CPFSMs), where transitions are modeled as probability distributions over states. Through both synthetic evaluations and real-world RP scenarios in established artifacts, we demonstrate that CFSM and CPFSM outperform generally applied baselines, verifying effectiveness not only in structured tasks but also in open-ended stochastic state exploration.
CRPO: Character-centric Group Relative Policy Optimization for Role-aware Reasoning in Role-playing Agents
Institute of Computing and Intelligence(计算与智能研究院);Harbin Institute of Technology(哈尔滨工业大学);Shenzhen Loop Area Institute (SLAI)(深圳Loop区研究院);The Chinese University of Hong Kong(香港中文大学)
Large Language Model-based Role-Playing for Personalized Medical Jargon Extraction
Manning College of Information and Computer Sciences, University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校曼宁信息与计算机科学学院);Mendoza College of Business, University of Notre Dame(圣母大学门多萨商学院);University of Massachusetts Medical School(马萨诸塞大学医学院);Miner School of Computer and Information Sciences, University of Massachusetts Lowell(马萨诸塞大学洛厄尔分校迈纳计算机与信息科学学院);VA Bedford Health Care(贝德福德退伍军人事务医疗中心)
MOOM: Maintenance, Organization and Optimization of Memory in Ultra-Long Role-Playing Dialogues
Beijing University of Posts and Telecommunications(北京邮电大学);SenseTime(商汤科技);Beijing Key Laboratory of Network System and Network Culture(北京网络系统与网络文化重点实验室)
Context-Aware Sentiment Forecasting via LLM-based Multi-Perspective Role-Playing Agents
Shenzhen International Graduate School Tsinghua University(清华大学深圳国际研究生院);Department of Electronic Engineering Tsinghua University(清华大学电子工程系);Northeastern University at Qinghuangdao(清华大学秦皇岛分校);Department of Computer Science University of California Irvine(加州大学 Irvine 分校计算机科学系)
RMTBench: Benchmarking LLMs Through Multi-Turn User-Centric Role-Playing
Chinese Information Processing Laboratory, Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所信息处理实验室);Alibaba Group(阿里巴巴集团);University of Chinese Academy of Sciences(中国科学院大学)
RoleLLM: Benchmarking, Eliciting, and Enhancing Role-Playing Abilities of Large Language Models
Beijing University of Posts and Telecommunications(北京邮电大学);The Hong Kong University of Science and Technology(香港科技大学);Beihang University(北京航空航天大学);University of the Chinese Academy of Sciences(中国科学院大学);ETH Zürich(苏黎世联邦理工学院);The Hong Kong Polytechnic University(香港理工大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Shanghai AI Lab(上海人工智能实验室)
The Rise of Darkness: Safety-Utility Trade-Offs in Role-Playing Dialogue Agents
Institute of Computing and Intelligence, Harbin Institute of Technology(哈尔滨工业大学计算与智能学院);Baidu Inc.(百度公司);College of Intelligence and Computing, Tianjin University(天津大学智能与计算学院)
InCharacter: Evaluating Personality Fidelity in Role-Playing Agents through Psychological Interviews
Fudan University(复旦大学);Carnegie Mellon University(卡内基梅隆大学);The Chinese University of Hong Kong(香港中文大学);Renmin University of China(中国人民大学);Beijing University of Technology(北京工业大学);Boston University(波士顿大学);RhineAI(莱茵AI公司);SenseTime(商汤科技)
Improving LLM Reasoning through Interpretable Role-Playing Steering
Center for Information and Language Processing, LMU Munich(信息与语言处理中心,慕尼黑大学);Northwestern University(西北大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心(MCML));New Jersey Institute of Technology(新泽西理工学院)
The Oscars of AI Theater: A Survey on Role-Playing with Language Models
Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Hong Kong University of Science and Technology(香港科技大学);Tencent(腾讯);Singapore Management University(新加坡管理大学)
A Multi-Task Role-Playing Agent Capable of Imitating Character Linguistic Styles
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);Huawei Technologies Co., Ltd.(华为技术有限公司)
Revealing and Mitigating the Challenge of Detecting Character Knowledge Errors in LLM Role-Playing
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);Alibaba Inc.(阿里巴巴公司);Meituan Inc.(美团公司)
Persona-Pruner: Sculpting Lightweight Models for Role-Playing
Department of Artificial Intelligence, Korea University, Seoul, South Korea(韩国大学人工智能系);Korea Advanced Institute of Science and Technology (KAIST)(韩国科学技术院)