arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.19928cs.CL
收藏

MemDuet:学习用于长上下文推理的双进程记忆

MemDuet: Learning Dual-Process Memory for Long-Context Reasoning

Xi’an Jiaotong University(西安交通大学);Imperial College London(伦敦帝国学院)

Jiangcheng Song, Haodong Jing, Yulin Mu, Lesong Tao, Jixin Wang, Jin Cui, Tianjing Ren, Runxuan Xie, Yongqiang Ma, Nanning Zheng

AI总结:

MemDuet是受双进程理论启发的双进程记忆框架,通过分阶段训练实现长上下文推理,在多个基准上相比RL-MemAgent大幅提升推理速度并减少输出令牌。

摘要:

借助循环记忆智能体,对无限长文档进行推理正成为现实。然而,上下文长度增加加剧了推理性能与推理效率之间的权衡。受卡尼曼的快思考与慢思考理论启发,我们提出MemDuet,这是一种双进程记忆框架,它协调小型语言模型(系统1)从原始上下文块中快速并行选择证据,同时协调大型语言模型(系统2)按文档顺序进行记忆更新验证与记忆更新。我们分三个阶段训练MemDuet:第一阶段对系统1进行监督微调以完成证据选择;第二阶段使用组相对策略优化(GRPO)对系统2进行验证与记忆重写;第三阶段联合优化两种策略,以协调长上下文推理中的选择与更新。在多个长上下文推理基准(RULER-HQA、LongBench v2和2WikiMultiHopQA)上的实验表明,随着上下文长度增长,MemDuet实现了良好的精度-效率权衡。在三个数据集的所有评估设置下取平均,与RL-MemAgent相比,MemDuet的端到端推理速度提升了9.74倍,输出令牌减少了73.91%。

英文摘要:

Reasoning over infinitely long documents is becoming a reality with recurrent memory agents. However, increasing context length exacerbates the trade-off between reasoning performance and inference efficiency. Inspired by Kahneman's account of fast and slow thinking, we propose MemDuet, a dual-process memory framework that learns to coordinate a small language model for fast, parallel evidence selection from raw context chunks (System 1) with a large language model for memory-update verification and memory updates in document order (System 2). We train MemDuet in three stages: supervised fine-tuning of System 1 for evidence selection, Group Relative Policy Optimization (GRPO) of System 2 for verification and memory rewriting, and joint optimization of both policies to coordinate selection and updating for long-context reasoning. Experiments on diverse long-context reasoning benchmarks (RULER-HQA, LongBench v2, and 2WikiMultiHopQA) demonstrate a favorable accuracy-efficiency trade-off as context length grows. Averaged across evaluation settings on the three datasets, MemDuet achieves an end-to-end inference speedup of 9.74x and an output-token reduction of 73.91% relative to RL-MemAgent.

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

↑