The Immutable Past: Formalizing State Mutability and Conflict Resolution in Mutable RAG
Abstract
Retrieval-Augmented Generation (RAG) serves as the primary memory architecture for long-horizon autonomous agents. However, treating shared memory as an append-only stream introduces \textit{Semantic Shadowing}, a critical failure mode where conflicting historical observations accumulate and statistically dominate valid recent updates. In dynamic environments, this results in severe state divergence as agents retrieve and act upon obsolete facts. This paper formalizes the mechanics of State Mutability to prove that standard dense retrieval suffers from Asymptotic Recall Decay. Furthermore, we formally demonstrate a Majority Vote Trap, revealing that increasing the retrieval context window paradoxically degrades generation accuracy by diluting the attention mechanism under conditions of semantic equivalence. To resolve this, we introduce GC-Mem (Garbage Collection for Memory), a strict inference-time consistency protocol. Unlike heuristic time-decay mechanisms---which indiscriminately destroy valid long-term memory---GC-Mem relies purely on a temporal dominance operator () paired with contradiction detection to surgically excise shadowed context. Evaluated across a rigorous, behaviorally inferred benchmark of 137,760 memory chunks and continuous accumulation sweeps, standard RAG and timestamp re-ranking baselines experience severe degradation. In contrast, GC-Mem empirically recovers conflict resolution accuracy. We establish strict precision and recall deployment thresholds, ensuring state convergence where standard mutable RAG fundamentally fails.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
Related papers
Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability
Shared title terminologycs.CLXichong Zhang, Xixuan Hao, Zhichen Liu et al.
On the Importance of Hidden-State Refinement in Masked Diffusion Language Models
Shared title terminologycs.CLLinhao Zhong, Bozhen Fang, Xuehao Wang et al.
Register Tokens for Bounded-State Reasoning in Diffusion Language Models
Shared title terminologycs.CLAlbert Ge, Chandan Singh, Yufan Zhuang et al.
Mind2Dialogue: Training Human-Aware Language Models by Simulating User Mental States
Shared title terminologycs.CLZixuan Wang, Yufan Zhou, Jinzhou Tang et al.
State of Thought Enables Endogenous Reasoning
Shared title terminologycs.CLZhiren Gong, Yikun Hou, Zihao Zeng et al.
Pull: Lazy Materialization of Working Memory for Stateful LLM Conversations
Shared title terminologycs.CLJiangang Chen