NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: LLM Agents, Evals & Benchmarks › Verified Code Synthesis and Testing · Type: benchmark or dataset · Keywords: software engineering benchmarks, language model evaluation, code generation, end-to-end testing, agent-driven fuzzing

Areas: Code & Coding Agents › Code Verification › Software engineering benchmarks; AI Agents › Agent Benchmarking › Coding agent benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Software Engineering Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Software Engineering Benchmarks

Summary

ProgramBench is a benchmark that evaluates language models' ability to holistically rebuild full codebases from a program and its documentation, using end-to-end behavioral tests.

Explained to a 5-year-old

We made a game to test if computers can build whole programs by themselves. They get a small program and its instructions and have to make a whole code that works like the original. The game checks if the computer can make the right code without us telling it exactly how. It helps us see how well computers can be used to write software on their own. The game includes many different kinds of programs, from simple tools to big ones like video players.

Explained to a 5-year-old, longer

People are using computers to write whole software projects all by themselves. They want the computer to decide big design choices, like how to organize the code. Right now, tests only check small things like fixing a bug or adding one feature. This new test is called ProgramBench and it asks the computer to build a whole program from a small example. The computer gets a program and its description and must make a full codebase that works the same. The test runs the code and checks if it behaves correctly using a method that tries many inputs. There are 200 different tasks, from tiny command-line tools to big programs like video players. The researchers tried many language models on this test. None of the models could finish any task completely. The best model passed most of the tests on only a few tasks. The models tended to write everything in one file, which is different from how people usually write code. This helps us understand what computers can and cannot do when they are asked to create software on their own.

For a technical reader

The paper introduces a benchmark that evaluates language models on end-to-end code generation by asking them to produce a full codebase from a given program and its documentation. It uses agent-driven fuzzing to generate behavioral tests, ensuring that the implementation is judged solely on functional correctness without prescribing a specific architecture. The benchmark includes 200 diverse tasks, ranging from simple CLI tools to complex software like FFmpeg and SQLite. Evaluation shows that current models struggle to fully resolve any task, with the best model achieving high test coverage on only a small fraction of tasks. The study also highlights a tendency toward monolithic, single-file solutions that diverge from typical human coding practices.

Problem

Existing benchmarks for language models in software engineering focus on narrow tasks such as bug fixing or single-feature development, leaving a gap in evaluating agents' ability to design and implement complete software architectures from scratch.

Method

The approach introduces a benchmark consisting of 200 tasks ranging from simple CLI tools to full-fledged software, where agents receive a program and its documentation and must produce a matching codebase. End-to-end behavioral tests are generated via agent-driven fuzzing to evaluate correctness without prescribing a specific implementation structure.

Results

When evaluated on nine language models, none fully solved any task, and the best model passed 95% of tests on only 3% of tasks. Models tended to produce monolithic, single-file implementations that differ from typical human code.

Contributions

The paper proposes a holistic benchmark for assessing language models in software engineering, introduces end-to-end behavioral testing via fuzzing, and provides an analysis of model behaviors on 200 diverse tasks.

Practical relevance

It offers a realistic benchmark for evaluating language models in autonomous code development and maintenance scenarios.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction