Skip to content
Projets

À propos

Implémentation officielle de « ML-Master: Towards AI-for-AI via Integration of Exploration and Reasoning »

IA et apprentissage automatique

Comment ces chiffres sont mesurés

What you can do

  • 🥇 Overall (All) - 29.33 - 56.44 - +92.7% ↑
  • 🟢 Low Complexity - 48.48 - 75.76 - +56.2% ↑
  • 🟡 Medium Complexity - 20.18 - 50.88 - +152.2% ↑
  • 🔴 High Complexity - 24.44 - 42.22 - +72.8% ↑

Progression mesurée des étoiles

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

ML-Master Logo

📰 What's New

  • [2026/03/24] We have expanded ML-Master 2.0 into a self-evolving scientific agent framework, EvoMaster, and officially open-sourced it! Furthermore, we have implemented the 2025 SciMaster series agents (including ML-Master 1.0/2.0, X-Master, and Browse-Master) based on EvoMaster. Please stay tuned for more updates on EvoMaster! Rest assured, we will continue to actively maintain this repository as well.
  • [2026/01/16] Release the preprint version of ML-Master 2.0! See the ArXiv.
  • [2025/12/16] 🎉 ML-Master 2.0 reaches new heights! Achieving #1 on MLE-Bench Leaderboard with 56.44% overall performance (92.7% improvement over 1.0).
  • [2025/10/30] We upload a new branch feature-dev with improved readability and maintainability. If you need to continue developing on ML-Master or apply ML-Master to downstream tasks, please switch the branch to feature-dev.
  • [2025/10/29] We now provide a Docker image for environment setup! Check it out here.
  • [2025/10/27] Add support for gpt-5.
  • [2025/08/08] Initial code release is now available on GitHub!
  • [2025/06/19] Release the preprint version! See the ArXiv.
  • [2025/06/17] Release the initial version! See the initial manuscript here.

ML-Master 2.0: Cognitive Accumulation for Ultra-Long-Horizon Agentic Science in Machine Learning Engineering

project arXiv WeChat

🚀 Overview

ML-Master 2.0 is a pioneering agentic science framework that tackles the challenge of ultra-long-horizon autonomy through cognitive accumulation, facilitated by a Hierarchical Cognitive Caching (HCC) architecture that dynamically distills transient execution traces into stable long-term knowledge, ensuring that tactical execution and strategic planning remain decoupled yet co-evolve throughout complex, long-horizon scientific explorations.

ML-Master 2.0

📊 Performance Highlights

ML-Master 2.0 Score

ML-Master 2.0 achieves #1 on MLE-Bench Leaderboard with massive performance gains:

Metric (%) ML-Master 1.0 ML-Master 2.0 Relative Improvement
🥇 Overall (All) 29.33 56.44 +92.7% ↑
🟢 Low Complexity 48.48 75.76 +56.2% ↑
🟡 Medium Complexity 20.18 50.88 +152.2% ↑
🔴 High Complexity 24.44 42.22 +72.8% ↑

📆 Coming Soon

  • Grading report release
  • Paper release of ML-Master 2.0
  • Initial code release of ML-Master 2.0

🙏 Acknowledgements

SJTU SAI
SJTU SAI

✍️ Citation

If you find our work helpful, please use the following citations.

@misc{zhu2026ultralonghorizonagenticsciencecognitive,
      title={Toward Ultra-Long-Horizon Agentic Science: Cognitive Accumulation for Machine Learning Engineering}, 
      author={Xinyu Zhu and Yuzhu Cai and Zexi Liu and Bingyang Zheng and Cheng Wang and Rui Ye and Jiaao Chen and Hanrui Wang and Wei-Chen Wang and Yuzhi Zhang and Linfeng Zhang and Weinan E and Di Jin and Siheng Chen},
      year={2026},
      eprint={2601.10402},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2601.10402}, 
}
@misc{liu2025mlmasteraiforaiintegrationexploration,
      title={ML-Master: Towards AI-for-AI via Integration of Exploration and Reasoning}, 
      author={Zexi Liu and Yuzhu Cai and Xinyu Zhu and Yujie Zheng and Runkun Chen and Ying Wen and Yanfeng Wang and Weinan E and Siheng Chen},
      year={2025},
      eprint={2506.16499},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2506.16499}, 
}

ML-Master: Towards AI-for-AI via Intergration of Exploration and Reasoning

project arXiv WeChat DockerHub

Status: ⌛ Initial code release is now available!

🚀 Overview

ML-Master is a novel AI4AI (AI-for-AI) agent that integrates exploration and reasoning into a coherent iterative methodology, facilitated by an adaptive memory mechanism that selectively captures and summarizes relevant insights and outcomes, ensuring each component mutually reinforces the other without compromising either.

ML-Master

📊 Performance Highlights

ML-Master outperforms prior baselines on the MLE-Bench:

Metric Result
🥇 Average Medal Rate 29.3%
🧠 Medium Task Medal Rate 20.2%, more than doubling the previous SOTA
🕒 Runtime Efficiency 12 hours, 50% budget

ML-Master

📆 Coming Soon

  • Grading report release
  • Paper release of ML-Master
  • Initial code release of ML-Master (expected early August)
  • Code refactoring for improved readability and maintainability

🚀 Quick Start

🛠️ Environment Setup

Pull and Start Docker Container

Please execute the following commands to pull the latest image and start an interactive container:

# Pull the latest image
docker pull sjtuagents/ml-master:latest

# Start the container
docker run --rm --gpus all --ipc=host --shm-size=64g \
  --runtime=nvidia --ulimit memlock=-1 --ulimit stack=67108864 \
  -it sjtuagents/ml-master:latest /bin/bash

# Clone the repository
git clone https://github.com/sjtu-sai-agents/ML-Master.git
cd ML-Master
conda activate ml-master

Install ml-master

To get started, make sure to first install the environment of MLE-Bench. After that, install additional packages based on requirements.txt.

git clone https://github.com/sjtu-sai-agents/ML-Master.git
cd ML-Master
conda create -n ml-master python=3.12
conda activate ml-master

# 🔧 Install MLE-Bench environment here
# (Follow the instructions in its README)

pip install -r requirements.txt

📦 Download MLE-Bench Data

The full MLE-Bench dataset is over 2TB. We recommend downloading and preparing the dataset using the scripts and instructions provided by MLE-Bench.

Once prepared, the expected dataset structure looks like this:

/path/to/mle-bench/plant-pathology-2020-fgvc7/
└── prepared
    ├── private
    │   └── test.csv
    └── public
        ├── description.md
        ├── images/
        ├── sample_submission.csv
        ├── test.csv
        └── train.csv

🪄 ML-Master uses symbolic links to access the dataset. You can download the data to your preferred location and ML-Master will link it accordingly.


🧠 Configure DeepSeek and GPT

ML-Master requires LLMs to return custom <think></think> tags in the response. Ensure your DeepSeek API supports this and follows the OpenAI client interface below:

self.client = OpenAI(
    api_key=self.api_key,
    base_url=self.base_url
)
response = self.client.completions.create(**params)

If your API does not support this interface or you are using a closed source model(e.g. gpt-5) as coding model, please add agent.steerable_reasoning=false to run.sh. This may result in some performance loss.

Set your base_url and api_key in the run.sh script. GPT-4o is used only for evaluation and feedback, consistent with MLE-Bench.

# Basic configuration
AGENT_DIR=./
EXP_ID=plant-pathology-2020-fgvc7   # Competition name
dataset_dir=/path/to/mle-bench      # Path to prepared dataset
MEMORY_INDEX=0                      # GPU device ID

# DeepSeek config
code_model=deepseek-r1
code_temp=0.5
code_base_url="your_base_url"
code_api_key="your_api_key"

# GPT config (used for feedback & metrics)
feedback_model=gpt-4o-2024-08-06
feedback_temp=0.5
feedback_base_url="your_base_url"
feedback_api_key="your_api_key"

# CPU allocation
start_cpu=0
CPUS_PER_TASK=36
end_cpu=$((start_cpu + CPUS_PER_TASK - 1))

# Time limit (in seconds)
TIME_LIMIT_SECS=43200

▶️ Start Running

Before running ML-Master, you need to launch a server which tells agent whether the submission is valid or not, allowed and used by MLE-Bench.

bash launch_server.sh

After that, simply run the following command:

bash run.sh

📝 Logs and solutions will be saved in:

  • ./logs (for logs)
  • ./workspaces (for generated solutions)

📊 Evaluation

For evaluation details, please refer to the official MLE-Bench evaluation guide.

🙏 Acknowledgements

We would like to express our sincere thanks to the following open-source projects that made this work possible:

  • 💡 MLE-Bench — for providing a comprehensive and professional AutoML benchmarking platform.
  • 🌲 AIDE — for offering a powerful tree-search-based AutoML code framework that inspired parts of our implementation.

💬 Contact Us

We welcome discussions, questions, and feedback! Join our WeChat group:

WeChat Group

✍️ Citation

If you find our work helpful, please use the following citations.

@misc{liu2025mlmasteraiforaiintegrationexploration,
      title={ML-Master: Towards AI-for-AI via Integration of Exploration and Reasoning}, 
      author={Zexi Liu and Yuzhu Cai and Xinyu Zhu and Yujie Zheng and Runkun Chen and Ying Wen and Yanfeng Wang and Weinan E and Siheng Chen},
      year={2025},
      eprint={2506.16499},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2506.16499}, 
}

Explorer des projets similaires

Chargement…