Aha.
正在载入中英对照阅读…

arXiv:2605.03546 · 中英对照阅读

ProgramBench: Can Language Models Rebuild Programs From Scratch?

John Yang、Kilian Lieret、Jeffrey Ma、Parth Thakkar、Dmitrii Pedchenko、Sten Sootla、Emily McMilin、Pengcheng Yin、Rui Hou、Gabriel Synnaeve、Diyi Yang、Ofir Press

中文速览

让语言模型从零搭出一个完整软件,难点不只是写代码,还要自己摸清功能、选架构并组织项目,但过去的评测很少考察这些能力。研究者推出 ProgramBench:只给模型一个可运行程序和说明文档,让它通过试用程序探索行为,再自行设计并实现替代版本,最后用大量不公开的行为测试检查结果。测试了 9 个模型后,没有模型能完整复现任何一个软件;表现最好的模型也只在 3% 的任务中通过至少 95% 的测试,而且模型写出的项目常挤在少数几个大文件里,与人类开发者的结构差异明显。这套基准把评测从修小 bug 推向完整软件开发,帮助研究者看清模型在长期、开放式编程中还缺哪些能力。

摘要

Turning ideas into full software projects from scratch has become a popular use case for language models. Agents are being deployed to seed, maintain, and grow codebases over extended periods with minimal human oversight. Such settings require models to make high-level software architecture decisions. However, existing benchmarks measure focused, limited tasks such as fixing a single bug or developing a single, specified feature. We therefore introduce ProgramBench to measure the ability of software engineering agents to develop software holisitically. In ProgramBench, given only a program and its documentation, agents must architect and implement a codebase that matches the reference executable’s behavior. End-to-end behavioral tests are generated via agent-driven fuzzing, enabling evaluation without prescribing implementation structure. Our 200 tasks range from compact CLI tools to widely used software such as FFmpeg, SQLite, and the PHP interpreter. We evaluate 9 LMs and find that none fully resolve any task, with the best model passing 95% of tests on only 3% of tasks. Models favor monolithic, single-file implementations that diverge sharply from human-written code.

术语表

ProgramBench
ProgramBench
language model (LM)
语言模型(LM)
software engineering agent (SWE-agent)
软件工程智能体(SWE-agent)
software architecture
软件架构
software design
软件设计
abstraction
抽象
module decomposition
模块分解
codebase
代码库
benchmark
基准测试
task instance
任务实例
reference executable
参考可执行程序
candidate executable
候选可执行程序
behavioral test
行为测试
agent-driven fuzzing
智能体驱动的模糊测试
input-output behavior
输入输出行为
implementation-agnostic evaluation
与实现无关的评测
test coverage
测试覆盖率
line coverage
行覆盖率
assertion quality
断言质量
assertion quality linter
断言质量检查器
harvesting
测试收集
build script
构建脚本
Docker container
Docker 容器
mini-SWE-agent
mini-SWE-agent
monolithic implementation
单体式实现
CLI tool
命令行工具
standard output (stdout)
标准输出(stdout)
standard error (stderr)
标准错误(stderr)
exit code
退出码
SWE-bench
SWE-bench