TL;DR
MemSearcher is a novel framework that maintains a compact, question-relevant memory in LLM-based search agents, reducing context length and computational costs while improving performance across multiple datasets.
Contribution
It introduces multi-context GRPO for end-to-end reinforcement learning optimization of memory management in LLM agents, outperforming existing history-concatenation methods.
Findings
MemSearcher maintains nearly constant token counts across turns.
It outperforms ReAct-style baselines on various datasets.
Code and models will be publicly available.
Abstract
LLM-based search agents often concatenate the full interaction history into the context, producing long and noisy inputs, and increasing compute cost and GPU memory overhead. To address this issue, we propose MemSearcher, an agent framework that maintains a compact memory during multi-turn interactions, retaining only question-relevant information and thereby keeping the context length stable across turns. Training MemSearcher is challenging because each trajectory spans multiple turns under different LLM contexts, making each turn an independent optimization target in reinforcement learning. We introduce multi-context GRPO, which propagates trajectory-level advantages to all turns for end-to-end optimization. Experiments demonstrate that MemSearcher outperforms strong history-concatenation (ReAct-style) baselines on a range of public datasets while maintaining nearly constant token…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
