Open Interpretability Models Contributors Research Posts About

Recursive Language Models

Source

Citation. Alex L. Zhang, Tim Kraska and Omar Khattab (MIT CSAIL). "Recursive Language Models". arXiv 2512.24601v3, 11 May 2026 (v1 31 December 2025). Paper, code.

Status. Not applicable. It is a preprint on an inference scaffold for long prompts, with no venue given. It has no interpretability content: no activation, probe, feature or neuron analysis. The paper names a fine-tuned model, RLM-Qwen3-8B, but doesn't say where its weights are.

Read. A text extraction of the v3 PDF (43 pages), including all appendices, on 2026-11-11. The figures are images, so the numbers below come from the text and the tables. The results of the fine-tuning and length-generalisation runs (Figure 3) are in figures only. The code was not read.

Summary

Claim. A long prompt should not go into the model's context. It should go into an environment that the model reads with code, and the code can call the model again on parts of the prompt. With this scaffold, existing models handle inputs beyond their context window and do better than other scaffolds on dense long-context tasks, at a similar cost.

Method.

Findings, as the paper reports them. GPT-5 rows from Table 1. Each cell is a score (%), from one run.

Method CodeQA BrowseComp+ (1K) OOLONG OOLONG-Pairs (F1)
Base model 24.0 0.0 (input too long) 44.0 0.1
CodeAct + sub-calls 24.0 0.0 (input too long) 40.0 28.4
Compaction agent 58.0 70.5 46.0 0.1
OpenCode + offloading 64.0 94.0 52.0 4.8
Claude Code + offloading (Opus 4.1) 62.0 84.0 48.0 6.5
RLM, depth 0 58.0 88.0 36.0 43.9
RLM, depth 1 62.0 91.3 56.0 58.0
RLM, depth 2 66.0 92.0 56.5 65.5
RLM, depth 3 58.0 92.0 58.0 76.0

Other results, as reported:

Where the claims go beyond the evidence

These are our observations, not the paper's. The code may answer some of them.

Use in this repo

Not applicable as a method. The repo explains native units of pretrained models, and its verdicts come from probes run on a pinned model revision (docs/PROTOCOL.md). The paper studies a scaffold around a model and doesn't look inside any model.

Our agents' inputs are short. Proposer prompts are about 15k tokens and reviewer prompts less (TODO.md, Performance). A judge prompt holds about 50 windows of 32 tokens (docs/PROTOCOL.md §4, Windows). The paper's own Figure 1 says the RLM "consistently" beats base GPT-5 only above 2^14 (16K) tokens. Below that, its data gives no reason to add the scaffold, and sub-calls would add cost and the failure modes of Appendix B.

The proposer already offloads its large input. The full scan evidence, about 500 KB, is in a JSON file next to the proposer prompt. The proposer has Bash and reads that file only when it needs per-token activations (.claude/agents/neuron-proposer.md). This is the paper's depth-0 design, a handle to the data and no copy in the context. It agrees with the paper's Observation 2 that the offloading, not the recursion, does most of the work on long inputs. Nothing here needs to change.

What doesn't carry over. Recursive sub-calls, answers built in a REPL variable and the RLM fine-tuning recipe are inference and training details for long inputs. The repo doesn't train agents, and no agent here reads an input near a context limit. The one known context problem is a provider limit on long /loop sessions (TODO.md, Pipeline, DeepSeek and CLAUDE_CODE_AUTO_COMPACT_WINDOW). That is the history of a session, not one long prompt, and an RLM would not change it. Context Language Models uses RLM as a baseline for agent context management.