论文

MemScope:通过局部代码修复让 Agent 记忆架构自我进化

MemScope: Evolving Agent Memory Architectures through Localized Code Repair

精选理由

这篇论文做了个 MemScope 框架,让 Agent 自己修自己的记忆架构代码,GAIA 上比只看执行轨迹的方案高了约 17 个点。

MemScope 框架让 Patch Agent 检查原始执行轨迹、运行时记忆状态和架构代码,对记忆架构进行有边界的就地修复,而不是大规模重写。在 GAIA 基准上,轨迹加记忆检查的变体达到 86.67% 准确率,高于仅用轨迹的 70.00% 和仅用摘要的 63.33%。在 xBench 任务中,进化后的记忆架构配合 DeepSeek V3.2 从 49 题提升到 55 题,配合 Kimi K2.7 Code 从 50 题提升到 53 题。在 ALFWorld 未见任务上,成功率从 50.75% 升到 71.64%,架构快照间代码改动比例中位数仅 4.4%。

原文 · arXiv: DeepSeek

MemScope: Evolving Agent Memory Architectures through Localized Code Repair

Agent memory architectures define how LLM agents store and reuse experience across tasks, but they are typically fixed after deployment, limiting their adaptability across task types. Recent self-evolving approaches instead adapt these memory architectures using execution feedback, typically represented as evaluation scores or compressed summaries. However, such coarse-grained feedback is insufficient for precise failure localization in current agent systems, where long-horizon task execution involves multiple interacting components. Without a precise failure location, existing approaches lack a clear code-level target for modification, leaving the update scope weakly constrained and often leading to large-scale rewrites of an otherwise capable memory architecture. We propose MemScope, a framework for evidence-grounded, localized evolution of an existing memory architecture. Its tool-using Patch Agent jointly inspects raw execution traces, runtime memory state, and current architecture code to identify repair targets and apply bounded, in-place edits under provider-identity and memory-compatibility constraints. On GAIA, the trace-and-memory inspection variant achieves 86.67% accuracy, compared with 70.00% for trace-only and 63.33% for summary-only feedback. Under xBench tasks, the evolved memory architecture improves over its original version from 49 to 55 correct answers with DeepSeek V3.2 and from 50 to 53 with Kimi K2.7 Code. On disjoint ALFWorld unseen tasks, success rises from 50.75% to 71.64%. Across archived architecture-snapshot transitions, the median code-change ratio is 4.4%. These results support fine-grained execution evidence as a basis for localized, in-place memory-architecture evolution.