Research ·
Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents
WikiTrace is an evidence-linked memory system for LLM agents that ties each distilled lesson to its source trajectory and outcome rationale, letting agents verify lessons before acting; across five agentic benchmarks it beat using insights alone by 3.2 points on average and reduced memory-induced degradation.

LLM agents often store lessons distilled from past task trajectories, but these lessons are typically saved without their source runs. Since lessons are inferred from trajectories labeled only with success or failure, an agent can follow an incorrect lesson, or misapply a valid one, and fail tasks it would otherwise solve. The authors call this memory-induced degradation; in their analysis, simply rerunning the agent without memory flipped 9.7% of solved tasks.
WikiTrace stores each lesson as a concise insight linked to a summary of why its trajectory succeeded or failed and to the raw trajectory itself. On a new task, the agent starts from all insights and, when one lacks needed details, conflicts with another, or came from a failed task, it descends through the links using terminal tools to fill in gaps or correct the insight before acting. The paper reports that descents triggered by a blocked attempt improved over an insights-only baseline by 17.3 points, while routine checks added only 3.4, meaning the links matter most when something goes wrong.
Across five agentic benchmarks, WikiTrace consistently outperformed existing memory approaches and an insights-only baseline given the same lessons, scoring 3.2 points higher on average while reducing memory-induced degradation. Code is available on GitHub. For builders of experience-based agent memory, the result suggests keeping provenance with each lesson; a reviewer in the discussion notes it does not fully fix a valid lesson applied to the wrong task, and the authors respond that both WikiTrace and the baseline record applicability conditions in an Applicability field.
References
- Hugging Face · huggingface.co
Read the full story at Hugging Face ↗Like, save or discuss on Buzz