NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Recursive Language Models

Alex Zhang, Tim Kraska, Omar Khattab

NeurIPS page · OpenReview · Open on the map

Category: LLM Reasoning, Memory & RAG › Efficient Chain-of-Thought Optimization · Type: new method · Keywords: recursive language models, long-context inference, LLM scaling, prompt decomposition, benchmark evaluation

Areas: LLM Reasoning › Efficient Reasoning › Efficient Reasoning; Long Context › Long-context mechanisms › Long-context reasoning

Summary

Recursive Language Models (RLM) enable large language models to process arbitrarily long prompts by recursively calling themselves over prompt snippets, achieving over ten times longer context handling and significant quality improvements over baseline models.

Explained to a 5-year-old

A big computer brain can only remember a short story at once. This new idea lets the brain read a very long story by breaking it into small pieces and thinking about each piece one after another. It does this by asking itself to look at a part, understand it, and then call itself again for the next part. This way, the brain can understand stories that are much longer than before. It helps the brain stay accurate while using about the same amount of computer power.

Explained to a 5-year-old, longer

Imagine you have a toy robot that can only hold a few words in its memory at a time. If you give it a super long story, it would forget the beginning before it gets to the end. The researchers gave this robot a new trick: they told it to read a tiny piece of the story, understand that piece, and then ask itself to read the next tiny piece. The robot keeps doing this, moving step by step through the whole story, so it never forgets anything important. This method lets the robot handle stories that are more than ten times longer than before, and it gets the story much right compared to other robots that just read the whole thing at once. The researchers also built a small version of this robot, called RLM-Qwen3-8B, which works even better than the original robot on many long-story tasks. This new way of thinking about long stories helps computers understand longer texts without needing a huge amount of extra power.

For a technical reader

The work introduces a recursive inference paradigm that treats long prompts as an external environment, allowing the model to decompose and self-call over prompt segments. This enables processing inputs far beyond the original context window while preserving computational cost. Empirical results show median gains of 26% over GPT-5, 130% over CodeAct, and 13% over Claude Code on long-context benchmarks. A post-trained model (RLM-Qwen3-8B) further improves performance over the base Qwen3-8B by 28% on three tasks.

Problem

Large language models are limited by fixed context windows, making it difficult to process arbitrarily long prompts. This paper addresses how to extend effective context handling without simply increasing model size.

Method

The approach treats long prompts as an external environment, allowing the model to examine, decompose, and recursively invoke itself over parts of the prompt. This recursive inference paradigm enables processing of inputs far beyond the original context window while maintaining comparable computational cost.

Results

The recursive inference approach processes inputs over ten times longer than the original context window and improves quality by a median of 26% over GPT-5, 130% over CodeAct, and 13% over Claude Code on long-context tasks, while matching cost. The recursively-inferred model also outperforms the base Qwen3-8B by 28% on three long-context tasks.

Contributions

It introduces a general inference paradigm that enables LLMs to handle arbitrarily long prompts via recursive self-calls and demonstrates substantial gains on long-context benchmarks. It also releases the first post-trained model that achieves near-baseline performance on these tasks.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction