NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mitigating Hallucination in Fictional Character Role-Play

Nafis Sadeq, Zhouhang Xie, Byungkyu Kang, Prarit Lamba, Xiang Gao, Julian McAuley · DOI

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:

  1. Cross-universe hallucinations: A character references elements completely outside their story (e.g., Hiccup from How to Train Your Dragon discussing Hogwarts spells).
  2. 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).
Figure 1: Example of cross-universe hallucination (Hic- cup should not answer questions about Hogwarts) and temporal hallucination (Harry should not talk about the Patronus charm in his first year) in character role-play.

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:

  1. Intermediate Response Generation (IRG): The model generates an initial response using a character profile and retrieved non-parametric script knowledge.
  2. Atomic Fact Decomposition (DEC): The response is broken down into a list of distinct, third-person atomic facts.
  3. 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.
  4. Self-reflection Update (SRU): The LLM rewrites the final response, cleanly removing any unverified facts or hallucinations.
Figure 4: An overview of RoleFact, which performs parametric and non-parametric verification of atomic facts.

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.
Figure 2: Factual precision degrades when we minimize parametric knowledge by anonymizing the prompts.
  • 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.
Figure 3: Factual precision degrades with decreasing character popularity (left to right), shown for characters associated with the ‘How to Train Your Dragon’ series.
  • 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

BibTeX
@inproceedings{sadeq2024mitigating,
  author = {Nafis Sadeq and Zhouhang Xie and Byungkyu Kang and Prarit Lamba and Xiang Gao and Julian McAuley},
  title = {{Mitigating Hallucination in Fictional Character Role-Play}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.846},
}
Figure