Mem-T: Densifying Rewards for Long-Horizon Memory Agents
Yanwei Yue, Guibin Zhang, Boci Peng, Xuanbo Fan, Jiaxin Guo, Qiankun Li, Yan Zhang
TL;DR
Mem-T addresses the challenge of optimizing long-horizon memory management under sparse rewards by introducing a hierarchical memory database and a dual-track training framework. The core innovation, Memory Operation Tree-guided GRPO (MoT-GRPO), densifies terminal rewards through node-wise backpropagation and hindsight credit assignment, enabling joint optimization of memory construction and retrieval. Empirical results show Mem-T achieving state-of-the-art performance across in-domain and out-of-domain benchmarks with favorable accuracy-efficiency trade-offs, including substantial reductions in per-query token usage. The approach demonstrates strong generalization and ablation-supported robustness, offering a pathway toward self-evolving, lifelong memory-enabled agents.
Abstract
Memory agents, which depart from predefined memory-processing pipelines by endogenously managing the processing, storage, and retrieval of memories, have garnered increasing attention for their autonomy and adaptability. However, existing training paradigms remain constrained: agents often traverse long-horizon sequences of memory operations before receiving sparse and delayed rewards, which hinders truly end-to-end optimization of memory management policies. To address this limitation, we introduce Mem-T, an autonomous memory agent that interfaces with a lightweight hierarchical memory database to perform dynamic updates and multi-turn retrieval over streaming inputs. To effectively train long-horizon memory management capabilities, we further propose MoT-GRPO, a tree-guided reinforcement learning framework that transforms sparse terminal feedback into dense, step-wise supervision via memory operation tree backpropagation and hindsight credit assignment, thereby enabling the joint optimization of memory construction and retrieval. Extensive experiments demonstrate that Mem-T is (1) high-performing, surpassing frameworks such as A-Mem and Mem0 by up to $14.92\%$, and (2) economical, operating on a favorable accuracy-efficiency Pareto frontier and reducing inference tokens per query by $\sim24.45\%$ relative to GAM without sacrificing performance.
