Manuscript Offprint

arXiv:2611.02338

MemShift: Separating Detection from Repair in LLM-Derived Personal Memory

Zichuan Xu, Haochen Zhang, Yuyang Dong, Makoto Onizuka, Chuan Xiao

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

Abstract

AI assistants store values that a language model derived from a person's records under the person's own definitions, such as their important contacts. Keeping such a value correct takes two steps: detection, noticing that an input changed, and repair, producing the correct new value. Benchmarks that score only the final answer cannot tell which step failed, and they state every change as new text. Seeing this limitation, we present MEMSHIFT, a benchmark of five shifts: source revision, deletion, redefinition, writer switch, and export. The first three fork a synthetic world into branches that differ only in the shift. Gold values and dependencies are fixed before any text, and a deterministic scorer replaces an LLM judge. For a memory that reports its invalidations, MEMSHIFT shows for each changed item whether the memory noticed the change and whether its repair was right. Moreover, we build a reference memory with known detection and repair to validate the measure. By evaluating four open-weight LLMs, we find that detection helps only as much as repair allows: the LLMs re-derive few values computed by the person's definitions correctly, and programs that the LLM writes over typed records close most of the gap to exact recomputation. Code and data are available at https://github.com/zichuanxu/memshift.

1 Introduction

AI assistants increasingly keep a memory of values derived from a person's records. Suppose an assistant stores the item "my important contacts are Ana, Ben, and Chloé". A language model, the writer, derived it from calendar records using the person's own definition: someone with at least nn one-off meetings in the last ww days. Five shifts can make such an item wrong or put it at risk. A meeting is rescheduled (a source revision) or deleted (a deletion), or the person changes what "important" means (a redefinition). The assistant moves to a new writer model (a writer switch), or the person exports the memory to another product (an export). Practitioners report stale memories (Mem0 Engineering Team, 2026), contradictions that pile up when a memory only adds new facts,¹ and memories moved between products by pasting text exports (Anthropic, 2026a; Google, 2026b).

Keeping the item correct takes two steps: detection, noticing that an input changed, and repair, producing the correct new value. A score on the final answer cannot tell which step failed. Consider two memories after the person redefines "important" (Figure 1). The first never notices the change, and 7.5% of the values it serves for the changed definition items are right. The second notices nearly every change and asks its writer to derive the value again, and 6.7% are right. The two get about the same score, but they fail at different steps: the first at detection, the second at repair. Benchmarks such as LoCoMo (Maharana et al., 2024), LongMemEval (Wu et al., 2025), and MemoryAgentBench (Hu et al., 2026) score the final answer after new information arrives, so they cannot separate these memories. They also state every change as new text, but three of the five shifts add no text. A redefinition leaves every record unchanged, a writer switch replaces only the model, and an export replaces only the product. Stating a redefinition as a new message would change both the text and the meaning, and the wording of a change alone already moves answers (Jiang et al., 2026).

We thus ask: after a change, did a memory fail to notice it or fail to repair it, and what fixes each failure?

We propose a benchmark MEMSHIFT that answers this question item by item (Section 3). It forks synthetic worlds into branches that are identical except for the shift. It fixes gold values and their dependencies before any text is written, and it scores answers with a deterministic scorer instead of an LLM judge. For each item whose gold value or status changed, it records whether the memory invalidated the item, whether the re-derived value is right, and what the memory served otherwise. A simple identity links these three terms, missed invalidation mm, repair correctness rr, and the served accuracy aa of items that were not re-derived, to accuracy

¹Mem0 GitHub issue #4956, https://github.com/mem0ai/mem0/issues/4956.

Figure

Figure 1: Detection and repair are separate steps. (a) One definition item and the five shifts. A source revision and a deletion change records, and a redefinition, a writer switch, and an export add no text. (b) The four HOLDMEM cells (D, B) after a redefinition. With a key (B=1), the memory invalidates the item and re-derives it. Without a key (B=0), it keeps the old list and derives a new item only when a new record arrives. The writer derives a wrong list (D=0), and exact recomputation the right one (D=1). Each bar splits the changed definition items as in Equation (1): right (gray at D=0, blue at D=1), wrong after a re-derivation (red), and wrong after a missed change (amber). m: share of changes missed. r: share of re-derived items that are right.

after the shift. A memory that reports its invalidations thus gets a diagnosis for every item. Any other memory still gets its carryover: its accuracy on the items that the shift changed and on those it did not.

To validate the measure, we build a reference memory, HOLDMEM, in which detection and repair are two switches with known effects (Section 4). With B=1, each item has a key that invalidates it when one of its inputs changes. With B=0, it has none. With D=0, the writer re-derives an invalidated item. With D=1, the memory recomputes it exactly as gold does (possible for 43 of the 48 items), which gives an upper bound on repair. A third setting runs programs that the writer writes itself.

We test four open-weight models from four families (Qwen3.5-9B, Llama-3.1-8B, gemma-4-12B, and gpt-oss-20b), each as writer and reader, and two Claude models as writers of definition items. The results show three patterns.

(1) Detection helps only as much as repair allows (Section 6.1). For every open-weight model, a key raises Update more with exact recomputation than with the writer's own re-derivation. The difference is +14.4 pp to +28.5 pp after a redefinition and +5.0 pp to +26.4 pp after a deletion. A strong writer makes the key useful on its own.

(2) Repair fails on the items computed by the person's definitions (Section 6.2). Each open-weight writer re-derives at most 25% of these changed values correctly, while exact recomputation gets at least 91% right. Programs the writer writes over the memory's typed records close most of this gap, and a Claude writer that sees every record of a definition comes close to exact recomputation.

(3) Keys built from the writer's citations notice every re-definition but miss records that join an item later (Section 6.3).

The interaction between detection and repair also holds on fresh worlds and on held-out definitions, and most items that fail a writer switch are definition items (Section 6.4).

Contributions. (1) MEMSHIFT, a benchmark of five shifts with counterfactual branches, gold dependencies, and a deterministic scorer, which separates detection from repair. (2) A reference memory with known detection and repair, which validates the benchmark and measures what keys and programs are worth when a language model re-derives, together with design rules drawn from the results.

References (100)

Couldn't load all references. Reload the page to try again.