让聊天机器人根据情绪状态更精准召回记忆,提升角色扮演的连贯性。
Emotional RAG: Enhancing Role-Playing Agents through Emotional Retrieval
- 基于情绪状态重构记忆检索,结合语义与情感双重信息。
- 在三个数据集上显著提升角色个性保持能力,优于传统方法。
- 适合开发高沉浸感对话系统或虚拟助手的研究者使用。
随着大语言模型展现出高度类人能力,角色扮演研究日益受到关注,期望其生成的回复能模拟人类对话。关键在于有效利用角色记忆,存储角色档案、经历与历史对话。现有研究多依赖记忆语义相似性进行检索以维持个性,但极少考虑情感因素。受‘情绪依赖记忆’理论启发——人在回忆时若能重现当初的情绪,则更易回想事件,本文提出情感感知记忆检索框架Emotional RAG,使角色在生成回复时结合情绪状态召回相关记忆。设计了组合与顺序两种检索策略,同时融合记忆语义与情感状态。在三个代表性角色扮演数据集上的实验表明,本方法在保持角色个性方面显著优于不考虑情感因素的基线方法,为心理学中的情绪依赖记忆理论提供了支持证据。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。