MemHarness: Memory Is Reconstructed, Not Replayed
Rong Wu, Daocheng Fu, Licheng Wen, Xuemeng Yang, Shu Zou, Jianbiao Mei, Yuxin Wang, Hairong Zhang, Yu Yang, Tao Hu, Cong Zhang, Botian Shi, Pinlong Cai
Abstract
Retrieving past experiences has become a common strategy to enhance large language model agents. However, most existing memory-augmented agents treat retrieved experiences as static records to be replayed verbatim, injecting them into the context regardless of whether they align with the agent's current situation. This ``replay'' paradigm ignores the gap between the abstract, general nature of stored experience and the concrete, ever-changing states encountered at decision time, frequently causing negative transfer. In contrast, humans rarely recall past experiences verbatim; instead, they reorganize and adapt retrieved memories to fit the present context. Inspired by this, we propose MemHarness, a framework that equips LLM agents to actively harness and reconstruct past experiences based on the present context. At each decision step, a unified policy model critiques and reconstructs the retrieved experience conditioned on the current state, producing context-grounded guidance before acting. This reconstructive ability emerges naturally through end-to-end training with GRPO. Experiments on ALFWorld and WebShop show that MemHarness substantially outperforms pure RL and static memory-augmented baselines, demonstrating strong robustness in out-of-distribution (OOD) scenarios. Furthermore, our analyses reveal that this reconstruction objective not only prevents negative transfer but also serves as latent guidance during training, fundamentally improving the agent's intrinsic reasoning capabilities.
Create a lesson
Metadata
- Comments
- 20 pages, 13 figures
Related papers
TASK Memory: Beyond Text-Only Memory with Activation Steering and Knowledge Editing against Memory Hallucination
Shared title terminologycs.AIJinkun Zhao, Wenjun Wu
HoMe: Toward Practical Harness Optimization of Memory Systems for AI Assistants
Shared title terminologycs.AIYifei Xu, Li Yu, Zhaoyang Liu et al.
Procedure Inference as Memory: Learning Recruiter Decision Procedures from OKF-Structured Episodes in Multi-Session Hiring Assistants
Shared title terminologycs.AIPraveen Kumar Bodigutla, Yizhi Zhang, Sai Vivek Kanaparthy et al.
MetaDecomp: Adaptive Task Decomposition via Meta-Learned Procedural Memory
Shared title terminologycs.AIZiyi Wang, Yixiao He, Yichen Wu et al.
Asset4D-Bench: Benchmarking Coding Agents for Editable 3D and 4D Reconstruction
Shared title terminologycs.AIChengyi Sun, Deyuan Liu, Lei Zhao et al.
LoomKV: Lossless KV Cache Compression from GPU Memory to SSD for LLM Serving
Shared title terminologycs.AIWentao Zhu, Ziao Sheng, Peng Deng et al.