- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 2
- Quality
- 3
- Significance
- 3
Read review
Summary
The paper introduces Recursive Language Models (RLMs), which are a general inference paradigm that treats an arbitrarily long input prompt as an external environment rather than feeding it directly into the model's context window. The prompt is stored as a variant in a REPL environment; write code that peeks into, decomposes, and recursively invokes the underlying model over programmatic snippets of the variable, addressing three flaws in base models: lack of symbolic handle, direct generation of the output, and lack of symbolic recursion. RLMs are evaluated with GPT-5 and Qwen3-Coder-480B and show a median 28% performance improvement across four tasks compared with the base model, CodeAct, Compaction agent, and OpenCode.
Strengths and weaknesses
Strengths
- The central idea is clean and well-motivated: The adopted symbolic approach to programmatically handle long context is interesting and reasonable for handling long context tasks. The results shown in Figure 1 about performance over input context length provide clear motivations for recursive language models.
- Ablation on recursion depth with API cost is interesting: results report on recursion depth along with API cost provide a more complete story on the design of RLM from the perspectives of model design and efficiency.
- Good experiment results on given models and tasks: Out of all benchmarks and baselines, RLM is almost always the best performing approach.
- Promising training direction: The insight regarding an effective sub-call model, which resembles general reasoning, makes small-scale training tractable and is promising.
Weaknesses
- Unsure about where the gain comes from: no baseline combines full-rpompt offloading with programmatic sub-call dispatch, so the RLM's advantage could come from the conjunction, from offloading alone, or from better allocation of compute budget. No abolition studies have been conducted to disentangle the performance gain.
- Somewhat overclaim of new paradigm: the mechanism is an elegant composition of existing pieces to tackle real-world applications. The claim of proposing a new paradigm is still somewhat overstated.
- Inference latency is not reported: The paper didn't include the results on inference latency of RLM compared with baselines. How does latency scale with context length and task complexity?
- API cost scalability: The API cost doubled frequently with increasing recursion depth. How costly is the framework with increasing recursion depth and context length?
- RLM varied performance across two base models. The base model performance in Table 1 for GPT-5 and Qwen3-Coder-480B-A35B is similar, while RLM performance on the two models shows a large gap. For example, on OOLONG-Pairs, both GPT-5 and Qwen3-Coder-480B-A35B have 0.1 for Base Model, while GPT-5 + RLM has 76.0, versus Qwen3-Coder-480B-A35B + RLM has 23.1. Similar to BrowseComp+ and OOLONG. Any intuition behind why the performance of RLM differs this much? Since RLM performance varies dramatically across the two base models, a third base model should be considered to show model-agnostic
Questions
Refer to weaknesses
Limitations
yes
Paper formatting concerns
no
Final justification
My concerns during rebuttal, including ablation control, conceptual novelty, and cost scaling, are mostly addressed. One remaining concern is the ablation of additional model families, as task performance varies across existing model families and is particularly strong for GPT-5. I lean towards acceptance, giving the remaining concern.
We thank the reviewer for taking the time to read our paper and provide feedback, and appreciate you commending the RLM idea as elegant and well-motivated with strong experiments and ablations. We answer your questions below, which will help us improve the clarity of our discussion of RLMs.
We agree that ablating RLM components is important for disentangling performance gain. Table 1 contains several baselines that explicitly ablate full prompt offloading and programmatic sub-calling:
All three baselines show clear gaps in performance and explain how these features help the RLM. CodeAct + subagents struggle on BrowseComp-Plus and OOLONG because of the sparsity of the huge amount of context, but perform well on OOLONG-Pairs compared to methods that do not have sub-agents or use sub-agent tools. Meanwhile, OpenCode / Claude Code with offloading perform well on search, but perform poorly on OOLONG-Pairs, because of their inability to use programmatic sub-agent calling to act over their sub-call outputs as variables. We do not enforce a compute budget, but show in Table 1 the cost of each method on each environment.
We are happy to use some alternative terminology, e.g. to “a new inference strategy”, if the reviewer deems this important for this paper.
We nonetheless appreciate the reviewer’s take on RLMs as an “elegant composition of existing pieces to tackle real-world applications”. We believe that the best ideas in machine learning (from ResNets or the Transformer to CoT reasoning models and ReAct agents) are elegant compositions of existing pieces that advance real-world capabilities, and we aspire to that same standard. Our goal is to show that, with the right novel inference-time scaling axis, even existing models can dramatically improve their ability to process much longer user prompts than originally assumed.
We discuss inference latency results in Observation 4 (page 7) in the main paper, which references the plots in Appendix F. Figures 12 and 13 showed the runtime quartiles (i.e., inference latency) of several baselines and the RLM across the tasks in Table 1. We are happy to move much of this analysis and include more fine-grained inference latency plots to the main paper, if our work is accepted.
We also note in the paper that, because we do not optimize for latency and keep sub-calls sequential, the API cost of the model is generally proportional to the runtime. Figures 14, 15, and 16 reflect how token cost as a proxy for latency scales with context length and task complexity. However, we also note the addition of the
llm_batch()module used in the LongCoT-mini experiments, which parallelizes sub-calls and reduces the overall latency in a way that we expect can be applied in RLMs going forward.When studying Table 1, we cannot see that a pattern that the average API cost doubles when increasing recursion depth. For example, on OOLONG-Pairs RLM(GPT-5) goes from 0.69 USD at depth=0, to ~0.33 USD at depth=1-3. There are a few isolated cases where the cost increases by a sizable amount, but on the whole, depth=3 for example is roughly the same cost or even cheaper than depth=2 on average in our experiments. Even between depth=0 and depth=1, the difference is highly variable.
This is because the RLM dynamically chooses strategies for the task, making it difficult to estimate the effect of increased recursion depth. We include in Figure 16 how the cost of the RLM changes with respect to context length (from Figure 1), and it is roughly a function of both context length and task complexity (e.g. S-NIAH stays roughly constant, OOLONG is linear, and OOLONG-Pairs is quadratic).
This is a great point to help us explain in future revisions that, experimentally, there is no direct connection between a model’s inability to solve a task with its ability to use a harness to solve that task. A model that is stronger at, say, writing code or writing recursive prompts will be a stronger RLM even if its long-context performance is bounded. We view this as a great power of RLMs, which means that making progress on the ability of models to reason and generate recursive code can largely achieve big improvements in long-context processing (via the RLM inference strategy).
To provide intuition and analysis on why GPT-5 performs better as an RLM, we refer to Figure 4(b) and Section 5 as a whole. To summarize, we find that the Qwen3-Coder model makes significantly more mistakes in following the RLM harness constraints, and also often making formatting or syntax errors when using the persistent REPL environment across turns. We also include traces in Appendix F.1 to support and compare how these models solve problems.
We thank the reviewer for taking the time to provide feedback, and we are happy to answer any follow-up or additional questions.
References
[1] Yao et al., "ReAct: Synergizing Reasoning and Acting in Language Models," ICLR 2023, Oct 2022.
[2] Wang et al., "Executable Code Actions Elicit Better LLM Agents", ICML 2024, Feb 2024.