MEGA Hub

MemHarness: Memory Is Reconstructed, Not Replayed

Authors

Do you know Rong Wu?You can claim authorship or link another user.Do you know Daocheng Fu?You can claim authorship or link another user.Do you know Licheng Wen?You can claim authorship or link another user.Do you know Xuemeng Yang?You can claim authorship or link another user.Do you know Shu Zou?You can claim authorship or link another user.Do you know Jianbiao Mei?You can claim authorship or link another user.Do you know Yuxin Wang?You can claim authorship or link another user.Do you know Hairong Zhang?You can claim authorship or link another user.Do you know Yu Yang?You can claim authorship or link another user.Do you know Tao Hu?You can claim authorship or link another user.Do you know Cong Zhang?You can claim authorship or link another user.Do you know Botian Shi?You can claim authorship or link another user.Do you know Pinlong Cai?You can claim authorship or link another user.

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.

Community

00

Publication notes

Author note
20 pages, 13 figures