Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents
Reading guide · Based on sections of the original paper
Why read this
Read this if you build experience-reuse memory for LLM agents and want a cheap way to stop memory from breaking tasks the agent already solves, plus a Gain/Regression evaluation protocol.
What the authors found
- With deepseek-v4-flash over three trials, WikiTrace averaged 90.2 across eight suites. That compares with 79.5 for No Memory and 87.0 for Insights Only, which gives the same insights without source access. Per-suite margins are sometimes small or noisy, for example PlanCraft-unseen at 81.3±8.5 versus 73.0±10.7. 4.2 Main Results
- Averaged over suites with paired bootstrap intervals, WikiTrace's Regression rate was 4.5%. Insights Only reached 6.5%, and a no-memory rerun baseline reached 9.7%. Gain exceeded the rerun baseline by 35 percentage points, versus 27 for Insights Only. 4.3 Gain and Regression
- At test time, WikiTrace cost 1.17 times as much per task as Insights Only for +3.2 points. It still led when baseline memory builders were run 3–9 times. 5.4 How Cost-Effective Is WikiTrace?
Main limitation
Every insight is injected into the first message, so the prompt grows with memory size, and retrieval at scale is left open. The tested memories were built from only 38–54 training runs per benchmark. Source links also do not verify insights. Limitations
Where to start
4.3 Gain and Regression · See how Gain and Regression are computed against a no-memory rerun floor. It also shows where WikiTrace fails to beat Insights Only on Regression.
Abstract
External memory enables LLM agents to improve from experience by distilling trajectories of past tasks into concise lessons for new tasks. However, memory can also lead to memory-induced degradation, where an agent fails on tasks it would solve without memory, often because it follows a lesson that is incorrect, or misapplies or misreads a valid one. This is because lessons are inferred from trajectories labeled only with task success or failure, yet are typically provided without the trajectories they came from, leaving the agent no way to check them. To address this, we introduce WikiTrace, an evidence-linked memory system designed to let agents check each lesson against its original trajectory. Specifically, motivated by the finding that a trajectory often still holds the evidence needed to catch an erroneous lesson, WikiTrace stores each lesson as a concise insight linked to a summary of why its trajectory succeeded or failed and to the raw trajectory itself. Then, on a new task, the agent starts from all insights and, whenever one lacks details needed to act, conflicts with another, or comes from a failed task, descends through its links with terminal tools to fill in missing details or correct the insight before acting. We validate WikiTrace on five agentic benchmarks, showing that it consistently outperforms existing memory approaches and a baseline given the same insights alone, while also reducing memory-induced degradation. Our code is available at https://github.com/yukyeongleee/wikitrace