Wink Pings

MIT Trained the Connection RAG Misses Into the Model Weights

RAG's retriever selects passages by similarity, and during cross-document reasoning it often misses connective facts. MeMo from MIT and NUS trains this kind of knowledge in advance into a separate small model while keeping the main LLM frozen. What does it fill in, and what new problems does it leave behind?

RAG has a problem that isn't often discussed openly. The retriever selects passages based on text similarity, and the model only sees the chunks that were selected. When the answer is concentrated in one place, this pipeline works fine. But many real questions require stitching together facts from several documents, and the information that connects them often looks almost unrelated to the question itself. The retriever skips it outright, and the model writes an answer with a gap.

A new paper from MIT and NUS wants to take a different route. The paper is called MeMo, Memory as a Model, and its authors are Ryan Wei Heng Quek and eight others. The approach isn't complicated: instead of having the retriever look for those connections at query time, it learns them into a separate small model during training.

Three steps:

  • Use an LLM to turn documents into question-answer pairs, including cross-document ones where clues from several documents point to the same entity
  • Fine-tune a small memory model on these QA pairs; the model never sees the original documents from beginning to end, and all the knowledge is compressed into its weights
  • At query time the main LLM stays unchanged; it decomposes the question into sub-questions to ask the memory model, gets short answers, and then writes the final answer itself

The connections are fixed during training and do not need to be assembled again at query time.

The paper lists several advantages: it can capture cross-document relationships, tolerate retrieval noise, avoid catastrophic forgetting in the main model, and does not require the main LLM's weights or output logits, so closed-source models can also be connected; inference cost does not grow with corpus size. On three benchmarks—BrowseComp-Plus, NarrativeQA, and MuSiQue—it performs better than a very strong graph-structured RAG approach.

But Akshay also says in the tweet that it does not replace RAG. Training the memory model requires real compute, and new data means retraining, so it suits knowledge that changes infrequently. A reasonable combination is: stable, densely interrelated knowledge, such as legal archives or reference documents, goes into the memory model; fresh data continues to go through retrieval.

The questions in the comments are more worth reading than the paper abstract. Someone points out that every online document change would trigger a retraining, rather than a 10-millisecond update at the index level, so dynamic scenarios would immediately get stuck. Someone asks: if the generated QA pairs contain hallucinated links, who checks them before training, and once erroneous connections enter the weights, they are very hard to dig out. Someone asks even more directly: if you put the same cross-document QA pairs into the index, what exactly does training a second model buy you? If there are only 50 QA pairs, who is more likely to make things up, MeMo or RAG?

These questions were not answered in the tweet.

Akshay himself previously wrote an article discussing RAG, arguing for replacing raw chunks with structured QA blocks that carry sources and versions, using semantic deduplication to shrink the corpus, and solving retrieval quality at the index layer. The benchmark he mentions comes from Blockify, a preprocessing layer: 2,042 chunks were deduplicated to 1,200, the word count dropped from 88,877 to 44,537, the average cosine distance from query to best chunk dropped from 0.3624 to 0.1585, and vector accuracy improved by 13.55%. That line of thinking is similar to MeMo's QA-pair unit; the difference is that one puts knowledge in an updatable index, while the other compresses it into model weights.

There is another contrasting route in the comments. Someone building an AI CFO product skips the embedding pipeline and lets the agent write markdown files directly, retrieving with grep. Letta tested a similar approach on LoCoMo: a score of 74%, higher than Mem0's graph structure at 68.5%. The logic is that LLMs have seen so many file operations during pretraining that giving them a filesystem and a shell is more natural than giving them a pile of custom tools. This does not conflict with MeMo; they address problems at different layers.

Back to MeMo. What is interesting is that it moves the question of 'where should knowledge live' from the retrieval layer to the training layer. The cost is also clear: the update cycle for knowledge goes from seconds at the index level to hours for retraining. It suits stable documents, not live data. The paper does not avoid this point, and neither do the comments.

A more practical question might be: when you decide which knowledge to put into the memory model, you are actually making an architectural commitment—that this batch of knowledge will not change much for a period of time. Whether this commitment is worth it depends on how quiet your corpus is.

发布时间: 2026-11-29 09:45