MLZero: A Multi-Agent System for End-to-end Machine Learning Automation

Haoyang Fang, Boran Han, Nick Erickson, Xiyuan Zhang, Su Zhou, Anirudh Dagar, Jiani Zhang, Ali Caner Turkmen, Cuixiong Hu, Huzefa Rangwala, Ying Nian Wu, Bernie Wang, George Karypis

Introduction

Automated Machine Learning (AutoML) has traditionally focused on hyperparameter optimization and model selection within well-defined, pre-processed datasets. However, the real-world machine learning pipeline remains fragmented, requiring significant human intervention for data cleaning, structural analysis, and workflow configuration. While Large Language Models (LLMs) have shown promise as autonomous agents, they frequently encounter three critical bottlenecks: perception gaps regarding complex file structures, knowledge decay leading to API hallucinations, and "short-term amnesia" where agents repeat execution errors.

MLZero is a novel multi-agent framework designed to achieve "zero human intervention" by transforming raw, multimodal data into deployable models. By integrating a cognitive perception layer with dual memory systems—semantic and episodic—MLZero bridges the gap between noisy raw data and sophisticated engineering solutions.

Methodology

MLZero is architected as a hierarchical system comprising nine specialized agents organized into four functional modules:

1. Perception Module

This module serves as the system's sensory interface. It performs structural analysis on raw data directories, grouping similar files and extracting semantic metadata. This allows the system to identify task objectives and constraints autonomously. Based on this analysis, the module selects the most appropriate machine learning library (e.g., AutoGluon) for the specific task.

2. Semantic Memory

To mitigate the risk of LLM hallucinations regarding specialized ML libraries, MLZero utilizes an offline-indexed knowledge base of library documentation. A Summarization Agent and a Condensation Agent process long-form tutorials into precise, queryable guidance. This ensures the coding agent has access to accurate, up-to-date API patterns without being overwhelmed by irrelevant information.

3. Episodic Memory

This module maintains a chronological record of the current execution run. When code execution fails, an Error Analyzer Agent distills the logs into concise summaries and suggests tactical fixes. This prevents the system from entering "infinite loops" of repetitive mistakes, allowing it to learn from its own execution history in real-time.

4. Iterative Coding Loop

The execution phase involves a Coder Agent that generates scripts and an Executer Agent that runs them within a sandboxed environment. This loop continues iteratively—informed by both memory systems—until a successful model is produced or a predefined limit is reached.

Experimental Setup

The researchers evaluated MLZero across two primary benchmarks:

  • MLE-Bench Lite: A subset of 21 diverse Kaggle competitions covering image, text, tabular, and audio data.
  • Multimodal AutoML Agent Benchmark: A new, rigorous benchmark introduced by the authors consisting of 25 tasks with "raw" data, including multi-table structures, multilingual text, and multi-label classification challenges.

Results and Discussion

MLZero demonstrated significant performance gains over existing state-of-the-art (SOTA) AutoML agents. On the MLE-Bench Lite, MLZero achieved an average rank of 1.43, outperforming competitors such as AIDE (2.36) and ResearchAgent (3.29), and securing six gold medals.

In the Multimodal Benchmark, MLZero achieved a 92% success rate, representing a 263.6% improvement over the next best method. Ablation studies confirmed the necessity of the memory modules; removing error-correction components dropped the success rate to 75% and significantly increased token consumption.

System Design vs. Model Size

A key finding of the study is that MLZero, when powered by a compact 8B parameter model, outperformed much larger SOTA systems. This suggests that a well-structured multi-agent architecture with robust memory systems is more critical for complex engineering tasks than raw model scale. Furthermore, the hierarchical perception module allowed the system to handle massive datasets (such as RVL-CDIP with 400,000 files) that typically exceed the context windows of standard LLMs.

Limitations and Future Work

Despite its success, MLZero is constrained by its library dependencies; performance may degrade if a task requires a niche library not indexed in its Semantic Memory. Additionally, the system cannot currently anticipate "silent bugs"—undocumented behaviors in third-party libraries.

Future research will focus on "active learning" for agents, allowing them to experiment with libraries during a training phase to discover undocumented behaviors. The team also aims to further optimize the system for even smaller, on-device models to improve efficiency and accessibility.

Conclusion

MLZero represents a significant step toward fully autonomous machine learning. By addressing the core challenges of perception, knowledge retention, and error correction through a multi-agent approach, it demonstrates that even smaller language models can solve complex, end-to-end engineering problems when supported by the right architectural framework.

Summary updated

BibTeX
@inproceedings{fang2025mlzero,
  author = {Haoyang Fang and Boran Han and Nick Erickson and Xiyuan Zhang and Su Zhou and Anirudh Dagar and Jiani Zhang and Ali Caner Turkmen and Cuixiong Hu and Huzefa Rangwala and Ying Nian Wu and Bernie Wang and George Karypis},
  title = {{MLZero: A Multi-Agent System for End-to-end Machine Learning Automation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=9t7gfYUp0U},
}
Figure