cs.AIOct 15, 2026

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

Authors: Yixuan Xie, Xueqiang Xu, Xinyi Fan, Xinxi Lyu, Tao Feng, Xing Fan, Chenlei Guo, Jie Hao, 

Organizations: University of Illinois Urbana-Champaign · Amazon

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τ^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.

Figures & tables

Appendix figures & tables12 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents

    Jul 15, 2026Eric Hanchen Jiang, Zhi Zhang, Yuchen Wu +11Persistent Memory for Language ModelsMemory Management for LLM Agents

  2. ElasticMem: Latent Memory as a Learnable Resource for LLM Agents

    May 29, 2026Tao Feng, Chongrui Ye, Tianyang Luo +5LLM Agent MemoryPersistent Memory for Language Models

  3. Mem-ππ: Adaptive Memory through Learning When and What to Generate

    May 20, 2026Xiaoqiang Wang, Chao Wang, Hadi Nekoei +5LLM Agent MemoryRL for LLM Agents