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

Manuscript Offprint

arXiv:2610.02070

Causal Memory Policy: Making Memory Utility Identifiable by Intervening on Retrieval

Arman Behnam, Binghui Wang

ABSTRACT

Memory-augmented large language models must decide which memories to retain, and recent systems do so by estimating each memory's effect on task performance. However, these estimates rely entirely on retrieved memories. When a memory is never retrieved, store-level interventions produce identical outcomes, leaving its utility unidentified. This is a retrieval-level positivity violation, invisible to diagnostics that examine only memory operations.

We introduce Causal Memory Policy (CMP), a causal framework that restores identification by intervening on retrieval itself, reserving a fixed number of context slots for memories sampled with known propensity scores. CMP estimates memory utility via self-normalized inverse propensity weighting under a balanced assignment design with fixed sampling propensities. We prove the causal factorization of memory utility through retrieval, the unbiasedness and exact variance of the estimator, and the optimal decision rule under irreversible operations. Empirically, identification fails for 54% of required memories on LongMemEval and 67% on LoCoMo, and the failure persists in a deployed memory system. CMP improves discrimination between required and non-required memories from 0.54 to 0.66 AUC. Finally, we show that identified memory utility alone is insufficient for retention decisions: per-query utility reaches 0.78 AUC on the query for which it is estimated. Code is available at: https://anonymous.4open.science/r/cmp-release-D0C3/.

1 INTRODUCTION

Large language models (LLMs) exhibit remarkable capabilities across a broad spectrum of tasks, but remain fundamentally constrained by fixed context windows that limit the information accessible at inference time. As the scope and duration of LLM deployments grow, effective management of what is remembered, forgotten, and reorganized becomes a first-order design challenge. Memory-augmented LLMs (Zhong et al., 2024; Wang et al., 2024b) address this limitation by maintaining external memory stores that persist across interactions, enabling long-horizon reasoning, user personalization, and incremental knowledge accumulation. A detailed discussion of related work is in Appendix A.

Deciding what to retain requires estimating the utility of each memory. Recent systems estimate this quantity from per-memory success and failure counts (Simsek, 2026), paired trajectories with and without a candidate memory (Gao et al., 2026), controlled interventions on the candidate set (Srivastava, 2026), and explicit retention budgets (Wu et al., 2026). All of these estimators rely solely on memories already retrieved by the logging policy (see Appendix H.1 for an example). This raises four fundamental questions: (1) When is memory utility identified from logged interactions? Identification requires observing a memory both present and absent in the retrieved context, which no deterministic logging policy guarantees. (2) What does an estimator return when the estimand is not identified? A degenerate contrast often yields an estimate near zero, making identification failure indistinguishable from genuinely low memory utility. (3) Which memory management policies are affected? Only policies that rank memories by estimated utility are susceptible; recency- or frequency-based heuristics never evaluate the affected memories. (4) How can identification be restored, and at what cost? Randomization must be introduced into retrieval, since perturbing the memory store leaves the retrieved context unchanged whenever the perturbed memory is not retrievable.

The root cause is that retrieval mediates the effect of the memory state on task output. A memory influences an answer only if it is retrieved into the context the model reads, so intervening on the memory store affects the output only through what retrieval subsequently surfaces. Memory utility therefore factorizes into two components: the probability of retrieval and the contribution once retrieved. Logged interactions cannot distinguish a memory with genuinely low utility from one that was never given the opportunity to contribute. This is a positivity violation, the causal inference condition requiring every unit to have a nonzero probability of receiving each treatment. Because the violation occurs at the level of retrieval, diagnostics that verify exploration only over memory operations fail to detect it. Existing causal approaches to memory management do not address this retrieval-level positivity failure. They either place the ground-truth answer inside the selection loop (Srivastava, 2026), which is unavailable at deployment, or verify overlap only over the operations selected by the policy (Li et al., 2026), leaving retrieval itself uncontrolled.

We propose a corrected view: memory utility as a retrieval-mediated causal effect. We formalize a memory-augmented LLM as a structural causal model (SCM) (Pearl, 2009), where retrieval mediates the effect of memory operations on task outputs. Structural causal models have also been used to explain graph neural network predictions through their causal subgraphs (Behnam and Wang, 2024) and to learn representations when labels cause the observed features (Behnam and Wang, 2026); here they expose a support condition that associational memory scores leave unchecked. Built on this formulation, we develop the Causal Memory Policy (CMP), whose components resolve the above four questions: (i) Identification. We derive a factorization of memory utility into retrievability and conditional usefulness, prove the resulting non-identifiability under deterministic retrieval, and explain why unidentified estimators converge to values near zero rather than becoming undefined, answering Questions (1) and (2). (ii) Restoring identification and cost. We introduce a randomized exposure design that reserves k context slots for memories sampled with known propensity, restoring positivity by construction while requiring a budget that scales only with the candidate pool being identified, answering Question (4). (iii) Empirical characterization. We quantify retrieval-level positivity failure on two benchmarks and a deployed memory system, identifying when utility-based policies are affected and when heuristic policies are not, answering Question (3). (iv) Decision theory. We characterize what identified memory utility can support by deriving the Bayes-optimal policy under asymmetric reversible and irreversible operations, and show that no aggregation available to a retention policy predicts a memory's utility on unseen queries.

We evaluate CMP on LongMemEval (Wu et al., 2024) (long-horizon retention over ~ 490-turn histories), LoCoMo (Maharana et al., 2024) (multi-session dialogue with many queries over a single memory store), HotpotQA (Yang et al., 2018) and MuSiQue (Trivedi et al., 2022) (2–4-hop reasoning, as replication), and Mem0 (Chhikara et al., 2025) (a deployed memory system, as transfer). We find that retrieval-level identification failure is substantial rather than an implementation artifact: it affects 54% of required memories on LongMemEval and 67% on LoCoMo, and persists in Mem0, where unretrieved evidence has a median retrieval rank of 139 among 291 stored memories. Store-level randomization leaves the retrieved context unchanged on 52.2% of perturbations, causing utility-based eviction to perform no better than chance (lift 0.97). Restricting evaluation to retrieved memories eliminates the gap between the two estimators (0.655 vs. 0.658 AUC), localizing the failure to positivity. CMP raises discrimination between required and non-required memories from 0.54 to 0.66 AUC, and per-query estimation raises it to 0.78. Finally, we show that identified utility alone does not determine retention: no aggregation over observed queries predicts a memory's value on unseen queries, indicating that the remaining limitation lies in the estimand.

References (99)