arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.18541cs.AI
收藏

RoleRAG:通过图引导检索增强大语言模型角色扮演

RoleRAG: Enhancing LLM Role-Playing via Graph Guided Retrieval

Alibaba-NTU Global e-Sustainability CorpLab (ANGEL)(阿里巴巴-国立科技大学全球可持续性公司实验室(ANGEL));College of Computing and Data Science(计算与数据科学学院)

Yongjie Wang, Jonathan Leung, Zhiqi Shen

AI总结:

针对大语言模型角色扮演中知识回忆不准和认知边界缺失的问题,提出基于图引导检索的RoleRAG框架,通过实体消歧和边界感知检索提升角色一致性并减少幻觉。

摘要:

大型语言模型(LLMs)在角色模仿方面展现出潜力,能够实现沉浸式和引人入胜的对话。然而,它们经常生成与角色背景无关或不一致的内容。我们将这些失败归因于:(1)由于实体歧义,无法准确回忆角色特定知识;(2)缺乏对角色认知边界的意识。为了解决这些问题,我们提出了RoleRAG,一个基于检索的框架,该框架集成了用于知识索引的高效实体消歧,以及一个边界感知检索器,用于从结构化知识图谱中提取上下文适当的信息。在角色扮演基准上的实验表明,RoleRAG的校准检索有助于通用型和角色特定型LLM更好地与角色知识对齐,并减少幻觉响应。

英文摘要:

Large Language Models (LLMs) have shown promise in character imitation, enabling immersive and engaging conversations. However, they often generate content that is irrelevant or inconsistent with a character's background. We attribute these failures to: (1) the inability to accurately recall character-specific knowledge due to entity ambiguity, and (2) a lack of awareness of the character's cognitive boundaries. To address these issues, we propose RoleRAG, a retrieval-based framework that integrates efficient entity disambiguation for knowledge indexing with a boundary-aware retriever for extracting contextually appropriate information from a structured knowledge graph. Experiments on role-playing benchmarks show that RoleRAG's calibrated retrieval helps both general-purpose and role-specific LLMs better align with character knowledge and reduce hallucinated responses.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑