arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.09291cs.AIcs.SE
收藏

AutoRefine:基于工作流结果自动校准代码评判模型

AutoRefine: Auto-Calibrating Code Judges from Workflow Outcomes

Meta Platforms(元平台公司)

Shervin Shahidi, James Poon, Hang Xie, Kenneth O. Xu, Robin Håkanson, Vikram Nair, Jens Pillgram-Larsen, Nachiappan Nagappan

AI总结:

AutoRefine是一个基于工作流结果自动校准代码评判模型的循环,通过知情教师处理噪声标签,在多个数据集上提升了评判模型与工作流结果的一致性,还能标记需优化输入的场景。

摘要:

大型语言模型(LLM)评判模型正日益成为无测试预言的代码变更的质量关卡,但评判模型的提示词必须针对其任务进行校准,且随着被评判系统的演变需重新校准,而用于校准的人工标签资源密集且会过时。开发工作流会免费产生结果标签(测试通过或失败、变更落地或被废弃),但这些标签存在噪声。我们提出AutoRefine,这是一个重写可部署评判模型提示词以复现结果标签的循环,其中包含一个知情教师,该教师可查看评判模型的输入及结果,对其保留的每个标签进行解释,并在无法从评判模型所见内容解释结果时弃权(不执行)。在带有执行预言的保留数据集上,校准使 chance-corrected 一致性(Scott's π)从0.36提升至0.60。在部署智能体的结果标签上,随机翻转25%以引入噪声,教师将翻转的失败(fail)标签搁置的速度是真实标签的两倍以上,使整体标签噪声从25%降至20%。使用AutoRefine重新校准该智能体的评判模型,使其与当前工作流中17个独立保留的差异的落地/废弃结果的一致性提升(π从0.16至0.51);在来自旧工作流的16个差异上,之前的评判模型仍占优,说明随着智能体演变需重新校准。通过弃权,教师不仅移除噪声标签,还标记出评判模型输入无法解释其结果的变更,告知团队何时评判模型需要更好的输入而非更好的提示词。

英文摘要:

LLM judges increasingly serve as quality gates for code changes that have no test oracle, but a judge prompt must be calibrated for its task and recalibrated as the system it judges evolves, while hand labels for the calibration are resource intensive and go stale. Development workflows emit outcome labels for free (tests pass or fail, changes land or are abandoned), but these labels are noisy. We present AutoRefine, a loop that rewrites a deployable judge's prompt to reproduce outcome labels, with an informed teacher that sees the judge's input plus the outcome, explains each label it keeps, and abstains when the outcome cannot be explained from what the judge sees. On a held-out dataset with an execution oracle, calibration raised chance-corrected agreement (Scott's $π$) from 0.36 to 0.60. On a deployed agent's outcome labels, with 25\% flipped at random to introduce noise, the teacher set aside flipped \textsc{fail} labels at more than twice the rate of genuine ones, cutting overall label noise from 25\% to 20\%. Recalibrating that agent's judge using AutoRefine raised its agreement with merge/abandon outcomes on 17 independently held-out diffs from the current workflow ($π$ 0.16 to 0.51); on 16 diffs from older workflows, the previous judge stayed ahead, illustrating the need for recalibration as the agent evolves. By abstaining, the teacher not only removes noisy labels but also flags changes whose outcome the judge's input cannot explain, telling a team when a judge needs better inputs rather than a better prompt.

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

↑