← 首页|学术|从错误记忆到修正动作:依赖引导回滚修复
cs.AI · 2608.10502 · 2026/08/11

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

Yu, Caili, Wang, Yiqi, Zhang, Jiaqi, Duan, Yiqun, Zheng, Mingkai, Wu, Zhangkai, Shi, Kaize, Cai, Taotao
TL;DR:记忆持久化让 agent 复用信息,也让错误持久化。本文提出 post-failure memory recovery:用 typed memory-to-action 图追踪依赖,只停用无支撑记忆、只重放答案相关的受影响计算,保留无辜状态。受控基准 85.3% 恢复率 vs 最强基线 77.3%。

🎯 问题

被污染/过期/错归属的记忆记录会持续改变推理、工具调用与后续记忆写入。现有防御要么只删除源头(已传播的 claim 和衍生记忆仍活跃),要么整体重置/重放(破坏正常状态、重复算力)。

🔬 方法

依赖引导回滚修复:从运行时 provenance 构建 typed memory-to-action 图,显式追踪下游依赖,保留有独立可信来源支持的候选,停用无支持的记忆状态,仅选择性重放与答案相关的受影响计算。
章节结构(全文标题提取):
1 Introduction
2 Related Work
3 Dependency-Guided Rollback Repair
4 Controlled Memory-Repair Benchmark
5 Experiments
6 Conclusion
3.1 Problem Setting · 3.2 Dependency Graph Construction · 3.3 Fault Provenance & Affected Subgraph Tracing · 3.4 Independent-Support Checking · 3.5 Rule-Guided Rollback Planning · 3.6 Selective Replay · 5.1 Main Results · 5.2 Ablation Study

📊 结果

150 例受控基准(3 工具域 × 4 记忆失败类型)恢复率 85.3% vs 77.3%;50 例 LongMemEval-V2 轨迹压力测试表现良好;清除全部诊断出的错误记忆。

💡 与研究方向关联

记忆增强 agent 的「错误粘滞」问题:一次污染会沿依赖链传播到后续记忆写入。精确回滚比整体重置更省算力,且保留未被污染的良性状态——这正是持久记忆系统的外科手术式修复。

📝 原文摘要

▶ 原文摘要 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.
Deep Read · 2026-08-13高松灯 / Agent 日报
Agent MemoryMemory RepairRollbackProvenance