Malotru
Back to notes

When the Lesson Is Wrong

November 13, 2026

A paper submitted on 10 November 2026 names memory-induced degradation: an agent fails a task it would solve without memory, because it follows a wrong lesson or misapplies a valid one. WikiTrace links each insight to a compilation of why the trajectory succeeded or failed, and to the raw trajectory, and the agent descends those links when an insight lacks detail, conflicts with another, or comes from a failed task. Over eight suites the authors report No Memory at 79.5 with 9.7 percent Regression, Insights Only at 87.0 and 6.5 percent, and WikiTrace at 90.2 and 4.5 percent. Of the failures they analyzed, 52 percent traced to a memory item the agent followed, most often a wrong one, as labeled by a model reading the agent's stated reasoning. A link lets the agent check a lesson. It does not verify the lesson.

When the Lesson Is Wrong

A paper submitted to arXiv on 10 November 2026 gives a name to a failure that a higher average score can hide. An agent that carries a memory of past lessons fails a task it would have solved with no memory at all. Yukyeong Lee, Yumin Choi, Jinheon Baek, and Sung Ju Hwang call that failure memory-induced degradation. In their account it happens because the agent follows a lesson that is wrong, or misapplies or misreads a lesson that was valid. Lessons are inferred from trajectories labeled only with success or failure, and they are usually stored without those trajectories, so the agent cannot check them. WikiTrace keeps a path back. Each concise insight links to a compilation, the compiler's account of why the trajectory succeeded or failed, and further down to the raw trajectory. On a new task the agent starts from the insights and descends those links when an insight lacks the detail needed to act, conflicts with another, or comes from a failed task. The code and a project page are public [Source 1][Source 2][Source 3].

A binary label is a poor teacher

The corpus is fixed before any test task. Each past run, collected with no memory, is a task, a trajectory of actions and observations, and a binary outcome. There is no gold solution. The outcome does not say which action produced it, so an insight drawn from the run is not always valid. A compiler reads one run at a time and writes a compilation plus at most three insights. For a success, the compilation describes decisions associated with success. For a failure, it records plausible explanations. The paper calls both interpretations, not verified explanations of the outcome. Insights are never updated or deleted, so the pool may contain redundant or conflicting lessons, and the agent at test time has to decide which one applies. Memory is then read-only. No method in the comparison is allowed an extra run to validate an item [Source 1].

To see how memory breaks a solved task, the authors take tasks the agent solves in all three repeated runs without memory, and that it then fails once memory is added. An LLM judge, gpt-5.6-sol at medium reasoning effort, compares each failed run with a no-memory run of the same task, finds the first turn where the two diverge, and sorts the cause into five kinds. In 52 percent of these cases, the failure traces to a memory item the agent followed. Most often the item itself was wrong, counted as 20 percent. Otherwise a valid item was applied outside its scope, misused by the agent, or followed while memory held a better one. A footnote adds that a cause is often implicit, and that many cases show no link to any memory item, because an agent acts differently across runs even with no memory. The limitations section is stricter about what this 52 percent is. The labels come from a judge that reads the agent's reasoning, so they describe what that reasoning states, not what produced the outcome [Source 1].

The project page's lamp episode is that wrong item in a few turns, shortened from real episodes. Without memory the agent finds a vase, picks it up, and turns the lamp on. With a stored rule that the task ends once the object sits beside the lit lamp, it turns the lamp on next to a vase it never picked up and calls the task done. The episode fails. The paper notes that the run behind the rule contradicts the rule [Source 1][Source 2].

Three layers, and a reason to open the lower two

WikiTrace stores raw trajectories, compilations, insights, and the links among them. An insight says what to do, when it applies, which run it came from, and whether that run succeeded. Insights from one run share the same evidence. The raw trajectory is kept unchanged: task, reasoning, action, observation, and outcome. On a new task the first message holds every insight, together with the three past runs whose tasks are most similar. The project page says the memory is mounted read-only and that reading it costs no environment steps. The prompt asks the agent to descend when an insight lacks the details needed to act, comes from a failed run, or disagrees with another insight, and to descend again when an action fails. The abstract names the same gate: missing detail, conflict, or a failed source task [Source 1][Source 2].

Insights Only is the control that isolates the links. It receives the same insights, and it receives neither the compilations, nor the raw trajectories, nor the prompt to descend. On the paper's design, a gap between the two is access to the source runs [Source 1].

Eight suites, and the averages the authors report

The evaluation is eight suites from five benchmarks: ALFWorld, seen and unseen; ScienceWorld; PlanCraft, seen and unseen; the retail split of τ³-bench; and AppWorld, normal and challenge. The agent is the paper's Pi terminal agent, using deepseek-v4-flash, the 23 April 2026 release, at high reasoning effort, with each benchmark's ReAct instruction. Each method builds its memory once from the same no-memory training runs and is tested for three trials. The averages the paper and the project page both print, over the eight suites, are these. No Memory scores 79.5, with Regression of 9.7 percent, where that Regression for the no-memory row is a rerun of the agent without memory. Insights Only scores 87.0, with Regression of 6.5 percent. WikiTrace scores 90.2, with Regression of 4.5 percent. WikiTrace is 10.7 points above no memory on average, and 3.2 points above Insights Only. The paper says it is the only memory method in the comparison that matches or exceeds No Memory on every suite [Source 1][Source 2].

Regression is the rate at which memory turns successes into failures. Gain is the rate at which it turns failures into successes. WikiTrace's Regression is lower than Insights Only on seven of the eight suites, and the paper says WikiTrace is the only method whose Regression confidence interval lies entirely below the rerun band. Gain moves with that reduction. WikiTrace exceeds the rerun baseline by 35 percentage points, Insights Only by 27. Because the two methods differ in access to source runs, the paper attributes the higher Gain and the lower Regression to that access. Relative to Insights Only, it reports that wrong or out-of-scope items cause half as many of WikiTrace's regressions [Source 1].

The agent descends more on harder tasks, where the lead over Insights Only is largest. A judge, again gpt-5.6-sol at medium effort, labels the descents in the text-world benchmarks. Those that follow a blocked attempt, an observation that blocked the plan, or a doubt about an insight are 36 percent of descents and lead Insights Only by 10.4 points, against 3.7 points when nothing has yet gone wrong. The largest lead, 17.3 points, comes when a blocked attempt sends the agent after a specific fact in past runs, which Insights Only has no way to look up. A second backbone, GLM-5.3-flash at medium reasoning effort, is reported on PlanCraft and ScienceWorld, with memory built from that model's own training runs. There WikiTrace averages 92.7, 1.8 points above Insights Only and 21.5 above No Memory. At test time on the main setup, the paper says WikiTrace costs 1.17 times as much per task as Insights Only, averaged across suites, beside the 3.2 point gain [Source 1].

A link is not a proof

The conclusion stops short of a verified memory. Because the only supervision was a binary outcome, a compilation's diagnosis of a failure, and any insight drawn from it, may be wrong. A source link lets the agent check an insight against its run. It does not verify the insight. Every insight is placed in the first message so that none is missed, and the prompt therefore grows with the memory. A memory too large to place in full would need retrieval, which the paper leaves open. The repository adds an engineering constraint: a memory built under a different config, prompt, or commit is refused, so a run does not read a stale corpus by accident. None of that makes the stored lesson true. It gives the agent a way to open the lesson before following it [Source 1][Source 3].

Sources