MeMo: Memory as a Model
Ryan Wei Heng Quek, Sanghyuk Lee, Alfred Wei Lun Leong, Arun Verma, Alok Prakash, Nancy F. Chen, Bryan Kian Hsiang Low, Daniela Rus, Armando Solar-Lezama
cs.CL, cs.AI, cs.LG
2026-05-15
A corpus is distilled into QA pairs and SFT'd into a standalone memory model that any frozen LLM queries via multi-turn sub-questions; 53.6% on NarrativeQA, more than double the best RAG baseline.
LLMs are frozen after pretraining while the world moves on. The three existing fixes each break somewhere. Retrieval (RAG, ICL) stuffs passages into the context window: it scales poorly with corpus size, degrades when the retriever pulls in distractors, and struggles to synthesize facts scattered across documents. Continual pretraining or fine-tuning internalizes knowledge properly but is expensive, causes catastrophic forgetting, and is impossible for proprietary API models. Latent memory methods (AutoCompressor, Gist tokens, ICAE) compress knowledge into soft tokens, but the representation is welded to the model that produced it, so nothing else can consume it.
MeMo wants all three upsides at once: leave the main model untouched like RAG, internalize knowledge into parameters like fine-tuning, and keep memory compact like latent methods, without binding it to any one model.
Two roles. The EXECUTIVE model is a frozen LLM that does the reasoning; the MEMORY model is a separate, much smaller model (Qwen2.5-14B-Instruct in the main experiments) whose only job is to hold knowledge. The name is literal: the memory is itself a model.
Training runs a five-step synthesis pipeline driven by a GENERATOR (Qwen2.5-32B):
One constraint does the heavy lifting in SFT: the MEMORY model sees questions only, never source documents, and the loss covers answer tokens only. Knowledge has to live in its parameters; at inference it touches no external corpus. That is the clean break from RAG readers.
At inference the EXECUTIVE queries the MEMORY model through a three-stage protocol: decompose the query into atomic sub-questions asked independently (grounding), iteratively narrow candidate entities from the responses (entity identification), then gather supporting facts around the settled entity and synthesize the answer. Everything goes through the input-output interface, so closed-source APIs work as executives. Continual updates use model merging: each new corpus gets its own memory model, and task vectors (fine-tuned weights minus base weights) are sparsified and merged, with TIES at density 0.3 the best of fourteen configurations.
Three knowledge-intensive benchmarks, one trained 14B memory, two executives (accuracy %, Qwen2.5-32B-Instruct / Gemini-3-Flash):
| Method | NarrativeQA | MuSiQue | BrowseComp-Plus |
| BM25 | 10.24 / 14.33 | 20.00 / 23.20 | 1.11 / 27.00 |
| NV-Embed-V2 | 20.59 / 26.62 | 37.47 / 46.60 | 50.67 / 57.00 |
| HippoRAG2 | 21.39 / 23.21 | 42.17 / 57.00 | 56.11 / 66.33 |
| MeMo | 26.85 / 53.58 | 48.30 / 60.20 | 54.22 / 66.67 |
| Perfect Retrieval (upper bound) | 51.42 / 60.41 | 62.83 / 73.00 | 79.67 / 88.33 |
The headline number is NarrativeQA with Gemini-3-Flash: 53.58%, more than double HippoRAG2's 23.21%, and 7 points short of Perfect Retrieval (60.41%), the oracle that puts evidence documents directly in context. That benchmark requires cross-chapter reasoning over a whole book or screenplay, exactly where retrieval breaks. On BrowseComp-Plus with Qwen it trails HippoRAG2 slightly (54.22 vs 56.11); the paper attributes this to the benchmark's answers being absent from the executive's parametric knowledge, which favors methods handing over raw documents.
Noise robustness: adding an equal number of distractor documents drops HippoRAG2 by 6.22 points on BrowseComp-Plus while MeMo gains 0.55. Swapping the executive from Qwen to Gemini adds 26.73 points on NarrativeQA with zero retraining, which makes the plug-and-play claim concrete. Scaling the memory from 1.5B to 14B helps everywhere; swapping families at similar scale (Gemma3-1B, LFM2.5-1.2B) barely moves the numbers.
Merging is the weak spot: TIES cuts cumulative compute at K=2 from 72 to 48 8xH100-hours (33%), but costs 11 to 19 points on NarrativeQA, though the merged model still beats every retrieval baseline.
For domain knowledge bases this is a serious alternative to RAG: compile a static corpus into a model once, get noise immunity, corpus-size-independent query cost, and compatibility with any closed-source API. It fits corpora that change rarely and get queried heavily, such as enterprise document QA or long-form content understanding. It does not replace RAG on dynamic corpora; updates currently go through merging, which loses real accuracy.
The authors list training cost, evaluation scope, and whether memory capacity scales with corpus size. A few more caveats after reading: the main table reports the best training epoch, which amounts to model selection on the test metric. The corpora are tiny by production standards, at most 5,296 documents; whether a 14B model can hold a million-document corpus is untested. Synthesis requires running a 32B model over the whole corpus, a cost the paper never tallies. The Cartridges baseline scores 0.00 on BrowseComp-Plus, which looks like an integration failure rather than a true capability number. And the multi-turn protocol means several memory-model calls per query; latency and token overhead are not reported.