AI News
All stories
Official

MIT CSAIL study finds code-managed harnesses reduce the cost of training on long tasks

RLM models trained only on short tasks generalized to tasks 2 to 64 times longer, and the authors propose training individual calls on synthetic tasks.

Research · · 2 min read

Training a model on long tasks is expensive. An MIT CSAIL group tests whether training around context-managing harnesses gives a better return on compute than training on long trajectories. The paper, by Alex L. Zhang, Souradip Chakraborty and Omar Khattab, finds that Recursive Language Models trained only on short tasks generalized to tasks 2 to 64 times longer, while the base model improved less. The reason, as the authors frame it, is that the harness does the splitting. A Recursive Language Model breaks a task so that each model call sees a familiar input, such as a sub-query or a tool result, even when the full task is new. No single call has to read the whole unseen trajectory.

The contrast is with standard harnesses, which keep appending to the context. In that design the model has to handle long inputs unlike anything it saw in training. The paper says this makes training for long-horizon tasks expensive and time-consuming. By moving context management into code, the authors hypothesize that training around the harness gives a better return on compute, because the model learns to decompose a problem so that every observation it receives is locally in distribution.

The authors also report transfer across domains. Training on one domain carried over to new domains that share latent structure. The paper's examples are math and essay-writing questions with similar decompositions.

Messier tasks needed a different approach. The authors train individual model calls inside the harness on easier synthetic environments that include fake tools and fake sub-calls, a method they call surrogate harness training. The authors say this lets them target specific calls without training on the full task. Using it, they trained RLM-27B on synthetic data. It improved Qwen3.8-27B in the same harness by 26.9% on average on hard long-context tasks such as CTC-Bench and ExpertLongBench, while using about half as many tokens at inference. The paper's abstract puts the token figure as about 2 times fewer tokens, which is the same ratio stated in a different form.

The paper also says harnesses can compose these learned decompositions through recursive sub-harness calls.

What changed

Recursive Language Models trained only on short tasks generalized to tasks 2 to 64 times longer, and RLM-27B improved Qwen3.8-27B in the same harness on synthetic-data training.

Type: Research · Applies to: Recursive Language Models, RLM-27B, Qwen3.8-27B

Why it matters

Teams that cannot afford to train on long agent trajectories may get useful gains by training the components of a harness on short, cheap tasks.

What you can do

Consider training individual calls inside your agent harness on short synthetic tasks before investing in expensive long-horizon training runs.

Original source

Where we saw it

1 source

DAIR.AI (Elvis Saravia)

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works