cs.CLOct 21, 2026

Uni-Mem: Learning a Long-Horizon Agentic Memory Manager with Unified Online Policy Optimization

Authors: Zhiqian Xia, Jielong Tang, Ling-An Zeng, Shixiong Kai, Rong Yao, Hao Kong, Xiao Dong, Wei Wang, 

Organizations: Southeast University · Huawei Technologies, Noah’s Ark Lab · Sun Yat-sen University · Shandong Normal University

Abstract

Long-term agent memory is shifting from predefined workflows toward learnable policies for memory construction and retrieval. Existing learning-based methods either optimize construction alone or combine retrieval-side online reinforcement learning (RL) with offline construction supervision, limiting co-adaptation between the two stages. In this paper, we explore end-to-end online RL for a unified memory manager (Uni-Mem) that learns both capabilities under a shared policy. However, joint optimization with existing RL algorithms such as GRPO faces confounded group comparisons and sparse feedback over long memory-management trajectories. To this end, we propose Stage-Decoupled GRPO, which alternates construction and retrieval optimization while controlling variation from the other stage within each rollout group, yielding stage-specific learning signals. We further introduce Event-Wise Credit Assignment (ECA), which localizes feedback to responsible events and propagates event-level advantages to their constituent operations. Experiments on LoCoMo and LongMemEval show that Uni-Mem outperforms the strongest RL-based memory, demonstrating the effectiveness of jointly learning memory construction and retrieval via Stage-Decoupled GRPO and ECA.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Learning How and What to Memorize: Cognition-Inspired Two-Stage Optimization for Evolving Memory

    May 1, 2026Derong Xu, Shuochen Liu, Pengfei Luo +8Memorization in Language ModelsMemorization in Generative Models

  2. Memory-R2: Fair Credit Assignment for Long-Horizon Memory-Augmented LLM Agents

    May 20, 2026Sikuan Yan, Ahmed Bahloul, Ercong Nie +4Group Relative Policy OptimizationCredit Assignment in RL

  3. Learning to Remember: End-to-End Training of Memory Agents for Long-Context Reasoning

    Feb 13, 2026Kehao Zhang, Shangtong Gui, Sheng Yang +2Persistent Memory for Language ModelsLong-Context Inference