# What If AI Didn't Need RAG? Understanding MeMo: Memory as a Model

Imagine an AI system that doesn't need to search through thousands of documents, generate embeddings, or maintain a vector database to answer questions about your private data.

Instead, it simply talks to another AI that has already learned everything it could from those documents.

Sounds interesting, right?

In May 2026, researchers from MIT CSAIL, the National University of Singapore, and other institutions introduced a research paper called **MeMo: Memory as a Model**.

The paper explores a fundamentally different approach to providing external knowledge to large language models (LLMs), without modifying the main LLM or relying on traditional retrieval pipelines during inference.

But before diving into the technical details, let's understand it the caveman way.

## 1\. The Problem: Smart Caveman Doesn't Know Everything

Imagine a village with a very intelligent caveman.

He is exceptionally good at solving problems, understanding questions, making decisions, and connecting different ideas.

But there is one problem.

**He doesn't know everything happening in the village.**

He doesn't know how much food was collected yesterday, which tribe lives near the river, or where the villagers stored their weapons.

This caveman represents our modern large language models, such as GPT, Claude, and Gemini.

They are incredibly intelligent, but their knowledge is limited by their training data and the information we provide to them.

So, how do we give our smart caveman new knowledge?

Traditionally, we have two popular approaches.

### Approach 1: Fine-tuning — Teach the Caveman

We collect all the village information and teach it directly to the smart caveman.

Now, he knows more about the village.

But teaching him takes time, requires resources, and may interfere with things he already knows.

In AI engineering, this represents fine-tuning the model to incorporate new knowledge.

It also becomes difficult when we use proprietary models whose weights we cannot access.

### Approach 2: RAG — Give the Caveman a Library

Instead of teaching the caveman everything, we build a library containing all the village information.

Whenever someone asks him a question:

1. He searches the library.
2. He finds relevant books.
3. He reads selected pages.
4. He combines the information.
5. He provides an answer.

This is essentially **Retrieval-Augmented Generation (RAG)**.

In a typical vector-based RAG system, the library is our vector database, the books are our documents, and the pages are our document chunks.

A traditional RAG pipeline looks something like this:

**Indexing:**

Documents → Chunking → Embeddings → Vector database

**Inference:**

User question → Retrieve relevant chunks → LLM → Answer

This approach works remarkably well. It has become one of the most widely used architectures for building knowledge-based AI applications.

But it has limitations.

What if the library contains thousands of similar books? What if the answer requires connecting information from five different books? What if the librarian retrieves the wrong pages?

Even a highly intelligent caveman can struggle when given incomplete or irrelevant information.

## 2\. MeMo: What If We Introduce Another Caveman?

Instead of making the smart caveman search through the library every time, imagine introducing a second caveman.

This new caveman has one primary responsibility: **learning and remembering information about the village.**

We teach him about every tribe, every river, every food storage facility, and the relationships between them.

Now, whenever someone asks the smart caveman a question, he simply talks to the memory caveman.

The smart caveman focuses on reasoning.

The memory caveman focuses on knowledge.

Neither needs to perform both responsibilities.

This is the fundamental idea behind **MeMo — Memory as a Model.**

Rather than keeping external knowledge exclusively inside a searchable database, MeMo encodes that knowledge into a dedicated neural network.

The main LLM remains unchanged and communicates with the Memory model through natural language.

**The library becomes a knowledgeable assistant.**

![](https://cdn.hashnode.com/uploads/covers/67878f19cf0699455cef774d/022a666e-ecf9-4a7e-adab-234eccb29327.png align="center")

## 3\. The Three Brains Behind MeMo

MeMo introduces three distinct model roles, each with a specific responsibility.

| Model | Caveman analogy | Responsibility |
| --- | --- | --- |
| Generator Model | The teacher | Converts documents into learning material |
| Memory Model | The knowledgeable caveman | Learns domain-specific facts and relationships |
| Executive Model | The smart caveman | Asks questions, reasons, and produces the final answer |

The Generator model prepares the knowledge.

The Memory model learns the knowledge.

The Executive model uses the knowledge.

![](https://cdn.hashnode.com/uploads/covers/67878f19cf0699455cef774d/6643d55b-b2ef-4ce0-8115-10b4b624cb25.png align="center")

An important architectural decision here is that the Executive model does not need to be retrained. It doesn't even need to share the same architecture as the Memory model.

The two models communicate using ordinary text.

That makes the system compatible with both open-weight models and proprietary LLM APIs.

## 4\. How Do We Train the Memory Caveman?

You might think that training the Memory model simply involves feeding it thousands of documents.

But MeMo takes a more structured approach.

Imagine giving a student an entire textbook and asking them to memorize it.

Now imagine giving the same student carefully prepared questions, answers, summaries, and exercises that connect different chapters.

The second approach gives the student more opportunities to learn how individual pieces of information relate to each other.

MeMo follows a similar principle.

### Step 1: Extract the knowledge

Suppose we have three fictional enterprise documents.

**Document A:** Toyota purchases brake components from ABC Industries.

**Document B:** ABC Industries operates a manufacturing facility in Pune.

**Document C:** The Pune manufacturing facility produces 50,000 components per month.

Individually, these documents contain simple facts.

Together, they contain more valuable knowledge.

### Step 2: Generate learning material

A Generator LLM transforms the documents into question-answer pairs, which the researchers call *reflections*.

For example:

**Question:** Who supplies brake components to Toyota?

**Answer:** ABC Industries.

**Question:** Where is the manufacturing facility of ABC Industries located?

**Answer:** Pune.

**Question:** What is the monthly production capacity of Toyota's brake component supplier's Pune facility?

**Answer:** 50,000 components.

Notice what happened in the third question.

The answer requires connecting information distributed across multiple documents.

Instead of learning only isolated facts, the Memory model is also trained to learn relationships between those facts.

### Step 3: Train the Memory model

The generated question-answer pairs are used to fine-tune a dedicated language model through supervised fine-tuning (SFT).

The complete conceptual pipeline looks like this:

Documents → Knowledge extraction → Question-answer generation → Supervised fine-tuning → Memory model

![](https://cdn.hashnode.com/uploads/covers/67878f19cf0699455cef774d/a7cc8054-c932-41a9-9924-6853fea64be5.png align="center")

The resulting Memory model represents knowledge through its learned parameters rather than through a conventional document index.

This is the key difference between MeMo and RAG.

**RAG retrieves stored information. MeMo recalls learned information.**

However, learned knowledge is not equivalent to lossless storage. The Memory model is not guaranteed to reproduce every fact from the original documents.

## 5\. How Does MeMo Answer a Question?

Now comes the interesting part.

Suppose a user asks:

> What is the monthly production capacity of Toyota's brake component supplier in Pune?

Instead of retrieving document chunks, the Executive model begins a conversation with the Memory model.

Think of it as a detective questioning a knowledgeable witness.

### Stage 1: Grounding — Find the Clues

**Executive:** Who supplies brake components to Toyota?

**Memory:** ABC Industries.

The Executive model breaks down the original question and gathers relevant information.

### Stage 2: Entity Identification — Identify the Subject

**Executive:** Does ABC Industries operate a manufacturing facility in Pune?

**Memory:** Yes, ABC Industries has a manufacturing facility in Pune.

The Executive model attempts to establish which entity the question is referring to.

### Stage 3: Answer Seeking — Collect the Missing Facts

**Executive:** What is the monthly production capacity of that manufacturing facility?

**Memory:** 50,000 components per month.

The Executive model now has the information required to produce its final response.

**Final answer:**

ABC Industries, Toyota's brake component supplier, produces 50,000 components per month at its Pune manufacturing facility.

![](https://cdn.hashnode.com/uploads/covers/67878f19cf0699455cef774d/ee69e7f7-69ec-490c-812c-3ceb9e2c48cf.png align="center")

There was no vector database lookup, no similarity search, and no need to insert the original documents into the Executive model's prompt.

Only communication between two language models.

This is a simplified illustration. The actual research implements three stages that can involve multiple interactions, rather than exactly three model calls.

## 6\. What Makes This Architecture Interesting?

The most interesting aspect of MeMo is not simply the absence of a vector database.

It is the **separation of knowledge and reasoning into independently maintainable components.**

Consider how we currently build software.

We separate frontend from backend, application logic from data storage, and infrastructure from business logic.

MeMo explores a similar separation within AI systems.

The Executive model becomes responsible for reasoning, while the Memory model becomes responsible for domain knowledge.

This creates some interesting possibilities.

### Upgrade intelligence without retraining knowledge

Imagine that you have trained a Memory model on your company's engineering documentation.

Today, you connect it to Gemini. Tomorrow, a more capable reasoning model becomes available.

You could potentially replace the Executive model without retraining the entire Memory model.

### Handle complex relationships

Traditional retrieval systems must locate the appropriate evidence before an LLM can reason about it.

MeMo attempts to learn relationships during training itself.

This could be especially useful when working with research papers, engineering documentation, books, legal documents, or interconnected organizational knowledge.

### Reduce dependence on retrieval quality

A traditional RAG system can fail because the retrieval pipeline selects irrelevant documents.

MeMo avoids this particular failure mode because it doesn't search through a document index during inference.

Of course, it introduces a different failure mode: the Memory model itself may recall incorrect information.

## 7\. Does MeMo Actually Perform Better Than RAG?

An interesting architecture is not enough. It must also demonstrate meaningful results.

The researchers evaluated MeMo against several existing approaches using three benchmarks:

- **BrowseComp-Plus:** Research and reasoning across multiple documents.
- **NarrativeQA:** Understanding information spread across long narratives.
- **MuSiQue:** Answering questions that require multiple reasoning steps.

The following results are reported in Table 2 of the paper, using Gemini 3 Flash as the Executive model.

| Method | BrowseComp-Plus | NarrativeQA | MuSiQue |
| --- | --: | --: | --: |
| Vector RAG (NV-Embed-V2) | 57.00% | 26.62% | 46.60% |
| HippoRAG2 | 66.33% | 23.21% | 57.00% |
| **MeMo** | **66.67%** | **53.58%** | **60.20%** |
| Perfect Retrieval | 88.33% | 60.41% | 73.00% |

The most interesting result comes from NarrativeQA.

MeMo achieved **53.58% accuracy**, compared with **26.62%** for the vector-based retrieval baseline.

That is approximately twice the accuracy in this particular experiment.

It suggests that encoding relationships during training can be valuable when dealing with long, interconnected information.

However, there is an important detail: when the Executive model was provided with the correct evidence documents directly, it still outperformed MeMo across all three benchmarks.

These results are promising, but they do not establish that MeMo is universally better than RAG.

## 8\. RAG vs. MeMo: An Engineering Perspective

Both architectures solve the problem of providing external knowledge to an AI system, but they approach it differently.

![](https://cdn.hashnode.com/uploads/covers/67878f19cf0699455cef774d/8d1b3921-a5b6-4a3d-80c9-3742f534da6f.png align="center")

| Characteristic | Traditional Vector RAG | MeMo |
| --- | --- | --- |
| Knowledge representation | Documents and embeddings | Neural network parameters |
| Vector database | Typically required | Not required during inference |
| Initial model training | Not typically required | Required for Memory model |
| Main LLM modification | Not required | Not required |
| Adding new information | Index new documents | Additional training or model merging |
| Source citations | Relatively straightforward | More difficult |
| Exact information retrieval | Depends on retrieved evidence | Depends on learned recall |
| Cross-document relationships | Constructed through retrieval and reasoning | Can also be learned during training |
| Upfront computational cost | Generally lower | Potentially substantial |
| Knowledge capacity | Expandable external storage | Constrained by model capacity |

Neither architecture eliminates the problem of hallucination.

They simply introduce different mechanisms for accessing knowledge, along with different engineering trade-offs.

## 9\. The Catch: Why MeMo Hasn't Replaced RAG

Remember our memory caveman?

Teaching him everything about the village sounds great until we realize that the village changes every day.

New tribes arrive. Food supplies change. Buildings are constructed. Old information becomes incorrect.

With a library, we can simply replace an outdated book.

With a memory caveman, we need to teach him again.

MeMo faces a similar challenge.

### Training is expensive

For the NarrativeQA experiment, the researchers report approximately 200 GPU-hours for training data generation and another 150 GPU-hours for Memory model training, using NVIDIA H200 GPUs.

The architecture shifts part of the computational burden from information retrieval to knowledge preparation and training.

### Updating knowledge is harder

Adding a document to a vector database is relatively straightforward.

Updating knowledge encoded in a model's parameters is more complicated. The researchers explore model merging as a potential solution, but their experiments also demonstrate an accuracy trade-off.

### Memory is not a database

A language model does not guarantee exact, lossless storage.

It can forget facts, confuse entities, or generate incorrect information.

This is particularly important for applications involving financial records, inventory quantities, medical information, and other data where precision matters.

### Source verification becomes difficult

In RAG, we can usually show the original document that supports an answer.

In MeMo, information comes from learned model parameters, making it harder to establish where a particular fact originated.

### Inference still has a cost

While MeMo removes traditional retrieval infrastructure from inference, it introduces communication between language models.

Multiple rounds of questioning consume tokens, computational resources, and time.

No vector database does not automatically mean lower latency or cheaper inference.

## 10\. What Could We Build Using MeMo?

Imagine an enterprise AI platform where every department has its own specialized Memory model.

- An Engineering Memory model trained on technical documentation.
- A Finance Memory model trained on historical financial policies.
- An HR Memory model trained on organizational procedures.
- A Product Memory model trained on product specifications and historical decisions.

All these models could be connected to a shared Executive LLM.

Instead of building a single AI that attempts to know everything, we could build a network of specialized knowledge models that a reasoning system consults when necessary.

Each Memory model could potentially be versioned, evaluated, and deployed independently.

This is not an enterprise architecture validated by the research paper, but it is an interesting direction inspired by its design.

### Perhaps the Future Is Hybrid

Rather than completely replacing RAG, an interesting practical approach could be to combine both architectures.

**MeMo:** Long-term domain knowledge, historical context, and complex relationships.

**RAG:** Recent documents, precise facts, and verifiable source citations.

**Traditional databases and APIs:** Real-time information and exact structured records.

**Executive LLM:** Reasoning, orchestration, and final response generation.

Such a system could select the appropriate knowledge source depending on the nature of the question.

The goal wouldn't be to eliminate retrieval entirely, but to avoid relying on a single mechanism for every kind of knowledge.

## 11\. The Bigger Picture: Intelligence and Knowledge Are Different Things

Let's return to our cavemen one final time.

With fine-tuning, we teach the intelligent caveman new information.

With RAG, we give the intelligent caveman a library.

With MeMo, we give the intelligent caveman a knowledgeable assistant.

All three approaches address the same fundamental problem, but through different architectures.

What makes MeMo particularly interesting is the question it raises:

**Why should intelligence and knowledge always exist inside the same model?**

Perhaps future AI systems won't be built around one enormous model that knows everything.

Perhaps they will be built around powerful reasoning engines connected to specialized, independently maintained knowledge models.

MeMo is still a research framework with important limitations. It is not the death of RAG, nor is it a universal replacement for databases.

But it offers a different way to think about how AI systems acquire, retain, and access knowledge.

And sometimes, the most important innovation isn't making an existing component more powerful.

It's discovering that two responsibilities never needed to belong to the same component in the first place.

---

## References

**Research paper:** MeMo: Memory as a Model — Ryan Wei Heng Quek et al.

First submitted: May 14, 2026. Revised: May 20, 2026.

- [Original research paper — arXiv](https://arxiv.org/abs/2605.15156)
- [Full research paper — PDF](https://arxiv.org/pdf/2605.15156)
- [Official GitHub repository](https://github.com/arunv3rma/MeMo)
