MemAdapter: Fast Alignment across Agent Memory Paradigms via Generative Subgraph Retrieval
Xin Zhang, Kailai Yang, Chenyue Li, Hao Li, Qiyu Wei, Jun'ichi Tsujii, Sophia Ananiadou
TL;DR
MemAdapter addresses the fragmentation of memory paradigms in LLM-based agents by proposing a paradigm-agnostic, plug-and-play memory retrieval framework. It learns a generative subgraph retriever within a unified memory space and then rapidly aligns to unseen memory paradigms through lightweight contrastive learning, enabling cross-paradigm retrieval and fusion with minimal compute. Across three memory-intensive QA benchmarks and multiple model scales, MemAdapter consistently outperforms strong baseline memory systems and achieves cross-paradigm alignment in under 13 minutes on a single GPU. The work demonstrates practical benefits for memory-augmented agents, including efficient fusion of heterogeneous memories and scalable deployment without extensive architectural redesign.
Abstract
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.
