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:2611.14320 · 2026-11-11 공개 · arXiv · PDF

llm-agents trajectory-analysis external-memory wiki-trace evidence-linked-memory memory-induced-degradation insight-validation agentic-benchmarks

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

한국어 요약

한 줄 요약

WikiTrace는 LLM 에이전트의 메모리 유도 오류를 줄이기 위해 증거와 연결된 메모리 시스템을 제안한다.

핵심 기여도

핵심 아이디어

기존 메모리 시스템은 레슨을 추출할 때 트래젝토리의 성공/실패 라벨만 사용하므로, 어떤 행동이 결과에 영향을 주었는지 명확하지 않다. 이로 인해 에이전트는 잘못된 레슨을 따르게 되고, 이는 메모리 유도 오류를 초래한다. WikiTrace는 이 문제를 해결하기 위해 레슨(`insight`)을 단순한 텍스트가 아닌, 그 레슨이 도출된 트래젝토리(`raw trajectory`)와 연결된 형태로 저장한다. 에이전트는 레슨이 충분하지 않거나 충돌할 경우, `compilation`을 통해 트래젝토리의 요약 정보를, 필요 시 `raw trajectory`를 직접 검토하여 레슨을 수정하거나 보완할 수 있다. 이는 레슨의 신뢰도를 높이고, 에이전트가 더 정확한 결정을 내릴 수 있도록 한다.

기술적 접근법

주요 결과

의의 및 한계

WikiTrace는 메모리 기반 에이전트의 신뢰성을 높이는 데 기여하며, 특히 레슨의 검증 가능성을 강화함으로써 메모리 유도 오류를 줄이는 데 성공했다. 이는 에이전트가 단순히 과거 경험을 재사용하는 것이 아니라, 그 경험의 근거를 검토할 수 있도록 하는 새로운 접근법을 제시한다. 그러나 WikiTrace는 트래젝토리 저장 및 검색 과정에서 추가적인 계산 비용이 발생할 수 있으며, 대규모 트래젝토리 데이터를 관리하는 데 한계가 있을 수 있다. 또한, 모든 레슨이 증거와 연결될 필요는 없으며, 어떤 레슨은 충분히 신뢰할 수 있는 경우도 존재하므로, 선택적 연결 전략이 필요할 수 있다.

실용적 활용

WikiTrace는 복잡한 작업 환경에서 LLM 에이전트의 신뢰성을 높이는 데 활용될 수 있다. 특히, 의료, 법률, 금융 등 높은 신뢰도가 요구되는 분야에서, 에이전트가 결정을 내릴 때 그 근거를 검토할 수 있도록 하여 오류를 줄이는 데 유용할 수 있다. 또한, 자동화된 시스템에서 경험 기반 학습을 안정적으로 수행할 수 있도록 지원한다.