All papersAI 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 · 16 min read · arXiv 2611.14320
- 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 1Hover, tap or focus a bar to read its exact value.
| Method | Average score |
|---|
| No Memory | 79.5 |
| AWM | 81.6 |
| ReasoningBank | 81.7 |
| ExpeL | 80.3 |
| Insights Only | 87.0 |
| WikiTrace | 90.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
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- Agent starts from all insights
- An insight seems wrong
- Open the insight's source run
- Revise the insight
- Solve the task
In the example, the agent fails with a wrong insight and wins after it checks the source.
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 / D | E: no link |
|---|
| All (355) | 70 / 41 / 45 / 28 | 171 |
| ExpeL (101) | 31 / 5 / 11 / 2 | 52 |
| ReasoningBank (78) | 15 / 8 / 13 / 1 | 41 |
| AWM (68) | 2 / 11 / 13 / 6 | 36 |
| Insights Only (62) | 15 / 11 / 2 / 10 | 24 |
| WikiTrace (46) | 7 / 6 / 6 / 9 | 18 |
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- One past run: task, trajectory, result
- LLMCompiler reads the run
- Write compilation and 3 insights
- Link insights to compilation and run
- 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- Read insights and 3 similar runs
- Insight lacks detail, conflicts, or failed
- BashDescend: open compilation or run
- Fill gaps or revise insight
- 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.
| Method | ALFWorld Seen | ALFWorld Unseen | ScienceWorld |
|---|
| No Memory | 94.4 ±2.0 | 94.3 ±1.9 | 83.7 ±0.8 |
| AWM | 94.7 ±1.2 | 97.3 ±0.9 | 88.9 ±4.7 |
| ReasoningBank | 92.1 ±2.4 | 92.8 ±0.7 | 85.0 ±1.3 |
| ExpeL | 94.4 ±0.9 | 98.0 ±0.4 | 91.9 ±1.6 |
| Insights Only | 96.7 ±0.5 | 97.3 ±1.3 | 94.9 ±0.6 |
| WikiTrace | 98.7 ±0.5 | 98.8 ±0.7 | 96.1 ±1.4 |
Table 1 (part 1): scores (mean ± deviation over three trials)
| Method | PlanCraft Seen | PlanCraft Unseen | Tau3-bench Retail |
|---|
| No Memory | 72.3 ±1.9 | 56.3 ±1.2 | 86.8 ±1.9 |
| AWM | 76.3 ±3.7 | 57.3 ±2.1 | 85.5 ±2.1 |
| ReasoningBank | 84.7 ±2.6 | 61.3 ±3.4 | 86.4 ±1.6 |
| ExpeL | 74.0 ±8.5 | 51.0 ±3.6 | 82.5 ±5.1 |
| Insights Only | 88.7 ±6.1 | 73.0 ±10.7 | 85.1 ±2.7 |
| WikiTrace | 93.3 ±3.4 | 81.3 ±8.5 | 88.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.
| Method | AppWorld Normal | AppWorld Challenge | Average of 8 suites |
|---|
| No Memory | 75.4 ±3.4 | 72.7 ±2.2 | 79.5 ±1.6 |
| AWM | 79.3 ±0.7 | 73.4 ±1.7 | 81.6 ±0.3 |
| ReasoningBank | 80.8 ±1.5 | 70.7 ±3.0 | 81.7 ±0.5 |
| ExpeL | 80.5 ±5.7 | 70.0 ±3.7 | 80.3 ±1.6 |
| Insights Only | 86.8 ±0.4 | 73.7 ±1.4 | 87.0 ±2.5 |
| WikiTrace | 89.5 ±1.5 | 75.8 ±2.2 | 90.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.3Hover, tap or focus a bar to read its exact value.
| Method | Regression (%) |
|---|
| Rerun with no memory | 9.7 |
| Insights Only | 6.5 |
| WikiTrace | 4.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.
| Group | Descent share | Stay lead | Descent lead |
|---|
| Easy tasks | 22% | +0.8 | +2.5 |
| Medium tasks | 32% | +3.3 | +7.1 |
| Hard tasks | 44% | +12.4 | +16.4 |
| ALFWorld | 24% | +0.6 | +5.3 |
| ScienceWorld | 22% | +0.9 | +2.5 |
| PlanCraft | 33% | +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 10Hover, tap or focus a bar to read its exact value.
| Method | Average score |
|---|
| No Memory | 79.5 |
| AWM (x9 build) | 83.8 |
| ReasoningBank (x3 build) | 82.8 |
| ExpeL (x3 build) | 83.3 |
| Insights Only | 87.0 |
| WikiTrace | 90.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.
| Method | PlanCraft Seen / Unseen | ScienceWorld | Average |
|---|
| No Memory (NM) | 68.7 ±3.3 / 55.3 ±2.1 | 89.6 ±1.5 | 71.2 ±0.3 |
| AWM | 66.0 ±2.8 / 47.0 ±2.9 | 91.7 ±1.0 | 68.2 ±0.5 |
| ReasoningBank | 74.7 ±4.2 / 53.3 ±5.2 | 90.9 ±1.9 | 73.0 ±2.3 |
| ExpeL | 79.0 ±12.8 / 67.0 ±14.1 | 88.6 ±1.4 | 78.2 ±8.5 |
| Insights Only | 92.3 ±2.1 / 87.7 ±3.3 | 92.6 ±0.8 | 90.9 ±1.6 |
| WikiTrace (WT) | 95.7 ±1.7 / 89.0 ±1.6 | 93.3 ±0.8 | 92.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.
| Suite | Train / Test | Held out at test | Metric |
|---|
| ALFWorld valid-seen | 50 / 101 | Games in training rooms | Success rate |
| ALFWorld valid-unseen | 50 / 134 | Games in rooms absent from training | Success rate |
| ScienceWorld | 50 / 100 | Descriptions absent from training | Mean score |
| PlanCraft seen | 50 / 100 | Training target items | Success rate |
| PlanCraft unseen | 50 / 100 | Target items absent from training | Success rate |
| AppWorld test-normal | 54 / 111 | Tasks over training apps | TGC |
| AppWorld test-challenge | 54 / 99 | Tasks needing apps absent from training | TGC |
| Tau3-bench retail | 38 / 76 | New requests, mostly from training customers | Pass 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
| Benchmark | ReAct baseline | Tool | Max steps / Pi turns |
|---|
| ALFWorld | ReAct loop | act | 49 / 150 |
| ScienceWorld | SwiftSage's ReAct baseline | act | 100 / 400 |
| PlanCraft | The authors' prompt | take_action | 30 / 150 |
| AppWorld | AppWorld's ReAct code agent | exec | 50 / 150 |
| Tau3-bench | Tau2-bench's LLM agent | take_action | 200 / 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
| Method | Learns from | Memory | Access |
|---|
| AWM | Wins | Procedures | Inject |
| ExpeL | Wins | Rules | Inject |
| ReasoningBank | Wins and failures | Formatted rules | Retrieve |
| Insights Only | Wins and failures | Formatted rules | Inject |
| WikiTrace | Wins and failures | Rules plus linked evidence | Inject 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.
| Method | ALFWorld | ScienceWorld | PlanCraft |
|---|
| Eligible tasks | 10 / 225 | 29 / 71 | 75 / 125 |
| AWM | 7.0 (70%) / 6.0 (3%) | 13.3 (46%) / 12.3 (17%) | 21.7 (29%) / 13.0 (10%) |
| ReasoningBank | 4.7 (47%) / 12.3 (5%) | 11.0 (38%) / 9.0 (13%) | 30.3 (40%) / 9.3 (7%) |
| ExpeL | 8.0 (80%) / 6.3 (3%) | 14.7 (51%) / 11.7 (16%) | 16.0 (21%) / 16.0 (13%) |
| Insights Only | 8.0 (80%) / 5.0 (2%) | 18.7 (64%) / 5.3 (8%) | 43.3 (58%) / 6.7 (5%) |
| WikiTrace | 8.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.
| Method | Tau3-bench | AppWorld |
|---|
| Eligible tasks | 6 / 70 | 52 / 158 |
| AWM | 2.3 (39%) / 7.3 (10%) | 17.0 (33%) / 14.3 (9%) |
| ReasoningBank | 2.0 (33%) / 6.3 (9%) | 18.0 (35%) / 16.3 (10%) |
| ExpeL | 2.0 (33%) / 9.3 (13%) | 21.0 (40%) / 20.3 (13%) |
| Insights Only | 2.7 (44%) / 8.0 (11%) | 25.3 (49%) / 14.0 (9%) |
| WikiTrace | 2.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.
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.
Jump to