We have largely thought of LM harnesses as inference-time scaffolding. But what happens when we train models with the right harness?
A common assumption is that RL naturally leads to generalization. However, its ability to generalize ultimately depends on the underlying neural network's learned representations, which may not transfer reliably to unseen tasks.
In the recent work by @a1zhang, we show how harnesses can enable compositional generalization during training by programmatically managing context, allowing RL to learn reusable decomposition strategies that compose existing LM capabilities to solve unseen tasks.
The results point toward a broader paradigm: the harness is not merely a wrapper around the model. Harness design and model learning are deeply intertwined, and how we train agents should reflect that.
Very exciting work, as always, by @a1zhang and @lateinteraction
@a1zhangHarnesses used to be a crutch for weak LLMs. In 2026 and onward, with stronger models, harnesses now offer a mechanism for composing an LLM’s existing and new capabilities to generalize well beyond their training environments.
In our new paper, LM Harnesses are Compositional Generalizers, we explore how various harness abstractions enable LM systems to generalize over task length, task strategies, recursive task depth, and more through composing existing LLM capabilities. These abstractions provide a means for more data-efficient training, especially over long tasks, by keeping trajectories locally in-distribution (LID) — i.e., shaping all individual LLM calls to be in-distribution.
For tasks that take a very long time to roll out, this implies that we can even perform surrogate harness training, meaning we train an individual LLM call instead of doing the very long harness rollout, using purely synthetic tasks, with fake tool calls + sub-agents!
A common idea floating around is that LLMs will absorb harnesses and make them obsolete. We disagree, and argue that we haven’t sufficiently explored what harnesses can provide.
The full paper, logs, codebase, and data are available: https://www.alphaxiv.org/abs/2611.harness-cg
w/ @SOURADIPCHAKR18 @lateinteraction
