TRANSMISSION // 2612.03336v1

ProgramGen turns real code repositories into training grounds for AI agents

Source published

ProgramGen converts software repositories into two kinds of coding tasks and uses their recorded solutions to fine-tune an AI model. The reported gains span reconstruction and several engineering benchmarks, but test coverage, evaluation conditions and preprint status matter when interpreting them.

AI-generated conceptual illustration for ProgramGen turns real code repositories into training grounds for AI agents
AI-generated conceptual illustration; not documentary evidence.

Can software projects teach AI agents to build other software? ProgramGen converts real repositories into training environments where agents either rebuild a project from a written specification or reproduce a program’s behavior without seeing its source. The authors report improvements after training one model on recorded solutions, while noting that generated tests have limits and benchmark results depend on the evaluation setup.

Coding an entire software project is different from fixing one bug. An agent may need to understand requirements, coordinate changes across files and repeatedly build and test its work. But training exercises that capture this longer process—and can reliably check whether a solution works—are hard to create.

A paper introducing ProgramGen proposes a pipeline for turning real software repositories into such exercises. Its central question is twofold: can one process produce both specification-based and behavior-based coding tasks at scale, and does training on the resulting examples help a model beyond those tasks?

Two ways to learn a program

ProgramGen has two task modes. In forward mode, an agent receives a project skeleton and a written specification, then builds the software. The original repository’s tests are hidden and act as the grader. In reverse mode, the agent gets documentation and can query a working reference program—for example, by submitting inputs and observing outputs—but cannot see its source. It must build an independent replacement, which is assessed using hidden behavioral tests generated by the pipeline.

Construction follows three broad stages: make sure the repository can run, create the task materials, and validate the finished task. The authors describe safeguards such as checking tests against the reference and simple dummy solutions, replaying verifiers in fresh environments, and keeping source code and hidden tests away from the solving agent. When a check fails, the pipeline repairs the failed component rather than regenerating everything. Rule-based programs handle some setup and validation work.

The production run processed 98,000 repository candidates for forward mode and 88,000 for reverse mode. It accepted 5,929 and 8,117 candidates, respectively. The released collection contains 6,122 environments; the paper reports that the rest of the accepted tasks were not included in that release. These figures show both the pipeline’s reach and its selectivity: most candidates did not become accepted tasks.

Reported improvements—and what they measure

The researchers fine-tuned Qwen3.8-27B using 2,585 recorded agent trajectories, split roughly evenly between the two modes. On the paper’s reported evaluations, the fine-tuned model’s average test pass rate rose from 39.3% to 46.6% on NL2Repo, and from 48.0% to 61.0% on ProgramBench. These are averages of tests passed, not the share of projects completed perfectly.

The authors also report gains on engineering benchmarks: DeepSWE rose from 41.6% to 60.2%, Terminal-Bench 2.1 from 60.7% to 70.8%, and the hard subset of SWE-bench Pro V2 from 76.5% to 84.3%. The model was trained on from-scratch reconstruction tasks, not those benchmark tasks. The results therefore suggest that some learned skills carried over in these evaluations; they do not establish why the gains occurred or guarantee similar improvement in other settings.

The two modes provide different kinds of practice. In an experiment using 1,000 trajectories, forward-mode training did better on NL2Repo than reverse-mode training, while reverse-mode training did better on ProgramBench. An equal mixture performed better than either mode alone on NL2Repo in that comparison. This pattern is consistent with the tasks teaching partly different skills, though it does not mean that mixing data will always help every benchmark.

Important caveats

A test suite is only an imperfect proxy for software quality. In a mutation-testing audit, the authors deliberately introduced faults and checked whether the verifiers caught them. The verifiers detected 58.6% of all scored faults in the forward-mode sample and 31.7% in the reverse-mode sample. Detection was higher when considering only faults in code the tests actually executed. In particular, reverse-mode test coverage fell for larger programs in the measured sample. Passing hidden tests is useful evidence of correctness, but it cannot show that every relevant behavior has been tested.

The benchmark scores also need context. The study used specific model versions, agent software, time limits and other evaluation settings. For comparisons with some external models, the authors draw on published results produced under different systems or conditions; those figures are not necessarily controlled head-to-head comparisons. The paper’s own evaluations provide a clearer before-and-after comparison for its model, but still apply to the stated benchmarks and setup.

ProgramGen’s authors say they are releasing the environments, trajectories, model and code. That could let other researchers inspect the materials and test the approach. This account is based on the paper text supplied for the study, which identifies it as an arXiv preprint. A preprint is not, by itself, evidence of peer review, and its claims should be treated as research findings awaiting independent scrutiny and replication—not as a settled demonstration of how coding agents will perform in everyday software development.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • A benchmark asks coding agents to show their work

    Shared method: Both papers describe constructing repository-based tasks with runnable environments and validation: ProgramGen checks repository builds and replays verifiers, while RepoEviAgent uses execution evidence when synthesizing some Q&A tasks and applies automated verification. The shared elements are bounded; the task types and evaluation procedures differ.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.03336v1 — Original paper

      Excerpt reference: static/papers/2612.03336v1.md:89-132
      Basis: Paper text
      Source file SHA-256: 640a061fc74fb453128ed721266a65a687934593b6e0b823a3c137a88cc50857

    • 2611.31873v1 — Original paper

      Excerpt reference: static/papers/2611.31873v1.md:443-527
      Basis: Paper text
      Source file SHA-256: a75bdb7ea9417da5285c868a02a78f8dfe759d7fa5a5b2396a76030d80386aff

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.