MLE-bench: Evaluating Machine Learning Agents on Machine Learning Engineering

Jun Shern Chan, Neil Chowdhury, Oliver Jaffe, James Aung, Dane Sherburn, Evan Mays, Giulio Starace, Kevin Liu, Leon Maksin, Tejal Patwardhan, Aleksander Madry, Lilian Weng

Introduction

While Large Language Models (LLMs) have become highly proficient at solving isolated coding puzzles, there remains a significant gap in evaluating their ability to perform holistic machine learning engineering (MLE). Real-world MLE requires more than just writing a function; it involves exploring datasets, engineering features, training models, running long experiments, and debugging complex failures.

To address this, OpenAI researchers have introduced MLE-bench, a benchmark consisting of 75 curated Kaggle competitions designed to test AI agents on end-to-end machine learning engineering. Their findings show that while frontier models like o1-preview can achieve "medal-level" performance in about 17% of tasks, they still struggle with complex debugging and the open-ended nature of real-world R&D.

The MLE-bench Framework

Existing benchmarks often lack the "end-to-end" complexity required to see if an agent can autonomously function as a junior ML engineer. MLE-bench fills this gap by using the competitive, high-stakes environment of Kaggle to provide a rigorous, human-aligned baseline.

MLE-bench Evaluation Framework

The researchers developed an offline environment where AI agents are given a competition description and a dataset. To interact with this environment, the models use agent scaffolds—software frameworks that allow the LLM to run terminal commands, edit files, and iterate on code. The study compared three different scaffolds:

  1. AIDE: A purpose-built scaffold for Kaggle that uses tree search to explore different solutions.
  2. MLAB (MLAgentBench): A general-purpose research scaffold.
  3. OpenHands: A developer-centric automation tool.

The core of the benchmark is a diverse dataset of 75 Kaggle competitions selected from over 5,000 candidates. These span various domains (Image Classification, NLP, Signal Processing, Tabular data) and include famous challenges like the Vesuvius Challenge and OpenVaccine. Tasks are manually labeled by complexity, and to prevent agents from simply "memorizing" answers, the researchers often created new train-test splits from the original data. Performance is evaluated using a "Medal" system, comparing agent scores against the original Kaggle private leaderboards to determine if a submission would have earned Gold, Silver, or Bronze.

Key Findings & Agent Performance

Scaffolding is the Secret Sauce: The choice of scaffold mattered immensely. AIDE, which was specifically designed for the iterative nature of Kaggle, significantly outperformed general-purpose scaffolds like OpenHands, even when using the same underlying model (GPT-4o).

The Power of "Thinking" and Iteration: OpenAI’s o1-preview—a model trained with reinforcement learning to "think" before responding—performed nearly twice as well as GPT-4o. Furthermore, performance scaled dramatically with more attempts.

Pass@k Scaling for o1-preview and gpt-4o

As shown above, o1-preview’s medal rate jumped from 16.9% (pass@1) to 34.1% (pass@8) when given multiple attempts. On average, o1-preview achieved 7 Gold medals across the benchmark. For context, becoming a Kaggle Grandmaster requires 5 Gold medals (though humans achieve this over years, not in a single 24-hour run).

The Debugging Wall: Despite these successes, agents remain "brittle." They excel at implementing well-known architectures (like a standard ResNet for images), but if a small bug occurs—such as a data type mismatch or a memory overflow—they often fail to recover, leading to a "death spiral" of failed attempts.

No Evidence of "Cheating" via Memory: To address concerns that LLMs might have memorized solutions from their training data, researchers tested agents on "obfuscated" competition descriptions (removing names and Kaggle references). The agents performed just as well on the hidden versions, suggesting they are genuinely engineering solutions rather than recalling them.

Limitations and Future Work

While MLE-bench provides a robust new standard, it comes with limitations:

  • Resource Intensity: Running MLE-bench is expensive. A single full evaluation run of o1-preview required roughly 1,800 GPU hours and millions of tokens.
  • "Clean" vs. "Messy" R&D: Kaggle competitions provide a clean problem statement and a ready-to-use dataset. Real-world engineering often starts with a vague goal and messy, uncollected data—capabilities not yet tested here.
  • Contamination Risks: While obfuscation tests were promising, high-level strategies (like "use an XGBoost for this type of tabular data") are likely embedded in the models' pre-training, potentially making older competitions easier for AI than for the original human participants.

The authors have open-sourced the benchmark code and environment, suggesting that future versions should include more "High" complexity tasks to keep pace with rapidly advancing AI capabilities.

Summary updated

BibTeX
@inproceedings{chan2025mle,
  author = {Jun Shern Chan and Neil Chowdhury and Oliver Jaffe and James Aung and Dane Sherburn and Evan Mays and Giulio Starace and Kevin Liu and Leon Maksin and Tejal Patwardhan and Aleksander Madry and Lilian Weng},
  title = {{MLE-bench: Evaluating Machine Learning Agents on Machine Learning Engineering}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=6s5uXNWGIh},
}
Figure