From Faulty Memories to Corrected Actions: Dependency-Guided Rollback Repair for Memory-Augmented Agents

📅 2026-08-11
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the persistent degradation of agent reasoning and tool use caused by erroneous memories—such as contamination, staleness, or misattribution—which existing approaches struggle to correct without discarding valid knowledge. The paper formalizes, for the first time, the post-failure memory recovery problem and introduces a dependency-guided rollback repair mechanism. By constructing a typed memory-action dependency graph, the method tracks downstream effects at runtime, selectively deactivates unreliable memories, and replays only those computations relevant to the final answer. Evaluated on a controlled benchmark of 150 cases, the approach achieves an 85.3% recovery rate—surpassing the best baseline (77.3%)—while fully eliminating error sources and preserving all benign memories. In 50 stress-test scenarios, it attains a 68.0% recovery rate and significantly outperforms baselines, achieving the highest statement invalidation F1 score of 0.669.
📝 Abstract
Persistent memory lets language-model agents reuse information across sessions, but it also makes errors durable: a poisoned, stale, or misattributed record can alter reasoning, tool use, answers, and subsequent memory writes. Existing defenses mainly detect or delete suspicious memories, or revise the current response. Deleting the source leaves already propagated claims, actions, and derived memories active, whereas resetting the store or replaying the full trace destroys benign state and repeats unnecessary computation. We therefore formulate \textbf{post-failure memory recovery: } \textit{given a failed execution and diagnosed faulty memories, recover both the answer and persistent state while retaining unaffected work.} Our \textbf{dependency-guided rollback repair} builds a typed memory-to-action graph from runtime provenance, traces explicit downstream dependencies, preserves candidates with independent trusted support, deactivates unsupported memory state, and selectively replays only answer-relevant affected computation. We evaluate this approach on a 150-case controlled benchmark spanning three tool-use domains and four memory failure types, and on a 50-case trajectory-derived stress test adapted from LongMemEval-V2. On the controlled benchmark, it achieves 85.3\% recovery versus 77.3\% for the best competing recovery method, removes all diagnosed faulty memories, preserves all benign memories, and requires only selective replay with modest LLM-call cost. On the adapted subset, it reaches 68.0\% recovery versus 54.0\% for the next best method, while also achieving the highest claim invalidation F1, 0.669 versus 0.603. Overall, the results do not imply uniformly better trace reconstruction, but show that dependency-guided rollback repair provides a strong recovery--cost trade-off while repairing faulty memory state and preserving benign memory.
Problem

Research questions and friction points this paper is trying to address.

memory errors
post-failure recovery
persistent memory
faulty memories
memory-augmented agents
Innovation

Methods, ideas, or system contributions that make the work stand out.

dependency-guided rollback
memory-augmented agents
post-failure memory recovery
runtime provenance
selective replay
🔎 Similar Papers
No similar papers found.