arXiv:2611.01778cs.CLNov 2026

Manuscript Offprint

arXiv:2611.01778

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

Mengting Li, Xilong Cheng, Zhihao Xiao, Zhenhua Xu, Jingyuan Zhou, Linfeng Li, Long Zhang, Borui Cai, Yunxiao Qin

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. 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 MEM-ROLE, 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.

1 Introduction

The recent progress of role-playing agents (RPAs) has benefited substantially from the rapid development of large language models (LLMs), enabling them to emulate a character's speaking style, personality traits, and background knowledge with increasing fluency (Shao et al., 2023; Zhou et al.,

From surface response to memory-grounded reasoning

Scene: Harry cornered by Rita Skeeter with her auto-quill writing exaggerate content.....

Rita Skeeter: Why did you decide to enter the tournament, Harry?

Figure

Harry: <think>LHMT reasoning...</think>(looks up reluctantly) I didn't. I don't know how my name got into the Goblet of Fire. I didn't put it in there.

What reasoning supports this response?

LHMT: Three-Stage Memory-Grounded Reasoning

Context Understanding

Harry pressed by Rita's leading question, honesty vs sensationalism.

Memory Activation

Activated: M2, M3 → support denial;

M5 → constrains (keep short, avoid Rita material).

Pattern: complementary → reluctant concise denial.

Response Strategy Planning

State fact, reluctant tone, no details to twist.

Figure 1: Illustration of Long-Horizon Memory Thinking (LHMT), which transforms cross-scene memories into a role-consistent response through three structured stages.

2024; Wang et al., 2025a). Yet fluency is not fidelity. What ultimately distinguishes a character is not how they talk in a single turn, but the decisions they make—and a character's decisions are rarely determined by the immediate context alone (McAdams, 2011; Conway and Pleydell-Pearce, 2000). They are shaped by experiences that span many prior scenes: past humiliations, broken promises, shifting loyalties. A choice that looks abrupt or even shocking in the moment is in fact driven by this long-horizon memory, which renders it coherent and, in hindsight, even inevitable.

We refer to this ability as long-horizon reasoning in role-playing: reasoning over how memories spanning many prior scenes, often partial and not always mutually reinforcing, drive a character's decisions in the present. At consequential moments,

∗^{*} Equal contribution. †\dagger Corresponding author.

Code, model checkpoints, and datasets will be made publicly available promptly upon acceptance.

such memory shapes not only what a character decides, the externally observable action or stance, but also the motivations and emotions that, though unobservable, are carried into that decision (Pillemer, 2003; Graesser et al., 1994). Yet most existing methods supply cross-scene memory through retrieval-augmented generation, surfacing relevant past snippets as supplementary background to reinforce consistency rather than reasoning about how those events drive the current decision (Wang et al., 2024; Ahn et al., 2024; Cheng et al., 2026; Zhang et al., 2026; Xiao et al., 2026). Approaches that go further still fall short: some tie memory to the immediate turn (Liu et al., 2025), while others, closest to our setting, reduce role-playing to a multiple-choice benchmark that scores a character's choice but leaves the underlying motivations and emotions unexamined (Xu et al., 2025).

Yet fully recovering this implicit long-horizon reasoning from novels is difficult, demanding a thorough understanding of a character's traits, their accumulated memory, and the surrounding situation. The same history of slights and broken promises may settle into silent resentment in one character yet escalate into a decisive, irreversible act in another, and the memories behind such a choice do not always point the same way: they may reinforce one another, cut against one another, or bear on the decision in different respects. Supervised fine-tuning can only imitate a single reference trajectory, and its training signal never lands on the model's own generations, leaving the failure modes specific to its own reasoning unaddressed (Chu et al., 2025). Reinforcement learning offers an alternative, but our setting provides little to reward reliably: open-ended role-play admits no verifiable answer, and an identical surface decision may follow from a weighing of past memories or merely coincide with it.

The key missing supervision is therefore not whether an agent can access memory, but how it should transform memory into a decision. Modeling this transformation requires addressing two challenges at once: first, the model must learn a reasoning schema that explains how accumulated, often conflicting memories shape the character's current motivations, constraints, and behavioral tendencies; second, training must provide supervision over this intermediate reasoning process rather than only judging the final response.

To address these challenges, we propose MEM-ROLE, a two-stage framework that makes the memory-to-decision process explicit and improves it through critique-guided on-policy self-distillation. First, supervised cold-start training teaches Long-Horizon Memory Thinking (LHMT), a three-stage schema of context understanding, memory activation, and response strategy planning (Figure 1) that makes explicit how past memories shape the current decision rather than serving merely as static context. Second, Self-Refining On-Policy Self-Distillation (SR-OPSD) provides adaptive reasoning-level supervision: the model critiques its own on-policy rollouts with a data-driven rubric, and a critique-conditioned teacher view distills token-level guidance back into the student. In this way, MEMROLE supervises the intermediate memory-to-decision process directly, without reducing feedback to a scalar objective over the final response. The reference enters only through the critique, never as an imitation target.

To validate MEMROLE, we construct MEMROLE-DATASET, a decision-centered role-playing dataset built from high-quality novels. We segment each novel into scenes and build, for each major character, a memory pool of prior-scene nodes rewritten from their perspective. Anchored to the scene's position on the narrative timeline, each pool contains only past scenes the character could plausibly know, separating what they know from what they do not. Trained on this data, MEMROLE substantially improves memory-grounded role-playing over strong role-playing baselines while remaining competitive with frontier LLMs.

Our contributions are threefold. (1) We propose MEMROLE, a framework that reasons over long-horizon memories to make role-consistent decisions, combining LHMT with a two-stage training procedure of SFT followed by SR-OPSD. (2) We construct MEMROLE-DATASET, a decision-centered role-playing dataset with character-grounded, timeline-constrained memory pools. (3) Controlled ablations show that every LHMT stage and every component of SR-OPSD contributes, with the largest gains concentrated in memory activation and in the data-driven rubric.