Manuscript Offprint

arXiv:2610.22344

MLExpert: Towards a Generalist Agentic Model for Autonomous Machine Learning Engineering

Shangheng Du, Jinxin Shi, Shuaiyu Zhang, Yiming Wu, Junpeng Zhao, Shiyang Feng, Xin Li, Liang He, Xiangchao Yan, Bo Zhang

Shangheng Du12^{12}, Jinxin Shi12^{12}, Shuaiyu Zhang2^{2}, Yiming Wu2^{2}, Junpeng Zhao2^{2}, Shiyang Feng2^{2}, Xin Li2^{2}, Liang He12^{12}, Xiangchao Yan2^{2} and Bo Zhang2^{2}

1^{1}East China Normal University, 2^{2}Shanghai Artificial Intelligence Laboratory

Large language models (LLMs) are expanding from assisting scientific research and engineering to autonomously developing and improving AI systems, advancing AI for AI (AI4AI) as a pathway toward recursive self-improvement (RSI). Workflow-driven machine learning engineering (MLE) systems provide a practical path toward this pursuit through complex orchestration that manages long-horizon experimentation, while recent MLE systems adopt model-directed interaction, allowing models to autonomously organize experiments and adapt optimization strategies based on execution feedback. However, feedback from each experiment reflects several preceding decisions, and a long MLE run contains many such costly experiments. Training must therefore select useful supervision from long interaction trajectories and learn from intermediate outcomes as they become available. To address these challenges, we propose a post-training method for autonomous long-horizon MLE optimization and apply it to train MLExpert, a 35B Mixture-of-Experts agentic model. We design the Kaggle-MLE Factory to construct executable tasks and an interaction harness for model-directed experimentation. Hierarchical agentic SFT transfers general tool-use and coding capabilities to MLE through outcome-guided supervision. Windowed Interaction RL (WIRL) treats the multi-turn decisions between successive experiment results as an execution window and assigns it a shared outcome-based reward. Asynchronous collection and policy correction support policy updates before the trajectory ends. On MLE-Bench Lite, MLExpert improves the average medal rate of the base model from 37.9% to 72.7%, achieving performance comparable to larger frontier models such as Kimi-K3 and GLM-5.3. Further experiments show that MLExpert improves performance on NatureBench Lite, agent scaffold optimization, and algorithm optimization, suggesting that the learned optimization capability generalizes to other tasks.

Code

Model

1. Introduction

The rapid advancement of reasoning, code generation, and tool interaction in large language models (LLMs) is enabling artificial intelligence (AI) to move beyond assisting scientific research and engineering toward autonomously developing and improving AI systems. These efforts include model training, optimization of solver programs, and algorithm design, making AI for AI (AI4AI) a research direction toward recursive self-improvement (RSI). In this context, machine learning engineering (MLE) provides a concrete setting for this goal, requiring long-horizon optimization through repeated execution, feedback analysis, and revision rather than one-shot generation.

Most existing MLE systems [1, 2, 3] extend code generation into iterative optimization through search, memory, or multi-agent collaboration. As shown in Figure 1(a), predefined workflows or search rules typically control experiment sequencing and stage transitions, while LLMs primarily generate or debug code at designated steps. These systems rely heavily on manually designed control logic to

♠: Co-first Authors ◇: Project Lead ♣: Corresponding Authors

Please send correspondence regarding this report to yanxiangchao@pjlab.org.cn and zhangbo@pjlab.org.cn.

(a) External orchestration

Figure

(b) Model-directed autonomous interaction

Figure 1 | Decision making in long-horizon MLE optimization. (a) External orchestration organizes optimization through predefined workflows and search rules. (b) In model-directed interaction, the model selects subsequent actions based on experimental states and execution feedback.

organize long-horizon experimentation.

Recently, Arbor [4] and Argus [5] maintain persistent research states and allow models to design, continue, and revise experiments, placing greater demands on the model's ability to plan experiments and sustain optimization over long interaction horizons. ML-Agent [6] combines multi-turn demonstrations with single-step RL, while Frontis-MA1 [7] trains program evolution operators through SFT and RL and integrates them into an external evolutionary search framework. These approaches primarily train models for single-step decisions or local operations within externally organized processes. In contrast, we study how to train models to organize experiments and improve solutions over sustained interaction, using experience and execution feedback from real-world MLE tasks. However, training this long-horizon optimization capability poses three challenges. 1) Open-ended MLE requires an interaction environment that preserves experimental states while leaving action selection to the model. 2) High-quality long-horizon supervision is difficult to obtain because MLE tasks are heterogeneous and interaction trajectories may mix useful exploration and failure recovery with degraded decisions. 3) Each costly experiment returns feedback on several preceding decisions before the full run ends; online RL must use this intermediate signal while handling policy mismatch during asynchronous collection.

To address these challenges, we propose a post-training method for autonomous MLE that combines a model-directed long-horizon interaction harness, hierarchical agentic SFT, and Windowed Interaction Reinforcement Learning (WIRL). Based on this, we train MLExpert, a 35B Mixture-of-Experts (MoE) agentic model, to learn long-horizon optimization strategies. As shown in Figure 1(b), MLExpert uses sustained tool interaction within the interaction harness to autonomously organize experiments, revise solutions based on execution feedback, and maintain submission candidates. We build the Kaggle-MLE Factory to convert historical Kaggle competitions into executable MLE tasks. Hierarchical agentic SFT transfers general tool-use and coding capabilities to MLE optimization, with execution outcomes guiding the selection of trajectories and segments for supervision. To use this intermediate feedback, WIRL treats each completed experiment as the boundary of an execution window containing decisions since the previous result. It trains those decisions with a shared outcome-based reward, while asynchronous collection and policy correction allow updates as trajectories continue. On MLE-Bench Lite, MLExpert improves the average medal rate of the base model from 37.9% to 72.7%, achieving performance comparable to larger models such as Kimi-K3 and GLM-5.3. MLExpert also improves performance on NatureBench Lite and transfers its optimization capabilities to agent scaffold and algorithm optimization tasks. Our key contributions are:

• We introduce MLExpert, a 35B MoE model for autonomous MLE, trained with hierarchical agentic

SFT and WIRL. WIRL links execution feedback to multi-turn decisions within execution windows and combines local progress rewards with policy correction for asynchronous online learning.

• We build the Kaggle-MLE Factory and an Interaction Harness to provide executable tasks and model-directed long-horizon interaction for training and evaluation.

• Extensive experiments show that MLExpert improves the base model's average medal rate from 37.9% to 72.7% on MLE-Bench Lite, improves performance on NatureBench Lite, and generalizes to agent scaffold and algorithm optimization tasks.

References (33)