MemTrace: Tracing and Attributing Errors in Large Language Model Memory Systems
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
Memory is essential for enabling large language models to support long-horizon reasoning, yet existing memory systems remain unreliable and difficult to debug. Tracing memory's dynamic evolution is crucial to understand how information is synthesized, propagated, or corrupted over time. In this work, we study the new problem of error tracing and attribution in LLM memory systems. We propose a novel framework that transforms memory pipelines into executable memory evolution graphs, enabling fine-grained tracing of operational information flow. We then construct MemTraceBench, a benchmark collected from representative memory systems such as Long-Context, RAG, Mem0, and EverMemOS, to systematically study memory failure modes. We further introduce an automatic attribution method that iteratively traces operation subgraphs to pinpoint the root cause of any failed case. Our analysis reveals that memory failures are systematic, stemming from operation-level issues like information loss and retrieval misalignment. Crucially, we leverage these fine-grained attribution signals to guide downstream prompt optimization, establishing a closed-loop system that automatically corrects faults and boosts end-task performance by up to 7.62 percentage points. Code has ben released at https://github.com/zjunlp/MemTrace.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 78 of its 100 references that are in the map. First posted on arXiv 27 May 2026.
Builds on
78 of 100 references.
References · 78
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023Let's Verify Step by Stepcited by 3,789
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023MMMU: A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGIcited by 2,080
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
38 more
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
- 2024A Survey on LLM-as-a-Judgecited by 1,423
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,261
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,063
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 923
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 876
- 2023Large Language Models as Optimizerscited by 864
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 830
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 779
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 707
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 556
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 542
- 2022Efficiently Scaling Transformer Inferencecited by 539
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 532
- 2025LLMs Get Lost In Multi-Turn Conversationcited by 429
- 2023Ragas: Automated Evaluation of Retrieval Augmented Generationcited by 418
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 398
- 2025Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscationcited by 384
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 309
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
- 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactionscited by 254
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 246
- 2025UI-TARS-2 Technical Report: Advancing GUI Agent with Multi-Turn Reinforcement Learningcited by 215
- 2020Sparse, Dense, and Attentional Representations for Text Retrievalcited by 214
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systemscited by 185
- 2025LightMem: Lightweight and Efficient Memory-Augmented Generationcited by 180
- 2023An LLM Compiler for Parallel Function Callingcited by 179
- 2025MIRIX: Multi-Agent Memory System for LLM-Based Agentscited by 173
- 2026SimpleMem: Efficient Lifelong Memory for LLM Agentscited by 149
- 2025Do LLMs Recognize Your Preferences? Evaluating Personalized Preference Following in LLMscited by 148
- 2025NoLiMa: Long-Context Evaluation Beyond Literal Matchingcited by 126
- 2024Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approachcited by 119
- 2025AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems?cited by 116
- 2025EgoLife: Towards Egocentric Life Assistantcited by 91
- 2023LLMs as Narcissistic Evaluators: When Ego Inflates Evaluation Scorescited by 90
- 2024Watch Every Step! LLM Agent Learning via Iterative Step-Level Process Refinementcited by 88
50 most cited of 78 All 78 (JSON)
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026A-TMA: Decoupling State-Aware Memory Failures in Long-Term Agent Memorycited by 4
- 2026Ground Truth First: A Longitudinal Evaluation Instrument for Agent Memory, and the Tenure Crossover in Memory-Architecture Rankingscited by 3
- 2026SearchAuditor: Auditing and Attributing Failures in Long-Horizon Search Agentscited by 2
- 2026MobileMem: Learning from a Year of Mobile Experiencescited by 1
- 2026When Errors Become Memories: Causal Pathway Tracing in Multi-Turn Memory-Augmented LLMscited by 1
- 2026Can LLMs Reason Over Long Horizons? An Empirical Evaluation of Context Strategies for Longitudinal Clinical Reasoningcited by 0
- 2026Can LLMs Reason Over Long Horizons? An Empirical Evaluation of Context Strategies for Longitudinal Clinical Reasoning30 Sep 2026
- 2026When Errors Become Memories: Causal Pathway Tracing in Multi-Turn Memory-Augmented LLMs31 Aug 2026
- 2026MobileMem: Learning from a Year of Mobile Experiences11 Aug 2026
- 2026SearchAuditor: Auditing and Attributing Failures in Long-Horizon Search Agents5 Aug 2026
- 2026Ground Truth First: A Longitudinal Evaluation Instrument for Agent Memory, and the Tenure Crossover in Memory-Architecture Rankings24 Jul 2026
- 2026A-TMA: Decoupling State-Aware Memory Failures in Long-Term Agent Memory2 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026MemTrace: State-Consistent Memory for Long-Horizon Coding Agents
- 2026CNnotator: LLM-Guided Memory Safety Annotation Synthesis
- 2026MemTxn: A Transaction Boundary for Source-Supported Updates and Complete-State Recovery in Agent Memory
- 2026EvalMem: An Operation-Level Diagnostic Framework for Long-Term Memory Systems
- 2026MemGuard: Preventing Memory Contamination in Long-Term Memory-Augmented Large Language Models
- 2026MemSifter: Offloading LLM Memory Retrieval via Outcome-Driven Proxy Reasoning
- 2026MechMem-RTL: Reusing Verified Mechanism Memories for LLM-Based RTL Repair ↗
- 2026Is One Score Enough? Rethinking the Evaluation of Sequentially Evolving LLM Memory