ML-AutoResearch: Training Machine Learning Research Agents with Automatically Generated Environments
Organizations: Arizona State University · Microsoft Research
Abstract
With the advent of AI agents, automated scientific discovery is becoming an increasingly plausible goal. However, training agents to autonomously execute the engineering-heavy labor of machine learning (ML) research requires massive, 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. Our comprehensive experiments across 2 distinct model families and 3 model sizes demonstrate that training on ML-AR trajectories yields consistent and significant capability gains. Fine-tuning improves the Aggregation Under the Performance (AUP) by up to 9% and substantially boosts overall pass rates, highlighting robust out-of-domain generalization.
Figures & tables
| GPT-5 outcome across rollouts | Tasks | Share |
|---|---|---|
| Consistently improves baseline | 175 | 31.5% |
| Improves in some rollouts | 185 | 33.3% |
| Valid, but never improves | 123 | 22.2% |
| No valid solution | 72 | 13.0% |
| Total verified tasks | 555 | 100.0% |
| Model | Best-run AUP | Gain over base |
|---|---|---|
| Qwen3-14B | 1.0555 | — |
| Original ML-AR-14B | 1.0740 | |
| ML-AR-14B-Mixed | 1.1297 |
| Size | Model | Per-seed AUP | Mean AUP | Rel. gain | ||
|---|---|---|---|---|---|---|
| 42 | 123 | 456 | ||||
| 8B | Qwen3 | 1.5755 | 0.6331 | 0.8523 | – | |
| 8B | ML-AR | 1.7464 | 0.5522 | 0.8529 | ||
| 14B | Qwen3 | 1.7129 | 0.6218 | 0.9121 | – | |
| 14B | ML-AR | 1.7403 | 0.6353 | 0.9764 | ||
| Similarity threshold | MLGym | MLAgentBench | Combined |
|---|---|---|---|
| 6/555 (1.1%) | 0/555 (0.0%) | 6/555 (1.1%) | |
| 0/555 (0.0%) | 0/555 (0.0%) | 0/555 (0.0%) |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Mean score | Per-seed score | ||
|---|---|---|---|---|
| 42 | 123 | 456 | ||
| Qwen3-4B | 0.000 | 0.000 | 0.000 | |
| ML-AR-4B | 0.103 | 0.000 | 0.200 | |
| Qwen3-8B | 0.000 | 0.133 | 0.000 | |
| ML-AR-8B | 0.425 | 0.219 | 0.000 | |
| Qwen3-14B | 0.124 | 0.000 | 0.254 | |
| Model | Qwen3 | ML-AR | Rel. gain |
|---|---|---|---|
| 8B | |||
| 14B |
| Asset class | Example assets in this work | Licenses/terms used | Notes |
|---|---|---|---|
| Datasets | Hugging Face datasets used for synthetic task generation and evaluation | Apache-2.0, MIT, CC0-1.0, CC-BY-4.0, CC-BY-SA-4.0, CC-BY-SA-3.0, CC-BY-SA-3.0+GFDL, BSD/BSD-3-Clause, CC-BY-NC-SA-4.0, CC-BY-NC-ND-4.0, AFL-3.0, ODC-BY, C-UDA | Per-dataset terms are respected and attributed |
| Open models | Qwen family student models | Qwen model licenses/terms from the corresponding model cards | Version-specific model terms apply |
| API models | GPT teacher/evaluator APIs | OpenAI API Terms of Use and associated service policies | API use only; no model weight redistribution |
| Benchmarks/codebases | MLGym, MLAgentBench, AutoResearch benchmark code | Repository-specific OSS licenses (including MIT/Apache-2.0/BSD-style where applicable) | We follow each repository’s LICENSE file |
| Agent framework/tools | SWE-agent and related tooling | Repository-specific OSS licenses (including MIT/Apache-2.0/BSD-style where applicable) | We follow each repository’s LICENSE file |
| Item | Setting |
|---|---|
| Base models | Qwen3-4B, Qwen3-8B, Qwen3-14B |
| Tokenizer | Matching Qwen tokenizer for each base model |
| Optimizer | AdamW |
| Learning rate | (4B), (8B), (14B) on H100 configs |
| LR schedule | WarmupDecayLR with linear warmup; warmup steps 100 (4B/8B), 200 (14B) |
| Weight decay | (4B/8B), (14B config) |
Autonomous Research Agents
Autonomous research agents use language models and tools to search literature, design and run experiments, analyze results, and support scientific discovery.
See all 318 papers