MLExpert: Towards a Generalist Agentic Model for Autonomous Machine Learning Engineering
Organizations: East China Normal University · Shanghai Artificial Intelligence Laboratory
Abstract
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. 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.
Figures & tables
| Model | MLExpert Harness | General-Purpose Harness | |||||
| Med+ | Gold | Silver | Bronze | Medal | Harness | Medal | |
| Same-scale baselines (35B total, 3B active) | |||||||
| Qwen3.6-35B-A3B | 62.1 | 22.7 | 7.6 | 7.6 | 37.9 | Claude Code | 42.4 |
| Ornith-1.5-35B-A3B | 57.6 | 22.7 | 12.1 | 4.5 | 39.4 | Claude Code | 47.0 |
| Nex-N2.5-mini | 66.7 | 24.2 | 13.6 | 9.1 | 47.0 | Claude Code | 36.4 |
| Larger frontier models | |||||||
| Model | Harness | M (%) | S (%) |
| Same-scale baselines | |||
| Qwen3.6-35B-A3B | Claude Code | 40.0 (4/10) | 0.0 (0/10) |
| Nex-N2.5-mini | Claude Code | 80.0 (8/10) | 20.0 (2/10) |
| Ornith-1.5-35B-A3B | Claude Code | 60.0 (6/10) | 30.0 (3/10) |
| Larger frontier models | |||
| DeepSeek-V4-Pro Preview | Claude Code | 60.0 (6/10) | 20.0 (2/10) |
| Method | Dev. | Held-out | Calls |
| Initial | 21.1 | 20.0 | 1.00 |
| Majority@5 | 24.4 | 24.8 | 5.00 |
| Base | 28.9 | 23.3 | 5.74 |
| Kimi-K3 | 45.6 | 40.0 | 8.65 |
| GLM-5.3 | 47.8 | 48.1 | 9.39 |
| MLExpert-SFT (Ours) | 37.8 | 38.1 | 3.51 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Tools | Purpose |
| analyze | Delegate data, result, or error analysis |
| execute_bash | Inspect data and runtime environment |
| write_full_code , patch_code | Create or revise candidate solutions |
| execute_code , control_run | Launch and control experiments |
| write_plan , edit_plan , read_plan | Maintain persistent experiment plans |
| list_nodes , select_node | Retrieve candidate states and history |
| Domain | Teacher | Source trajectories | Input records |
| MLE | GLM-5.2 | 412 | 4,961 |
| Scientific experimentation | GLM-5.2 | 143 | 342 |
| Scientific experimentation | Qwen3.8-Max | 81 | 236 |
| Total | 636 | 5,539 |
| Hyperparameter | Description | Value |
| General Agent SFT | ||
| Learning rate | Initial / minimum learning rate | |
| Batch size | Global batch size | 32 |
| Sequence length | Maximum training tokens per sequence | 131,072 |
| Training epochs | Number of passes over the dataset | 1 |
| Warmup ratio | Fraction of training steps for warmup | 0.05 |
| Model | Med+ (%) | Gold (%) | Silver (%) | Bronze (%) | Any Medal (%) |
| Qwen3.6-35B-A3B | |||||
| Ornith-1.5-35B-A3B | |||||
| Nex-N2.5-mini | |||||
| DeepSeek-V4-Pro Preview | 86.36 | 40.91 | 13.64 | 9.09 | 63.64 |
| MiniMax M3 | 81.82 | 54.55 | 13.64 | 0.00 | 68.18 |
| GLM-5.3 | 90.91 | 59.09 | 13.64 | 0.00 | 72.73 |
| Method | Any Medal (%) |
| GRPO | |
| PPO-style | |
| WIRL w/o trend reward | |
| WIRL w/o policy correction | |
| WIRL |
| Method | Development | Held-out accuracy (%) | Calls per problem | |||
| 2025 | 2023 | 2024 | 2026 | Average | ||
| Initial | 21.1 | 20.0 | 23.3 | 16.7 | 20.0 | 1.00 |
| Majority@5 | 24.4 | 18.9 | 32.2 | 23.3 | 24.8 | 5.00 |
| Base | 28.9 | 18.9 | 28.9 | 22.2 | 23.3 | 5.74 |
| Ornith-1.5-35B-A3B | 24.4 | 20.0 | 18.9 | 16.7 | 18.5 | 1.00 |
| Nex-N2.5-mini | 32.2 | 17.8 | 27.8 | 33.3 | 26.3 | 5.93 |
| Domain | Official task title | Base | MLExpert |
| Language Models | Masked Diffusion Demasking Policy | 0.148150 | 0.386696 |
| Classical & Adaptive Learning | Geometry-Robust Clustering Algorithm | 0.439982 | 0.525322 |
| Reinforcement Learning | Value-Based Discrete Control | 0.141849 | 0.425318 |
| Optimization & Theory | Multi-Objective Evolutionary Survival and Variation | 0.160624 | 0.350473 |
| Robotics | Behavioral Cloning Loss for Manipulation | 0.435532 | 0.444879 |
| Vision & Generation | 3D Scene Densification Strategy | 0.000000 | 0.000000 |
LLM Agent Training
Large language model agent training teaches models to plan, use tools, and learn from multi-step interaction with environments.
See all 585 papers