让大模型通过记忆反思实现持续学习,不更新参数也能进步。
Memento 2: Learning by Stateful Reflective Memory
- 用记忆存储经验,读取时反思过去以改进决策。
- 记忆越丰富,策略越接近最优,理论可证明收敛。
- 适合构建能长期学习、无需重训的智能体系统。
我们对结合情景记忆与强化学习的大语言模型智能体的持续性、体验式学习进行了理论研究。认为无需更新模型参数的持续适应关键在于反思:利用过往经验指导未来行动。实证发现,基于经验的反思机制可在多种开放、长周期任务中实现泛化适应,表明高效学习可在部署阶段发生,弱化了训练与测试的传统界限。为此,我们提出状态感知的反思决策过程,形式化反射记忆动态。该框架中,智能体维护情景记忆,执行两类核心操作:写入记录交互结果,发挥策略评估作用;读取检索相关过往案例,用于决策,发挥策略改进作用。此视角将反思记忆视为可控对象,可运用经典强化学习工具分析。我们进一步构建读写式反思学习框架,将检索融入软策略迭代,并建立收敛性保证。结果表明,随着记忆增长并更密集覆盖状态空间,复合策略收敛至最优解。整体框架连接了实用的记忆方法与严谨的强化学习理论,为构建具备持续通用学习能力的反思型记忆智能体提供了坚实的数学基础。
原文摘要 · Abstract (English)
We present a theoretical study of continual and experiential learning in large language model agents that combine episodic memory with reinforcement learning. We argue that the key mechanism for continual adaptation, without updating model parameters, is reflection: the agent's ability to use past experience to guide future actions. Empirical findings suggest that episodic, experience-driven reflection enables generalised adaptation across a wide range of open-ended, long-horizon tasks. This indicates that efficient learning can occur during deployment and weakens the traditional separation between training and testing. Motivated by this, we introduce the Stateful Reflective Decision Process, a formal model of reflective memory dynamics. In this abstraction, an agent maintains an episodic memory and performs two core operations. Writing stores interaction outcomes and plays the role of policy evaluation. Reading retrieves relevant past cases to inform decisions and plays the role of policy improvement. This perspective treats reflective memory as a control object that can be analysed using classical reinforcement learning tools. We then develop a read-write reflective learning framework by integrating retrieval into soft policy iteration and establish convergence guarantees. We show that as memory grows and provides denser coverage of the state space, the resulting composite policy converges to the optimal solution. Overall, this framework connects practical memory-based methods with principled reinforcement learning, providing a rigorous mathematical basis for building reflective, memory-embedded agents capable of continual general-purpose learning.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。