Revealing and Mitigating the Challenge of Detecting Character Knowledge Errors in LLM Role-Playing
Wenyuan Zhang, Shuaiyi Nie, Jiawei Sheng, Zefeng Zhang, Xinghua Zhang, Yongquan He, Tingwen Liu
TL;DR
This work formalizes the challenge of detecting character knowledge errors in LLM-based role-playing via the RoleKE-Bench benchmark, which targets known (KKE) and unknown (UKE) errors across four memory types. It reveals that current models struggle to detect these errors, with maximum accuracy around 65%, and that KKE is particularly difficult. To address this, the authors propose S^2RD, an agent-based reasoning framework combining Self-Recollection and Self-Doubt to improve error detection, achieving sizable gains over strong baselines. The findings highlight the need to integrate error-detection into automatic corpus construction and model training to build safer, more faithful role-playing agents.
Abstract
Large language model (LLM) role-playing has gained widespread attention. Authentic character knowledge is crucial for constructing realistic LLM role-playing agents. However, existing works usually overlook the exploration of LLMs' ability to detect characters' known knowledge errors (KKE) and unknown knowledge errors (UKE) while playing roles, which would lead to low-quality automatic construction of character trainable corpus. In this paper, we propose RoleKE-Bench to evaluate LLMs' ability to detect errors in KKE and UKE. The results indicate that even the latest LLMs struggle to detect these two types of errors effectively, especially when it comes to familiar knowledge. We experimented with various reasoning strategies and propose an agent-based reasoning method, Self-Recollection and Self-Doubt (S$^2$RD), to explore further the potential for improving error detection capabilities. Experiments show that our method effectively improves the LLMs' ability to detect error character knowledge, but it remains an issue that requires ongoing attention.
