协同演化的测试框架与模型:同策略校正帮助较弱模型在模仿失败之处迎头赶上

·

研究论文 · 2026/09/10

Agent harness(围绕模型的系统提示、工具集、执行钩子和上下文管理脚手架)是决定智能体任务成功的关键因素。自动化的harness演化能让较小模型以远低于前沿模型的成本在特定领域任务上表现良好。由于harness和模型权重共同塑造行为,我们研究如何结合harness演化与轻量微调。在七个企业智能体任务中,我们先用较弱模型演化harness,然后发现更强的专家模型往往能更有效地使用它,这表明专家监督可以弥合剩余差距。然而,在演化后的harness下,用专家的完整轨迹训练较弱模型会适得其反:在Qwen3-Coder和Gemma 4上,七个任务性能全部回退4到30个点,尽管在未演化的harness下同样的过程有帮助。我们的分析表明,模仿传递了知识并增加了脚手架使用,但破坏了模型-harness匹配:较弱模型采用了专家的规划策略却没有执行能力,并且不再匹配围绕其原生规划风格演化的harness。因此,我们开发了一个由元级MLE智能体自动化的在策略专家纠正流程,该流程在较弱模型自己的rollout中定位失败轮次,并让专家仅重写该轮次。这保留了模型的规划风格,并结合了harness演化和模型适应的收益。我们的结果识别并解决了一个harness与权重更新之间的冲突来源,为特定领域企业任务上的经济协同演化提供了一种保持兼容性的方案。

该研究揭示了harness演化与模型微调之间的冲突,并提出了一种保持兼容性的协同演化方法,对于以低成本在特定领域任务上部署较小模型具有实用价值。

Agent harnesses (the system prompt, tool set, execution hooks, and context-management scaffolding around a model) are a critical determinant of agentic task success. Automated harness evolution can enable smaller models to perform well on domain-specific tasks at a fraction of frontier-model cost. Since both the harness and model weights shape behavior, we ask how harness evolution and lightweight fine-tuning should be combined. Across seven enterprise agent tasks, we first evolve a harness with the weaker model, then find that a stronger expert often uses it more effectively, suggesting expert supervision could close the remaining gap. However, training the weaker model on the expert's complete trajectories under the evolved harness backfires: performance regresses on all seven tasks by 4 to 30 points across Qwen3-Coder and Gemma 4, even though the same procedure helps under the unevolved harness. Our analysis shows that imitation transfers knowledge and increases scaffold usage, but disrupts model-harness fit: the weaker model adopts the expert's planning strategy without the competence to execute it and no longer matches the harness evolved around its native planning style. We therefore develop an on-policy expert-correction pipeline, automated by a meta-level MLE agent, that localizes the failing turn in the weaker model's own rollout and asks the expert to rewrite only that turn. This preserves the model's planning style and combines the gains of harness evolution and model adaptation. Our results identify and resolve a source of contention between harness and weight updates, yielding a compatibility-preserving recipe for economical co-evolution on domain-specific enterprise tasks.

阅读原文

参与讨论