TL;DR
The paper introduces CoSER, a massive, high-quality literary dataset and framework designed to train and evaluate large language models (LLMs) for complex role-playing and persona simulation. By leveraging "Given-Circumstance Acting" (GCA)—a method inspired by classical acting theory—the authors develop open-source models (CoSER 8B and 70B) that match or outperform GPT-4o on role-playing benchmarks.
What Problem Does This Paper Address?
Role-Playing Language Agents (RPLAs) are becoming increasingly popular for applications like character chatbots, video game NPCs, and digital clones. However, making an LLM convincingly portray an established character (like Harry Potter or Cersei Lannister) remains incredibly difficult due to two primary bottlenecks:
- Data Scarcity and Quality: Most existing role-playing datasets consist of flat, LLM-synthesized question-answer pairs or simple two-character dialogues. They lack the deep narrative context, multi-character dynamics, and authentic human nuances found in real literature.
- Superficial Evaluation: Current evaluation protocols usually rely on single-turn interactions with predefined questions. LLM-based judges used to score these responses often suffer from length and position biases, while multiple-choice benchmarks only test narrow, specialized aspects of a persona.
Methods
To bridge these gaps, the authors introduce Given-Circumstance Acting (GCA), a framework drawing from Konstantin Stanislavski's famous acting methodology. Instead of treating role-play as a simple text-generation task, GCA forces the actor LLM to sequentially portray multiple characters within a highly specific book scene, accounting for environmental context, historical background, and personal motivations.
Training
The authors fine-tuned LLaMA-3.1 Instruct models (8B and 70B variants) using the CoSER dataset. Models are trained on a character's authentic utterances while receiving structured instructions containing character profiles, current scenarios, and specific motivations. Crucially, the training expands beyond verbal speech to include actions and internal thoughts. The models are also trained on complementary tasks like environment modeling and Next Speaker Prediction (NSP) to facilitate smooth multi-agent interactions.
Evaluation
GCA evaluation operates in two stages:
- Multi-Agent Simulation: A multi-agent system is spun up where the target LLM plays each character in a given book scene. An NSP model determines who speaks next, and an environment model provides situational feedback.
- Penalty-Based LLM Judging: Instead of asking an LLM judge to blindly assign a score, the authors use a penalty-based system. The judge (GPT-4o by default) identifies specific role-playing flaws based on expert rubrics and penalizes the score based on severity.
The evaluation is divided into four distinct quadrants to assess both individual agent capabilities and overall simulation quality:
Datasets
The core contribution is the CoSER Dataset, curated via a systematic LLM-based pipeline from the top 1,000 books on Goodreads' Best Books Ever list (resulting in 771 successfully processed books).
Unlike standard dialogue corpora, CoSER structures data hierarchically into plots, conversations, and characters:
- Scope: Covers 17,966 distinct characters across 29,798 conversations and 392,298 utterances.
- Rich Data Dimensions: Every message is explicitly broken down into Speech (verbal communication), Action (physical behaviors/body language), and Thought (invisible internal cognitive processes).
The models were also evaluated on three existing RPLA benchmarks: InCharacter (personality fidelity), LifeChoice (decision-making), and CroSS (motivation recognition).
Key Insights and Ideas
- The Power of Internal Monologue: Splitting the output space into speech, action, and thought allows models to simulate complex human behavior (like suppressed anger or tactical silence) far better than models restricted to surface-level speech alone.
- Authenticity Trumps Synthesis: Models trained on authentic literary dialogues significantly outperformed those trained on LLM-synthesized data. In fact, fine-tuning on synthetic data actually degraded baseline role-playing performance in some configurations.
- Contextual Anchoring via In-Context Learning: Introducing a "continue-from" parameter ($k$), where a simulation kicks off using the first few lines of the original book dialogue, drastically improves the performance of smaller models by anchoring the narrative tone and direction.
Key Results
- State-of-the-Art Performance: CoSER 70B achieved SOTA performance among open-source models, matching or exceeding close-source giants like GPT-4o and Claude-3.5-Sonnet.
- Benchmark Victories: On the LifeChoice decision-making benchmark, CoSER 70B scored 93.47%, outperforming GPT-4o by a staggering 23%. On InCharacter, it achieved 75.80% accuracy.
- N-Gram Metrics: CoSER models demonstrated a massive leap in mimicking exact literary styles, outperforming the next-best open model on BLEU scores by 58%.
- Human Validation: In rigorous human evaluations, CoSER 70B secured the highest overall score (6.78/10) and an 86.9% win rate against competing models.
Limitations and Future Work
- Inferred Thoughts: Because internal thoughts are rarely explicitly written down in third-person book narratives, the "thought" dimension in the dataset had to be inferred by an LLM (Claude-3.5-Sonnet) during curation, leaving room for optimization.
- Extraction Recall: The automated pipeline does not capture 100% of the plots or characters from the source novels; improving extraction recall is a noted area for future work.
- Copyright Restrictions: Due to copyright laws, the authors are only releasing the processed dataset fields (profiles, structured dialogues, thoughts) and not the raw text of the underlying novels.
Summary updated