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

2026-08-31Computation and Language

Computation and Language
AI summary

The authors studied how mistakes in language models with long-term memory can stick around and affect future answers. They created a model to track how errors spread through memory updates and user feedback over several interactions. Their experiments show that errors fade over time, but changes to memory cause longer-lasting problems than just feedback from questions. They also found that fixing memory errors is much more effective than fixing question-related errors, and doing both nearly removes error persistence altogether.

long-term memorylanguage modelserror propagationstructural causal modelmemory updateuser feedbackcounterfactual trajectorieserror correctionmemory retentiondiagnostic probing
Authors
Shuyao Xiao, Shengling Wang, Xuan Chen, Ke Chao, Ming Cui, Feifei Qian, Fanlin Meng, Chaoyang Mei, Chaoyong Jiang, Qi Ouyang, Junxi Yi
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.