README.md

June 7, 2026 · View on GitHub

MLEvolve

arXiv Hugging Face Project Page GitHub Stars

An agentic MLE (Machine Learning Engineering) system that automatically solves Kaggle-style ML competitions through Monte Carlo Graph Search (MCGS) with multi-agent collaboration. This is an advanced version based on AutoMLGen. MLEvolve achieves #1 on the MLE-bench leaderboard (65.3% medal rate, 12-hour budget) and obtains competitive results on mathematical optimization tasks.

Timeline

  • 2026-06-05 — Paper released on arXiv: MLEvolve: A Self-Evolving Framework for Automated Machine Learning Algorithm Discovery.
  • 2026-06-0165.3% medal rate on full MLE-bench (75 tasks), also achieves competitive results on mathematical optimization tasks.
  • 2026-03-23 — Now supports OpenAI-compatible APIs (GPT, Qwen, DeepSeek, etc.). Models with function calling support are recommended for best performance.
  • 2026-02-14 — MLEvolve codebase is now open-source.
  • 2026-02-14 — MLEvolve achieves #1 on MLE-bench (12-hour budget).

MLE-bench Results

Performance on the MLE-bench full set (75 tasks). Medal rates reported across three complexity levels and overall (mean ± SEM over 3 seeds).

Proprietary Methods

AgentLLMTime (h)Low (%)Medium (%)High (%)All (%)
FM-AgentGemini-2.5-Pro2462.1 ± 1.536.8 ± 1.533.3 ± 0.043.6 ± 0.9
MLE-STAR-Pro-1.5Gemini-2.5-Pro2468.2 ± 2.634.2 ± 1.533.3 ± 0.044.0 ± 1.3
MARSGemini-3-Pro-preview2474.2 ± 1.552.6 ± 3.037.8 ± 2.256.0 ± 1.5
MARS+Gemini-3-Pro-preview2478.8 ± 1.560.5 ± 1.544.4 ± 2.262.7 ± 0.8
AIBuildAIClaude-Opus-4.62477.3 ± 0.061.4 ± 0.946.7 ± 0.063.1 ± 0.4

Open-Source Methods

AgentLLMTime (h)Low (%)Medium (%)High (%)All (%)
AIDEo1-preview2435.9 ± 1.98.5 ± 0.411.7 ± 1.317.1 ± 0.6
ML-MasterDeepSeek-R11248.5 ± 1.520.2 ± 2.324.4 ± 2.229.3 ± 0.8
AIRA-Dojoo32455.0 ± 1.522.0 ± 1.221.7 ± 1.131.6 ± 0.8
R&D-Agentgpt-51268.2 ± 2.621.1 ± 1.522.2 ± 2.235.1 ± 0.4
LeerooGemini-3-Pro-preview2468.2 ± 2.644.7 ± 1.540.0 ± 0.050.7 ± 1.3
ML-Master 2.0DeepSeek-V3.2-Speciale2475.8 ± 1.550.9 ± 3.542.2 ± 2.256.4 ± 2.5
MLEvolve (Ours)Gemini-3.1-Pro-preview1280.3 ± 1.564.0 ± 0.946.7 ± 0.065.3 ± 0.8

Mathematical Optimization Results

Beyond machine-learning engineering, MLEvolve generalizes to open problems in mathematical optimization. Every baseline here (AlphaEvolve and its v2, SimpleTES, TTT-Discover, OpenEvolve) is a framework purpose-built for optimization; even so, MLEvolve matches or surpasses AlphaEvolve on 14 of 15 tasks and achieves the best result among all compared methods on 11 of 15 tasks.

Comparison on 15 mathematical programming tasks. Each column header carries the optimization direction ( = higher is better, = lower is better); bold marks the best value. The 15 tasks are split across three tables so the page fits — see the legend below for full task names.

Tasks 1–5

MethodHex packing ↓Circle/square ↑Circle/rect ↑Heilbronn convex ↑Heilbronn tri ↑
AlphaEvolve3.9300922.63586275642.36583213340.03093688900.03652988988003016
AlphaEvolve-v23.9310.03090.0365
SimpleTES3.9312.635983
TTT-Discover
OpenEvolve
MLEvolve3.92847593022.63598303952.36583237590.03093720790.03652988988003020

Tasks 6–10

MethodKissing d11 ↑Sum-diff 1 ↑Sum-diff 2 ↑Uncertainty ↓Autocorr 1 ↓
AlphaEvolve5931.14798896511.15841728160.35209910442251.5052939684
AlphaEvolve-v25931.14791.15840.35211.5032
SimpleTES1.1439751.503871
TTT-Discover1.5028628983
OpenEvolve1.507190
MLEvolve5921.19017742191.15854577000.35209910441601.5028628749

Tasks 11–15

MethodAutocorr 3v ↓Autocorr 3 ↓Autocorr 2 ↑Max/min ↓Min overlap ↓
AlphaEvolve1.46876206971.45564279540.896279944212.889266112030.3809230351
AlphaEvolve-v21.45570.96112.8892661120.380924
SimpleTES1.4536750.9626940.380868
TTT-Discover0.9591000.3808753232
OpenEvolve1.4600000.9449000.380965
MLEvolve1.45876989221.45485074820.905421797112.88922990770.3808968496
Task legend (short header → full task name)
ShortFull task name
Hex packingPacking hexagons in hexagons
Circle/squareCircle packing in a square
Circle/rectCircle packing in a rectangle
Heilbronn convexHeilbronn convex regions
Heilbronn triHeilbronn triangles
Kissing d11Kissing number dim 11
Sum-diff 1Sums differences problems 1
Sum-diff 2Sums differences problems 2
UncertaintyAn uncertainty inequality
Autocorr 1First autocorrelation inequality
Autocorr 3vThird autocorrelation (variant)
Autocorr 3Third autocorrelation inequality
Autocorr 2Second autocorrelation inequality
Max/minMax-to-min ratios
Min overlapMinimum Overlap Problem

Coding Module in AI-Scientist

MLEvolve powers the coding and algorithm optimization module within the InternAgent system. Built on MLEvolve's refinement engine, InternAgent 1.5 further enables autonomous algorithm design and end-to-end scientific discovery.

Key Technical Contributions

Multi-Mode Planning & Code Generation — Supports base (single-shot) and memory-enhanced (two-stage retrieval-augmented) planning, paired with three code generation strategies: single-pass, stepwise multi-agent pipeline, and incremental SEARCH/REPLACE diff patching. Different modes are dispatched adaptively based on search state.

Experience-Driven Memory — A global memory layer records plan, code, metrics, and success/failure labels for every node. Retrieval combines BM25 + FAISS allowing the planner to reinforce proven strategies and avoid known pitfalls from its own search history. Different agents query memory in different ways to encourage novel approaches.

Progressive MCGS with Cross-Branch Fusion — The search graph extends vanilla UCT with piecewise exploration decay, time-aware explore-exploit switching, and automatic stagnation detection. Multiple solution branches evolve in parallel; when progress stalls, the system performs cross-branch fusion — merging insights from top-performing nodes across different branches into new solution candidates — and trajectory-aware evolution that leverages each branch's full improvement history to propose informed next steps.

Setup

1. Prepare mle-bench — Install mle-bench and download the dataset following its instructions.

2. Install MLEvolve dependencies

pip install --no-deps -r requirements_base.txt
pip install --no-deps -r requirements_ml.txt
pip install --no-deps -r requirements_domain.txt

3. Configure — Edit config/config.yaml, fields you must fill in:

dataset_dir: "/path/to/mle-bench/data"

agent:
  code:
    base_url: "https://your-gemini-endpoint"
    api_key: "your-api-key"
  feedback:
    base_url: "https://your-gemini-endpoint"
    api_key: "your-api-key"

Other tunable fields (agent.steps, agent.time_limit, etc.) have sensible defaults — see comments in the yaml file.

If agent.use_global_memory: True, you must also set agent.memory_embedding_model_path to a valid HuggingFace embedding model name or local model path. Set agent.memory_embedding_device to cpu if CUDA is unavailable.

Cold-Start Models (optional)

Cold-start recommends pretrained models per task category based on engine/coldstart/models_guidance_classified.json. Most models auto-download from HuggingFace; for models requiring local weights, set torch_hub_dir in config.yaml. To disable cold-start entirely, set coldstart.use_coldstart: False.

Quick Start

bash run_single_task.sh <EXP_ID> <DATASET_DIR> [SERVER_ID]

# Example
bash run_single_task.sh denoising-dirty-documents /mle-bench/data 1

Results are written to ./runs/<timestamp>_<exp_id>/ including search tree logs, best solution code, and top-K candidate submissions.

Acknowledgments

We thank AIDE and ML-Master for their contributions to the development of the MCTS in MLE, and InternAgent 1.5 for its contributions to the development of the agentic memory mechanism. We sincerely thank all teams for their open-source contributions to the community.

Citation

If you find this repo useful, please cite our work.

@article{du2026mlevolve,
  title={MLEvolve: A Self-Evolving Framework for Automated Machine Learning Algorithm Discovery},
  author={Du, Shangheng and Yan, Xiangchao and Shi, Jinxin and Cao, Zongsheng and Feng, Shiyang and Liang, Zichen and Sun, Boyuan and Peng, Tianshuo and Zhou, Yifan and Li, Xin and Zhou, Jie and He, Liang and Zhang, Bo and Bai, Lei},
  journal={arXiv preprint arXiv:2606.06473},
  year={2026}
}

@article{du2025automlgen,
  title={AutoMLGen: Navigating Fine-Grained Optimization for Coding Agents},
  author={Du, Shangheng and Yan, Xiangchao and Jiang, Dengyang and Yuan, Jiakang and Hu, Yusong and Li, Xin and He, Liang and Zhang, Bo and Bai, Lei},
  journal={arXiv preprint arXiv:2510.08511},
  year={2025}
}

@article{feng2026internagent,
  title={InternAgent-1.5: A Unified Agentic Framework for Long-Horizon Autonomous Scientific Discovery},
  author={Shiyang Feng and Runmin Ma and Xiangchao Yan and Yue Fan and Yusong Hu and Songtao Huang and Shuaiyu Zhang and Zongsheng Cao and Tianshuo Peng and Jiakang Yuan and Zijie Guo and Zhijie Zhong and Shangheng Du and Weida Wang and Jinxin Shi and Yuhao Zhou and Xiaohan He and Zhiyin Yu and Fangchen Yu and Bihao Zhan and Qihao Zheng and Jiamin Wu and Mianxin Liu and Chi Zhang and Shaowei Hou and Shuya Li and Yankai Jiang and Wenjie Lou and Lilong Wang and Zifu Wang and Jiong Wang and Wanghan Xu and Yue Deng and Dongrui Liu and Yiheng Wang and Wenlong Zhang and Fenghua Ling and Shufei Zhang and Xiaosong Wang and Shuangjia Zheng and Xun Huang and Siqi Sun and Shuyue Hu and Peng Ye and Chunfeng Song and Bin Wang and Conghui He and Yihao Liu and Xin Li and Qibin Hou and Tao Chen and Xiangyu Yue and Bin Wang and Liang He and Dahua Lin and Bowen Zhou and Bo Zhang and Lei Bai},
  journal={arXiv preprint arXiv:2602.08990},
  year={2026}
}