研究称 Transformer 泛化能力有限,可由外部 harness 通过任务分解补足
训练只喂短任务,推理却能搞定32倍长的任务,靠的是外层 harness 做分解,思路挺新颖
Alex Zhang 提出的 RLM 方案认为,泛化应由 harness 通过任务分解组合来实现,而非依赖 Transformer 内在能力。实验显示,仅在短任务上训练的 RLM 能泛化到 8-32 倍长度的未见任务,因为两类任务生成近似相同的执行轨迹。跨领域任务上也有类似效果:训练模型判断文章作者归属,可以提升其解决数学题的表现。Gary Marcus 转发该文,称其印证了他关于 Transformer 泛化局限的核心观点。
stunning confirmation of my central work alex zhang @a1zhang Transformers struggle to generalize to tasks they were not explicitly trained on. Instead, we propose in 2026 that it is the job of the harness to generalize through composition. We observe a powerful property when training RLMs: for tasks with shared structure that look different, the root model naturally learns the same trajectory, meaning it views the two task trajectories as the same! In other words, the Transformer does not need additional generalization capabilities to transfer capabilities from one task to the other, the harness induces it. We find that well-designed harnesses form a quotient set over task trajectories, meaning their individual LLM calls can see structurally “similar” tasks as near-identical, token-for-token! Harnesses can effectively generalize for the Transformer during training, without relying on any intrinsic generalization capability from the model. For example, RLMs can see problems of different lengths as the same: we show that RLMs can train exclusively on short tasks, and fully generalize to similar but unseen tasks 8-32x longer because it produces near identical trajectories for both. Taking this further, we show that tasks across different domains (e.g. math solutions vs. essay writing) that share a decomposition strategy exhibit the same generalization effect. RLMs can train on the problem of finding which essays belong to the same author and improve performance on finding math problems that share similar solutions. The full blogpost, experiments, and discussion are in the thread below. 🔗 View Quoted Tweet 💬 0 🔄 2 ❤️ 2 👀 479 📊 1 ⚡