MemComposer: Learning to Assemble Memories for LLM Agents via Reinforcement Learning

Yixuan Xie, Xueqiang Xu, Xinyi Fan, Xinxi Lyu, Tao Feng +6 more
10/15/2026
cs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Agent memory enables large language model (LLM) agents to reuse past experiences without updating their parameters. However, semantic similarity alone does not guarantee memory usefulness: downstream performance depends on how memories are selected and presented to the agent. We propose MemComposer, a memory composer that jointly examines the current query and retrieved candidates to decide which experiences to include, how many to select, and how to order them. We train the composer using Experience Policy Optimization (ExPO), a GRPO-based framework that evaluates assembled memory contexts through complete agent interactions and uses task-success feedback to optimize the assembly policy. Across three $τ^2$-bench domains with two frozen executors, MemComposer outperforms the strongest baseline for each executor while reducing average memory-token usage by 16.9% and 4.9%, respectively. The learned policy also transfers to unseen domains, executors, and memory banks, and benefits from memories generated by stronger models without further training. These results demonstrate the value of learning query-specific memory assembly using downstream task feedback.

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{xie2026memcomposer,
  title  = {MemComposer: Learning to Assemble Memories for LLM Agents via Reinforcement Learning},
  author = {Yixuan Xie and Xueqiang Xu and Xinyi Fan and Xinxi Lyu and Tao Feng and Xing Fan and Chenlei Guo and Jie Hao and Shaowen Wang and Jiashuo Sun and Jiawei Han},
  year   = {2026},
  eprint = {2610.21091},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.21091v1}
}

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.21091.svg)](https://codeofpaper.com/paper/2610.21091)

Discussion