Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents
Abstract
External memory enables LLM agents to improve from experience by distilling trajectories of past tasks into concise lessons for new tasks. However, memory can also lead to memory-induced degradation, where an agent fails on tasks it would solve without memory, often because it follows a lesson that is incorrect, or misapplies or misreads a valid one. This is because lessons are inferred from trajectories labeled only with task success or failure, yet are typically provided without the trajectories they came from, leaving the agent no way to check them. To address this, we introduce WikiTrace, an evidence-linked memory system designed to let agents check each lesson against its original trajectory. Specifically, motivated by the finding that a trajectory often still holds the evidence needed to catch an erroneous lesson, 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. Then, on a new task, the agent starts from all insights and, whenever one lacks details needed to act, conflicts with another, or comes from a failed task, descends through its links with terminal tools to fill in missing details or correct the insight before acting. We validate WikiTrace on five agentic benchmarks, showing that it consistently outperforms existing memory approaches and a baseline given the same insights alone, while also reducing memory-induced degradation. Our code is available at https://github.com/yukyeongleee/wikitrace
Create a lesson
Related papers
ChildAI-Gov: An Evidence-Linked AI System for Assessing EdTech Policies Against Children's Digital Rights
Shared title terminology · Naveen Sigalapalli, Huizhi Liang, Clara Crivellaro
Agent Money Benchmark: Can AI Agents Be Trusted to Spend Money?
Shared title terminology · Zhe Chen, Emma Hsieh, Vicky Fu
Engram: Multi-Stage Memory for Agentic Tuning of Heterogeneous Models
Shared title terminology · Huanran Li, Nhat X. T. Le, Kevin De Angeli et al.
Evidence sufficiency assessment enables cost-effective review allocation in on-premise clinical AI agents
Shared title terminology · Yiwen Qiu, Che Sun, Shu Shen et al.
Scale-Induced Semantic Shift in Visual Prompt Injection Against VLMs and Web Agents
Shared title terminology · Yiheng Zhao, Runze Ji, Chenyu Yi et al.
AstroMemBench: A Benchmark for Memory Systems in Embodied Spacecraft Agents
Shared title terminology · You Wu, Guhong Zhang, Hongwei Li et al.