WhoBuilt

It’s Tokens All The Way Down: How RLMs are Different

Sep 9, 2026· 21 min· 10K views·Watch on YouTube

Speaker

Kevin Madura of consulting firm AlixPartners explains recursive language models (RLMs) at AI Engineer.

What makes an RLM different

An RLM treats input context as an object in an environment, usually a Python REPL, where the model can inspect and compute over it. It can also delegate subtasks to another language model, including a copy of itself, and recursively break down work.

Why use an RLM

Madura describes a setup with a defined task and typed inputs and outputs, while the model decides how to carry out the work. Context stays in the REPL, so the main model can retrieve relevant parts or delegate analysis instead of filling its window with the full input. He contrasts this with RAG, agents, and tool calls that pass strings back and forth.

Where RLMs fit and how they perform

Madura recommends considering RLMs for large or dense inputs, decomposable tasks, long sessions, and potentially very large outputs. He cites a Long Chain of Thought benchmark result that rose from 2.6% to 45.4%, with stronger results on tasks such as logic puzzles, chess, and chemistry. He says RLMs may be a poor fit when the task fits in context, latency matters, or the model is already a strong coder.

Working with data and real-world examples

Madura demonstrates an RLM analyzing three data frames for cohort retention, writing and running code in a REPL, and returning typed findings and recommendations. He also describes using RLMs to process invoices and other long documents, inspect agent traces, analyze logs, and generate a security report from about 500,000 lines of code. He names Predict RLM, DSPy, Ax, Fast RLM, and Halo as projects or frameworks related to this work.

A future with RLM-aware models

Madura sees the main opportunity in models that are post-trained to use RLM methods natively. He expects that could let users specify objectives and desired outputs while models handle more of the intermediate process.

Takeaways

  • Keep large inputs in an environment the model can inspect and compute over, rather than sending the full content into its context window.
  • Use submodel calls to split work that can be handled in independent pieces, then return relevant results to the main model.
  • Define task inputs and outputs clearly so the model has room to choose its approach while results remain structured.
  • Consider latency and task size before choosing an RLM; simpler in-context tasks may not need one.
  • Compare RLMs with coding agents and tool-based pipelines on your own workloads, since Madura notes that some of his comparisons were preliminary.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks