PapersSelected

MIT CSAIL 论文:RLM 框架可让 LLM 实现组合泛化

Why we picked it

MIT CSAIL 这篇论文回应了“模型会不会吃掉框架”的争论:RLM 框架用代码拆分任务,短任务 RL 训练能泛化到 64 倍长的任务。做 Agent 和长上下文应用的开发者可以直接抄它的 surrogate 训练方法,省 token 又提分。

MIT CSAIL 的新论文提出,框架(harness)本身可以让 LLM 获得更强的泛化能力,而不仅仅依赖模型自身的上下文处理。标准框架会把全部内容堆进上下文,导致模型面对与训练分布不同的输入;RLM 框架则用代码管理上下文并拆分任务,让每次模型调用都看到熟悉的输入形式。

Body

在强化学习下,仅用短任务训练的 RLM 能泛化到长度 2 至 64 倍的任务,单一领域训练还能迁移到有共同结构的新领域。对于复杂任务,他们提出 surrogate harness training,在合成的简单环境里用假工具和子调用训练框架内的单次调用。

基于 Qwen3.8-27B 训练的 RLM-27B 在 CTC-Bench、ExpertLongBench 等长上下文任务上平均提升 26.9%,且 token 消耗约减少一半。论文建议:如果长轨迹训练成本高,可先在短合成任务上训练框架内的单次调用。

Original · DAIR.AI

Banger paper from MIT CSAIL.

(bookmark it)

It discusses how harnesses can generalize compositionality. In other words, harnesses can push LLMs further (with stronger generalization effects) through existing LLM capabilities.

There is a huge debate on whether models will eat harnesses, but this work shows the power of custom harnesses and why they will continue to matter.

Standard harnesses keep adding to the context, so the model has to handle inputs unlike anything it trained on. An RLM harness manages context in code and splits a task so each model call sees a familiar input, even when the full task is new.

Under RL, RLMs trained only on short tasks generalized to tasks 2 to 64 times longer, and training on one domain transferred to new domains with shared structure.

For complex tasks, they train individual calls inside the harness on easier synthetic environments with fake tools and sub-calls. They call this surrogate harness training.

RLM-27B, trained this way on synthetic data, improves Qwen3.8-27B in the same harness by 26.9% on average on hard long-context tasks like CTC-Bench and ExpertLongBench, with about 2 times fewer tokens.

If long trajectories are expensive to train on, try training the individual calls inside your harness on short synthetic tasks first.

https://arxiv.org/abs/2611.28298

Chat with Paper: https://academy.dair.ai/papers/language-model-harnesses-can-be-compositional-generalizers-2611.28298

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include RLM, Qwen3.8-27B, reinforcement learning, long context.

Source attribution: curated from DAIR.AI (@dair_ai).