← Back to Paper Radar

Does Your Agent's Memory Survive a Model Upgrade? A Controlled Study of Memory Portability

Ankit Goyal, Jaideep Ray
arXiv.org | 2026

Reading guide · Based on sections of the original paper

The authors build a controlled testbed that separates memory writing, retrieval and reading. With it, they show that agent memory formats differ sharply in how well they survive a change of model or embedder, and that averaged results can hide large failures that depend on migration direction.

Why read this

Engineers who run agent memory through model or embedding upgrades get concrete failure modes, repair costs and a migration checklist backed by exact-match experiments.

What the authors found

  • On 48 synthetic histories with Llama-3.1-8B and Qwen2.5-7B, KG-fixed accuracy barely moved after a writer swap. NOTES shifted by +9.91 pp when Llama read Qwen's notes and by −13.28 pp when Qwen read Llama's notes, each compared with the reader's own notes. The planned symmetric test (H1) was therefore not supported, because the two directions cancel. Do not average away the migration direction.
  • Upgrading bge-large-en from v1.0 to v1.5 with full re-embedding raised answer accuracy by 11.90 pp over the old index. A 50/50 mixed index gained only 4.96 pp, and it failed silently because the vectors share a dimension. This was the planned H2 test, supported at +6.95 pp across two readers. 4.3 Retrieval can fail before the new model sees anything
  • Store-only NOTES repair reached 90% of own-store accuracy in 0 of 48 histories. Repair from raw history worked only with Qwen as the repairer: 34 of 48 histories at about $0.76 median, while Llama's attempts hit output limits. The authors note that repairer and migration direction are confounded. 4.4 Raw history buys a second chance—if the repairer can use it

Main limitation

The study covers a single cross-family pair of sub-10B models on scripted histories that fit in context. It also uses one single-stage dense retriever and an internal analysis lock rather than a full preregistration, so the results may not generalize. 4.6 Scope and limits of the findings

Where to start

Appendix D How to diagnose where memory fails · Check how loss is split into retrieval, construction and reader residual: the ceiling of 1, the pooled-ratio percentages, and why KG-fixed is excluded from the decomposition.

Abstract

Model upgrades are routine; memory migrations are not. An agent can keep the same memory store and still forget: a new model may interpret old notes differently, mixed embedding versions may break retrieval, and repair may fail without the original evidence. We compare memory as the same history is preserved verbatim for long-context reading (LC-RAW), divided into chunks for retrieval-augmented generation (RAG), compressed by a model into natural-language notes (NOTES), or normalized into a fixed-schema knowledge graph (KG-fixed). The study uses 48 synthetic histories with randomized answer codes, exact scoring, and two open-weight models with sub 10 billion parameters. Our measurements show that fixed-schema structures transfer reliably, with KG-fixed accuracy changing by only $+0.0004 \pm 0.0020$ following a writer swap. Conversely, compressed NOTES exhibit high model coupling, with accuracy shifting asymmetrically by $+9.91$ or $-13.28$ percentage points depending on the specific migration direction. In RAG systems, partial embedding migrations using a 50/50 mixed index capture only a 4.96-point accuracy improvement, forfeiting the majority of the 11.90-point gain achieved through full re-embedding. Diagnostic decomposition attributes 80% ($0.467 \pm 0.014$) of the NOTES accuracy deficit to information lost during initial construction, whereas retrieval failures drive 81% ($0.364 \pm 0.012$) of the RAG deficit. Finally, store-only repair of NOTES fails to reach a 90% performance recovery target in all 48 test cases, whereas retaining the raw source history enables successful recovery in 34 of 48 cases for one tested direction. These findings highlight the necessity of direction-specific migration testing, strict embedding space isolation, and the retention of source histories for memory repair.

Generated automatically from paper sections on 2026-11-28.