JevCoder:在代码修复中,决策委托何时能产生收益?
JevCoder: When Does Decision Delegation Pay Off in Code Repair?
AI总结:
JevCoder 是围绕低成本概率判断器 Jev 构建的代码修复工作流程,可在保持修复质量的同时,将修复模型的平均 token 使用量降低 21.6%-50.6%,并提升修复率。
摘要:
编码智能体在修复代码时会反复做出决策,这些决策会塑造修复轨迹并影响后续模型请求的 token 成本。我们提出的问题是:哪些修复决策可以委托给低成本的概率判断器,以在保持修复质量的同时减少 token 使用量。这些判断器会以预定义答案的概率形式回答问题,不会生成解释。我们在不同修复阶段评估判断质量,并测试单个干预措施如何改变后续修复工作。我们将这些干预措施与不使用判断器的无引导修复,以及使用修复模型本身作为判断器的相同工作流程进行比较。收益取决于干预措施所改变的工作,而非判断本身的成本。基于这些研究,我们提出了 JevCoder,这是一个围绕低成本概率判断器 Jev 构建的工作流程,它结合了代码片段推荐与动作类型指导,并利用判断来确定何时提交。我们在相同的 400 个任务上评估了三个修复模型,其中 200 个来自 SWE-bench Verified,200 个来自 SWE-Bench Pro Verified。与无引导修复相比,JevCoder 将修复模型的平均 token 使用量降低了 21.6%-50.6%,且在所有三个模型上都观察到更高的修复率。
英文摘要:
A coding agent repeatedly makes decisions as it repairs code. These decisions shape repair trajectories and affect the token cost of successive model requests. We ask which repair decisions can be delegated to a low-cost probabilistic judge to reduce token use while maintaining repair quality. The judges answer questions with probabilities over predefined answers, without generating explanations. We evaluate judgment quality across repair stages and test how individual interventions change subsequent repair work. We compare these interventions with unguided repair, which uses no judge, and with the same workflow using the repair model itself as the judge. The benefit depends on the work an intervention changes, rather than the cost of the judgment alone. Based on these studies, we propose JevCoder, a workflow built around Jev, a low-cost probabilistic judge. It combines code-snippet recommendations with action-type guidance and uses judgments to determine when to submit. We evaluate three repair models, each on the same 400 tasks: 200 from SWE-bench Verified and 200 from SWE-Bench Pro Verified. Compared to unguided repair, JevCoder reduces mean repair-model token use by 21.6%-50.6%, with higher observed repair rates across all three models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。