Can model weights replace RAG? Not yet
Not yet. In a pre-registered test, facts written into a 2B model's weights lost to BM25 retrieval on every hypothesis. Retrieval stays the default.
Not yet. In a pre-registered test, facts written into a 2B model's weights lost to BM25 retrieval on every hypothesis. Retrieval stays the default.
Use RAG for knowledge and fine-tuning for behaviour. Most teams need retrieval, citations and structured outputs first; fine-tune only for a measured gap.
Use classic RAG when the evidence sits in one place; add an agent loop when it is spread across documents or needs tools. Most systems route between the two.
A recurring report. A slow review. A prototype that needs to work in the real world.
Not yet. In a pre-registered study on Qwen3.5 at 0.8 billion and 2 billion parameters, writing facts directly into a model's weights at test time lost to plain BM25 retrieval on every hypothesis we set before opening the test data. At 2B it trailed by 18.7 points on recalling an updated fact, trailed by 67.6 points on keeping the latest of several conflicting facts, and chipped away at the model's general ability. Retrieval stays the default for the Twin's memory.
The idea comes up every time someone suggests we should "just train the model on our data", and it's an active research question too, because newer open models mix attention with recurrent layers that update a fast internal state as they read. In Project Venus, our open-weight model research, I wanted to test whether that fast state, or a deliberate write into the weights while reading (often called fast-weight memory or test-time training), can actually replace a retrieval index for facts that change.
Key takeaways
Retrieval works, but it comes with moving parts. You chunk and index documents, choose a search method, tune how many passages to fetch, and pay for every retrieved token in the context window on every question. A model that simply knew the latest state of the business would skip all of that.
There were real reasons to think it might work. Knowledge-editing research, starting with ROME and MEMIT, showed that individual facts in a transformer sit in its feed-forward (MLP) layers and can be rewritten with a targeted update. Test-time training treats a layer's weights as a memory updated by gradient steps while the model reads. And recurrent layers like Gated DeltaNet (which Qwen3.5 pairs with attention) run a delta-rule update on a fast state at every token, a small learned memory wired into the architecture.
For a real company, though, the hard problem isn't a static encyclopaedia; it's a stream of updates. A supplier's terms shift, an account changes owner, a project moves stage. The question I wanted answered was whether a model can absorb that stream in its weights and answer current-value questions better than a system that fetches the relevant records at question time.
Memory experiments are notoriously easy to flatter. Tune a method on the questions you score it on, or compare against a weak baseline, and almost anything looks promising. When I set up this campaign, I tried to make fooling ourselves as hard as possible.
| Hypothesis | What it tests | Pass line |
|---|---|---|
| H1 overwrite | After updates, the model gives the latest value | At least 10 points above recency-aware retrieval |
| H2 propagation | After updates, multi-hop questions use the new fact | At least 10 points above vector retrieval, tested against hybrid (keyword plus vector) retrieval |
| H3 locality | Writing facts doesn't damage what the model already knew | General multiple-choice drop of 2 points or less; nearby-fact drop of 5 points or less |
The pass lines were deliberately demanding: a memory that merely matches retrieval isn't worth the operational cost of writing into weights.
Before pitting anything against retrieval, I checked whether the underlying mechanisms worked at all. Those early checks were more encouraging than the final verdict suggests.
The recurrent state is working memory, not storage. I wrote a reference implementation of the Gated DeltaNet layer from scratch and matched the library's Qwen3.5 implementation to within 1e-7 so we could reason about the state cleanly. Under one-hot keys it holds exactly 128 slots per head, and it decays. Useful inside a long document, useless as a durable store for a company's facts.
Facts can be addressed in the MLP layers. A capacity map of candidate write locations showed that keys built from the subject's tokens in an early MLP layer pick out the right fact among 1,024 with top-1 accuracy of at least 0.99, at both model sizes. Finding where a fact lives isn't the bottleneck.
Training-free writes failed. Closed-form ridge and Hebbian writes into the MLP's down-projection, in the style of recent in-place test-time training methods, added at most 2.8 points of exact recall over no memory.
A trained write worked. The method we call TTT-MEMIT takes each session's text, runs 25 optimiser steps on its own next-token loss to find value vectors at high-surprisal positions in an early layer's MLP output, then writes them into the down-projection with a whitened delta-rule update and MEMIT's covariance prior (which protects directions the model already relies on). On the development split it scored 61 to 79 points above no memory and preferred the latest value over the stale one. That's genuine in-weight memory.
A learned writer didn't. A small network trained end to end through a differentiable write (3,000 steps on about 10 million tokens at 0.8B) added just 0.6 and 1.9 points on its gate. So TTT-MEMIT went forward alone.
On the sealed test splits, TTT-MEMIT missed every pre-registered hypothesis at both model sizes. The chart below shows the 2B gaps against the pass lines it had to clear.
Here are the full 2B numbers behind those gaps:
| Task | No memory | TTT-MEMIT | Full context | BM25 RAG | Hybrid RAG |
|---|---|---|---|---|---|
| CounterFact exact recall (7,168 questions) | 0.013 | 0.687 | 0.861 | 0.874 | 0.882 |
| CounterFact paraphrased questions | 0.011 | 0.271 | 0.753 | 0.816 | 0.798 |
| CounterFact nearby facts (locality) | 0.254 | 0.178 | 0.316 | 0.368 | 0.375 |
| FactConsolidation, latest value (148 questions) | 0.142 | 0.034 | 0.320 (6k only) | 0.709 | 0.595 |
| MQuAKE multi-hop after edits (5,952 questions) | 0.019 | 0.044 | 0.109 | 0.075 | 0.118 |
Every arm uses the same Qwen3.5 2B reader. Retrieval arms are recency-aware. Scores here are rounded to three places; the differences quoted in the text and figure are paired means from the unrounded scores, so they can differ by 0.1 point from subtracting these figures (67.6 rather than 67.5 on FactConsolidation, 7.5 rather than 7.4 on MQuAKE). At 0.8B the picture is the same: CounterFact exact 0.607 against 0.899 for BM25, FactConsolidation 0.000 against 0.703, MQuAKE 0.036 against 0.126 for hybrid retrieval.
Three patterns jump out immediately.
Every fact written into weights shares the same parameters with every other fact. Each new write nudges earlier ones slightly out of shape, and the interference stacks up. A retrieval index has no such crowding: adding the thousandth record doesn't touch the first.
That curve is the strongest case against using weights for company data. Any real organisation holds far more than 1,024 facts, and they shift every day. A memory whose recall drops from 0.69 to 0.47 between 256 and 1,024 facts on the sealed test, before a single update arrives, would need a fundamentally different mechanism to be viable.
One system did, on one axis. As an exploratory arm outside the pre-registered hypotheses, we fed the same 2B reader from Tencent's Hy-Memory, a learned writer that turns sessions into discrete memory entries and then retrieves them. On multi-hop questions after updates it beat hybrid retrieval by 8.8 points (95% interval 7.6 to 10.0). Everywhere else it lost: paraphrased questions (−6.4), keeping the latest value (−10.8), and single-hop questions (−11.0).
Because it was exploratory it doesn't change the verdict, though the lesson is clear: the only method that helped multi-hop reasoning wasn't cramming facts into the reader's weights at all; it was writing better notes and retrieving them, which is just structured retrieval.
We rejected parametric fast-weight memory as a replacement for retrieval at 0.8B and 2B, and didn't run the conditional 4B point because the brief only opened it on a passing learned write path. Retrieval stays the default for memory in the Twin and in Project Venus.
What would reopen the question is concrete: a write path that generalises from stored text to paraphrased questions, tracks the latest value across repeated updates at realistic fact counts, stays inside the locality budgets, and beats recency-aware retrieval by the pre-registered margin on sealed splits. I've written down the candidate follow-ups (writes trained on self-generated questions, a band of MEMIT writes across several layers with AlphaEdit's null-space protection, and a hybrid that retrieves first), and we won't start any of them without a fresh case for it.
The work did sharpen our next question. A later review kept the rejection and asked something narrower: whether accumulated experience can improve what an agent chooses to investigate, retrieve, check and prioritise, rather than replacing the fact store itself. That line uses a native test-time-training reader (which passed its first parity gate in November) judged against notes plus retrieval rather than no memory. It's still in progress and makes no claim yet.
The study backs up a split we already make. Facts that change (balances, owners, statuses, dates) live as records in the Company Twin, with their sources, versions and access rules, and the model reads them at question time. What a model can usefully learn is how the business operates: its terminology, its policies and when to say it can't answer. We set out that split in who remembers the company.
There's a governance angle here too, separate from accuracy. A fact in a record can be cited, corrected, restricted to the right people, and deleted. A fact smeared across a layer's weights can do none of those things: you can't show its source, enforce one person's permissions on it, or prove it's gone. Even a far stronger in-weight memory would need an answer to that before touching company facts.
When someone proposes training a model on your data so it "knows" your facts, start by listing the questions it needs to answer and measuring a simple retrieval baseline first. BM25 over well-kept records is cheap, explainable and, as these numbers show, stubbornly hard to beat. If the gap is about behaviour (format, tone, policy, refusing when evidence is missing) rather than facts, fine-tuning might be the right tool. Our guide to fine-tuning and RAG sets out how to decide.
Testing any memory proposal
If you're weighing retrieval designs themselves, our comparison of RAG and agentic retrieval and our note on embeddings and keyword search pick up from here.
Your company's changing facts belong in versioned records, not smeared across model weights: the Company Twin keeps them cited, permissioned and readable by any model you run. See retrieval over governed records →
Further reading