TL;DR
ProgramBench is a new, high-bar benchmark that challenges AI agents to rebuild complex software projects (like SQLite or FFmpeg) from scratch using only the original executable and its documentation. The results are a sobering reality check: even the most advanced models fail to fully resolve a single task, revealing a massive gap between "writing code" and "engineering software."
What Problem Does This Paper Address?
While Large Language Models (LLMs) have become remarkably good at solving isolated coding puzzles or fixing specific bugs (as seen in benchmarks like HumanEval or SWE-bench), we don't yet know if they can handle the "0-to-1" process of building a full system.
Real-world software engineering isn't just about syntax; it’s about high-level architectural decisions: choosing data structures, decomposing logic into modules, and discovering a program's requirements through systematic exploration. Existing benchmarks often provide "skeletons" or pre-defined structures that do the heavy lifting for the model. ProgramBench removes these training wheels, forcing agents to act as true reverse-engineers and architects.
Methods
The authors developed a pipeline to transform 200 open-source GitHub repositories into "black-box" reconstruction tasks.
- The Environment: Agents are given a compiled "gold" executable and its documentation. They have no internet access and no access to the original source code.
- Behavioral Evaluation: Instead of checking if the AI's code looks like the original, the benchmark checks if it acts like it. Evaluation is implementation-agnostic; a model can use any language or algorithm as long as the output, exit codes, and side effects match the reference.
- Automated Test Generation: To ensure rigorous evaluation, the researchers used an agent-driven "fuzzing" approach. An LLM-based agent probes the original binary to discover edge cases and codifies these behaviors into a massive suite of over 248,000 behavioral tests.
- Anti-Cheating Measures: To prevent models from simply "cloning" the original repo or using decompilers, the environment blocks internet access, wipes git history, and sets the reference binary to execute-only permissions.
Datasets
The benchmark consists of 200 task instances curated from GitHub, spanning 14 functional categories:
- Languages: Primarily Rust (107), Go (46), and C/C++ (45).
- Complexity: Ranges from simple CLI utilities (like
figletornnn) to massive, industry-standard systems including FFmpeg, SQLite, DuckDB, and the PHP interpreter. - Scale: The reference codebases range from a few hundred lines to over 2.7 million lines of code.
Key Insights and Ideas
- The "Monolith" Bias: Human developers use modular directory structures to manage complexity. AI agents, however, overwhelmingly prefer "monolithic" implementations—placing almost all logic into a single, massive file at the root directory.
- Function Bloat: Models write significantly fewer functions than humans (only 10–29% of the reference count) but make those functions much longer (up to 1.6x the average human length).
- Exploration Styles: There is a stark difference in how models "think." The GPT family tends to attempt "one-shot" generations with very few turns, while Claude models engage in a more human-like iterative process, interleaving "probing" the binary with writing code.
- The Python Gravity: Even when tasked with rebuilding a system originally written in C++ or Rust, models frequently default to Python (36% of the time), likely because it is the language they are most "comfortable" with in their training data.
Key Results
- Zero Full Resolutions: Out of 1,800 total evaluation runs across 9 top-tier models, not a single task was 100% resolved.
- Top Performer: Claude Opus 4.7 emerged as the strongest model, but even it only managed to pass 95% of tests on a mere 3% of tasks.
- Median Performance: The median test pass rate across all models and tasks was only 32%.
- Language Difficulty: Models struggled significantly more with C/C++ projects (27.7% avg. pass rate) compared to Go or Rust (approx. 38%), likely due to the higher architectural complexity of the C/C++ repositories included in the set.
Limitations and Future Work
The authors acknowledge that ProgramBench currently focuses on functional equivalence (does it work?) rather than non-functional properties (is it fast? does it use too much memory?). A model could technically pass the tests with an implementation that is orders of magnitude slower than the original.
Future work includes developing richer test generation strategies to improve coverage and exploring multi-agent architectures, where different "specialist" agents (e.g., an Architect, a Coder, and a Tester) collaborate to solve these complex, long-horizon engineering challenges.
Summary updated