MLEvolve: A Self-Evolving Framework for Automated Machine Learning Algorithm Discovery
About
Large language model (LLM) agents are increasingly applied to long-horizon tasks such as scientific discovery and machine learning engineering (MLE), where sustained self-evolution becomes a key capability. However, existing MLE agents suffer from inter-branch information isolation, memoryless search, and lack of hierarchical control, which together hinder long-horizon optimization. We present MLEvolve, an LLM-based self-evolving multi-agent framework for end-to-end machine learning algorithm discovery. By extending tree search to Progressive MCGS, MLEvolve enables cross-branch information flow through graph-based reference edges and gradually shifts the search from broad exploration to focused exploitation with an entropy-inspired progressive schedule. To allow the agent to evolve with accumulated experience, we introduce Retrospective Memory, which combines a cold-start domain knowledge base with a dynamic global memory for task-specific experience retrieval and reuse. For stable long-horizon iteration, we further decouple strategic planning from code generation with adaptive coding modes. Evaluation on MLE-Bench shows that MLEvolve achieves state-of-the-art performance across multiple dimensions including average medal rate and valid submission rate under a 12-hour budget (half the standard runtime). Moreover, MLEvolve also outperforms specialized algorithm discovery methods including AlphaEvolve on mathematical algorithm optimization tasks, demonstrating strong cross-domain generalization. Our code is available at https://github.com/InternScience/MLEvolve.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Machine learning engineering | MLE-Bench full official | Medal Rate (Low)80.3 | 23 | |
| Hexagon Packing | Hexagon Packing | Best Score3.9285 | 12 | |
| Ratio / overlap optimization | Minimum Overlap Problem | Objective Value0.3809 | 6 | |
| Autocorrelation / inequalities | Second autocorrelation inequality | Objective Value0.9054 | 6 | |
| Autocorrelation / inequalities | First autocorrelation inequality | Objective Value1.5029 | 6 | |
| Autocorrelation / inequalities | Third autocorrelation inequality | Objective Value1.4549 | 5 | |
| Additive combinatorics | Sums differences problems 1 | Objective Value1.1902 | 4 | |
| Additive combinatorics | Sums and differences problems 2 | Objective Value1.1585 | 3 | |
| Geometric packing / regions | Circle packing in a square | Objective Value2.636 | 3 | |
| Autocorrelation / inequalities | An uncertainty inequality | Objective Value0.3521 | 3 |