Crafter: Towards Automated Reproducible Machine Learning via Agentic Code Generation
Fangru Linghu, Jackson R Ye, Jieying Wang, Alexandre V Morozov, Ian Foster, Zhao Zhang
NeurIPS page · OpenReview · Open on the map
Category: LLM Agents, Evals & Benchmarks › Verified Code Synthesis and Testing · Type: new method · Keywords: paper-to-code, reproducibility, automated code generation, implementation recovery, execution debugging, machine learning research
Areas: Code & Coding Agents › Code Verification › Verified code generation; AI Agents › Agent Benchmarking › Agentic code and proof generation; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Software Engineering Benchmarks
Summary
Crafter is an automated paper-to-code pipeline that recovers missing implementation details and repairs generated repositories to improve reproducibility of machine learning research.
Explained to a 5-year-old
Crafter is a tool that helps make computer code for research papers. It looks at what the paper says and writes code that works. If the code has problems, it fixes them automatically. This makes it easier to repeat experiments. Scientists can trust the results more.
Explained to a 5-year-old, longer
Many scientists write papers about computer programs that they create. When other scientists try to copy those programs, they often find the instructions are missing or hard to follow. This makes it slow and frustrating to check if the results are correct. Crafter is a new helper that reads the paper and automatically builds the needed code. It first makes a clear plan based on what the paper describes. Then it writes the code step by step, filling in missing details. After the code is written, Crafter runs it to see if it works. If something goes wrong, it automatically tries to fix the errors. This process repeats until the code runs without problems. The result is a complete, working repository that matches the paper’s claims. Researchers can now reproduce experiments quickly and reliably. This helps the scientific community trust and build on each other's work.
For a technical reader
Crafter automates the conversion of research papers into executable code by first extracting a precise specification from the paper. It then fills in missing implementation details and generates a full repository, followed by iterative debugging to ensure the code runs correctly. This pipeline reduces manual effort, improves reproducibility, and provides a reliable environment for validating published results.
Problem
Reproducing machine learning research is difficult because many papers lack executable code and essential implementation details are missing or scattered. Existing paper-to-code systems often generate code that misses critical logic or fails at runtime, making automated reproduction unreliable.
Method
It constructs an evidence-grounded specification that captures the required functionality, then resolves missing details before planning the code generation. The generated repository is iteratively repaired through execution-aware debugging to guarantee runtime readiness.
Results
The approach achieves an average Code-Dev score of 0.84 on 23 papers, improving over baselines by 19.7% and 22.1%, and reaches the contribution-level milestone on all three repositories while cutting average repair cycles from ~11 to 5.
Contributions
It introduces a context-calibrated implementation recovery pipeline that integrates specification building, detail resolution, and execution-aware debugging to produce faithful and runnable code. The work also provides an execution-oriented benchmark and demonstrates substantial gains in faithfulness and repair efficiency.
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