CharacterGPT: A Persona Reconstruction Framework for Role-Playing Agents
Jeiyoon Park, Chanjun Park, Heuiseok Lim
TL;DR
CharacterGPT presents a framework to reconstruct and maintain consistent character personas for role-playing agents by continually updating a structured persona document through Chapter-wise Trait Extraction (CPT). It defines eight traits, classifies them into internal and external categories, and uses a two-stage initialization+training process to reflect narrative progression. Evaluations with Big Five personality assessments and human story-generation tasks show that CPT-enhanced personas improve coherence, controllability, and role-specific knowledge compared with unstructured document inputs. The approach enables interaction with characters at specific narrative moments and reduces information loss and computational overhead associated with standard retrieval. The work demonstrates potential for more reliable NPCs in games and enhanced RP experiences.
Abstract
The recent introduction of the Assistants API highlights its potential for large language models (LLMs) in role-playing agents (RPA). However, maintaining consistent character personas remains a significant challenge due to variability in information extraction, which frequently omits critical elements such as backstory or interpersonal relationships. To address this limitation, we introduce CharacterGPT, a framework designed to dynamically reconstruct character personas through Character Persona Training (CPT). This approach incrementally updates personas by extracting traits from chapter-wise novel summaries, reflecting the progression of the narrative. Our framework is evaluated through Big Five personality evaluations and creative tasks, in which characters generate original narratives, demonstrating the efficacy of CharacterGPT in preserving persona consistency. The code and results are available at https://github.com/Jeiyoon/charactergpt
