TL;DR
CoSER introduces a massive, high-quality dataset of 17,966 characters from 771 renowned books to move beyond shallow, LLM-synthesized role-playing. By training models on authentic dialogues and "internal thoughts" using a novel Given-Circumstance Acting (GCA) framework, the authors developed open-source models (8B and 70B) that match or exceed GPT-4o in simulating complex, established personas.
The Challenge of Persona Simulation
Role-playing language agents (RPLAs) are popular, but they often feel "flat" or out-of-character when simulating well-known figures from literature. The authors identify two primary bottlenecks:
- Data Poverty: Most existing datasets are synthesized by LLMs, leading to a "hall of mirrors" effect where models learn from other models rather than authentic human-written narratives. These datasets also lack the "internal monologue" and environmental context that make characters feel real.
- Evaluation Gaps: Current benchmarks often rely on single-turn Q&A or multiple-choice tests, which fail to capture the nuances of multi-turn, multi-character interactions.
Methodology: Given-Circumstance Acting
The core of CoSER is the Given-Circumstance Acting (GCA) methodology, inspired by Konstantin Stanislavski’s acting theories. Instead of just predicting the next line of dialogue, the model is trained to understand the "given circumstances"—the character's history, current motivations, and the specific scene setting.
Key technical components include:
- The Speech-Action-Thought (SAT) Format: Unlike standard LLMs that only output speech, CoSER models are trained to generate internal thoughts (invisible to other characters) and physical actions alongside dialogue.
- Multi-Agent Simulation: For evaluation, the researchers don't just ask the model a question. They create a multi-agent environment where the model must sequentially play every character in a scene, interacting with an "Environment Model" that provides feedback on physical changes.
- Penalty-Based Judging: To avoid the "positivity bias" of LLM judges, they use a system that identifies specific "flaws" (e.g., breaking character, lack of initiative) based on detailed rubrics and deducts points from a base score.
The CoSER Dataset
To fuel this approach, the authors introduced the CoSER Dataset, which is significantly more comprehensive than previous efforts:
- Scale: 29,798 authentic conversations involving 17,966 characters from 771 books.
- Diversity: Covers a wide array of genres, with Fantasy, Historical, and Science Fiction being the most prominent.
- Richness: Includes plot summaries, character experiences, and structured internal thoughts.
For evaluation, they used CoSER Test (held-out book data) and three existing benchmarks: InCharacter (personality fidelity), LifeChoice (decision-making), and CroSS (motivation recognition).
Key Insights
- Authenticity is King: Models fine-tuned on real book dialogues consistently outperformed those trained on LLM-synthesized data. Real literature contains "real-world intricacies" that synthetic data lacks.
- Thoughts Drive Depth: Including "internal thoughts" in the training data significantly improved the models' ability to portray sophisticated cognitive processes, like suppressed anger or hidden motives.
- Environment as a Role: Treating the "Environment" as a special agent that responds to character actions (e.g., "the door opened") helps maintain the logical flow of a simulation.
- The "Length Bias" in Evaluation: The authors found that LLM judges tend to give lower scores to longer simulations because more turns provide more opportunities for flaws. They implemented a length-correction factor to ensure fair scoring.
Results and Performance
The CoSER 70B model (built on Llama-3.1) achieved state-of-the-art results:
- LifeChoice Benchmark: Achieved 93.47% accuracy, surpassing GPT-4o by a staggering 23%.
- InCharacter Benchmark: Reached 75.80% accuracy, matching or exceeding top-tier proprietary models.
- Human Evaluation: In head-to-head comparisons, human annotators preferred CoSER 70B's simulations over GPT-4o's, noting that it avoided "stereotypical" portrayals in favor of more nuanced, book-accurate behavior.
- Retrieval Augmentation: Providing the model with specific character experiences and past conversations during inference further boosted performance, especially for the 70B variant.
Limitations and Future Work
- Inferred Thoughts: While the dataset includes internal thoughts, many were inferred by an LLM (Claude-3.5-Sonnet) during the curation process because they aren't always explicitly stated in the text.
- LLM Judge Knowledge: LLM critics may still lack the deep, specific knowledge required to catch every subtle character deviation in obscure books.
- Recall in Extraction: The current pipeline might miss some plots or characters from the source material; improving the "recall" of the extraction process is a noted area for future research.
- Copyright Constraints: Due to copyright, the authors only release the processed data and models, not the raw text of the 771 books.
Summary updated