MemRole: From Memories to Decisions for Long-Horizon Reasoning in Role-Playing Agents

Mengting Li, Xilong Cheng, Zhihao Xiao, Zhenhua Xu, Jingyuan Zhou +4 more
11/1/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

LLM-based role-playing agents are fluent at imitating a character's style, yet struggle to make role-consistent decisions over long narrative horizons. Such decisions are shaped by experiences spanning many prior scenes, which are often partial and may point in different directions.

Show full abstract

Existing methods inject cross-scene memories as context, but do not reason about how past events shape a character's current motivations and behavior. We propose MemRole, a framework that makes this memory-to-decision process explicit. It introduces Long-Horizon Memory Thinking (LHMT), a reasoning schema that decomposes hidden reasoning into context understanding, memory activation, and response strategy planning, trained on a novel-derived dataset whose character-grounded, timeline-constrained memory pools limit each character to what it could plausibly know at the current narrative point. Beyond supervised fine-tuning, we propose Self-Refining On-Policy Self-Distillation (SR-OPSD): the model critiques its own rollouts against the reference under a data-driven rubric, and a critique-conditioned teacher view of the same model distills token-level guidance back into the policy. MemRole-32B improves over its backbone by 15.2 points on memory-grounded role-playing, performs on par with frontier LLMs such as GPT-5.4, and achieves the best character-motivation recognition accuracy on CroSS-MR.

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{li2026memrole,
  title  = {MemRole: From Memories to Decisions for Long-Horizon Reasoning in Role-Playing Agents},
  author = {Mengting Li and Xilong Cheng and Zhihao Xiao and Zhenhua Xu and Jingyuan Zhou and Linfeng Li and Long Zhang and Borui Cai and Yunxiao Qin},
  year   = {2026},
  eprint = {2611.01778},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.01778v1}
}

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/2611.01778.svg)](https://codeofpaper.com/paper/2611.01778)

Discussion