你的策略暗藏一套约束机制:智能体接口的决策几何
研究论文 · 2026/10/28
语言模型智能体通过由提示、工具和控制逻辑组成的“执行框架”进行后训练和部署。框架常被修订,并根据已训练模型在其下的表现来评判,这假设模型在一个框架下学到的内容能迁移到另一个框架。我们研究策略从框架中学到了什么,以及框架改变时什么能保留下来。在KL正则化控制下,我们证明最优策略的对数几率反映了其框架对每个动作的偏好强度,因此训练后的策略携带了框架的偏好。部署回报等于框架的上限(其提供的最佳回报)减去策略的失配(因其自身次优决策而损失的回报)。训练只改变失配,而改变框架则同时移动两项。因此,用固定模型比较框架会混合每个框架提供的内容与模型利用它的程度。在MiniWoB++中,后训练使模型的偏好特定于其训练框架。反转观察字段的顺序不改变任何最优决策,却使训练模型的成功率从85.0%降至19.2%。相反,每个被固定模型比较拒绝但提高了上限的新框架,在进一步训练后都优于原始智能体,且事先测量的上限和失配能预测这些增益。对于Terminal-Bench Lite上的编码智能体框架,用更强模型作为最优替代估计的上限减失配能复现准确率排名,而单独任一项则不能。代码见https://github.com/2020-qqtcg/HRP。
该研究揭示了智能体性能对执行框架的深度依赖,提出了评估框架的新理论工具(上限与失配),对智能体部署和框架设计具有重要指导意义,且实验证据有力。
Language model agents are post-trained and deployed through a harness, the prompts, tools, and control logic that present a task to the model and execute its outputs. Harnesses are often revised and judged by how an already trained model performs under them, which assumes that what the model learned under one harness carries over to the next. We ask what a policy learns from its harness and what survives when the harness changes. Under KL-regularized control, we show that the log odds of an optimal policy recover how strongly its harness favors each action over the others, so a trained policy carries the preferences of its harness. Deployed return then equals the ceiling of the harness, the best return it offers, minus the mismatch of the policy, the return lost to its own suboptimal decisions. Training changes only the mismatch, while changing the harness moves both terms. Comparing harnesses with a fixed model therefore mixes what each harness offers with how well that model uses it. In MiniWoB++, post-training makes a model's preferences specific to its training harness. Reversing the order of the observation fields leaves every optimal decision unchanged yet lowers a trained model's success from 85.0% to 19.2%. Conversely, every new harness that a fixed-model comparison rejects but that raises the ceiling outperforms the original agent after further training under it, and ceiling and mismatch measured beforehand predict these gains. For coding-agent harnesses on Terminal-Bench Lite, ceiling minus mismatch estimated with a stronger model as a stand-in for the optimum reproduces the accuracy ranking, while either term alone does not. Code is available at https://github.com/2020-qqtcg/HRP.