arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.01778cs.CLcs.AI
收藏

MemRole:从记忆到决策,用于角色扮演智能体的长时序推理

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

Zhejiang University(浙江大学);Guangxi University(广西大学);Beihang University(北京航空航天大学);Kuaishou Technology(快手科技);Communication University of China(中国传媒大学)

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

AI总结:

提出MemRole框架,通过长时序记忆推理范式与自精炼在线策略自蒸馏方法,提升角色扮演智能体的长时序角色一致性决策能力,在相关任务上性能优于主干模型且与前沿大语言模型相当。

摘要:

基于大语言模型(LLM)的角色扮演智能体能够流畅模仿角色风格,但在长叙事时序内做出符合角色一致性的决策方面存在困难。这类决策由跨越多个先前场景的经验塑造,这些经验往往是碎片化的,且可能指向不同方向。现有方法将跨场景记忆作为上下文注入,但未对过去事件如何塑造角色当前动机与行为进行推理。我们提出MemRole框架,该框架将记忆到决策的过程显式化。它引入长时序记忆推理(LHMT),这是一种推理范式,将隐式推理分解为上下文理解、记忆激活和响应策略规划,在一个新构建的数据集上进行训练,该数据集的基于角色、受时间线约束的记忆池限制了每个角色在当前叙事节点下可能合理知晓的内容。除监督微调外,我们提出基于数据驱动准则,让模型针对参考内容评判自身的 rollout(生成结果),并通过同一模型的评判条件教师视图将 token 级别的指导蒸馏回策略的自精炼在线策略自蒸馏(SR-OPSD)方法。MemRole-32B在基于记忆的角色扮演任务上较其主干模型提升15.2个百分点,性能与GPT-5.4等前沿大语言模型相当,并在CroSS-MR数据集上实现最佳的角色动机识别准确率。

英文摘要:

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 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑