MirrorCode: AI 仅凭行为就能重建整个程序
MirrorCode: AI can rebuild entire programs from behavior alone
AI总结:
提出 MirrorCode 基准,基于从零复现完整软件项目评估 AI 长周期编码能力,最强模型得分 56%,如复现 16000 行生物信息学工具。
摘要:
AI 模型在自主编码方面迅速提升,基准测试进展和一次性演示(如 AI 实现 C 编译器)证明了这一点。然而,现有编码基准往往侧重于较短的任务,而一次性演示由于通常有人类指导、未标准化或跨模型重复,难以系统比较。为应对这些挑战,我们引入了 MirrorCode,一个基于重新实现整个软件项目的长周期编码基准。在 MirrorCode 中,AI 代理必须复制现有程序的功能,且无法访问其源代码。AI 解决方案必须在端到端测试中与原始程序的输出完全匹配,包括保留测试。MirrorCode 的 25 个目标程序涵盖计算的不同领域:Unix 工具、数据序列化和查询工具、生物信息学、解释器、静态分析、密码学和压缩。现有 AI 模型已能重新实现复杂软件,最强模型在基准上得分 56%。例如,AI 可以重新实现 gotree,一个 16000 行的生物信息学工具包——我们认为这项任务需要人类工程师数周时间。然而,研究性能前沿需要比典型基准更大的推理预算,例如,在大型任务上单次尝试花费 2600 美元和 19 天。我们表明,AI 代理已经可以完成长周期软件工程任务,尤其是在需求精确指定时。更广泛地说,我们的工作表明,随着自主代理的持续改进,AI 将对软件工程产生变革性影响。
英文摘要:
AI models are rapidly improving at autonomous coding, as shown by benchmark progress and one-off demonstrations such as AI implementing a C compiler. However, existing coding benchmarks tend to focus on shorter tasks, and one-off demonstrations are hard to compare systematically because they often have some human guidance, and are not standardized or repeated across models. To address these challenges, we introduce MirrorCode, a long-horizon coding benchmark based on reimplementing entire software projects. In MirrorCode, AI agents must replicate the functionalities of an existing program, without access to its source code. AI solutions must match the original program's output exactly on end-to-end tests, including held-out tests. MirrorCode's 25 target programs span different areas of computing: Unix utilities, data serialization and query tools, bioinformatics, interpreters, static analysis, cryptography, and compression. Existing AI models can already reimplement complex software, with the strongest model scoring 56% across the benchmark. For example, AI can reimplement gotree, a 16,000-line bioinformatics toolkit - a task that we believe would take weeks for a human engineer. However, studying the frontier of performance requires a larger inference budget than typical benchmarks, for example, \$2,600 over 19 days for a single attempt on a large task. We show that AI agents can already complete long-horizon software engineering tasks, especially when requirements are precisely specified. More broadly, our work suggests AI will have transformative effects on software engineering, as autonomous agents continue to improve.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。