DREAM: LLM-based Dynamic Role-playing via Event-Aware Memory Graph

Zhihao Xiao, Mengting Li, Xintao Wang, Linfeng Li, Limin Shui +2 more
5/27/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Role-playing agents (RPAs) have emerged as a key application of large language models, enabling immersive and high-fidelity character simulation. Accurate role-playing of established characters requires not only stylistic imitation but also temporally consistent and causally grounded behavioral reasoning.

Show full abstract

However, existing RPAs primarily rely on static character descriptions and unstructured memory, limiting their ability to maintain long-term narrative and personality coherence. We introduce DREAM, a structured memory framework for role-playing agents inspired by the Activating Event-Belief-Consequence (ABC) cognitive model. DREAM transforms unstructured literary text into an Event-aware Memory Graph (EMG) that organizes character experiences into temporally ordered and causally linked event graph. This representation enables the construction of dynamic, dual-granularity character profiles that capture both stable personality traits and event-driven behavioral evolution. We further propose the Temporal Causal Memory (TCM) benchmark to evaluate temporal consistency and long-range causal narrative coherence. DREAM achieves state-of-the-art performance across CoSER, LIFECHOICE, and TCM, outperforming multiple strong baselines. Our approach demonstrates the effectiveness of structured memory in enhancing the interpretability and consistency of role-playing agents.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xiao2026dream,
  title  = {DREAM: LLM-based Dynamic Role-playing via Event-Aware Memory Graph},
  author = {Zhihao Xiao and Mengting Li and Xintao Wang and Linfeng Li and Limin Shui and Mengqi Ji and Borui Cai},
  year   = {2026},
  eprint = {2608.05170},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.05170v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.05170.svg)](https://codeofpaper.com/paper/2608.05170)

Discussion