Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents: what it means for business leaders
WikiTrace keeps every lesson an agent learns linked to the run it came from, so the agent can check a doubtful lesson against the record before acting on it.
1. What the method is
WikiTrace is a memory system for LLM agents that stores experience in three linked layers. At the top are insights: short lessons saying what to do, when it applies, which past run it came from and whether that run succeeded. Each insight links down to a compilation, a structured account of why that run succeeded or failed, and further down to the raw trajectory, the unedited log of the agent's reasoning, actions and observations. The memory is built once from a fixed set of past runs and then mounted as read-only files. On a new task the agent receives every insight up front and can open the underlying files with ordinary terminal tools whenever a lesson looks incomplete, contradicts another, or came from a failed run. The advance is the link from lesson to evidence, not a new way of writing lessons. The code is public.
2. Why the method was developed
Agent memory is sold as a way to improve without retraining, but it can make an agent fail tasks it would otherwise solve. The authors call this memory-induced degradation and measure it directly: Gain is the rate at which memory turns failures into successes, Regression the rate at which it turns successes into failures. Average accuracy hides the second number. In their analysis of tasks solved three times out of three without memory and then failed with it, 52% of failures traced to a memory item the agent followed, most often one that was simply wrong (20%). The root cause is that a run carries only a pass or fail label, so whatever writes the lesson must guess which actions mattered. Existing methods hand the agent the guess without the run behind it, although that run often contains the observation that contradicts the lesson.
3. Who should care
Anyone on our side who builds or operates agents that learn from their own history should read this: the engineers who design agent memory, the product owners who promise that an agent improves with use, and the people who run evaluation. For that last group the practical message is that a single accuracy figure is not enough when memory is switched on; we should report how many previously passing tasks now fail. Customer-facing teams have a stake as well, because a regression is the failure a customer notices most: something that worked last week stops working. Those who buy agent platforms rather than build them can use it as a procurement question, asking whether stored lessons can be traced back to the sessions that produced them. It also matters to whoever owns audit and incident review, since a lesson with a source link can be explained after the fact.
4. How the method works
Construction is one pass, with one compiler call per past run. The compiler reads the task, the trajectory and the binary outcome, writes a compilation using separate templates for successes and failures, and extracts at most three insights. Insights are never merged, edited or deleted, so the pool can hold redundant and conflicting lessons, and sorting them out is left to the agent at run time. Each layer has a generated index. At test time the first message carries all insights plus the three past runs whose tasks most resemble the current one. The prompt asks the agent to descend from an insight to its source when the insight lacks a detail needed to act, comes from a failed run, or disagrees with another, and again whenever an action fails. The agent then searches the files for the fact that settles the question, such as an exact command format.
5. How it was evaluated
The evaluation covers eight suites across five benchmarks: ALFWorld, ScienceWorld and PlanCraft, which are simulated text worlds, and AppWorld and tau-bench Retail, which are tool-use environments. Training sets hold 38 to 54 runs per benchmark and test suites 76 to 134 tasks. Baselines are the same agent with no memory, three published memory methods (AWM, ExpeL, ReasoningBank) adapted to the same offline protocol, and an Insights Only control that receives identical insights without the linked evidence or the prompt to descend, which isolates the effect of source access. Every method builds memory once from the same no-memory training runs and may not run extra trials to validate it. All use one terminal agent harness with deepseek-v4-flash, three trials each. Gain and Regression carry bootstrap confidence intervals and are compared against a rerun-without-memory floor. A second model, GLM-5.3-flash, was tested on three suites.
6. How it performed
WikiTrace scored highest on all eight suites, averaging 90.2 against 79.5 with no memory and 87.0 for Insights Only, and was the only memory method never to fall below the no-memory agent. Regression was 4.5% against 6.5% for Insights Only and 9.7% for simply rerunning without memory; Gain exceeded the rerun floor by 35 points against 27. Test-time cost was 1.17 times Insights Only per task. The benefit was largest on hard tasks and when the agent looked something up after a blocked action. The limits are real: a link lets the agent check a lesson but does not verify it, every insight sits in the prompt, so the approach is shown only for memories built from about fifty runs and retrieval at larger scale is left open, and the failure-cause analysis rests on an LLM judge. Our call: pilot it on one agent that already keeps lessons, and start reporting regression alongside accuracy now. (Source: arXiv 2611.14320, 2026)
← Back to dossier index