Emotional RAG: Enhancing Role-Playing Agents through Emotional Retrieval
On the map: Retrieval-augmented generation → Agentic RAG, agents and memory
also in 1 more
Abstract (arXiv)
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.
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Placed in Agentic RAG, agents and memory, one of 15 directions in Retrieval-augmented generation. Builds on 31 of its 39 references that are in the map. First posted on arXiv 30 Oct 2024.
Builds on
31 of 39 references.
References · 31
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023Qwen Technical Reportcited by 3,273
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 539
- 2023Character-LLM: A Trainable Agent for Role-Playingcited by 335
- 2023Role-Play with Large Language Modelscited by 290
- 2023Ghost in the Minecraft: Generally Capable Agents for Open-World Environments via Large Language Models with Text-based Knowledge and Memorycited by 288
19 more
- 2022Memorizing Transformerscited by 219
- 2024From Persona to Personalization: A Survey on Role-Playing Language Agentscited by 206
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 192
- 2023Augmenting Language Models with Long-Term Memorycited by 186
- 2023InCharacter: Evaluating Personality Fidelity in Role-Playing Agents through Psychological Interviewscited by 177
- 2023RoleLLM: Benchmarking, Eliciting, and Enhancing Role-Playing Abilities of Large Language Modelscited by 173
- 2023FinMem: A Performance-Enhanced LLM Trading Agent with Layered Memory and Character Designcited by 163
- 2024CharacterEval: A Chinese Benchmark for Role-Playing Conversational Agent Evaluationcited by 139
- 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 136
- 2024Large Language Models are Superpositions of All Characters: Attaining Arbitrary Role-play via Self-Alignmentcited by 104
- 2023SCM: Enhancing Large Language Model with Self-Controlled Memory Frameworkcited by 98
- 2023Humanoid Agents: Platform for Simulating Human-like Generative Agentscited by 73
- 2023RET-LLM: Towards a General Read-Write Memory for Large Language Modelscited by 64
- 2023Think-in-Memory: Recalling and Post-thinking Enable LLMs with Long-Term Memorycited by 64
- 2023ChatHaruhi: Reviving Anime Character in Reality via Large Language Modelcited by 57
- 2023CharacterGLM: Customizing Chinese Conversational AI Characters with Large Language Modelscited by 34
- 2023LARP: Language-Agent Role Play for Open-World Gamescited by 24
- 2022Large Language Models Meet Harry Potter: A Bilingual Dataset for Aligning Dialogue Agents with Characterscited by 16
- 2023Augmenting Zero-Shot Dense Retrievers with Plug-in Mixture-of-Memoriescited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 12; 2026: 13.
26 papers.
Sort:
By area:
- 2025Memory OS of AI Agentcited by 140
- 2026MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agentscited by 49
- 2025What Deserves Memory: Adaptive Memory Distillation for LLM Agentscited by 46
- 2025Learn to Memorize: Optimizing LLM-based Agents with Adaptive Memory Frameworkcited by 25
- 2024KG-Retriever: Efficient Knowledge Indexing for Retrieval-Augmented Large Language Modelscited by 12
- 2026Gated Differentiable Working Memory for Long-Context Language Modelingcited by 6
- 2026Memory-Driven Role-Playing: Evaluation and Enhancement of Persona Knowledge Utilization in LLMscited by 5
- 2026HeLa-Mem: Hebbian Learning and Associative Memory for LLM Agentscited by 5
- 2025Integrating Personality into Digital Humans: A Review of LLM-Driven Approaches for Virtual Realitycited by 2
- 2025RELATE-Sim: Leveraging Turning Point Theory and LLM Agents to Predict and Understand Long-Term Relationship Dynamics through Interactive Narrative Simulationscited by 2
- 2026Identifying and Mitigating Bottlenecks in Role-Playing Agents: A Systematic Study of Disentangling Character Profile Axescited by 2
- 2026Neuromem: A Granular Decomposition of the Streaming Lifecycle in External Memory for LLMscited by 2
14 more
- 2025TACLA: An LLM-Based Multi-Agent Tool for Transactional Analysis Training in Educationcited by 1
- 2025Optimizing Retrieval for RAG via Reinforcement Learningcited by 1
- 2026VLM-DEWM: Dynamic External World Model for Verifiable and Resilient Vision-Language Planning in Manufacturingcited by 1
- 2026Context-Fidelity Boosting: Enhancing Faithful Generation through Watermark-Inspired Decodingcited by 1
- 2026ENPMR-Bench: Benchmarking Proactive Memory Retrieval for Emotional Support Agentscited by 1
- 2026VoiceMem: Streaming Dual-Brain Memory for Real-Time Interactioncited by 1
- 2025Test-Time-Matching: Decouple Personality, Memory, and Linguistic Style in LLM-based Role-Playing Language Agentcited by 0
- 2025LightSearcher: Efficient DeepSearch via Experiential Memorycited by 0
- 2025Living the Novel: A System for Generating Self-Training Timeline-Aware Conversational Agents from Novelscited by 0
- 2025On the Role of Contextual Information and Ego States in LLM Agent Behavior for Transactional Analysis Dialoguescited by 0
- 2025C2-Cite: Contextual-Aware Citation Generation for Attributed Large Language Modelscited by 0
- 2026BOOKMARKS: Efficient Active Storyline Memory for Role-playingcited by 0
- 2026Emotion-Attended Stateful Memory (EASM):The Architecture for Hyper-Personalization at Scalecited by 0
- 2026PersMem: Internalizing Personality into Dual-Pathway Memory for LLM Agentscited by 0
- 2026PersMem: Internalizing Personality into Dual-Pathway Memory for LLM Agents28 Sep 2026
- 2026VoiceMem: Streaming Dual-Brain Memory for Real-Time Interaction26 Aug 2026
- 2026ENPMR-Bench: Benchmarking Proactive Memory Retrieval for Emotional Support Agents26 May 2026
- 2026Emotion-Attended Stateful Memory (EASM):The Architecture for Hyper-Personalization at Scale14 May 2026
- 2026BOOKMARKS: Efficient Active Storyline Memory for Role-playing13 May 2026
- 2026Context-Fidelity Boosting: Enhancing Faithful Generation through Watermark-Inspired Decoding24 Apr 2026
- 2026HeLa-Mem: Hebbian Learning and Associative Memory for LLM Agents18 Apr 2026
- 2026Memory-Driven Role-Playing: Evaluation and Enhancement of Persona Knowledge Utilization in LLMs14 Mar 2026
- 2026VLM-DEWM: Dynamic External World Model for Verifiable and Resilient Vision-Language Planning in Manufacturing17 Feb 2026
- 2026Neuromem: A Granular Decomposition of the Streaming Lifecycle in External Memory for LLMs15 Feb 2026
- 2026Gated Differentiable Working Memory for Long-Context Language Modeling19 Jan 2026
- 2026Identifying and Mitigating Bottlenecks in Role-Playing Agents: A Systematic Study of Disentangling Character Profile Axes8 Jan 2026
14 more
- 2026MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agents6 Jan 2026
- 2025On the Role of Contextual Information and Ego States in LLM Agent Behavior for Transactional Analysis Dialogues18 Dec 2025
- 2025Living the Novel: A System for Generating Self-Training Timeline-Aware Conversational Agents from Novels8 Dec 2025
- 2025LightSearcher: Efficient DeepSearch via Experiential Memory7 Dec 2025
- 2025C2-Cite: Contextual-Aware Citation Generation for Attributed Large Language Models19 Nov 2025
- 2025Optimizing Retrieval for RAG via Reinforcement Learning28 Oct 2025
- 2025TACLA: An LLM-Based Multi-Agent Tool for Transactional Analysis Training in Education19 Oct 2025
- 2025RELATE-Sim: Leveraging Turning Point Theory and LLM Agents to Predict and Understand Long-Term Relationship Dynamics through Interactive Narrative Simulations1 Oct 2025
- 2025Learn to Memorize: Optimizing LLM-based Agents with Adaptive Memory Framework15 Aug 2025
- 2025What Deserves Memory: Adaptive Memory Distillation for LLM Agents5 Aug 2025
- 2025Test-Time-Matching: Decouple Personality, Memory, and Linguistic Style in LLM-based Role-Playing Language Agent22 Jul 2025
- 2025Memory OS of AI Agent30 May 2025
- 2025Integrating Personality into Digital Humans: A Review of LLM-Driven Approaches for Virtual Reality22 Feb 2025
- 2024KG-Retriever: Efficient Knowledge Indexing for Retrieval-Augmented Large Language Models7 Dec 2024
- 2025Memory OS of AI Agentcited by 140
- 2026MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agentscited by 49
- 2025What Deserves Memory: Adaptive Memory Distillation for LLM Agentscited by 46
- 2025Learn to Memorize: Optimizing LLM-based Agents with Adaptive Memory Frameworkcited by 25
- 2026HeLa-Mem: Hebbian Learning and Associative Memory for LLM Agentscited by 5
- 2025RELATE-Sim: Leveraging Turning Point Theory and LLM Agents to Predict and Understand Long-Term Relationship Dynamics through Interactive Narrative Simulationscited by 2
- 2026Identifying and Mitigating Bottlenecks in Role-Playing Agents: A Systematic Study of Disentangling Character Profile Axescited by 2
- 2025TACLA: An LLM-Based Multi-Agent Tool for Transactional Analysis Training in Educationcited by 1
- 2026ENPMR-Bench: Benchmarking Proactive Memory Retrieval for Emotional Support Agentscited by 1
- 2025Test-Time-Matching: Decouple Personality, Memory, and Linguistic Style in LLM-based Role-Playing Language Agentcited by 0
- 2025Living the Novel: A System for Generating Self-Training Timeline-Aware Conversational Agents from Novelscited by 0
- 2025On the Role of Contextual Information and Ego States in LLM Agent Behavior for Transactional Analysis Dialoguescited by 0
12 most cited of 13 All 13 (JSON)
- 2026PersMem: Internalizing Personality into Dual-Pathway Memory for LLM Agents28 Sep 2026
- 2026ENPMR-Bench: Benchmarking Proactive Memory Retrieval for Emotional Support Agents26 May 2026
- 2026HeLa-Mem: Hebbian Learning and Associative Memory for LLM Agents18 Apr 2026
- 2026Identifying and Mitigating Bottlenecks in Role-Playing Agents: A Systematic Study of Disentangling Character Profile Axes8 Jan 2026
- 2026MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agents6 Jan 2026
- 2025On the Role of Contextual Information and Ego States in LLM Agent Behavior for Transactional Analysis Dialogues18 Dec 2025
- 2025Living the Novel: A System for Generating Self-Training Timeline-Aware Conversational Agents from Novels8 Dec 2025
- 2025TACLA: An LLM-Based Multi-Agent Tool for Transactional Analysis Training in Education19 Oct 2025
- 2025RELATE-Sim: Leveraging Turning Point Theory and LLM Agents to Predict and Understand Long-Term Relationship Dynamics through Interactive Narrative Simulations1 Oct 2025
- 2025Learn to Memorize: Optimizing LLM-based Agents with Adaptive Memory Framework15 Aug 2025
- 2025What Deserves Memory: Adaptive Memory Distillation for LLM Agents5 Aug 2025
- 2025Test-Time-Matching: Decouple Personality, Memory, and Linguistic Style in LLM-based Role-Playing Language Agent22 Jul 2025
12 newest of 13 All 13 (JSON)
- 2026Gated Differentiable Working Memory for Long-Context Language Modelingcited by 6
- 2026Memory-Driven Role-Playing: Evaluation and Enhancement of Persona Knowledge Utilization in LLMscited by 5
- 2025Integrating Personality into Digital Humans: A Review of LLM-Driven Approaches for Virtual Realitycited by 2
- 2026Neuromem: A Granular Decomposition of the Streaming Lifecycle in External Memory for LLMscited by 2
- 2026VoiceMem: Streaming Dual-Brain Memory for Real-Time Interactioncited by 1
- 2025C2-Cite: Contextual-Aware Citation Generation for Attributed Large Language Modelscited by 0
- 2026BOOKMARKS: Efficient Active Storyline Memory for Role-playingcited by 0
- 2026Emotion-Attended Stateful Memory (EASM):The Architecture for Hyper-Personalization at Scalecited by 0
- 2026VoiceMem: Streaming Dual-Brain Memory for Real-Time Interaction26 Aug 2026
- 2026Emotion-Attended Stateful Memory (EASM):The Architecture for Hyper-Personalization at Scale14 May 2026
- 2026BOOKMARKS: Efficient Active Storyline Memory for Role-playing13 May 2026
- 2026Memory-Driven Role-Playing: Evaluation and Enhancement of Persona Knowledge Utilization in LLMs14 Mar 2026
- 2026Neuromem: A Granular Decomposition of the Streaming Lifecycle in External Memory for LLMs15 Feb 2026
- 2026Gated Differentiable Working Memory for Long-Context Language Modeling19 Jan 2026
- 2025C2-Cite: Contextual-Aware Citation Generation for Attributed Large Language Models19 Nov 2025
- 2025Integrating Personality into Digital Humans: A Review of LLM-Driven Approaches for Virtual Reality22 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2025Dynamic Context Adaptation for Consistent Role-Playing Agents with Retrieval-Augmented Generations
- 2025RAGs to Riches: RAG-like Few-shot Learning for Large Language Model Role-playing
- 2025PsyMem: Fine-grained psychological alignment and Explicit Memory Control for Advanced Role-Playing LLMs
- 2024SweetieChat: A Strategy-Enhanced Role-playing Framework for Diverse Scenarios Handling Emotional Support Agent
- 2024Enhancing Long-term RAG Chatbots with Psychological Models of Memory Importance and Forgetting
- 2026MERRY: Semantically Decoupled Evaluation of Multimodal Emotional and Role Consistencies of Role-Playing Agents
- 2026MemoryForge: Synthesize Lifelong Memory for Human-Like LLM Agents
- 2024MMRole: A Comprehensive Framework for Developing and Evaluating Multimodal Role-Playing Agents