MLEvolve: A Self-Evolving Framework for Automated Machine Learning Algorithm Discovery

Shangheng Du, Xiangchao Yan, Jinxin Shi, Zongsheng Cao, Shiyang Feng, Zichen Liang, Boyuan Sun, Tianshuo Peng, Yifan Zhou, Xin Li, Jie Zhou, Liang He, Bo Zhang, Lei BaiarXiv 2026 · arXiv

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:

  1. Information Isolation: Standard tree or linear search methods keep exploration paths isolated, preventing agents from sharing successful strategies across different branches.
  2. Memoryless Search: Most frameworks rely solely on scalar rewards to guide search, failing to accumulate and reuse qualitative insights from past attempts.
  3. 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).
Framework of MLEvolve showing its core components: Progressive MCGS, Retrospective Memory, and Hierarchical Planning with Adaptive Code Generation.

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.
Effective branch count over search progress, showing how MLEvolve concentrates focus over time compared to Vanilla MCTS.
  • 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.
Average beat ratio over the 12-hour search budget compared to Vanilla MCTS.
  • 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

Abstract

Large language model (LLM) agents are increasingly applied to long-horizon tasks such as scientific discovery and machine learning engineering (MLE), where sustained self-evolution becomes a key capability. However, existing MLE agents suffer from inter-branch information isolation, memoryless search, and lack of hierarchical control, which together hinder long-horizon optimization. We present MLEvolve, an LLM-based self-evolving multi-agent framework for end-to-end machine learning algorithm discovery. By extending tree search to Progressive MCGS, MLEvolve enables cross-branch information flow through graph-based reference edges and gradually shifts the search from broad exploration to focused exploitation with an entropy-inspired progressive schedule. To allow the agent to evolve with accumulated experience, we introduce Retrospective Memory, which combines a cold-start domain knowledge base with a dynamic global memory for task-specific experience retrieval and reuse. For stable long-horizon iteration, we further decouple strategic planning from code generation with adaptive coding modes. Evaluation on MLE-Bench shows that MLEvolve achieves state-of-the-art performance across multiple dimensions including average medal rate and valid submission rate under a 12-hour budget (half the standard runtime). Moreover, MLEvolve also outperforms specialized algorithm discovery methods including AlphaEvolve on mathematical algorithm optimization tasks, demonstrating strong cross-domain generalization. Our code is available at https://github.com/InternScience/MLEvolve.
BibTeX
@misc{du2026mlevolve,
  author = {Shangheng Du and Xiangchao Yan and Jinxin Shi and Zongsheng Cao and Shiyang Feng and Zichen Liang and Boyuan Sun and Tianshuo Peng and Yifan Zhou and Xin Li and Jie Zhou and Liang He and Bo Zhang and Lei Bai},
  title = {{MLEvolve: A Self-Evolving Framework for Automated Machine Learning Algorithm Discovery}},
  year = {2026},
  eprint = {2606.06473},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.06473},
}

Loading related content...

Figure