MemHarness: Memory Is Reconstructed, Not Replayed
Summary
MemHarness is a framework that enables LLM agents to reconstruct past experiences conditioned on the current context instead of replaying them verbatim, improving performance on ALFWorld and WebShop while reducing negative transfer.
View Cached Full Text
Cached at: 07/31/26, 05:53 AM
Paper page - MemHarness: Memory Is Reconstructed, Not Replayed
Source: https://huggingface.co/papers/2607.28272 Authors:
,
,
,
,
,
,
,
,
,
,
,
Abstract
Retrievingpastexperienceshasbecomeacommonstrategytoenhancelargelanguagemodelagents.However,mostexistingmemory-augmentedagentstreatretrievedexperiencesasstaticrecordstobereplayedverbatim,injectingthemintothecontextregardlessofwhethertheyalignwiththeagent’scurrentsituation.This``replay’’paradigmignoresthegapbetweentheabstract,generalnatureofstoredexperienceandtheconcrete,ever-changingstatesencounteredatdecisiontime,frequentlycausingnegativetransfer.Incontrast,humansrarelyrecallpastexperiencesverbatim;instead,theyreorganizeandadaptretrievedmemoriestofitthepresentcontext.Inspiredbythis,weproposeMemHarness,aframeworkthatequipsLLMagentstoactivelyharnessandreconstructpastexperiencesbasedonthepresentcontext.Ateachdecisionstep,aunifiedpolicymodelcritiquesandreconstructstheretrievedexperienceconditionedonthecurrentstate,producingcontext-groundedguidancebeforeacting.Thisreconstructiveabilityemergesnaturallythroughend-to-endtrainingwithGRPO.ExperimentsonALFWorldandWebShopshowthatMemHarnesssubstantiallyoutperformspureRLandstaticmemory-augmentedbaselines,demonstratingstrongrobustnessinout-of-distribution(OOD)scenarios.Furthermore,ouranalysesrevealthatthisreconstructionobjectivenotonlypreventsnegativetransferbutalsoservesaslatentguidanceduringtraining,fundamentallyimprovingtheagent’sintrinsicreasoningcapabilities.
View arXiv pageView PDFProject pageGitHub1Add to collection
Get this paper in your agent:
hf papers read 2607\.28272
Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2607.28272 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2607.28272 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2607.28272 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
@Xudong07452910: Agent memory is most dangerous when it trusts the past too much. Many Memory Agents stuff similar experiences directly into context after retrieval. But similar tasks do not mean the current state is the same; old experiences can sometimes steer decisions astray. This paper proposes MemHarness, turning Agent...
MemHarness proposes changing Agent memory from simple replay to reconstruction based on the current state, trained end-to-end with GRPO, significantly improving success rates on ALFWorld and WebShop.
H-Mem: A Novel Memory Mechanism for Evolving and Retrieving Agent Memory via a Hybrid Structure
H-Mem is a novel memory mechanism for LLM-based agents that uses a hybrid structure combining a temporal and semantic tree with a knowledge graph to model memory evolution and improve retrieval, achieving state-of-the-art performance on QA benchmarks.
State of Memory in Agent Harness (12 minute read)
A survey of memory implementations across major AI agent harnesses (Claude Code, Codex, Copilot, etc.) reveals common boundary failures including bounded local storage, keyword retrieval, harness scoping, weak staleness handling, and 57-71% cross-user contamination rates, highlighting unsolved problems in agent memory infrastructure.
HasMem: Hard-Origin Adaptively Softened Memory for Long-Term LLM Agents
The paper proposes HasMem, an adaptive memory compression method for long-term LLM agents that adjusts memory widths while maintaining frozen LLM parameters, demonstrating improved performance on reconstruction and QA benchmarks.
MemFit: Efficient Long-Term Agentic Memory
MemFit is a long-term memory system for conversational agents that stores turns verbatim in an append-only store and uses LLM-free insertion and multi-path retrieval to drastically cut memory construction cost and latency while achieving state-of-the-art results on LoCoMo, MemGallery, and LongMemEval-S.