约翰霍普金斯大学与卡内基梅隆大学的新论文显示,一个小模型能从运行结果中学习改进智能体的 harness 代码,且该技能可迁移到新任务。harness 是决定模型看到什么、调用哪些工具的那部分代码;编辑器读取 harness 和失败信息后写出代码改动,并按新 harness 的得分获得奖励。
New John Hopkins and Carnegie Mellon University Paper Shows that a small model can learn to improve an agent's harness code from run results, and the skill transfers to new tasks.
A small model trained to rewrite an agent's harness code from failure reports can adapt agents to new tasks, so let it tune your harness instead of doing it by hand.
The harness is the code that decides what the model sees and which tools it calls. The editor reads the harness and what failed, then writes a code change, rewarded by how well the new harness scores.
On 21 unseen reasoning task types, a 4B editor's average edit score rose from 0.32 to 0.62, above its 35B teacher. A separate editor trained on HotpotQA kept improving harnesses on 2 other QA benchmarks.
Run it for several rounds per task, since repeated edits beat single fixes.
来源:Rohan Paul · x.com