TL;DR
Large language models (LLMs) frequently leak outside knowledge or future plot points when role-playing fictional characters. This paper introduces the Script Grounded Character Role-play (SGR) dataset to evaluate these errors and proposes RoleFact, a method that verifies and filters atomic facts against both script context and calibrated model confidence to significantly reduce hallucinations.
What Problem Does This Paper Address?
When LLMs are deployed as conversational agents to impersonate fictional characters, they often suffer from two distinct types of hallucinations driven by their vast pre-trained "parametric" knowledge:
- Cross-universe hallucinations: A character references elements completely outside their story (e.g., Hiccup from How to Train Your Dragon discussing Hogwarts spells).
- Temporal hallucinations: A character demonstrates knowledge of events ahead of their current timeline (e.g., a first-year Harry Potter talking about casting a Patronus charm).
Additionally, LLM role-play quality drops sharply for less popular, niche characters because the model's internal knowledge base is sparse. Simply stripping out parametric knowledge and relying purely on retrieved text makes characters boring and surprisingly less factually precise. The authors tackle the challenge of modulating the influence of an LLM's internal knowledge to balance factuality and informativeness.
Methods
The authors introduce RoleFact, a verification framework that refines character responses through a four-step process:
- Intermediate Response Generation (IRG): The model generates an initial response using a character profile and retrieved non-parametric script knowledge.
- Atomic Fact Decomposition (DEC): The response is broken down into a list of distinct, third-person atomic facts.
- Dual-Source Fact-Checking: Each atomic fact is first checked against the retrieved script context. If it is missing, it undergoes a parametric self-check where the LLM evaluates the statement multiple times ($m$ times). If the model's consistency (internal confidence) meets or exceeds a calibrated threshold ($t$), the fact is retained.
- Self-reflection Update (SRU): The LLM rewrites the final response, cleanly removing any unverified facts or hallucinations.
Datasets
The authors introduce the Script Grounded Character Role-play (SGR) dataset, a large-scale benchmark compiled from movie and TV scripts.
- Scale: Contains over 2,000 characters across 1,152 unique storylines, totaling 72,000 interviews.
- Tasks: Features four distinct task types:
- Adversarial Interview (ADV): Prompts designed to induce cross-universe hallucinations.
- Open-ended Interview (OEI): General questions to ensure the model remains informative.
- Dialogue Completion (DC): Time-sensitive script continuations.
- Scene-grounded Interview (SGI): Questions restricted to specific scene timelines.
Key Insights and Ideas
- The Parametric Paradox: Completely blocking an LLM's internal knowledge via anonymized prompts actually degrades factual precision and informativeness. Parametric knowledge is vital for conversational fluidity; it just needs boundaries.
- The Popularity Penalty: Factual precision strongly correlates with character popularity. Niche characters hallucinate significantly more because the model lacks deep parametric familiarity with them, making script-grounding even more critical.
- Sampling as a Confidence Metric: Rather than relying on a single token-probability check, querying the LLM multiple times to see how consistently it affirms a fact serves as an effective proxy for internal confidence calibration.
Key Results
Evaluated across Vicuna-7B, Llama-3-8B, and GPT-3.5-Turbo, RoleFact demonstrated substantial improvements over standard retrieval-augmented baselines:
- Factual Precision Boost: Improved factual precision by 18% on adversarial questions for GPT-3.5.
- Temporal Hallucination Reduction: Achieved a 44.5% relative reduction in temporal hallucinations during scene-grounded interviews.
- Niche Character Improvement: Delivered a 22.9% relative improvement in factual precision when excluding the top 10 most popular characters per story.
Limitations and Future Work
RoleFact is highly sensitive to retrieval quality. The authors observed an interesting Retrieval-Augmented Generation (RAG) bottleneck: increasing the number of retrieved documents beyond 5 actually hurt factual precision by introducing irrelevant context that confused the model.
Future work includes exploring self-reflection mechanisms to filter out irrelevant retrieved knowledge, task-specific fine-tuning for dense retrieval, and directly instruction-tuning open-weight LLMs on the SGR dataset.
Summary updated