TL;DR
MLEvolve is a new self-evolving multi-agent framework that automates end-to-end machine learning engineering and algorithm discovery using large language models (LLMs). By introducing graph-based search, retrospective memory, and decoupled hierarchical planning, it achieves state-of-the-art performance on MLE-Bench, securing a 65.3% medal rate in half the standard runtime.
What Problem Does This Paper Address?
Building high-performance machine learning pipelines is a long-horizon, iterative process that typically requires significant human expertise. While LLM-based coding agents have attempted to automate Machine Learning Engineering (MLE), existing frameworks struggle with three core limitations:
- Information Isolation: Standard tree or linear search methods keep exploration paths isolated, preventing agents from sharing successful strategies across different branches.
- Memoryless Search: Most frameworks rely solely on scalar rewards to guide search, failing to accumulate and reuse qualitative insights from past attempts.
- Lack of Hierarchical Control: Coupling high-level planning and low-level code generation into a single step often forces the agent to completely rewrite code at every iteration, which is highly inefficient and error-prone.
Methods
MLEvolve tackles these challenges by unifying three core components into a self-evolving multi-agent pipeline:
- Progressive Monte Carlo Graph Search (MCGS): Instead of a strict tree, MLEvolve structures the search space as a directed graph. It uses primary edges for standard parent-child generation and reference edges to allow cross-branch information flow. An entropy-inspired progressive schedule dynamically shifts the agent from broad exploration (using UCT) to focused exploitation (Elite-Guided selection) over time.
- Retrospective Memory: To prevent memoryless search, it pairs a static domain knowledge base (for cold-start priors) with a dynamic global memory that logs plans, code, metrics, and execution feedback. It uses hybrid retrieval (lexical BM25 + semantic FAISS) to pull relevant past experiences during planning and debugging.
- Hierarchical Planning with Adaptive Code Generation: The framework separates strategic planning ("what to modify and why") from code implementation ("how to do it"). The coder agent adaptively switches between three modes depending on the search state: Base mode (full rewrite for initial drafts), Stepwise mode (module-by-module for complex pipelines), and Diff mode (localized patch editing for fine-tuning).
Datasets
The authors evaluated MLEvolve on two primary benchmarks:
- MLE-Bench: A benchmark containing 75 curated Kaggle competitions spanning NLP, computer vision, signal processing, and tabular data, categorized into low, medium, and high complexity.
- AlphaEvolve Math: A set of 15 open-ended mathematical optimization tasks used to test cross-domain generalization.
Key Insights and Ideas
- Graphs Beat Trees for Code Search: Allowing cross-branch reference edges mimics how human data scientists work—borrowing a good loss function or preprocessing trick from an alternative attempt to fix a stagnant pipeline.
- Dynamic Entropy Control is Crucial: Early on, the agent needs to explore widely. As time runs out, narrowing down the active branches prevents wasting compute on dead ends.
- Diff-based Editing Stabilizes Long-Horizon Tasks: Completely rewriting code introduces new bugs. By isolating changes to small "diffs" when a working solution exists, the agent preserves stable code while incrementally optimizing performance.
Key Results
- State-of-the-Art on MLE-Bench: MLEvolve achieved a 65.3% average medal rate and a 34.7% gold medal rate, outperforming all existing proprietary and open-source baselines (such as MARS+ and AIBuildAI).
- Half the Time, Better Results: Remarkably, MLEvolve achieved these results under a 12-hour budget, which is half the standard 24-hour runtime allocated to other baselines.
- High Reliability: It achieved a 100% valid submission rate and outperformed the human median Kaggle score on 76.0% of the tasks.
- Cross-Domain Generalization: When tested on mathematical optimization, MLEvolve outperformed specialized algorithm discovery methods (like AlphaEvolve) on 11 out of 15 tasks.
Limitations and Future Work
While MLEvolve shows exceptional performance, the authors note that its current evaluation is centered on machine learning engineering and mathematical algorithm discovery. As a future direction, they plan to extend the framework to more general "AI for Science" scenarios, including automated scientific experimentation, cross-disciplinary algorithm discovery, and fully autonomous research workflows.
Summary updated