arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.08369cs.AIcs.CLcs.LG
收藏

MemAdapter:通过生成子图检索实现跨代理记忆范式的快速对齐

MemAdapter: Fast Alignment across Agent Memory Paradigms via Generative Subgraph Retrieval

The University of Manchester(曼彻斯特大学);Stanford University(斯坦福大学);Imperial College London(伦敦帝国理工学院);National Institute of Advanced Industrial Science(国家先进工业科学与技术研究院)

Xin Zhang, Kailai Yang, Chenyue Li, Hao Li, Qiyu Wei, Jun'ichi Tsujii, Sophia Ananiadou

AI总结:

MemAdapter通过生成子图检索实现跨代理记忆范式的快速对齐,提升记忆检索灵活性并降低对齐成本,实验显示其性能优于现有系统。

摘要:

记忆机制是基于大语言模型的代理的核心组件,使代理能够在长时间范围内进行推理和知识发现。现有的代理记忆系统通常是在孤立的范式(如显式、参数化或潜在记忆)中设计,具有紧密耦合的检索方法,这阻碍了跨范式的一般化和融合。在本工作中,我们首次尝试在单一的记忆系统内统一异构的记忆范式。我们提出了MemAdapter,一种记忆检索框架,能够实现跨代理记忆范式的快速对齐。MemAdapter采用两阶段训练策略:(1)从统一的记忆空间中训练一个生成子图检索器;(2)通过对比学习训练一个轻量级的对齐模块,以适应未见过的记忆范式。这种设计提高了记忆检索的灵活性,并显著减少了跨范式对齐的成本。在三个公开评估基准上的全面实验表明,生成子图检索器在三个记忆范式和代理模型规模上均优于五个强大的代理记忆系统。值得注意的是,MemAdapter在单个GPU上完成跨范式对齐仅需13分钟,其性能优于原始记忆检索器,计算成本仅为5%以下。此外,MemAdapter实现了跨记忆范式的有效零样本融合,突显了其作为代理记忆系统插件解决方案的潜力。

英文摘要:

Memory mechanism is a core component of LLM-based agents, enabling reasoning and knowledge discovery over long-horizon contexts. Existing agent memory systems are typically designed within isolated paradigms (e.g., explicit, parametric, or latent memory) with tightly coupled retrieval methods that hinder cross-paradigm generalization and fusion. In this work, we take a first step toward unifying heterogeneous memory paradigms within a single memory system. We propose MemAdapter, a memory retrieval framework that enables fast alignment across agent memory paradigms. MemAdapter adopts a two-stage training strategy: (1) training a generative subgraph retriever from the unified memory space, and (2) adapting the retriever to unseen memory paradigms by training a lightweight alignment module through contrastive learning. This design improves the flexibility for memory retrieval and substantially reduces alignment cost across paradigms. Comprehensive experiments on three public evaluation benchmarks demonstrate that the generative subgraph retriever consistently outperforms five strong agent memory systems across three memory paradigms and agent model scales. Notably, MemAdapter completes cross-paradigm alignment within 13 minutes on a single GPU, achieving superior performance over original memory retrievers with less than 5% of training compute. Furthermore, MemAdapter enables effective zero-shot fusion across memory paradigms, highlighting its potential as a plug-and-play solution for agent memory systems.

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

↑