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:
- 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.
- 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.
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.
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%.
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