Reason

Reasoning, not retrieval.

A direct model reasons over the tokens in one prompt. A Recursive Language Model (RLM) keeps the complete input in an external environment and programs against it, bringing selected evidence into model calls.

LLM vs. RLM

Beyond one context window.

A traditional LLM loads evidence into its context window before it reasons. An RLM treats the input as a persistent object: the root model writes code to inspect, transform, and reduce it, then uses model attention only where semantic judgment is useful.

Traditional LLM
one prompt
question + selected input
Context window
Every token competes for the same attention
answer

Fast and effective when the relevant evidence fits comfortably and the route to an answer is straightforward.

ModelRelay RLM
programmatic analysis
question + external working set
root model writes code
filter
query
aggregate
llm_query
llm_batch
verify
answer + aggregate usage

Code does the reduction, while model attention is reserved for the slices that need judgment.

The execution loop

One run, four moving parts.

01 · Mount

Expose the working set

Use hosted context or a connected data source, or run a trusted connector in a private data plane.

02 · Plan

Let the root write code

The root model receives the question and a description of the working set, then writes code to decide what to inspect.

03 · Execute

Reduce and delegate

Code searches and transforms the full working set. Selected slices go to model calls when the task requires judgment.

04 · Return

Answer with evidence

Receive the answer, status updates, total usage, and a summary of the steps that ran.

When to use it

Use RLM when the answer depends on the whole input.

A direct call is still the fastest path for a focused request. RLM is for information-dense questions that require exploration, cross-referencing, calculation, and repeated judgment across a much larger working set.

Direct LLM

Use it when the relevant input fits, the task is conversational or generative, and latency matters most.

Search / RAG

Use it when the job is finding a few likely passages and a retriever can rank the right evidence.

ModelRelay RLM

Use it to explore, cross-reference, calculate, and synthesize across records, documents, databases, or codebases.

Published research

What the research showed.

Published RLM research showed that the execution pattern can push frontier models beyond their native context limits while improving performance on dense reasoning tasks. These results establish the pattern; they are not a guarantee for every ModelRelay workload.

Read the MIT RLM research
10M+
tokens handled in published RLM evaluations
0.04 → 58
F1 (0–100 scale) for GPT-5 → RLM(GPT-5) on OOLONG-Pairs, where answers require whole-input cross-referencing
Comparable
or cheaper average cost per query in the published evaluations
Deployment boundary

Hosted first. Private when required.

Managed RLM is the default onboarding path. Enterprise teams can place the data connector and execution environment in a customer-controlled VPC or infrastructure.

Managed hosted

ModelRelay operates the runtime.

Use the hosted execution API with inline, uploaded, or connected data.

Private / VPC

Data access stays next to the source.

The trusted connector and execution environment run in your boundary while ModelRelay provides policy, model access, and usage attribution.

In both modes: configured root and subcall model providers receive the instructions, schema, and selected data slices needed for their calls. Provider retention and residency depend on the endpoints you choose.

At a glance

Where RLM fits.

Scroll to compare every approach →
Direct callSearch / RAGGeneral agentModelRelay RLM
Best atFocused promptsFinding passagesActing across toolsAnalyzing a large working set
Context strategyOne promptRetrieve then generateTools, files, or subagentsCode reduction + selected model calls
Model choiceProvider-dependentImplementation-dependentFramework-dependentSupported providers by role
Product shapeModel APISearch layerHarness or applicationCall it like a model API

Bring the workload no prompt can hold.

Start hosted, choose your models, and inspect the cost of the complete run.

Request access