MemComposer: Learning to Assemble Memories for LLM Agents via Reinforcement Learning
Yixuan Xie, Xueqiang Xu, Xinyi Fan, Xinxi Lyu, Tao Feng, Xing Fan, Chenlei Guo, Jie Hao, Shaowen Wang, Jiashuo Sun, Jiawei Han
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 -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.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL
- Comments
- 30 pages, 8 figures, 14 tables
Related papers
All-in-One Memory: Process-Rewarded Reinforcement Learning for Memory Agents
Shared title terminologycs.AIBingbing Wang, Jingjie Lin, Weiming Qiao et al.
STRIDE: Strategy-to-Tactics Retrieval-Guided Skill Disclosure and Evolution for Agentic Reinforcement Learning
Shared title terminologycs.AIShixin Hong, Wanqing Cui, Yibo Hu et al.
Engram: Multi-Stage Memory for Agentic Tuning of Heterogeneous Models
Shared title terminologycs.AIHuanran Li, Nhat X. T. Le, Kevin De Angeli et al.
SLICR: Strategy Logic-Guided Multi-Agent Reinforcement Learning
Shared title terminologycs.AIArshia Rafieioskouie, Matthew Lucas, Tzu-Han Hsu et al.
Learning Inside Types: Epistemic Typestates for Safe Multi-Agent Reinforcement Learning
Shared title terminologycs.AILorenzo Bacchiani, Mario Bravetti, Giovanni Pau et al.
HABIT-Bench: Evaluating Habit Induction from Longitudinal Weak Evidence in Agent Memory
Shared title terminologycs.AIJunming Zhang, Rubin Wei, Xu Cheng et al.