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