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

MemFactory: 用于智能体记忆的统一推理与训练框架

MemFactory: Unified Inference & Training Framework for Agent Memory

Ziliang Guo, Ziheng Li, Bo Tang, Feiyu Xiong, Zhiyu Li

AI总结:

MemFactory 提供统一的训练和推理框架,通过模块化设计和 GRPO 算法提升记忆增强智能体的性能,实验显示其在多个任务中表现优于基线模型。

摘要:

记忆增强的大语言模型(LLMs)对于开发具备长期能力的AI智能体至关重要。最近,将强化学习(RL)应用于优化记忆操作(如提取、更新和检索)已成为极具前景的研究方向。然而,现有实现仍然高度碎片化且任务特定,缺乏统一的基础设施来简化这些复杂流程的整合、训练和评估。为此,我们提出了MemFactory,首个统一、高度模块化的训练和推理框架,专为记忆增强的智能体设计。受统一微调框架如LLaMA-Factory的成功启发,MemFactory将记忆生命周期抽象为原子、可插拔的组件,使研究者能够通过“乐高式”架构无缝构建定制的记忆智能体。此外,该框架原生集成了组相对策略优化(GRPO),以多维环境奖励驱动的内部记忆管理策略进行微调。MemFactory提供开箱即用的支持,包括最近的前沿范式,如Memory-R1、RMM和MemAgent。我们通过MemAgent架构的公开训练和评估数据验证MemFactory。在评估集上,MemFactory在平均性能上优于相应基线模型,最大相对提升达14.8%。通过提供标准化、可扩展且易于使用的基础设施,MemFactory显著降低了进入门槛,为未来记忆驱动的AI智能体创新铺平道路。

英文摘要:

Memory-augmented Large Language Models (LLMs) are essential for developing capable, long-term AI agents. Recently, applying Reinforcement Learning (RL) to optimize memory operations, such as extraction, updating, and retrieval, has emerged as a highly promising research direction. However, existing implementations remain highly fragmented and task-specific, lacking a unified infrastructure to streamline the integration, training, and evaluation of these complex pipelines. To address this gap, we present MemFactory, the first unified, highly modular training and inference framework specifically designed for memory-augmented agents. Inspired by the success of unified fine-tuning frameworks like LLaMA-Factory, MemFactory abstracts the memory lifecycle into atomic, plug-and-play components, enabling researchers to seamlessly construct custom memory agents via a "Lego-like" architecture. Furthermore, the framework natively integrates Group Relative Policy Optimization (GRPO) to fine-tune internal memory management policies driven by multi-dimensional environmental rewards. MemFactory provides out-of-the-box support for recent cutting-edge paradigms, including Memory-R1, RMM, and MemAgent. We empirically validate MemFactory on the open-source MemAgent architecture using its publicly available training and evaluation data. Across the evaluation sets, MemFactory improves performance over the corresponding base models on average, with relative gains of up to 14.8%. By providing a standardized, extensible, and easy-to-use infrastructure, MemFactory significantly lowers the barrier to entry, paving the way for future innovations in memory-driven AI agents.

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

↑