Abstract
Large language models (LLMs) are catalyzing the development of autonomous AI research agents for scientific and engineering discovery. We present FM Agent, a novel and general-purpose multi-agent framework that leverages a synergistic combination of LLM-based reasoning and large-scale evolutionary search to address complex real-world challenges. The core of FM Agent integrates several key innovations: 1) a cold-start initialization phase incorporating expert guidance, 2) a novel evolutionary sampling strategy for iterative optimization, 3) domain-specific evaluators that combine correctness, effectiveness, and LLM-supervised feedback, and 4) a distributed, asynchronous execution infrastructure built on Ray. Demonstrating broad applicability, our system has been evaluated across diverse domains, including operations research, machine learning, GPU kernel optimization, and classical mathematical problems. FM Agent reaches state-of-the-art results autonomously, without human interpretation or tuning -- 1976.3 on ALE-Bench (+5.2%), 43.56% on MLE-Bench (+4.0pp), up to 20x speedups on KernelBench, and establishes new state-of-the-art (SOTA) results on several classical mathematical problems.
Introduction
In industrial and scientific settings, the "evaluation" of a solution is often straightforward (e.g., measuring model accuracy or code latency), but the "discovery" process remains incredibly difficult. Traditionally, this requires specialized engineers to manually iterate through ideas, retrieve knowledge, and refine algorithms. While existing AI agents can automate parts of this, they often suffer from premature convergence, lack of scalability, and weak feedback loops where LLMs struggle to interpret complex execution errors.
FM Agent addresses these challenges by moving beyond simple code generation to autonomous, iterative discovery. By combining LLM-based reasoning with large-scale evolutionary search, the framework systematically explores the solution space to find high-performing, non-intuitive results.
Methodology
FM Agent operates as a two-stage system: Cold Start and Evolve, orchestrated by a distributed infrastructure.
Evolutionary Loop and Architecture
The framework is built on Ray, allowing it to orchestrate thousands of concurrent evaluations across distributed computing clusters asynchronously. The core discovery process is a cyclic loop involving rollout agents, multi-faceted evaluation, and adaptive sampling.
- Cold-Start Initialization: The system uses diverse generative agents and optional human expert guidance to populate an initial pool of high-quality candidate solutions.
- Adaptive Diversity-Driven Sampling: Using a "Multi-Population Island Model," solutions are segregated into parallel islands that evolve independently. This prevents premature convergence on a single idea. Periodically, islands "cross-pollinate" to share successful strategies.
- Domain-Specific Evaluation: The system employs a multi-faceted scoring system combining functional correctness, operational efficiency, and LLM-supervised qualitative feedback.
- Self-Correction via Feedback: The "Evolve" stage uses execution logs and performance metrics as a rich signal. For instance, if a GPU kernel is slow, the agent analyzes memory traffic and adjusts its tiling strategy accordingly.
Experimental Results
The authors evaluated FM Agent across four high-difficulty domains: machine learning engineering (MLE-Bench), long-horizon optimization (ALE-Bench), GPU kernel optimization (KernelBench), and classical mathematics.
MLE-Bench Performance
On OpenAI’s MLE-Bench, which consists of 75 tasks based on Kaggle competitions, FM Agent established a new SOTA with a 43.56% medal rate, surpassing the previous leader (InternAgent) by 4.0 percentage points. Notably, it achieved a 22.67% gold medal rate, demonstrating its ability to outperform most human ML researchers in specific scenarios.
Other Benchmarks
- ALE-Bench: Reached a mean score of 1976.3, a 5.2% improvement over the specialized ALE-Agent.
- KernelBench: Delivered speedups ranging from 2.08x to 20.77x compared to standard
torch.compile. - Mathematics: Discovered a new best-known solution for the 26-circle packing problem, outperforming previous results from AlphaEvolve.
Conclusion
FM Agent demonstrates that performance in autonomous discovery scales with test-time compute. By treating discovery as a search problem rather than a single-shot generation task, the agent can "think" its way to SOTA results. While computational costs remain high, the system shows considerable promise for large-scale enterprise R&D workflows and fundamental scientific research, where it can accelerate innovation and deliver substantial engineering advances.
Summary updated