Language Model Harnesses can be Compositional Generalizers
Source
arxiv.org
Author
Alex L. Zhang, Souradip Chakraborty, Omar Khattab
Date
Why it matters
Suggests training around programmatic harnesses that externalize context can generalize to much longer tasks than the base model, a cheaper route to long-horizon agents than training on long contexts.
Key takeaways · AI-distilled
Under reinforcement learning, RLM harnesses trained only on short tasks generalized to tasks 2 to 64 times longer, while the base model alone improved less. Training on one domain also transferred to new domains with shared latent structure.
For messier tasks, surrogate HarnessThe software that sends a model its context, recognizes tool calls, runs or refuses them, returns results and keeps the record.Full definition → training targets individual model calls inside a harness using easier synthetic environments with fake tool and sub-calls.
RLM-27B, trained on synthetic data, improved Qwen3.8-27B in the same harness by 26.9% on average on long-Context and context windowContext is the information available for a generation; the context window is the capacity available to hold it.Full definition → suites such as CTC-Bench and ExpertLongBench, using about half the InferenceUsing a trained model to produce an output from a supplied input.Full definition → tokens.
Terms in this piece · Glossary
Large language model — A model trained on large amounts of data to process and generate language.
Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
Harness — The software that sends a model its context, recognizes tool calls, runs or refuses them, returns results and keeps the record.
Inference — Using a trained model to produce an output from a supplied input.