mlsanityData to 7 Oct 2026

Emotional RAG: Enhancing Role-Playing Agents through Emotional Retrieval

arXiv 2410.23041 ↗First posted 30 Oct 2024cs.AIcited by 26

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

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  3. 2023Qwen Technical Reportcited by 3,273
  4. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  5. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
  6. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
  7. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
  8. 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
  9. 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 539
  10. 2023Character-LLM: A Trainable Agent for Role-Playingcited by 335
  11. 2023Role-Play with Large Language Modelscited by 290
  12. 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
  1. 2022Memorizing Transformerscited by 219
  2. 2024From Persona to Personalization: A Survey on Role-Playing Language Agentscited by 206
  3. 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 192
  4. 2023Augmenting Language Models with Long-Term Memorycited by 186
  5. 2023InCharacter: Evaluating Personality Fidelity in Role-Playing Agents through Psychological Interviewscited by 177
  6. 2023RoleLLM: Benchmarking, Eliciting, and Enhancing Role-Playing Abilities of Large Language Modelscited by 173
  7. 2023FinMem: A Performance-Enhanced LLM Trading Agent with Layered Memory and Character Designcited by 163
  8. 2024CharacterEval: A Chinese Benchmark for Role-Playing Conversational Agent Evaluationcited by 139
  9. 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 136
  10. 2024Large Language Models are Superpositions of All Characters: Attaining Arbitrary Role-play via Self-Alignmentcited by 104
  11. 2023SCM: Enhancing Large Language Model with Self-Controlled Memory Frameworkcited by 98
  12. 2023Humanoid Agents: Platform for Simulating Human-like Generative Agentscited by 73
  13. 2023RET-LLM: Towards a General Read-Write Memory for Large Language Modelscited by 64
  14. 2023Think-in-Memory: Recalling and Post-thinking Enable LLMs with Long-Term Memorycited by 64
  15. 2023ChatHaruhi: Reviving Anime Character in Reality via Large Language Modelcited by 57
  16. 2023CharacterGLM: Customizing Chinese Conversational AI Characters with Large Language Modelscited by 34
  17. 2023LARP: Language-Agent Role Play for Open-World Gamescited by 24
  18. 2022Large Language Models Meet Harry Potter: A Bilingual Dataset for Aligning Dialogue Agents with Characterscited by 16
  19. 2023Augmenting Zero-Shot Dense Retrievers with Plug-in Mixture-of-Memoriescited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 12; 2026: 13.

26 papers.

Sort:

By area:

  1. 2025Memory OS of AI Agentcited by 140
  2. 2026MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agentscited by 49
  3. 2025What Deserves Memory: Adaptive Memory Distillation for LLM Agentscited by 46
  4. 2025Learn to Memorize: Optimizing LLM-based Agents with Adaptive Memory Frameworkcited by 25
  5. 2024KG-Retriever: Efficient Knowledge Indexing for Retrieval-Augmented Large Language Modelscited by 12
  6. 2026Gated Differentiable Working Memory for Long-Context Language Modelingcited by 6
  7. 2026Memory-Driven Role-Playing: Evaluation and Enhancement of Persona Knowledge Utilization in LLMscited by 5
  8. 2026HeLa-Mem: Hebbian Learning and Associative Memory for LLM Agentscited by 5
  9. 2025Integrating Personality into Digital Humans: A Review of LLM-Driven Approaches for Virtual Realitycited by 2
  10. 2025RELATE-Sim: Leveraging Turning Point Theory and LLM Agents to Predict and Understand Long-Term Relationship Dynamics through Interactive Narrative Simulationscited by 2
  11. 2026Identifying and Mitigating Bottlenecks in Role-Playing Agents: A Systematic Study of Disentangling Character Profile Axescited by 2
  12. 2026Neuromem: A Granular Decomposition of the Streaming Lifecycle in External Memory for LLMscited by 2
14 more
  1. 2025TACLA: An LLM-Based Multi-Agent Tool for Transactional Analysis Training in Educationcited by 1
  2. 2025Optimizing Retrieval for RAG via Reinforcement Learningcited by 1
  3. 2026VLM-DEWM: Dynamic External World Model for Verifiable and Resilient Vision-Language Planning in Manufacturingcited by 1
  4. 2026Context-Fidelity Boosting: Enhancing Faithful Generation through Watermark-Inspired Decodingcited by 1
  5. 2026ENPMR-Bench: Benchmarking Proactive Memory Retrieval for Emotional Support Agentscited by 1
  6. 2026VoiceMem: Streaming Dual-Brain Memory for Real-Time Interactioncited by 1
  7. 2025Test-Time-Matching: Decouple Personality, Memory, and Linguistic Style in LLM-based Role-Playing Language Agentcited by 0
  8. 2025LightSearcher: Efficient DeepSearch via Experiential Memorycited by 0
  9. 2025Living the Novel: A System for Generating Self-Training Timeline-Aware Conversational Agents from Novelscited by 0
  10. 2025On the Role of Contextual Information and Ego States in LLM Agent Behavior for Transactional Analysis Dialoguescited by 0
  11. 2025C2-Cite: Contextual-Aware Citation Generation for Attributed Large Language Modelscited by 0
  12. 2026BOOKMARKS: Efficient Active Storyline Memory for Role-playingcited by 0
  13. 2026Emotion-Attended Stateful Memory (EASM):The Architecture for Hyper-Personalization at Scalecited by 0
  14. 2026PersMem: Internalizing Personality into Dual-Pathway Memory for LLM Agentscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Dynamic Context Adaptation for Consistent Role-Playing Agents with Retrieval-Augmented Generations
  2. 2025RAGs to Riches: RAG-like Few-shot Learning for Large Language Model Role-playing
  3. 2025PsyMem: Fine-grained psychological alignment and Explicit Memory Control for Advanced Role-Playing LLMs
  4. 2024SweetieChat: A Strategy-Enhanced Role-playing Framework for Diverse Scenarios Handling Emotional Support Agent
  5. 2024Enhancing Long-term RAG Chatbots with Psychological Models of Memory Importance and Forgetting
  6. 2026MERRY: Semantically Decoupled Evaluation of Multimodal Emotional and Role Consistencies of Role-Playing Agents
  7. 2026MemoryForge: Synthesize Lifelong Memory for Human-Like LLM Agents
  8. 2024MMRole: A Comprehensive Framework for Developing and Evaluating Multimodal Role-Playing Agents