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

代理记忆:为大语言模型代理学习统一的长期和短期记忆管理

Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for Large Language Model Agents

School of Cyber Science and Engineering, Wuhan University(武汉大学计算机科学与工程学院);Alibaba Group(阿里巴巴集团)

Yi Yu, Liuyi Yao, Yuexiang Xie, Qingquan Tan, Jiaqi Feng, Yaliang Li, Libing Wu

AI总结:

本文提出Agentic Memory框架,统一管理大语言模型的长期和短期记忆,通过分步GRPO和三阶段强化学习提升记忆效率与任务表现。

摘要:

大语言模型(LLM)代理在长跨度推理中面临有限上下文窗口的限制,有效记忆管理至关重要。现有方法通常将长期记忆(LTM)和短期记忆(STM)作为独立组件处理,依赖启发式或辅助控制器,限制了适应性和端到端优化。本文提出Agentic Memory(AgeMem),将LTM和STM管理直接整合到代理策略中。AgeMem将记忆操作暴露为工具性动作,使LLM代理能够自主决定存储、检索、更新、总结或丢弃信息。为训练此类统一行为,我们提出三阶段渐进强化学习策略,并设计分步GRPO以应对由记忆操作引起的稀疏和不连续奖励。在五个长跨度基准测试中,AgeMem在多种LLM基础架构上均优于强记忆增强基线,实现了改进的任务性能、高质量的长期记忆和更高效的上下文使用。

英文摘要:

Large language model (LLM) agents face fundamental limitations in long-horizon reasoning due to finite context windows, making effective memory management critical. Existing methods typically handle long-term memory (LTM) and short-term memory (STM) as separate components, relying on heuristics or auxiliary controllers, which limits adaptability and end-to-end optimization. In this paper, we propose Agentic Memory (AgeMem), a unified framework that integrates LTM and STM management directly into the agent's policy. AgeMem exposes memory operations as tool-based actions, enabling the LLM agent to autonomously decide what and when to store, retrieve, update, summarize, or discard information. To train such unified behaviors, we propose a three-stage progressive reinforcement learning strategy and design a step-wise GRPO to address sparse and discontinuous rewards induced by memory operations. Experiments on five long-horizon benchmarks demonstrate that AgeMem consistently outperforms strong memory-augmented baselines across multiple LLM backbones, achieving improved task performance, higher-quality long-term memory, and more efficient context usage.

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

↑