Frozen Memory Is Not Enough: Rethinking External Memory as Extraction

Mingyuan Li, Guangsheng Yu, Xu Wang, Shaoxiong JiNeurIPS 2026

TL;DR

Can we take a learned external memory module trained on one large language model, freeze it, and plug it straight into a completely different model? Yes—provided we give the new model the right neural "glasses" to read it. This paper reveals that making learned external memory genuinely portable isn't just about what is stored in the table; it depends heavily on designing a smart, lightweight reader interface to extract and translate those memories for a new host.

What Problem Does This Paper Address?

When we want a Large Language Model (LLM) to learn new facts, we usually face a classic trade-off:

  1. Non-parametric retrieval (like RAG): Keep a giant folder of text documents outside the model and look them up on the fly. It is easy to update and completely portable across models, but it slows down generation and stuffs the context window.
  2. Parametric adaptation (like fine-tuning): Bake the knowledge directly into the model's weights. It is fast at inference time, but the knowledge becomes hopelessly entangled with that specific model. You can’t easily audit it, edit it, or move it to a newer architecture.

A recent middle-ground approach called Engram stores learned vector representations in an external, hash-addressable lookup table, using a tiny neural network ("reader") to inject those vectors into the LLM's hidden layers. It looks modular on paper, which raises a fascinating question: Is that external table truly a portable knowledge artifact, or is it just a co-adapted crutch secretly married to the model that trained it?

Methods

To test true portability, the authors perform a "brain transplant"—or more accurately, cross-model frozen-memory extraction. They train an Engram memory table on a source model (Model A), freeze the table completely, detach Model A, and wire the frozen table up to a completely different target model (Model B), training only a lightweight target-side reader.

Figure 1: Overview of the cross-model memory transfer. A memory table trained with source model A is frozen and attached to target model B. Canonicalization keeps the address space fixed across tokenizers, and only the target-side reader (including multi-head and multi-layer variants) is trained. This setup operationalizes whether external memory remains reusable outside its source backbone.

Relative to standard Engram, making this transplant work across heterogeneous models (like moving from LLaMA or Qwen to Mistral or Pythia) required two key innovations:

  • Tokenizer-Agnostic Addressing: Different LLM families chop text into different subword tokens. If you hash raw token IDs, the phrase "The Cafe" routes to completely different memory slots across models. The authors standardize addressing by decoding prefixes into normalized, lowercase, accent-stripped word sequences (or character spans for non-whitespace scripts like Chinese and Japanese) before hashing $n$-grams.
  • Upgraded Target-Side Readers: Because the frozen vectors were shaped by Model A's geometry, Model B needs help consuming them. Instead of a simple single-layer projection, the authors introduce a multi-branch, multi-layer reader. All branches share a single value projection (preventing the reader from acting as extra storage) while learning multiple context-dependent gating pathways injected across multiple transformer layers (e.g., layers 2 and 10).

Datasets

The authors do not introduce new benchmarks, relying instead on established datasets to separate intrinsic language modeling from downstream utility:

  • Training & Adaptation: Wikitext-103, Wikipedia-2021, and FineWeb-Edu (FW-9B).
  • Downstream Question Answering (QA): Natural Questions (NQ), WebQA, TriviaQA, TruthfulQA, and HotpotQA.
  • Broader Downstream Evaluation: RTE, BoolQ, OpenBookQA, SciQ, and RACE.

Key Insights and Ideas

  • Extraction matters as much as storage: Just attaching a frozen memory table isn't enough. Upgrading where and how the reader injects information into the target model yields massive gains without altering a single number inside the frozen memory table itself.
  • Placement beats raw width: Injecting memory at two distinct layers (early and middle, e.g., layers 2 and 10) gives the model multiple chances to integrate retrieved signals during its forward pass—outperforming a single-layer reader with double the vector width.
  • Cross-model reuse rivals native memory: Once the reader is expressive enough, a Mistral model reading a memory trained by LLaMA performs virtually identically to Mistral reading a memory trained by Mistral itself.
  • Zero-shot compatibility exists: When a source reader happens to be dimensionally compatible with the target's residual stream, reusing the frozen table and frozen reader directly—with zero target-side training—still provides substantial QA gains.

Key Results

Across a $3 \times 3$ transfer matrix spanning Pythia, Qwen3.5, and TinyLlama, frozen memory reduced test perplexity in all nine combinations by 1.6% to 15.7% over no-memory baselines, outperforming random-memory and permuted-key controls.

Figure 2: The full 3x3 transfer matrix and target-scale transfer performance across different model types trained on Wikitext-103.

On downstream QA with a Mistral-7B target (base score 32.1% F1):

  • Using a basic single-layer LLaMA-trained memory reader nudged average QA accuracy to 34.2%.
  • Upgrading to dual-layer injection ({2, 10}) jumped accuracy to 37.5%, and adding 4 gating branches (R4) hit 38.5%—matching same-model transfer (38.5%) and beating RAG (33.4%), kNN-LM (32.6%), and LoRA (32.3%).
  • Scaling up the token training budget pushed cross-model QA accuracy to 38.8%.
Table 1: QA accuracy (%) on Mistral-7B-v0.3 for different reader variants and baselines. Unless noted otherwise, Engram and baseline rows report F1; the MLP Memory row reproduces the source paper’s reported Exact Match and is included only as a non-comparable reference. Budget notation follows Table 2 trained on Wikipedia-2021 [Izacard et al., 2023].

Limitations and Future Work

Frozen memory transfers factual associations, not reasoning or calibration. While factual and evidence-heavy tasks (like TriviaQA, NQ, RTE, and SciQ) saw consistent boosts, long-context reading comprehension (RACE) stayed flat, and TruthfulQA consistently degraded across model scales (-0.2% to -0.8%). Because TruthfulQA tests a model's ability to resist common misconceptions, blindly injecting raw factual associations from an external table can actually mislead the host. Furthermore, word-boundary canonicalization requires script-specific fallbacks for languages without spaces. (Note: Detailed formal limitations are placed in Appendix H, beyond the main text provided, though these practical boundaries are explicitly highlighted in the main experiments.) Designing readers or training protocols that preserve truthfulness calibration alongside factual recall remains an open next step.

Summary updated

Abstract

Methods for improving knowledge use in large language models typically fall into two regimes. Non-parametric retrieval offers flexible access to external knowledge, but adds retrieval latency, context overhead, and only shallow integration with the backbone. Parametric adaptation is efficient at inference time, but entangles knowledge with model weights and can be hard to update, audit, or transfer. Engram-style hashed memory occupies a middle regime: it stores learned information in an external, addressable table, yet consumes that table through a small learned reader. This raises a basic question: when such a memory is moved across backbones, what matters more, the frozen memory itself or the target-side reader? We study this question through cross-model frozen-memory extraction, in which a memory trained on a source model is frozen and attached to a different target model, with only a lightweight reader trained. Ablations show that learned memory content and correct addressing both matter, while the amount of usable signal depends on how well the reader is aligned to the target model. In downstream question answering tasks, a dual-layer, four-branch reader nearly closes the gap between same-model and cross-model reuse, achieving an average score of 38.8 under our controlled evaluation protocol. Moreover, when the provider reader is directly compatible with the target interface, the frozen artifact can provide substantial utility without target-side training, while optional reader adaptation yields further improvement. These results suggest that Engram can serve as a reusable external knowledge artifact, provided that the target has access to a compatible reader interface; target-side adaptation can further improve alignment when direct reader reuse is insufficient.
BibTeX
@inproceedings{li2026frozen,
  author = {Mingyuan Li and Guangsheng Yu and Xu Wang and Shaoxiong Ji},
  title = {{Frozen Memory Is Not Enough: Rethinking External Memory as Extraction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=e7xyZQCjBR},
}
Figure