NEURON VISION← All reviews

About this review

The model never reads the whole prompt. It lives in a Python REPL, and the model slices it with code and calls itself on small pieces.

Source: Recursive Language Models · arXiv 2512.24601

Transcript

Welcome. Today we review Recursive Language Models. The idea is to never show the model the haystack. A huge prompt is kept outside the model's context, as a variable in a Python session. The model reads slices of it with code, and calls itself on small pieces.

First, the problem. Longer prompts lead to worse thinking. With a monolithic context, the whole prompt sits in activation memory. Then comes context rot: reasoning degrades as the prompt grows, whatever the window size. The paper argues the real bottleneck is the monolithic window itself, not only the quadratic cost.

Here is the shift. The prompt becomes data, not tokens. The huge prompt P is just a string variable, alongside the query Q, inside a Python R E P L environment. The model sees only the prompt's length, its tools, and whatever it prints. The answer is built up in variables. This moves us from in-context learning to out-of-core inference.

Now recursion, a tree of calls. The root model inspects the prompt and plans a split. It then makes sub-calls with llm query, one for each chunk. Finally, a reduce step aggregates results in variables. A sub-call can go to the same model, or to a smaller, faster one.

What does the model actually do? Three operations. Inspect: print the first thousand characters. Decompose: use slices, regular expressions, or delimiters. Delegate: call llm query on a subset. The model acts as a controller, not a reader, and only sees the needles it mined by code.

State and output are explicit. Findings live in lists and dictionaries, a symbolic working memory, not hidden in attention heads. The reasoning is a readable trace, a log of code runs, which is transparent and debuggable. And long outputs work too, since answers are assembled in variables over many turns, beyond the maximum output tokens.

The framing is the language model as the kernel of a recursive operating system. Instead of probabilistic retrieval by attention, and compute tied to input length, you get deterministic, verifiable retrieval by code, and compute that scales with task complexity. The reviewer says he hopes he understood the paper correctly, so treat this as a careful reading of the method, not a verdict on its results.

To wrap up, three steps. Store outside: the prompt lives in the R E P L. Recurse: call the model on small slices. Aggregate: combine results in code. The takeaway: Recursive Language Models scale reasoning past the context window by treating the prompt as data and the model as a controller that divides and conquers.

Related reviews

Long context · Agents · Architecture

All reviews

Paper review · Recursive Language Models · arXiv 2512.24601

Never show the model the haystack

A Recursive Language Model keeps a huge prompt outside its context, as a variable in a Python REPL. It reads slices with code and calls itself on small pieces.

Root modelExternal promptSub-callsLimits
01 · The problem

Longer prompts, worse thinking

Monolithic contextthe whole prompt sits in activation memoryContext rotreasoning degrades as the prompt grows, whatever the window sizeThe paper argues the real bottleneck is the monolithic window, not only quadratic cost.
02 · The shift

The prompt becomes data, not tokens

Prompt Pa huge string variableQuery QREPL environmentPython sessionthe model sees: prompt length,the tools, and what it printsAnswerbuilt in variables

From in-context learning to out-of-core inference.

03 · Recursion

A tree of calls: map, then reduce

Root modelinspects P, plans a splitllm_querychunk 1llm_querychunk 2llm_querychunk 3Reduceaggregate in variables

The sub-call can go to the same model or a smaller, faster one.

04 · The operations

Controller, not reader

Inspectprint(P[:1000])Decomposeslices, regex, delimitersDelegatellm_query on a subsetThe model only sees the needles it mined by code.
05 · State and output

Explicit memory you can inspect

Symbolic working memoryfindings in lists and dictionaries, not hidden in attention headsA readable tracethe reasoning is a log of code runs: transparent and debuggableLong outputs tooanswers are assembled in variables over many turns, beyond the max output tokens
06 · The framing

The LLM as the kernel of a recursive OS

Instead of

  • Probabilistic retrieval by attention
  • Compute tied to input length

You get

  • Deterministic, verifiable retrieval by code
  • Compute that scales with task complexity
The reviewer opens with “I hope I’ve understood this paper correctly”, so treat this as a careful reading of the method, not a verdict on its results.