arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.23041cs.AI
收藏

Emotional RAG:通过情感检索增强角色扮演智能体

Emotional RAG: Enhancing Role-Playing Agents through Emotional Retrieval

Beijing University of Posts and Telecommunications(北京邮电大学)

Le Huang, Hengzhi Lan, Zijun Sun, Chuan Shi, Ting Bai

AI总结:

本研究受情绪依存记忆理论启发,提出融合情感状态的记忆检索框架Emotional RAG,设计组合与序列两种检索策略,在三个角色扮演数据集上验证其能更好维持角色性格,同时为相关心理学理论提供支撑。

摘要:

随着大语言模型(LLMs)展现出高度类人的能力,角色扮演研究领域受到越来越多的关注,该领域期望LLMs生成的回复能模仿人类的应答方式。这推动了角色扮演智能体在各类应用中的探索,例如可与用户进行自然对话的聊天机器人,以及能提供个性化支持与引导的虚拟助手。角色扮演任务的核心关键在于对角色记忆的有效利用,这类记忆存储着角色的人物设定、经历以及历史对话内容。检索增强生成(Retrieval Augmented Generation, RAG)技术被用于调取相关记忆,以提升角色扮演智能体的回复生成质量。现有研究大多基于记忆的语义相似度检索相关信息,以此维持角色的个性化特质,鲜有研究尝试将情感因素融入LLMs的检索增强生成过程中。受情绪依存记忆理论(该理论指出,人们在回忆时若能重现事件发生时体验到的原始情绪,就能更好地回忆起该事件)的启发,我们提出了一种全新的情感感知记忆检索框架,命名为Emotional RAG,该框架在角色扮演智能体的记忆检索过程中会结合情感状态调取相关记忆。具体而言,我们设计了两种检索策略,即组合策略与序列策略,在检索过程中同时兼顾记忆的语义信息与情感状态。我们在三个具有代表性的角色扮演数据集上开展了大量实验,结果表明,在维持角色扮演智能体的人物性格方面,我们提出的Emotional RAG框架的表现优于未考虑情感因素的方法。这一研究结果为心理学中的情绪依存记忆理论提供了进一步的支撑证据。

英文摘要:

As LLMs exhibit a high degree of human-like capability, increasing attention has been paid to role-playing research areas in which responses generated by LLMs are expected to mimic human replies. This has promoted the exploration of role-playing agents in various applications, such as chatbots that can engage in natural conversations with users and virtual assistants that can provide personalized support and guidance. The crucial factor in the role-playing task is the effective utilization of character memory, which stores characters' profiles, experiences, and historical dialogues. Retrieval Augmented Generation (RAG) technology is used to access the related memory to enhance the response generation of role-playing agents. Most existing studies retrieve related information based on the semantic similarity of memory to maintain characters' personalized traits, and few attempts have been made to incorporate the emotional factor in the retrieval argument generation (RAG) of LLMs. Inspired by the Mood-Dependent Memory theory, which indicates that people recall an event better if they somehow reinstate during recall the original emotion they experienced during learning, we propose a novel emotion-aware memory retrieval framework, termed Emotional RAG, which recalls the related memory with consideration of emotional state in role-playing agents. Specifically, we design two kinds of retrieval strategies, i.e., combination strategy and sequential strategy, to incorporate both memory semantic and emotional states during the retrieval process. Extensive experiments on three representative role-playing datasets demonstrate that our Emotional RAG framework outperforms the method without considering the emotional factor in maintaining the personalities of role-playing agents. This provides evidence to further reinforce the Mood-Dependent Memory theory in psychology.

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

↑