Abstract
CharacterBox is a novel evaluation framework designed to assess the role-playing (RP) capabilities of Large Language Models (LLMs) within dynamic, multi-agent virtual environments. Unlike traditional static benchmarks that rely on dialogue snippets or self-reporting, CharacterBox tracks "behavioral trajectories" to measure consistency, persona fidelity, and human-likeness. By simulating complex interactions between character agents and a narrator, the framework provides a more rigorous standard for evaluating how models maintain character integrity over extended narratives.
Introduction
The evaluation of role-playing in Large Language Models (LLMs) has historically relied on static methods, such as self-reporting questionnaires or isolated dialogue snapshots. However, these methods fail to capture the essence of a character: their "deeds" in response to a changing environment. To truly determine if an LLM can embody a persona like Sun Wukong or Harry Potter, it must be observed navigating a complex, open-ended narrative over time.
CharacterBox addresses this challenge by introducing a simulation sandbox where characters must act, react, and evolve. By shifting the focus from static text to behavioral trajectories, CharacterBox provides a more realistic benchmark for role-playing fidelity and consistency.
The CharacterBox Framework
The CharacterBox environment is built on a multi-agent simulation consisting of two primary components:
- The Character Agent: These agents are grounded in psychological and behavioral science, utilizing a memory module and the Belief-Desire-Intention (BDI) model. This ensures that their actions are not just linguistically plausible but also aligned with their specific persona's motivations.
- The Narrator Agent: Functioning as a "Dungeon Master," the narrator coordinates interactions and updates the environmental state (e.g., "The fire spreads across the peak") based on character actions.
To ensure scalability and cost-effectiveness, the researchers introduced two specialized models: CharacterNR (Narrator), a fine-tuned Qwen2.5-7B model for world-building, and CharacterRM (Reward Model), a fine-tuned ChatGLM3-6B model that scores trajectories across seven metrics, serving as a reliable proxy for human judgment.
Methodology and Training
The framework utilizes a bilingual dataset derived from 10 iconic sources, including Journey to the West and Harry Potter. The dataset comprises 100 scenes (50 original and 50 extracted) and 232 unique characters.
To enhance RP performance, the study proposes two training strategies:
- Guided Trajectory Fine-tuning: Learning from high-quality expert paths.
- Reflective Trajectory Fine-tuning: A process where the model analyzes its own past actions to identify inconsistencies and rewrites them, leading to performance gains of up to 19.9%.
Key Results and Insights
Experimental results highlight several critical findings:
- Model Performance: GPT-4-Turbo remains the gold standard, particularly in English and Chinese scenes. However, open-source models like Qwen2.5-14B show significant strength, even surpassing GPT-3.5 in Chinese cultural contexts.
- The Importance of Reflection: The "Reflective" fine-tuning method proved highly effective, demonstrating that role-playing is a skill that can be sharpened through iterative self-analysis.
- Cultural Nuance: Models trained on specific cultural corpora (like Qwen for Chinese settings) significantly outperform larger, Western-centric models in those specific domains.
- Human Alignment: The automated CharacterRM achieved a 0.61 Pearson correlation with human experts, validating its use as a sustainable evaluation tool.
Conclusion
CharacterBox represents a significant step forward in LLM evaluation, moving from static snapshots to dynamic behavioral trajectories. While challenges remain regarding computational efficiency and context window limitations for long-form narratives, the framework provides a robust foundation for developing more consistent and human-like role-playing agents. Future work will focus on optimizing simulation runtimes and exploring even more complex, multi-chapter storylines.
Summary updated