Writing
November 12, 2026 · 6 min read

Don't just trust your memory: evidence-linked lessons for LLM agents

Agent memory systems distill past runs into lessons that can be wrong, and those lessons quietly break tasks the agent could already solve. WikiTrace links every lesson back to its source trajectory so the agent can check it before acting, which raises accuracy and cuts memory-induced regressions.

agent-memoryllm-agentsagentic-aievaluationreliability

Many agent memory systems work the same way. The agent runs a task, the run gets a pass or fail label, an LLM reads the trajectory and writes a short lesson, and the lesson goes into the prompt of every later task. It is cheap and it often helps. It also has a weakness we rarely measure. The lesson is a guess about why a run turned out the way it did, and once it is in memory nobody can check it.

A new paper from KAIST and DeepAuto.ai, Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents (Lee, Choi, Baek and Hwang), names this weakness and proposes a fix I find simple and convincing. Their system, WikiTrace, keeps a path from every lesson back to the run it came from, and the agent can follow that path before it acts on the lesson.

The failure mode: memory that breaks solved tasks

The authors call it memory-induced degradation: the agent fails a task it would have solved with no memory at all. Average accuracy hides this, because gains on other tasks cancel it out. So they split the effect into two rates. Gain is how often memory turns a no-memory failure into a success. Regression is how often memory turns a no-memory success into a failure.

That split is the most useful idea in the paper, and I would use it outside their system too. A memory layer that adds 10 points of accuracy while quietly breaking 7% of tasks that used to work is a reliability problem. In production, users notice the regressions before they notice the average.

The numbers are humbling. Across eight benchmark suites, existing memory methods (AWM, ExpeL, ReasoningBank) show Regression about as high as, or higher than, simply rerunning the agent without memory. The authors looked at tasks the agent solved in all three no-memory trials but failed with memory. In 52% of those failures the cause traced back to a memory item the agent followed. The largest single group (20%) was an item that was simply wrong. The rest were valid items used outside their scope, misused, or followed when memory held a better one.

The root cause is a credit-assignment problem I recognize from physics data analysis. A trajectory has dozens of actions and one binary label. Any lesson drawn from it is a hypothesis about which actions mattered. Their ALFWorld example shows this well. A rule says a lamp task ends once the object is next to the lit lamp, yet the source run behind that rule shows the agent picking the object up first. The evidence that refutes the lesson was in the trajectory all along. It just never reached the agent.

The design: three linked layers and a descent

WikiTrace memory: insight, compilation and raw trajectory layers linked top to bottom, with the agent descending on missing details, conflicts or failed-run sources, then revising the insight before acting

WikiTrace stores memory in three layers:

  • Insight: a short lesson saying what to do, when it applies, which run it came from, and whether that run succeeded. There are at most three per run, and they are never merged or deleted.
  • Compilation: a diagnosis of the run, either the key decisions behind a success or the likely causes of a failure. The paper says plainly that these remain interpretations, not verified explanations.
  • Raw trajectory: the unchanged turn log, with each step's reasoning, action and observation.

At test time the agent gets every insight up front, plus pointers to the three most similar past runs. The prompt tells it to descend through the links, using ordinary read and bash over a read-only file mount, in three cases: an insight lacks the detail needed to act, it conflicts with another insight, or it came from a failed run. It descends again whenever an action fails. No retrieval model is involved, and no extra training. Memory is a directory the agent can search.

This is the part I find appealing as an engineer. The compiler can stay imperfect, because its mistakes can be corrected. The system does not try to write correct lessons up front. It keeps enough evidence around for the agent to catch the wrong ones when they matter.

What the results show

The cleanest comparison in the paper is WikiTrace against Insights Only: the same insights, with no source files mounted and no instruction to descend. Any difference comes from access to evidence.

  • Average score across eight suites: 90.2 for WikiTrace, 87.0 for Insights Only, 79.5 for No Memory. WikiTrace is best on every suite, and it is the only memory method that matches or beats No Memory on every suite.
  • Regression drops from 6.5% (Insights Only) to 4.5%, against 9.7% for rerunning with no memory. Gain over the rerun baseline is 35 points, compared with 27 for Insights Only and 7 to 14 for the prior methods.
  • The agent descends more on harder tasks: 22% of runs on easy tasks, 44% on hard ones. The advantage grows with difficulty too.
  • When the opened run actually changes the plan (43% of descending runs), the lead over Insights Only is 8.3 points. When it only confirms the plan or goes unused, the lead is 4.4.
  • Test-time cost is 1.17x that of Insights Only. The result also holds with a second backbone (GLM-5.3-flash), where every prior memory method falls below No Memory on at least one suite.

The PlanCraft case study shows the mechanism clearly. An insight from a failed run tells the agent to give up when a crafting preview appears early. A second insight from a successful run says the preview is temporary. The agent notices the conflict, opens both source runs, sees the successful one keep adding planks until the right item appears, discards the wrong lesson, and solves the task. Insights Only follows the wrong lesson and declares the task impossible.

There is also a finding about failed runs. Lessons drawn only from failures help more than lessons drawn only from successes, but they carry the most regression risk when given to the agent alone. In these benchmarks, keeping the evidence attached reduced the regressions that failure-derived lessons otherwise caused.

Where I would be careful

The authors are direct about the limits, and I agree with them. A source link lets the agent check an insight. It does not verify it. Every insight goes into the first message, so the prompt grows with memory, and at scale this turns back into a retrieval problem the paper leaves open. The failure categories and descent labels come from an LLM judge reading the agent's stated reasoning, which tells you what the agent said, not what caused the outcome. The benchmarks are also fairly contained environments with 38 to 54 training tasks each. Messy enterprise workloads will test the mount-everything-as-files approach in ways these suites do not.

What I am taking from it

Two things change how I design agent memory. First, I will report Gain and Regression separately for any memory or context-engineering change, with a no-memory rerun as the noise floor. Second, I will stop storing a distilled lesson without a pointer to its evidence. Storage is cheap, and the trajectory is already on disk. Dropping the link is what makes a lesson impossible to check later.

The paper's closing line says it well: agent memory should keep not only reusable lessons but also the evidence needed to reassess them. The code is on GitHub for anyone who wants to try it against their own harness.

References
  1. 01Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents (arXiv:2611.14320)
  2. 02WikiTrace code repository