The FM Agent

Annan Li, Chufan Wu, Zengle Ge, Yee Hin Chong, Zhinan Hou, Lizhe Cao, Cheng Ju, Jianmin Wu, Huaiming Li, Haobo Zhang, Shenghao Feng, Mo Zhao, Fengzhi Qiu, Rui Yang, Mengmeng Zhang, Wenyi Zhu, Yingying Sun, Quan Sun, Shunhao Yan, Danyu Liu, Dawei Yin, Dou Shen · OpenReview

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.

The FM Agent architecture integrates expert guidance and external knowledge into a cyclic evolutionary loop managed by Ray.
  1. Cold-Start Initialization: The system uses diverse generative agents and optional human expert guidance to populate an initial pool of high-quality candidate solutions.
  2. 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.
  3. Domain-Specific Evaluation: The system employs a multi-faceted scoring system combining functional correctness, operational efficiency, and LLM-supervised qualitative feedback.
  4. 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.

FM Agent achieves state-of-the-art results on MLE-Bench, particularly excelling in high-difficulty tasks compared to other leading agents.

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

BibTeX
@misc{li2025fm,
  author = {Annan Li and Chufan Wu and Zengle Ge and Yee Hin Chong and Zhinan Hou and Lizhe Cao and Cheng Ju and Jianmin Wu and Huaiming Li and Haobo Zhang and Shenghao Feng and Mo Zhao and Fengzhi Qiu and Rui Yang and Mengmeng Zhang and Wenyi Zhu and Yingying Sun and Quan Sun and Shunhao Yan and Danyu Liu and Dawei Yin and Dou Shen},
  title = {{The FM Agent}},
  year = {2025},
  eprint = {2510.26144},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.26144},
}
Figure