arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.29121cs.AIcs.LG
收藏

预算约束下的递归自我改进:运行前对代码编辑进行评分

Recursive Self-Improvement on a Budget: Scoring Code Edits Before They Run

Harvard University(哈佛大学);Massachusetts Institute of Technology(麻省理工学院);UC San Diego(加利福尼亚大学圣迭戈分校)

Erfan Darzi, Sree Bhargavi Balija, Sheng He

AI总结:

该研究针对预算约束下编码智能体的递归自我改进问题,提出基于线性读出器评分与Huxley-Gödel机器选择的方法,在HumanEval+、Polyglot数据集上实现了优于基线的代码编辑选择性能。

摘要:

重写自身脚手架的编码智能体必须在编辑被评估前选择要扩展的提议编辑,随后搜索需返回一个智能体。每次运行基于父节点的引导拆分求解率与提议差异的8个坐标,对96个脚手架编辑拟合一个线性读出器,这些编辑由16个实例拟合拆分的4次评估标注,随后冻结系数。HumanEval+预留48个实例作为引导拆分,Polyglot预留64个。该拆分对父节点评分并保留4个节点的存档。Huxley-Gödel机器选择通过汤普森采样已评估节点的引导计数来抽取父节点,并扩展该父节点提议的子节点。随后每种方法返回其引导拆分求解计数最大的最早评估节点。表格报告该节点在另外100个HumanEval+实例和另外145个Polyglot实例上的保留分数,以及根脚手架和具有最高拟合拆分标签的校准编辑。12次GPT-4o运行返回的节点在保留的HumanEval+上得分为87.0%,而父速率 ablation 为84.2%。在该拆分上,Huxley-Gödel机器选择得分为85.1%,根为81.2%,校准最佳编辑为82.8%。在同一拆分上,Claude Sonnet 4.5得分为86.6%,Huxley-Gödel机器选择为86.5%,父速率 ablation 为85.3%,校准最佳编辑为85.1%。

英文摘要:

A coding agent that rewrites its own scaffold has to choose which proposed edit to expand before that edit has been evaluated, and the search then has to return one agent. Each run fits one linear readout on the parent's steering-split solve rate and eight coordinates of the proposed diff, from 96 scaffold edits labeled by four evaluations of a 16-instance fit split, and then freezes the coefficients. HumanEval+ reserves 48 instances as the steering split and Polyglot reserves 64. That split scores parents and keeps an archive of four nodes. Huxley-Gödel Machine selection draws a parent by Thompson sampling on the steering counts of nodes that have already been evaluated, and it expands the child that parent proposes. Every method then returns the earliest evaluated node whose steering-split solve count is maximal. The tables report the held-out score of that node on the other 100 HumanEval+ instances and the other 145 Polyglot instances, next to the root scaffold and the calibration edit with the highest fit-split label. Twelve runs of GPT-4o return a node at 87.0% on held-out HumanEval+, against 84.2% for the parent-rate ablation. On that split Huxley-Gödel Machine selection returns 85.1%, the root is at 81.2%, and the calibration-best edit is at 82.8%. On the same split Claude Sonnet 4.5 returns 86.6%, beside 86.5% for Huxley-Gödel Machine selection, 85.3% for the parent-rate ablation, and 85.1% for the calibration-best edit.

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

↑