Revealing the Challenge of Detecting Character Knowledge Errors in LLM Role-Playing

Wenyuan Zhang, Jiawei Sheng, Shuaiyi Nie, Zefeng Zhang, Xinghua Zhang, Yongquan He, Tingwen Liu · DOI

TL;DR

Large Language Models (LLMs) are increasingly used for role-playing, but they struggle to accurately detect and correct factual errors within their character personas. This paper introduces "RoleKE-Bench," a new benchmark to evaluate this capability, and proposes "S2RD," an agent-based reasoning method that significantly improves error detection, though the challenge remains substantial.

What Problem Does This Paper Address?

As LLMs become more sophisticated in role-playing, the quality of their generated content hinges on their ability to maintain authentic character knowledge. This includes both knowing what the character should know (known knowledge) and not knowing what the character shouldn't know (unknown knowledge). Current LLM role-playing systems often fail to detect errors in these areas, leading to the generation of inaccurate character knowledge bases and unreliable role-playing agents. This paper aims to address this gap by formally defining and evaluating LLMs' capacity to detect two types of character knowledge errors: Known Knowledge Errors (KKE) and Unknown Knowledge Errors (UKE).

Methods

The authors introduce RoleKE-Bench, a novel dataset designed to evaluate LLMs' ability to detect KKE and UKE. The dataset construction involves two stages: first, generating correct character memories from Wikipedia data, categorized into four types (Event, Relational, Attitudinal, and Identity Memory); second, injecting KKE and UKE into these memories to create erroneous queries.

To improve LLMs' error detection capabilities, they propose Self-Recollection and Self-Doubt (S2RD), an agent-based reasoning method. S2RD works in three phases:

  1. Self-narrative generation: The LLM first reaffirms its character identity.
  2. Self-Recollection: The LLM recalls relevant true memories from its knowledge base (augmented by retrieval from the character's Wikipedia corpus) to counter potential errors.
  3. Self-Doubt: The LLM critically examines the query for inconsistencies with its character's knowledge and persona, expressing doubt or confusion.

The final response is generated by combining the outputs of these phases.

Datasets

The primary dataset introduced is RoleKE-Bench. It comprises 990 queries derived from nine well-known real or literary characters. These queries are designed to test LLMs' detection of:

  • Known Knowledge Errors (KKE): When a character misstates or confuses facts within their cognitive scope.
  • Unknown Knowledge Errors (UKE): When a character references information beyond their established knowledge or era.

The dataset is structured to include correct memories, KKE queries, and UKE queries, with detailed explanations for the errors.

Key Insights and Ideas

  • LLMs struggle with character knowledge errors: Even state-of-the-art LLMs exhibit low accuracy in detecting both KKE and UKE, particularly when the errors are subtle or relate to familiar knowledge.
  • KKE is more elusive than UKE: LLMs are more prone to overlooking KKE, likely because the semantic similarity between correct and erroneous memories makes it harder to distinguish them.
  • S2RD significantly boosts detection: The proposed S2RD method, combining self-recollection and self-doubt, demonstrably improves LLMs' ability to identify and handle character knowledge errors.
  • Different error types require different strategies: Retrieval-Augmented Generation (RAG) is more effective for KKE, while few-shot learning and case-based reasoning are better suited for UKE. Combining these strategies yields the best results.

Key Results

  • Baseline performance is low: The highest accuracy for detecting character knowledge errors across all LLMs tested was below 65%.
  • S2RD shows substantial improvement: S2RD achieved average improvements of 35-55% over vanilla LLM performance and outperformed other baseline methods like CoT and Self-Reflection.
  • KKE remains a challenge: Even with S2RD, KKE detection remains difficult, with LLMs showing a tendency to overlook these errors due to semantic similarities.
  • Role-play expertise LLMs underperform: LLMs specifically trained for role-playing showed weaker error detection capabilities, possibly due to an overemphasis on style and persona over factual accuracy.

Limitations and Future Work

The authors acknowledge several limitations:

  • Dataset size: The RoleKE-Bench dataset, while comprehensive, is limited to 990 samples. Expanding this to more characters and memories would yield more robust conclusions.
  • S2RD is an external method: S2RD is an agent-based reasoning framework and does not directly enhance the LLM's intrinsic error detection capabilities. Future work should focus on internalizing this ability through training.

The authors suggest future directions include:

  • Pre-processing steps for automatic corpus construction to mitigate errors.
  • Developing adversarial corpus construction techniques for KKE.
  • Prioritizing error detection in all self-constructed LLM tasks.

Summary updated

BibTeX
@inproceedings{zhang2025revealing,
  author = {Wenyuan Zhang and Jiawei Sheng and Shuaiyi Nie and Zefeng Zhang and Xinghua Zhang and Yongquan He and Tingwen Liu},
  title = {{Revealing the Challenge of Detecting Character Knowledge Errors in LLM Role-Playing}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=rQ3t6CG0J8},
}
Figure