How MIT Taught AI to Read Like a Human with Recursive Language Models (RLM)

Have you ever asked an AI to analyze a long report or a big document, only to get a summary that misses the most important details? It’s a common problem. Even the most powerful AIs today can get lost when you give them too much information at once. They start to ā€œforgetā€ key facts buried in the text, making their answers unreliable. This has been a major roadblock, forcing us to break large documents into smaller pieces and feed them to the AI one at a time.

But what if there was a smarter way? Imagine an AI that could read a massive document like a human researcher skimming for important sections, searching for keywords, and then diving deep to find the exact information it needs. That’s the revolutionary idea behind a new AI design from MIT called a Recursive Language Model (RLM), and it’s changing what’s possible with artificial intelligence.

From Reading Everything to Smart Investigation

Most AIs today work by trying to stuff as much information as possible into their short-term memory. The more you give them, the more diluted their attention becomes, and they start making mistakes. It’s like trying to drink from a firehouse; you’re bound to miss a lot.

RLMs take a completely different approach. Instead of just reading a document from start to finish, the AI acts like a detective investigating a case. It treats the document as a crime scene to be actively explored.

Here’s a simple breakdown of how it works:

  1. The Document Becomes a Searchable Space: The entire document is made available to the AI, but it doesn’t read it all at once. It’s more like having a huge library at its disposal.
  2. The AI Becomes a Problem-Solver: The main AI gets the user’s question (e.g., ā€œFind the total revenue in the financial reportā€). It then thinks about the best way to find the answer in the library.
  3. A Team of Helper AIs: The main AI can delegate smaller tasks to a team of ā€œhelperā€ AIs. For example, it might tell one helper to search for the word ā€œrevenue,ā€ another to find all the tables, and a third to read the summary section. It’s like a lead detective assigning different tasks to junior detectives.
  4. Putting the Clues Together: The main AI gathers all the reports from its helpers, pieces together the clues, and comes up with a final, accurate answer.

This clever process allows the AI to focus its brainpower on the most relevant parts of the document, rather than getting bogged down by unnecessary details. This diagram shows how the main AI works with its team of helpers:

Diagram illustrating a recursive language model architecture, showing user input, large context handling with over 10 million tokens, interaction with root and sub-language models, execution in a REPL environment, and the flow leading to the final answer.

By breaking down a big problem into smaller, manageable steps, the AI can solve incredibly complex questions that would stump other systems.

Flowchart illustrating a seven-step process for querying a language model, including loading context, receiving a query, generating Python code, searching context, calling sub-models, combining results, and finalizing the answer.

The Surprising Results: Smaller, Smarter, and Better

The most amazing part of the MIT research is that this new method works incredibly well. In a head-to-head challenge, an RLM using a smaller, less powerful AI model beat a much larger, more expensive model by over 114%.

Bar chart comparing OOLONG benchmark performance scores for GPT-5 (30.2 points), GPT-5-mini (20.3 points), and RLM(GPT-5-mini) (64.7 points), highlighting a 114% improvement for RLM over GPT-5.

This shows that a smarter approach is far more effective than just building a bigger AI. The RLM’s advantage grows even larger when dealing with enormous documents. While other AIs get confused and their performance drops, the RLM stays sharp, even when searching through the equivalent of 10 million pages of text.

Bar graph comparing performance percentages of Traditional LLMs and RLM across different context sizes (tokens), highlighting the issue of 'context rot' for Traditional LLMs at 5M tokens.

In one test that required finding information across more than 1,000 separate documents, the RLM found the correct answer every single time, while other methods failed.

Bar chart comparing accuracy percentages of different models on the BrowseComp-Plus Deep Research Task, showing the accuracy of GPT-5 (truncated) at 40%, GPT-5 + BM25 at 60%, ReAct + GPT-5 + BM25 at 80%, and RLM (GPT-5) at 100%.

See It for Yourself: A Fun, Hands-On Demo

To help everyone understand this technology, I built a web app that lets you see an RLM in action. The app gives the AI a classic ā€œneedle in a haystackā€ challenge: find a secret number hidden somewhere in a one milion of lines of text.

Screenshot of an RLM demo interface created by Lawrence Teixeira, showing input and execution log sections with configuration settings.

You can watch on the screen as the AI works through the problem, delegating tasks and narrowing down its search until it finds the hidden number. It’s a great way to see this new kind of AI thinking in real-time.

Why This Matters: More Power and Privacy for Everyone

This new approach does more than just improve performance. It gives more people access to powerful AI and helps solve some of the biggest problems with AI today.

  1. It solves the ā€œForgettingā€ Problem: The AI no longer gets lost in long documents.
  2. It Protects Your Privacy: Because this method is so efficient, it can run on your own computer. This means you can analyze sensitive financial or medical records without your data ever leaving your control.
  3. You’re in Charge: You don’t have to rely on big tech companies to use powerful AI. You can run it yourself, on your own terms.

For businesses, this is a game-changer. Imagine an AI that can review thousands of legal contracts for risks, or a programmer’s assistant that can find a single bug in millions of lines of code. These are the kinds of powerful tools that RLMs make possible.

What’s the limitation of RLM?

The main limitation of RLM is that its power comes with overhead and complexity. When the input is short and the task is simple, using the base model directly is often faster and more efficient, since RLM adds extra steps like environment interaction and recursive calls.

In its current form, RLM relies on synchronous, blocking submodel calls, which increase end-to-end latency and can slow responses. The paper also notes that system prompts are fixed and not tailored to different task types, leaving performance gains on the table.

Finally, letting the model write and execute code inside a REPL introduces real engineering challenges, especially around security isolation, safety, and predictable behavior.

In short, RLM is powerful for hard, large-scale problems, but it is heavier, slower, and more complex than standard models for simple tasks.

Read the Official Research Paper

If you want to dive deeper into the technical details behind Recursive Language Models, the MIT researchers have published their full findings in an official paper. You can read the complete research, including all the experiments and results, on arXiv:

Official Paper: Recursive Language Models – The full academic paper by Alex Zhang and the MIT CSAIL team.

Conclusion

Scaffolding to handle extremely long contexts is becoming increasingly important for LLMs, and context folding is a promising approach in this direction. We currently believe that the Recursive Language Model is the best method for context folding, due to its simplicity and, at the same time, great flexibility and extensibility. The future of AI isn’t just about raw power; it’s about intelligence, efficiency, and a new, recursive way of solving problems.

That’s it for today!

Sources

[1] Recursive Language Models (RLM): A New Paradigm for Retrieval-Augmented Language Modeling. (2026). Manus AI Internal Document.

[2] Zhang, A. (2025, October 15). Recursive Language Models. Alex L. Zhang.

[3] Kohli, V. (2026, January 8). Breaking the Context Window: How Recursive Language Models Handle Infinite Input. GetMaxim.ai.

[4] Gibbons, P. (2026, January 19). The MIT RLM: How to Build Powerful Sovereign AI at Home. Think Bigger Think Better.