arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.24949cs.CLcs.LGcs.SE
收藏

编码智能体的过度防御始于静默分叉

Over-Defense in Coding Agents Begins at Silent Forks

New York University(纽约大学);New York University Abu Dhabi(纽约大学阿布扎比分校);Carnegie Mellon University(卡内基梅隆大学);The Hong Kong Polytechnic University(香港理工大学);McGill University(麦吉尔大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)

Hanjun Luo, Xuecheng Liu, Xiucheng Zhang, Zhuoning Xu, Yingbin Jin, Yankai Chen, Xue Liu, Hanan Salam

AI总结:

该研究针对编码智能体的过度防御问题,发现其始于静默分叉,提出ForkDPO方法,在未见过的仓库测试集上有效降低了4B模型的不成比例行为比例。

摘要:

编码智能体背后的语言模型通过结果奖励进行后训练,现有方法将功劳归于决定结果的步骤。我们发现,超出任务要求的防御行为会被两者忽略,这类行为始于静默分叉——即每一个后续动作都会导致相同结果的步骤。此类动作不会改变成功率,在隐式预算下,前沿模型在多达91%的决定性动作中会选择不成比例的分支。最直接的修复方法是在轨迹奖励中加入检查器,但该检查器仅能通过完全成比例的轨迹触及这些分叉,导致74%的GRPO组奖励相同且行为未发生改变。这促使人们重新思考学习信号应存在于何处,即行为发生分歧的地方,这是结果无法捕捉而行为检查器可定位的。我们的方法ForkDPO在相同前缀下对比成比例与不成比例的动作,涉及所需行为两侧的静默分叉。在未见过的仓库测试集上,该方法将4B模型的不成比例行为从70.3%降至58.9%,而在随机步骤应用DPO时该比例为67.7%,证明行为分歧可作为智能体如何行动的学习信号,而非仅关注是否完成任务。代码已公开于此https URL。

英文摘要:

Language models behind coding agents are post-trained with outcome rewards, and recent methods concentrate credit on the turns that decide the outcome. We find that defensive actions beyond what a task requires escape both. They begin at silent forks, the turns where every next action leads to the same outcome. Such actions leave the success rate unchanged, and frontier models take the disproportionate branch there in up to 91% of decisive actions under implicit budgets. The most direct fix, a checker in the trajectory reward, reaches these forks only through fully proportionate trajectories, leaving 74% of GRPO groups with identical rewards and behavior unchanged. This motivates a rethink of where learning signals belong, namely where behavior diverges, which a behavioral checker can locate and the outcome cannot. Our method, ForkDPO, contrasts a proportionate and a disproportionate action at the same prefix, at silent forks on both sides of the required behavior. On a test set of unseen repositories, it lowers a 4B model's disproportionate behavior from 70.3% to 58.9%, against 67.7% for DPO at randomly chosen turns, establishing behavioral divergence as a learning signal for how agents act beyond whether they finish. The code is publicly available at https://github.com/Astarojth/silent-forks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑