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

Zhiqian Xia, Jielong Tang, Ling-An Zeng, Shixiong Kai, Rong Yao +6 more
10/21/2026
cs.CL
rlrlhf-rlvr-dpo

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xia2026unimem,
  title  = {Uni-Mem: Learning a Long-Horizon Agentic Memory Manager with Unified Online Policy Optimization},
  author = {Zhiqian Xia and Jielong Tang and Ling-An Zeng and Shixiong Kai and Rong Yao and Hao Kong and Xiao Dong and Wei Wang and Mingxuan Yuan and Siyu Xia and Haifeng Xia},
  year   = {2026},
  eprint = {2610.29671},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.29671v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.29671.svg)](https://codeofpaper.com/paper/2610.29671)

Discussion