Skip to main content
GW
HomeWorkAI appsPapersAboutNotesStackLabPilotPlan↗ (opens in a new tab)INVST↗ (opens in a new tab)
Govind Waghmare

Finance systems and AI. Building in public from NYC.

Resume (PDF)Book 20 minEmail
HomeNotesWorkAboutStackPapersLabFor founders
XLinkedInGitHubllms.txt
© 2026 · New York City

Keyboard shortcuts

?
Open this list
g then h
Go to Home
g then w
Go to Work
g then n
Go to Notes
g then a
Go to About
c
Ask the AI guide
Esc
Close this list
Original paperSection A, The abstract
Open in new tab (opens in a new tab)
All papers
AI agents and tools

Let agents check their own memory notes

Paper: 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 · arXiv preprint (cs.AI), KAIST and DeepAuto.ai · Posted 10 Nov 2026 · 16 min read · arXiv 2611.14320

Share this paper

LinkedIn (opens in a new tab)X (opens in a new tab)WhatsApp (opens in a new tab)EmailDownload PDFExplainer + original paper (PDF), 3.0 MB

  • An agent can keep lessons from past tasks in a memory.
  • But a lesson comes from one run with only a pass or fail label.
  • So the lesson can be wrong, or it can be used in the wrong place.
  • Then the agent fails tasks it would solve without memory.
4.5%

of tasks the agent solved alone broke with WikiTrace memory. Plain reruns broke 9.7%.

  • The authors built WikiTrace.
  • Each lesson links to its source run.
  • The agent can open the source run when a lesson looks wrong.
  • They used 5 benchmarks with 8 test suites.
  • They compared it with 3 memory methods and a lessons-only version.

  • WikiTrace had the best score on every suite: 90.2 against 79.5 with no memory.
  • It beat the lessons-only version by 3.2 points.
  • The agent opens source runs more often on hard tasks, where it gains most.
  • It held up with another model, and test cost was 1.17 times higher.

WikiTrace scores highest, other memory methods barely beat no memoryFrom Table 1
0255075100Average score over 8 suites (higher is better)No Memory79.5 pointsAWM81.6 pointsReasoningBank81.7 pointsExpeL80.3 pointsInsights Only87.0 pointsWikiTrace90.2 points

Hover, tap or focus a bar to read its exact value.

MethodAverage score
No Memory79.5
AWM81.6
ReasoningBank81.7
ExpeL80.3
Insights Only87.0
WikiTrace90.2

  • The memory comes from a pass or fail label, so a diagnosis can be wrong.
  • A link lets the agent check a lesson.
  • It does not prove the lesson.
  • The whole lesson list goes in the first message, which grows with memory.
  • The failure causes come from an LLM judge, not a proof.

Jump to

  1. A The abstract
  2. 1 Introduction
  3. 2 Related work
  4. 3.1 Problem setting
  5. 3.2 Understanding memory-induced degradation
  6. 3.3 Constructing source-linked memory
  7. 3.4 Revisiting source evidence at test time
  8. 4.1 Experimental setup
  9. 4.2 Main results
  10. 4.3 Gain and Regression
  11. 5.1 When does descent help?
  12. 5.2 Why and how does WikiTrace descend?
  13. 5.3 Can agents learn reliably from failed experiences?
  14. 5.4 How cost-effective is WikiTrace?
  15. 5.5 Does WikiTrace generalize?
  16. 5.6 Resolving conflicting insights
  17. 6 Conclusion and limitations
  18. A Appendix A: Experimental details
  19. B Appendix B: Memory system details
  20. C Appendix C: Gain and Regression with confidence intervals
  21. D Appendix D: Causes of memory-induced degradation
  22. E Appendix E: How WikiTrace uses its evidence
  23. F Appendix F: Prompt templates (summary)
  24. W Words to know

Every detail from the paper

Cards follow the paper's own order. Dotted words link to Words to know. Numbers match the paper.

The problem

  • External memory lets an LLM agent learn from past tasks.
  • It turns past runs into short lessons for new tasks.
  • But memory can cause memory-induced degradation.
  • The agent then fails tasks it would solve without memory.
  • Often the lesson is wrong, or the agent misuses a valid one.

Why it happens

  • Lessons come from runs labeled only with success or failure.
  • They are usually given without the runs they came from.
  • So the agent cannot check them.

The fix

  • The authors build WikiTrace, an evidence-linked memory.
  • Each lesson is a short insight.
  • It links to a summary of why its run won or lost.
  • It also links to the raw run itself.
  • On a new task the agent starts from all insights.
  • If an insight lacks detail, conflicts.
  • Or comes from a failed run, it descends the links.
  • It uses terminal tools to fill gaps or fix the insight before acting.

Results

  • Tests on five benchmarks show WikiTrace beats other memory methods.
  • It also beats a baseline that gets the same insights alone.
  • It reduces memory-induced degradation too.
  • The code is on GitHub under yukyeongleee.

Background

  • LLM agents solve multi-step tasks by acting in an environment.
  • External memory lets them improve without updating model weights.
  • Memory turns past trajectories into short lessons.
  • A trajectory is the list of actions and observations from one task.
  • Lessons help avoid repeated exploration and follow local procedures.
  • Prior work stores lessons as reflections, skills, manuals, workflows and strategies.

Two rates

  • Memory can also hurt.
  • Memory-induced degradation means the agent fails a task it would solve without memory (Figure 1a).
  • Average accuracy cannot separate help from harm.
  • So the authors measure Gain and Regression apart.
  • Gain is the rate memory turns failures into successes.
  • Regression is the rate memory turns successes into failures.

Why memory fails

  • Existing memory methods show Regression as high as a rerun with no memory.
  • Or higher (Figure 5).
  • The authors study tasks the agent always solves without memory but fails with it.
  • In 52% of those failures, the agent followed a memory item.
  • Most often it was wrong.
  • A trajectory has one label, so it does not show which action caused the result.
  • Any method must guess which actions matter.
  • Each wrong guess makes a bad lesson.
  • Methods give lessons without their runs, though the evidence often stays in the run.

The WikiTrace idea

  • WikiTrace keeps each lesson with a path to its source run.
  • Figures 1b and 2 show this.
  • A lesson tells the agent what to do.
  • A trajectory records what happened.
  • The trajectory is too long to reread at every step.
  • Memory has three linked layers: insight, then compilation, then raw trajectory.
  • A compilation explains why the run succeeded or failed.
  • The agent starts from all insights and descends when it must check one.

Headline results

  • They test on five benchmarks with eight suites.
  • These cover text worlds and tool-use environments.
  • WikiTrace is best on every suite.
  • It improves over no memory by 10.7 points on average.
  • It beats the same-insights baseline by 3.2 points.
  • Regression falls from 6.5% to 4.5%.
  • The agent opens linked evidence more often on harder tasks, where its edge is largest.
  • It gains most when the evidence changes its plan.
  • The gains hold under another backbone model.
Figure 1b: how WikiTrace fixes a wrong lessonFrom Figure 1
  1. Agent starts from all insights
  2. An insight seems wrong
  3. Open the insight's source run
  4. Revise the insight
  5. Solve the task

In the example, the agent fails with a wrong insight and wins after it checks the source.

2.1 Experience-driven procedural memory
  • Agents turn past runs into procedural memory.
  • Methods keep verbal feedback or winning runs, build executable skills, or distil guidelines.
  • Others make manuals, workflows, modular procedures and multi-granular scripts.
  • Continual methods update playbooks with new wins and failures.
  • WikiTrace instead reassesses guidance during a task.
  • It links each lesson to its source so the agent can check basis and fit.
2.2 Reliable reuse of unverified memory
  • Reusing experience does not always help.
  • Agents ignore or misread condensed experience.
  • Retrieval competition and negative transfer appear in continual learning.
  • Reused experience from harmless tasks can raise unsafe behavior.
  • This motivates measuring failures that memory adds, next to tasks it helps.

Related fixes

  • PREPING checks practice runs before storing them.
  • SkillOpt admits skill updates through held-out tests.
  • ReMe updates or removes memories by later use.
  • WikiTrace adds a different angle: how stored lessons guide decisions.
  • It asks which lessons to keep and whether they hold where applied.
2.3 Memory structure and access
  • Hierarchical memory stores experience at several detail levels.
  • HORMA links file summaries to raw history and learns the least context needed.
  • Active-access methods decide when and what to retrieve.
  • Direct Corpus Interaction (DCI) gives corpus access through terminal tools.
  • WikiTrace joins both: structure keeps the lesson-source link, and access lets the agent consult it.

The data

  • The agent reuses a fixed corpus of past runs, collected without memory.
  • Each run has a task, a trajectory and a result: success or failure.
  • No gold solutions or expert reasons are available.
  • So a result does not say exactly why the run won or lost.
  • An insight drawn from it is not always valid.

The rules

  • Memory M is built from this corpus before any test task runs.
  • No extra run validates any single memory item.
  • Once built, memory stays fixed and read-only.
  • The goal: improve task scores through reuse while limiting degradation.

The method

  • The authors study tasks the agent solves in all three no-memory runs.
  • They pick those it fails with memory.
  • An LLM judge, gpt-5.6-sol at medium effort, compares each failed run with a no-memory run.
  • It finds the first turn where the runs split.
  • Sorts the cause into five kinds (Figure 3).

Five causes

  • In 52% of cases, the failure traces to a memory item the agent followed.
  • A is a wrong item.
  • This is most common, at 20%.
  • B is a valid item used outside its scope.
  • C is a valid item the agent misused.
  • D is a valid item followed while memory held a better one.
  • E means no link to any memory item.
Method (failures)Followed a memory item: A / B / C / DE: no link
All (355)70 / 41 / 45 / 28171
ExpeL (101)31 / 5 / 11 / 252
ReasoningBank (78)15 / 8 / 13 / 141
AWM (68)2 / 11 / 13 / 636
Insights Only (62)15 / 11 / 2 / 1024
WikiTrace (46)7 / 6 / 6 / 918

Figure 3: failure causes by method (A / B / C / D / E)

A cause is often implicit, and agents act differently across runs. Many cases show no link to memory.

An example

  • Figure 4 shows a wrong lesson.
  • An ExpeL rule says an ALFWorld lamp task ends early.
  • It says the task ends when the object sits beside the lit lamp.
  • Its own source run contradicts the rule.
  • The agent follows it and fails a task it solves without memory.
  • Checking the source run can reveal a wrong or out-of-scope item.
  • So the authors keep a path from each insight back to its run.

How WikiTrace builds memoryFrom Section 3.3 and Algorithm 1
  1. One past run: task, trajectory, result
  2. LLMCompiler reads the run
  3. Write compilation and 3 insights
  4. Link insights to compilation and run
  5. Freeze memory as read-only files

Each run is processed on its own, so every lesson stays tied to its source.

Compilation and insights

  • Memory has four parts: raw trajectories R, compilations C, insights I and source links E.
  • A compiler reads a task, its trajectory and the result.
  • It makes one compilation and a set of insights.
  • The compilation summarizes key decisions and supporting observations.
  • Winning and failing runs use separate templates.
  • For failed runs it records plausible reasons for failure.

Insights

  • These accounts are readings of the run, not verified reasons.
  • The compiler extracts at most three insights per run.
  • Each insight is its own document.
  • It says what to do and when it applies.
  • It also names the source run and whether that run succeeded.
  • Insights are made per run and never updated or deleted.
  • So the pool can hold repeated or conflicting insights.
  • The agent decides which fits.

Source preservation and linking

  • WikiTrace keeps each raw trajectory unchanged.
  • That covers task data, each turn's reasoning, action and observation, and the result.
  • Each insight links to its compilation and raw trajectory.
  • Each layer also has an index to help the agent navigate.
  • Appendix B gives the layout, templates and algorithm.

How the agent uses memory on a new taskFrom Section 3.4 and Figure 2c
  1. Read insights and 3 similar runs
  2. Insight lacks detail, conflicts, or failed
  3. BashDescend: open compilation or run
  4. Fill gaps or revise insight
  5. Act, and descend again on error

The agent chooses when to descend. Memory is mounted as read-only files.

Initial input

  • The agent first receives all insights.
  • Each states what to do, when it applies, and the id of its source run.
  • The message also lists the three past runs with the most similar tasks.
  • It gives their ids and titles, plus the insights drawn from them.
  • These runs are starting points for search.

Descent to source runs

  • The prompt asks the agent to descend in three cases.
  • The insight lacks detail to act.
  • It comes from a failed run.
  • It disagrees with another insight.
  • The agent should descend again whenever an action fails.
  • It searches the files with read and bash for the fact that settles the question.
  • An example is a command format.
  • Figure 27 in Appendix F gives the full prompt.

Benchmarks

  • Eight suites from five benchmarks.
  • Three are text worlds: ALFWorld (household tasks), ScienceWorld (science experiments) and PlanCraft (Minecraft crafting).
  • Two are tool-use: AppWorld (daily tasks through app APIs) and tau3-bench Retail.
  • Tau3-bench Retail mixes conversation with a simulated customer and order-database tools.
  • AppWorld has Test-Normal and Test-Challenge.
  • Challenge needs unseen apps.
  • Appendix A.1 gives suite construction.

Baselines

  • No Memory: the same agent with nothing added.
  • AWM: turns winning trajectories into reusable workflows.
  • ExpeL: keeps free-form rules and reviews the list against each winning run.
  • ReasoningBank: distils winning and failed runs into strategies and retrieves by similarity.
  • Official code was adapted to the offline protocol (Appendix A.3).
  • Insights Only: the same insights as WikiTrace, with no source runs and no descent prompt.

Protocol

  • The two methods differ only in access to source runs.
  • Each trial builds memory once from the same no-memory training runs.
  • No method may make extra runs to validate memory.
  • All use the same agent: a Pi terminal agent with each benchmark's ReAct instruction.
  • Agent and memory builders use deepseek-v4-flash with high reasoning effort.
  • Each suite and method gets three trials.
  • Each benchmark's own metric is averaged.

MethodALFWorld SeenALFWorld UnseenScienceWorld
No Memory94.4 ±2.094.3 ±1.983.7 ±0.8
AWM94.7 ±1.297.3 ±0.988.9 ±4.7
ReasoningBank92.1 ±2.492.8 ±0.785.0 ±1.3
ExpeL94.4 ±0.998.0 ±0.491.9 ±1.6
Insights Only96.7 ±0.597.3 ±1.394.9 ±0.6
WikiTrace98.7 ±0.598.8 ±0.796.1 ±1.4

Table 1 (part 1): scores (mean ± deviation over three trials)

MethodPlanCraft SeenPlanCraft UnseenTau3-bench Retail
No Memory72.3 ±1.956.3 ±1.286.8 ±1.9
AWM76.3 ±3.757.3 ±2.185.5 ±2.1
ReasoningBank84.7 ±2.661.3 ±3.486.4 ±1.6
ExpeL74.0 ±8.551.0 ±3.682.5 ±5.1
Insights Only88.7 ±6.173.0 ±10.785.1 ±2.7
WikiTrace93.3 ±3.481.3 ±8.588.2 ±3.9

Table 1 (part 2)

The column labels in the paper's layout are hard to read. These columns follow the order of the benchmark list.

MethodAppWorld NormalAppWorld ChallengeAverage of 8 suites
No Memory75.4 ±3.472.7 ±2.279.5 ±1.6
AWM79.3 ±0.773.4 ±1.781.6 ±0.3
ReasoningBank80.8 ±1.570.7 ±3.081.7 ±0.5
ExpeL80.5 ±5.770.0 ±3.780.3 ±1.6
Insights Only86.8 ±0.473.7 ±1.487.0 ±2.5
WikiTrace89.5 ±1.575.8 ±2.290.2 ±1.6

Table 1 (part 3)

What it shows

  • WikiTrace has the top score on all eight suites.
  • It averages 90.2 against 79.5 for No Memory.
  • It beats Insights Only by 3.2 points on average.
  • That shows the value of source evidence and the descent prompt.
  • WikiTrace is the only memory method that matches or beats No Memory on every suite.
  • This suggests that revisiting source evidence helps limit degradation.

Definitions

  • Let Bi be the majority No Memory result for task i over three trials.
  • Let Mi,t be the result with memory in trial t.
  • Gain is the chance of success when No Memory fails the task.
  • Regression is the chance of failure when No Memory solves it.
  • Figure 5 gives both rates over suites, with 95% bootstrap confidence intervals.
  • To allow for run variation, three extra No Memory trials give a rerun baseline.
WikiTrace breaks the fewest tasks the agent already solvesFrom Section 4.3
036912Regression rate, average over 8 suites (lower is better)Rerun with no memory9.7%Insights Only6.5%WikiTrace4.5%

Hover, tap or focus a bar to read its exact value.

MethodRegression (%)
Rerun with no memory9.7
Insights Only6.5
WikiTrace4.5

Findings

  • WikiTrace has Regression of 4.5%.
  • Insights Only has 6.5%.
  • The rerun baseline has 9.7%.
  • Its Regression is lower than Insights Only on seven of the eight suites.
  • It is the only method whose interval lies fully below the rerun band.
  • Gain also rises: WikiTrace beats the rerun baseline by 35 points.
  • Insights Only beats it by 27.
  • Existing memory methods beat it by 7 to 14.
  • The two differ only in source access.
  • So the gain and the drop come from that access.
  • Relative to Insights Only, wrong or out-of-scope items cause half as many of WikiTrace's regressions.
  • Appendix C gives results for each suite.

Setup and result

  • The authors split WikiTrace's text-world test runs into two kinds.
  • Descent runs open a compilation or raw trajectory.
  • Stay runs do not (Figure 6).
  • It descends more on harder tasks: in 22% of Easy runs.
  • 44% of Hard runs.
  • Difficulty uses No Memory results: none of three trials solved is Hard.
  • One or two is Medium, all three is Easy.
  • Descent runs lead Insights Only by 1.6 to 4.7 points more than Stay runs.
  • The gap grows from 1.8 on Easy to 3.7 on Medium and 4.1 on Hard.
GroupDescent shareStay leadDescent lead
Easy tasks22%+0.8+2.5
Medium tasks32%+3.3+7.1
Hard tasks44%+12.4+16.4
ALFWorld24%+0.6+5.3
ScienceWorld22%+0.9+2.5
PlanCraft33%+5.5+8.6

Figure 6: WikiTrace lead over Insights Only by descent

Lead is WikiTrace minus Insights Only. The paper shows these as a chart.

A caution

  • The agent chooses when to descend.
  • So Descent and Stay runs differ in more than the descent.
  • Stay runs also lead Insights Only, by 0.6 to 12.4 points.
  • In Stay runs, WikiTrace reports 19 to 28% fewer insights as used.
  • This suggests more selective use of memory.
  • In Descent runs the drop is larger, at 38 to 57%.

Method

  • An LLM judge reads the agent's reasoning around each descent in the text worlds.
  • It labels three things: the trigger, the target and the effect (Figures 8 and 9).
  • The trigger is what prompted the descent.
  • The target is what the agent looked for in the opened run.
  • The effect is what the run added to its next actions.

Judge agreement

  • The judge gpt-5.6-sol agrees with a second judge.
  • GLM-5.3, at Cohen's kappa of 0.77 on trigger.
  • They agree at 0.63 on target.
  • Effect is harder, so its label is the majority of three judges (Appendix E.1).

Why it descends

  • The advantage over Insights Only concentrates on descents made after a problem.
  • These are a blocked attempt, a blocked plan, or a doubt about an insight.
  • They make up 36% of descents and lead Insights Only by 10.4 points.
  • Descents with nothing gone wrong lead by 3.7 points.
  • The largest lead, 17.3 points.
  • Comes when a blocked attempt sends the agent for a specific fact.
  • Insights Only cannot look that up.

Routine checks

  • Routine checks are the most common descent, at 38%.
  • Of these, 90% read the procedure of a similar run.
  • With a small lead of 3.4 points.

How it uses the evidence

  • The opened run changes the agent's plan in 43% of descending runs.
  • It revises an insight (24%), adds a missing detail (14%).
  • Or gives a fact no insight covers (4%).
  • These runs lead Insights Only by 8.3 points.
  • When the run only confirms the plan or goes unused, the lead is 4.4 points.
  • Figure 11 shows a revision.
  • Appendix E.2 has more cases.

Setup and result

  • Failed runs hold useful experience.
  • But lessons from them depend on how the failure is read.
  • The authors build memory from winning runs, failed runs.
  • Or both, on PlanCraft and ScienceWorld (Figure 7).
  • Both methods do better with failed runs alone than with winning runs alone.
  • Both do best with both.
  • Failed runs add guidance that wins do not.

The risk

  • This benefit comes with more risk of regression when insights are given alone.
  • Insights Only has its highest Regression with failed runs alone.
  • It reaches 9.3% on PlanCraft and 9.4% on ScienceWorld.
  • With the same insights, WikiTrace cuts these to 7.1% and 8.9%.
  • So keep failed runs with their source evidence.
  • Then agents can revisit the basis of a lesson before reuse.

Build budget

  • Does the edge come from a bigger memory-building budget?
  • The authors run existing builders over the same training runs nine times for AWM.
  • They run three times for ExpeL and ReasoningBank.
  • Figure 10 shows WikiTrace keeps the highest average even then.
  • At test time, WikiTrace costs 1.17 times as much per task as Insights Only.
  • It improves the average by 3.2 points.
  • The extra test cost is modest.
WikiTrace stays ahead when rivals get a bigger build budgetFrom Figure 10
0255075100Average score over 8 suitesNo Memory79.5 pointsAWM (x9 build)83.8 pointsReasoningBank (x3 build)82.8 pointsExpeL (x3 build)83.3 pointsInsights Only87.0 pointsWikiTrace90.2 points

Hover, tap or focus a bar to read its exact value.

MethodAverage score
No Memory79.5
AWM (x9 build)83.8
ReasoningBank (x3 build)82.8
ExpeL (x3 build)83.3
Insights Only87.0
WikiTrace90.2

  • They test GLM-5.3-flash on PlanCraft and ScienceWorld at medium reasoning effort.
  • Training runs are made by the same model.
  • WikiTrace is best on all three suites (Table 2).
  • It averages 92.7, which is 1.8 points over Insights Only and 21.5 over No Memory.
  • Each existing memory method falls below No Memory on at least one suite.
  • This mirrors the DeepSeek results.
MethodPlanCraft Seen / UnseenScienceWorldAverage
No Memory (NM)68.7 ±3.3 / 55.3 ±2.189.6 ±1.571.2 ±0.3
AWM66.0 ±2.8 / 47.0 ±2.991.7 ±1.068.2 ±0.5
ReasoningBank74.7 ±4.2 / 53.3 ±5.290.9 ±1.973.0 ±2.3
ExpeL79.0 ±12.8 / 67.0 ±14.188.6 ±1.478.2 ±8.5
Insights Only92.3 ±2.1 / 87.7 ±3.392.6 ±0.890.9 ±1.6
WikiTrace (WT)95.7 ±1.7 / 89.0 ±1.693.3 ±0.892.7 ±0.4

Table 2: results with GLM-5.3-flash (mean ± deviation over three trials)

The paper's column order is hard to read in plain text. These follow its header.

  • Figure 11 shows WikiTrace resolve a conflict by revisiting evidence (PlanCraft).
  • An insight from a failed run wrongly rules out a valid way.
  • Another insight recommends it.
  • The winning run's observations show that the way works.
  • WikiTrace revises the insight and succeeds.
  • Insights Only has identical insights, follows the wrong guidance and fails.
  • So raw runs let agents reassess readings that insights and compilations carry.
Figure 11: the acacia slab example in steps
  • Insight-0083 says: if one item already crafts something, give up.
  • It is wrong.
  • The agent sees an output preview and thinks it is an already crafted item.
  • Insights Only follows the insight, repeats a move, and declares the task impossible.
  • WikiTrace sees insight-0083 conflict with insight-0130.
  • It opens both source runs.
  • In the winning run, the output shows a temporary item.
  • The item is replaced when the full recipe forms.
  • So it adds planks one at a time.

Conclusion

  • Lessons from past runs are not proven by outcomes alone.
  • Reusing them without checks can cause memory-induced degradation.
  • WikiTrace links insights to compilations and raw trajectories.
  • Agents then recover missing details and reassess guidance.
  • It is best on every suite.
  • With more Gain and less Regression than the same insights alone.
  • Agent memory should keep the evidence to reassess lessons, not only the lessons.

Limitations

  • Memory comes from binary outcomes, so a diagnosis and its insights may be wrong.
  • A source link lets the agent check an insight.
  • It does not verify it.
  • WikiTrace puts every insight in the first message.
  • The prompt grows with memory.
  • A memory too large for that needs a way to find insights.
  • That problem is left open.
  • Degradation causes and descent labels come from an LLM judge reading the agent's reasoning.
  • They show what the reasoning states, not what produced the outcome.

SuiteTrain / TestHeld out at testMetric
ALFWorld valid-seen50 / 101Games in training roomsSuccess rate
ALFWorld valid-unseen50 / 134Games in rooms absent from trainingSuccess rate
ScienceWorld50 / 100Descriptions absent from trainingMean score
PlanCraft seen50 / 100Training target itemsSuccess rate
PlanCraft unseen50 / 100Target items absent from trainingSuccess rate
AppWorld test-normal54 / 111Tasks over training appsTGC
AppWorld test-challenge54 / 99Tasks needing apps absent from trainingTGC
Tau3-bench retail38 / 76New requests, mostly from training customersPass rate

Table 3: benchmark suites

One training set per benchmark serves all of its test suites. Every draw is seeded.

A.1 Benchmark suite construction
  • ALFWorld: training holds 50 games, eight or nine per task type.
  • valid-seen holds 101 games, filtered to rooms in training.
  • valid-unseen holds 134 games in four new rooms.
  • ScienceWorld: ten of the 30 task types.
  • Each has distinct variations, mostly disjoint training and test descriptions.
  • Solutions that fit the 100-step limit.
  • Training holds five variations per type.
  • Test holds 100 variations.
  • PlanCraft: solvable examples only, weighted to medium and hard.
  • Training holds 50 examples with distinct targets that also occur in test.
  • plancraft-seen holds 100 test examples with training targets. plancraft-unseen holds 100 with new targets.
  • AppWorld: a scenario groups three tasks and passes only if all three pass.
  • Suites keep scenarios whole.
  • They use difficulty 2 and 3 only.
  • Training holds all 18 such scenarios (54 tasks).
  • test-normal holds all 37 (111 tasks). test-challenge draws 33 of 65 scenarios (99 tasks).
  • TGC counts tasks and SGC counts scenarios.
  • Tau3-bench Retail: the authors' splits are set aside.
  • The 114 tasks split into 38 train and 76 test, grouped by customer.
  • The simulated user is gpt-4.1.
  • The assertion judge is gpt-5.4-mini at medium effort.
A.2 Agent harness
BenchmarkReAct baselineToolMax steps / Pi turns
ALFWorldReAct loopact49 / 150
ScienceWorldSwiftSage's ReAct baselineact100 / 400
PlanCraftThe authors' prompttake_action30 / 150
AppWorldAppWorld's ReAct code agentexec50 / 150
Tau3-benchTau2-bench's LLM agenttake_action200 / 150

Table 4: agent harness per benchmark

A step is one environment tool call. Tau3-bench counts agent, user and tool turns.

  • An episode ends when the task is done, steps run out.
  • Or the agent replies without a tool call.
  • The act tool sends one text command.
  • A done command lets the agent stop early.
  • take_action joins an action and argument.
  • PlanCraft actions are move, smelt, search and impossible.
  • In Tau3-bench an action is one of 16 retail tools.
  • Or it is a message to the user.
  • An episode also ends on a stop token or after 10 tool errors.
  • exec runs Python in the task shell with API bindings.
  • State persists across calls.
A.3 Compared methods
MethodLearns fromMemoryAccess
AWMWinsProceduresInject
ExpeLWinsRulesInject
ReasoningBankWins and failuresFormatted rulesRetrieve
Insights OnlyWins and failuresFormatted rulesInject
WikiTraceWins and failuresRules plus linked evidenceInject and traverse

Table 5: compared methods

  • Official code of AWM, ExpeL and ReasoningBank runs with its own prompts and retrieval.
  • Changes only fit the protocol.
  • Offline: AWM runs in offline mode.
  • ReasoningBank is built once, not after each test task.
  • True outcome: each builder gets the binary result.
  • Single pass: each training run is read once, so ExpeL has no retries to compare.
  • So ExpeL learns from wins alone, and its exemplar retrieval is omitted.

B.1 Corpus and memory layout
  • The corpus is mounted read-only at /work/corpus.
  • Each index is made by code from the layer it lists.
  • There is no root index.
  • raw holds each run with metadata and the turn log.
  • compilation holds one file per run. insight holds one file per candidate insight.
  • A raw run keeps the record unchanged.
  • The example run succeeded in 20 act calls.
  • The turn log holds messages, one line per call, and a usage record.
B.2 Evidence-linked document formats
  • The compiler's output is rendered as markdown with a frontmatter block.
  • A compilation lists links to insight documents made from its candidates.
  • A success compilation has Task, Key Decisions (Decision and Support) and Insights.
  • A failure compilation has Task, Failure Causes (Decision and Support) and Insights.
  • An insight document has a title, task type, source step, the insight and its applicability.
  • It also has a source episode: outcome, task, compilation link and raw trajectory link.
  • On AppWorld it lists the apps its source run called, not a task type.
B.3 Construction algorithm
  • Memory is built in one pass over a fixed corpus of no-memory runs.
  • There is one compiler call per trajectory (Algorithm 1).
  • Each candidate insight is its own document, tagged with its source run and result.
  • Insights are neither merged nor filtered.
  • Indexes are built for the raw, compilation and insight layers, then memory is frozen.

Intervals

  • Table 6 counts the tasks each method moved, behind the rates.
  • Figure 13 draws the rates for each suite with 95% intervals.
  • The No Memory floor.
  • The intervals resample tasks with replacement within each suite 10,000 times.
  • A resampled task keeps its three No Memory trials and three trials per method.
  • Every rate is recomputed on the same resample, so methods stay paired.
  • The interval spans the 2.5th to 97.5th percentiles.

The No Memory floor

  • Bi is the majority of three No Memory trials.
  • So a new run can disagree by chance.
  • Three further No Memory trials are scored against the same Bi.
  • The Regression floor is the share of those trials that fail.
  • It counts tasks with Bi = 1.
  • The Gain floor is the share that solve a task with Bi = 0.
  • A method's excess is its rate minus the floor.
  • Positive excess is added Gain or, for Regression, added harm.
  • Resamples with no eligible ALFWorld-seen task for Gain (4.8%) are dropped.
MethodALFWorldScienceWorldPlanCraft
Eligible tasks10 / 22529 / 7175 / 125
AWM7.0 (70%) / 6.0 (3%)13.3 (46%) / 12.3 (17%)21.7 (29%) / 13.0 (10%)
ReasoningBank4.7 (47%) / 12.3 (5%)11.0 (38%) / 9.0 (13%)30.3 (40%) / 9.3 (7%)
ExpeL8.0 (80%) / 6.3 (3%)14.7 (51%) / 11.7 (16%)16.0 (21%) / 16.0 (13%)
Insights Only8.0 (80%) / 5.0 (2%)18.7 (64%) / 5.3 (8%)43.3 (58%) / 6.7 (5%)
WikiTrace8.7 (87%) / 1.7 (1%)20.0 (69%) / 3.3 (5%)52.7 (70%) / 3.0 (2%)

Table 6 (part 1): tasks moved on one trial, as count (rate): Gain / Regression

Counts are averaged over trials and summed over suites. The eligible row shows Gain-eligible and Regression-eligible tasks.

MethodTau3-benchAppWorld
Eligible tasks6 / 7052 / 158
AWM2.3 (39%) / 7.3 (10%)17.0 (33%) / 14.3 (9%)
ReasoningBank2.0 (33%) / 6.3 (9%)18.0 (35%) / 16.3 (10%)
ExpeL2.0 (33%) / 9.3 (13%)21.0 (40%) / 20.3 (13%)
Insights Only2.7 (44%) / 8.0 (11%)25.3 (49%) / 14.0 (9%)
WikiTrace2.3 (39%) / 5.3 (8%)29.0 (56%) / 12.7 (8%)

Table 6 (part 2)

The judge

  • A judge, gpt-5.6-sol at medium effort, labels every strong degradation case from Section 3.2.
  • Its input holds the case metadata, the run with memory and the run without it.
  • It also gets the memory as the agent saw it and both evaluations.
  • The judge finds the turn where the memory run first departs from the other.
  • Figures 16 to 20 show one case of each cause.
The judge prompt (Figures 14 and 15)
  • Memory caused a divergence only if the agent's reasoning refers to an item.
  • Or its actions follow an item's steps.
  • An item that is merely about the same topic is not evidence.
  • Steps in order: find the divergence.
  • Then label E if there is no evidence of an item.
  • Label A if the item states something false or prescribes a harmful rule.
  • Label D if a better item existed.
  • Label B if scope does not fit.
  • Label C if the item was misread.
  • E has subtypes: noise, environment and unrelated.
  • The judge gives confidence and quotes that a checker verifies.
Case A: wrong item, ALFWorld ExpeL (Figure 16)
  • Rule 2 says a lamp task finishes when the object is beside the lit lamp.
  • The source run shows the agent had to hold the object.
  • With memory, the agent turns on the lamp beside a vase.
  • The vase stays on the desk.
  • The agent says done.
  • It fails.
  • Without memory, it holds the vase when it turns on the lamp and wins.
Case B: out-of-scope item, AppWorld ReasoningBank (Figure 17)
  • The item says to reply by text with the information a contact asked for.
  • The task is an order and a payment request, with no reply asked for.
  • At T36 the agent cites the item and texts a confirmation.
  • That adds phone records the task did not ask for, and the check fails.
  • Without memory the agent does the two things and sends no text.
Case C: misused item, tau3-bench retail ReasoningBank (Figure 18)
  • The item is correct: items on a pending order can be changed only once.
  • At T26 the agent stretches it to say the address can change many times.
  • It changes the order address a second time.
  • The database check expects the order to stay at 101 Highway, so the run fails.
  • Without memory the agent reverts only the address on file.
Case D: missed better item, AppWorld ExpeL (Figure 19)
  • Rule 2 says to page through every list with page_limit 20.
  • The agent follows Rule 3.
  • Calls search_contacts once with the default page size of 5.
  • The search returns 5 of 6 friends.
  • William Martinez is never added.
  • Without memory the agent pages through contacts and adds all.
Case E: no link to memory, AppWorld ExpeL (Figure 20)
  • The task is to send $250 on Venmo to Catherine.
  • The agent tops up the balance from a new card before paying.
  • That top-up is a BankTransfer the task did not ask for, so the check fails.
  • None of the 12 rules suggests a top-up.
  • Without memory the agent pays from the new card directly.

E.1 Descent judge
  • The judge reads one WikiTrace text-world run and labels every descent in it.
  • A descent is a stretch of memory calls that opens a compilation or raw run.
  • It ends at the next game action.
  • The judge gets Figure 21's prompt and three messages: the insights.
  • The transcript and one axis prompt.
  • Each axis is a separate call.
  • Every label carries a verbatim quote that a checker verifies.

Agreement and counts

  • gpt-5.6-sol and GLM-5.3 agree at Cohen's kappa of 0.77 on trigger and 0.63 on target.
  • They agree on effect only at kappa of 0.46.
  • So effect is the majority of those two.
  • Claude Opus 5.5 (Fleiss' kappa of 0.49).
  • All three judges run at medium effort.
  • The judges label 508 descents in 430 descending runs.
  • Of these, 46 have no majority.
  • One descent has no trigger or target because its answer failed the checker twice.

The codes

  • The prompt calls a blocked attempt a setback.
  • Trigger codes: setback, insight doubt, failed precedent, open question, routine check.
  • Target codes: workaround, failure cause, specific fact, procedure.
  • Effect codes: revise insight, refine insight, new fact, confirm plan, none.
  • Each axis has a priority order for cases with two reasons (Figures 22 and 23).
E.2 How a descent helps (Figures 24)
  • The authors read pairs of episodes with different outcomes: WikiTrace against Insights Only.
  • One case is a revised insight in ScienceWorld.
  • One is a new fact in ALFWorld.
  • ScienceWorld: insights from failed runs say to always put a switch in the circuit.
  • WikiTrace opens a winning run, sees the circuit has no switch.
  • Wires it that way.
  • ALFWorld: the agent takes a handtowel for a cloth and cleaning does nothing.
  • WikiTrace searches the source run, learns a cloth is its own object.
  • Finds it in a cabinet.

What is in it

  • This appendix lists the prompts.
  • It runs from page 31 to page 40.
  • Figures 25 and 26 give the compiler prompts for winning and failed training runs.
  • Figure 27 gives WikiTrace's additions to the ALFWorld solver prompt.
  • Figure 28 gives the Insights Only additions.
  • Figures 29 to 34 give the no-memory solver prompts for the five benchmarks.
  • This card covers Appendix F at summary level.
  • The prompt text is not reproduced here.

Words to know

  • ALFWorld: A text game of household tasks.
  • AppWorld: A test of daily tasks done through app APIs.
  • Backbone model: The base language model that powers the agent.
  • Bootstrap interval: A range made by resampling tasks many times.
  • Cohen's kappa: A score of how much two judges agree beyond chance.
  • Compilation: A summary of why one run succeeded or failed.
  • Descent: Opening a source compilation or raw run from an insight.
  • External memory: Notes the agent keeps from past tasks and reads on new ones.
  • Gain: The rate at which memory turns failures into successes.
  • Insight: A short lesson drawn from one past run.
  • LLM agent: A model that acts step by step in an environment.
  • LLM judge: A model that reads runs and labels them.
  • Memory-induced degradation: Failing a task the agent would solve without memory.
  • PlanCraft: A text game of Minecraft crafting.
  • ReAct: An agent loop that mixes reasoning steps and actions.
  • Regression: The rate at which memory turns successes into failures.
  • ScienceWorld: A text game of science experiments.
  • Tau3-bench: A test where the agent talks to a simulated customer.
  • Trajectory: The list of actions and observations from one run.

Share this paper

LinkedIn (opens in a new tab)X (opens in a new tab)WhatsApp (opens in a new tab)EmailDownload PDFExplainer + original paper (PDF), 3.0 MB

Ask AI about this paper

Stuck on a word or an idea? Ask in plain words. The answer comes from the write-up on this page.

Read the original paper on arXiv: Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents (opens in a new tab)

Jump to

One paper a week, in plain English

Every Monday: the new AI papers worth your time. Short lines, the key number, and what to do with it.

One email a week. Unsubscribe with one click. No spam.