ML-AutoResearch: Training Machine Learning Research Agents with Automatically Generated Environments
Abstract
Training LLM agents to carry out the engineering-heavy work of machine learning (ML) research, such as implementing baselines, running experiments, and debugging, requires large amounts of process-level supervision. Existing static benchmarks omit critical intermediate steps such as debugging and incremental reasoning, and manual data collection is prohibitively expensive. To overcome this data bottleneck, we introduce ML-AutoResearch (ML-AR), a scalable pipeline for automatically generating synthetic, end-to-end ML research tasks. Each task defines a complete research cycle, including problem specification, dataset selection, baseline implementation, and iterative improvement. To ensure realism and executability, tasks are grounded in real-world datasets and refined via an automated self-debugging procedure without requiring human supervision. We construct a large-scale dataset of teacher trajectories on these synthetic tasks to train student agents via supervised fine-tuning. We evaluate the resulting agents across 3 diverse ML research benchmarks. Across Qwen3 students at three sizes (4B–14B), fine-tuning on ML-AR trajectories improves the mean MLGym area under the performance profile (AUP) by 5.7–9.1% over three evaluation seeds, improves normalized MLAgentBench scores at every size, and transfers to AutoResearch. Smaller gains persist when the trajectories come from the open-weight Qwen3-32B instead of GPT-5. Because training is supervised imitation of teacher trajectories, ML-AR targets the execution skills of ML experimentation rather than teacher-independent scientific discovery; we report contamination analyses, multi-seed variance, and remaining per-task regressions.