Cited by 17Speech and dialogue systemsTopic ModelingAI in Service Interactions

Emotional RAG: Enhancing Role-Playing Agents through Emotional Retrieval

Open access
Huang, Le, Lan, Hengzhi, Sun, Zijun, Shi, Chuan, Bai, Ting·2024·2024 IEEE International Conference on Knowledge Graph (ICKG)

Abstract

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 roleplaying 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 roleplaying 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. Our code are publicly available at https://github.com/BAI-LAB/EmotionalRAG.

Integrity signals

Registry

Crossref · 10.1109/ickg63256.2024.00023

Cites

15 of 15 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Existing memory approaches rely on predefined heuristics such as importance scores, emotional tags, or factual templates, encoding designer intuition rather than learning from the data itself.

    “Existing approaches rely on predefined heuristics such as importance scores, emotional tags, or factual templates, encoding designer intuition rather than learning from the data itself.”

    From What Deserves Memory: Adaptive Memory Distillation for LLM Agents (2026) · cites this paper as Huang et al., 2024

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Huang, L., Lan, H., Sun, Z., Shi, C., & Bai, T.
Affiliations
  • Beijing University of Posts and Telecommunications (CN)
  • Yunic.AI,Beijing,China
Venue
2024 IEEE International Conference on Knowledge Graph (ICKG)
Publisher
IEEE
Published
2024-12-11
Pages
120-127
OpenAlex
W4407736938
Cited by
15
References
14
Citations by year
2026: 7 · 2025: 8
FWCI
4.33
Type
conference paper
Language
en
Open access
Locations
  • IEEE International Conference on Knowledge Graph (ICKG) (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Speech and dialogue systems
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › AI in Service Interactions
Keywords
role-playing agents, retrieval-augmented generation, chatbots, virtual assistants, LLM agents, memory retrieval strategies

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review