arXiv(opens in a new tab)cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.30198

When Errors Become Memories: Causal Pathway Tracing in Multi-Turn Memory-Augmented LLMs

Shuyao Xiao, Shengling Wang, Xuan Chen, Ke Chao, Ming Cui, Feifei Qian, Fanlin Meng, Chaoyang Mei, Chaoyong Jiang, Qi Ouyang, Junxi Yi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Long-term memory enables large language models (LLMs) to preserve and reuse information across interactions, but it can also turn localized errors into persistent risks. Existing work mainly evaluates whether memory systems store and retrieve information correctly, leaving limited understanding of how errors propagate across responses, memory states, and future interactions. We propose a structural causal model (SCM)-based framework for cross-turn error propagation in memory-augmented LLMs. We model user questions, model responses, and memory states as a dynamic causal process, and identify two entry pathways: internal memory updating and external question feedback. By intervening on these pathways, we construct four counterfactual trajectories and quantify their downstream effects and interaction. Error influence is evaluated at four levels: memory retention, natural responses, targeted diagnostic probing, and probability-level error preference. Experiments show that error influence generally decays with interaction distance, while the memory-update pathway contributes more persistent effects than question feedback; latent errors may remain even after disappearing from natural responses. Propagation patterns also vary across memory categories and memory mechanisms. Pathway-guided restoration further validates this decomposition: Question Repair reduces residual error by 27.5%, Memory Repair by 70.2%, and Joint Repair by 98.3%, nearly eliminating residual propagation.

1 Introduction

As large language models (LLMs) are increasingly deployed in long-term conversational settings, personalized assistants, and persistent interactive systems, external long-term memory has become an important mechanism for preserving and reusing information across sessions (Zhang et al. 2025). Memory systems such as MemoryBank (Zhong et al. 2024), Generative Agents (Park et al. 2023), and MemGPT (Packer et al. 2023) enable models to move beyond the limitations of the context window through continuous memory updates, dynamic retrieval, and hierarchical memory management. Meanwhile, benchmarks such as LongMemEval (Wu et al. 2024), MemBench (Tan et al. 2025), and MemoryAgent-Bench (Hu, Wang, and McAuley 2025) evaluate memory systems in terms of information retrieval, knowledge updating, long-range understanding, selective forgetting, and overall memory capability.

Long-term memory, however, also changes the nature of model errors. In conventional single-turn interactions, an incorrect response typically constitutes a localized output failure. In memory-augmented systems, by contrast, the same error may be incorporated into subsequent memory states and repeatedly retrieved and reused, thereby influencing responses across future interactions (Xiong et al. 2025; Zhang et al. 2023; Kwan et al. 2024). In high-stakes settings that rely on persistent information, such as health management, financial planning, and task execution, these enduring effects may further shape user decisions or agent actions (Dash et al. 2026; Qian 2026). Prior studies have shown that erroneous or contaminated information may persist once incorporated into long-term memory and continue to affect subsequent responses, plans, and behaviors when retrieved (Xiong et al. 2025; Deng et al. 2026). Consequently, an initially isolated error may propagate over time, evolving into a long-term risk that affects both system states and real-world outcomes.

Existing research has primarily focused on the construction, management, and evaluation of long-term memory, typically assessing whether a model can correctly retain and use historical information through final-answer quality or aggregate task performance (Wu et al. 2024; Tan et al. 2025; Hu, Wang, and McAuley 2025). However, long-term memory is not just a static storage component; it is part of a dynamic system where user questions, model responses, and memory states evolve together. At the system level, an error may initially affect future behavior through both internal memory states and external interaction dynamics. Internally, an erroneous response may be written into long-term memory, affecting subsequent generation (Xiong et al. 2025; Zhang et al. 2026; Deng et al. 2026). Externally, it may reshape the user's follow-up questions, causing the conversation to proceed from an incorrect premise (Kwan et al. 2024). These pathways may later interact, prolonging the influence of the original error. Existing approaches provide limited insight

∗^{*}This work was conducted during an internship at Beike Language and Intelligence.

†^{\dagger}Corresponding author.

into how errors propagate dynamically across responses, memory states, and subsequent questions, and how the pathway through which an error enters the system shapes its downstream influence.

To address this gap, we introduce a structural causal model (SCM)-based framework (Pearl 2009) for analyzing cross-turn error propagation dynamics. The framework integrates the joint evolution of user questions, model responses, and memory states within a unified causal formulation and employs counterfactual interventions to control whether an error enters through internal memory, external question feedback, or both. We use error influence to refer to the measurable downstream effects of an injected error on memory states and subsequent behavior, including memory retention, occurrence in natural responses, re-elicitation under targeted probes, and shifts in generation probabilities. By tracing these manifestations, our framework reveals how errors persist, decay, and re-emerge across long-term interactions, providing a unified perspective for understanding and mitigating systematic error propagation in memory-augmented LLMs. Our main contributions are as follows:

• We develop a dynamic structural causal model and a four-trajectory counterfactual intervention framework that estimates the downstream effects of introducing an error through memory updating and question feedback, along with their interaction.

• Our experiments show that error influence generally decreases with interaction distance, while errors introduced through the internal memory pathway have more persistent downstream effects than those from the question-feedback pathway. Even after an error disappears from natural responses, it may remain as a latent memory trace or a shift in generation preference.

• Error propagation varies across memory categories and mechanisms, showing how memory organization shapes error persistence. We perform pathway-guided restoration to update the internal memory state and the external question-feedback trajectory. Restoring the corrupted memory state suppresses error propagation more effectively than correcting the error-affected question trajectory alone, while restoring both components nearly eliminates the residual effect.

References (22)