Rust in Everything
← Papers

Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents

Yukyeong Lee, Yumin Choi, Jinheon Baek, Sung Ju Hwang

2026-11-11▲ 53arXiv 2611.14320v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

WikiTrace is an evidence-linked memory system that keeps each distilled lesson linked to a compilation and the raw trajectory it came from, so an LLM agent can descend to that evidence at test time and thereby raise Gain while lowering memory-induced Regression.

Problem

External memory helps LLM agents reuse past trajectories as concise lessons, but it can also cause memory-induced degradation, where the agent fails tasks it solves without memory. Lessons are inferred from trajectories labeled only with binary success or failure, so a lesson may be wrong or misapplied, and existing methods provide the lesson without the trajectory that produced it, leaving the agent no way to check it. The paper argues average accuracy hides this, and measures it separately as Gain (failures turned into successes) and Regression (successes turned into failures).

Method

WikiTrace builds a fixed memory M=(R,C,I,E) from a corpus of no-memory runs, each consisting of a task, a trajectory, and a binary outcome, with each run processed independently. One compiler call per trajectory produces a compilation, a diagnosis of why the run succeeded or failed, plus at most three candidate insights; each insight becomes its own document tagged with its source run, that run's outcome, and its task type, with insights neither merged nor filtered. The three layers are stored read-only at /work/corpus with per-layer indexes, and every insight keeps links down to its compilation and to the raw turn log. At test time every insight is placed in the agent's first message, and the agent descends through the links with terminal tools such as read, bash, and grep when an insight lacks details needed to act, conflicts with another, or comes from a failed run. The solver prompt instructs the agent to check the insights it will rely on against their source runs before its first action and again whenever an action fails, and memory reads cost no game steps.

Results

  • WikiTrace achieves the highest performance on all eight suites, and the only memory method that matches or exceeds No Memory on every suite. §4.2
  • WikiTrace has lower Regression than Insights Only and the rerun baseline while exceeding the rerun baseline on Gain by more than Insights Only does. §4.3
  • Most memory-induced failures on tasks solved in all three no-memory trials trace to a memory item the agent followed, most often a wrong one. §3.2
  • The agent descends to source evidence more often on harder tasks, and its lead over Insights Only is larger in Descent runs, with the gap growing with difficulty. §5.1
  • Test-time cost of WikiTrace relative to Insights Only, alongside the average performance gain. §5.4
  • With a second backbone, WikiTrace again has the highest average across the three evaluated suites. §5.5

Limitations

  • Memory is built from binary trajectory outcomes, so 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 but does not verify the insight (stated in Limitations).
  • WikiTrace places every insight in the first message so the agent never misses one, so the prompt grows with memory; a memory too large to place in full would need the agent to find the insights it needs, a retrieval problem the paper explicitly leaves open (stated in Limitations).
  • The causes of degradation (Section 3.2) and the descent labels (Section 5.2) come from an LLM judge that reads the agent's reasoning, so they describe what that reasoning states, not what produced the outcome (stated in Limitations); the effect axis had the weakest agreement, with the two judges agreeing only at kappa=0.46 and 46 of 508 descents left without a majority.
  • Existing memory baselines were run offline, building memory once from the shared training trajectories with true binary outcomes and a single pass, so ReasoningBank's after-every-task updating and ExpeL's Reflexion retries are not exercised (stated in A.3), leaving their original continual settings untested.

Key points

  • Gain and Regression are defined separately: Gain is the probability of success on tasks No Memory fails, Regression the probability of failure on tasks No Memory solves, using the majority No Memory outcome over three trials as reference. §4.3
  • Memory is organized into three linked layers: raw trajectories R, compilations C, insights I, and source links E, each run processed independently so every lesson stays connected to its experience. §3.3
  • The agent descends to source evidence when an insight may not hold or does not say enough to act on now. §3.4
  • Insights are neither merged nor filtered during construction, so the number of insights equals the sum of the insights extracted per run. §B.3
  • Increasing existing methods' construction budgets by running their builders nine times for AWM and three times for ExpeL and ReasoningBank still leaves WikiTrace with the highest average performance. §5.4
  • Failed runs add guidance beyond successful runs and both together work best, but the same insights given alone carry the highest Regression, which source evidence reduces. §5.3
  • An LLM judge labels the trigger, target, and effect of each descent, agreeing with a second judge at Cohen's kappa of 0.77 on trigger and 0.63 on target. §5.2
  • In Stay runs the agent reports 19 to 28% fewer insights as used than Insights Only, and 38 to 57% fewer in Descent runs, suggesting more selective use of memory. §5.1

Mind map

WikiTrace evidence-linked memory
Problem memory-induced degradation
52% of failures trace to a memory item
20% of cases from a wrong item
Gain and Regression measured apart
Memory construction
Raw trajectories R
Compilations C diagnose the outcome
Insights I at most three per run
Source links E, memory frozen read-only
Test-time descent
Triggers setback, insight doubt, question
Targets specific fact, workaround, procedure
Effects revise, refine, new fact, confirm
Terminal tools read bash grep
Results
Avg 90.2 vs 79.5 No Memory
Regression 4.5% vs 6.5% Insights Only
1.17x test-time cost
GLM-5.3-flash avg 92.7
Limitations
Binary outcomes may yield wrong insights
Prompt grows with memory
Labels come from an LLM judge