NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AlphaEvolve: A coding agent for scientific and algorithmic discovery

Alexander Novikov, Ngân Vu, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang, Adam Zsolt Wagner, Sergey Shirobokov, Borislav Kozlovskii, Francisco J. R. Ruiz, Abbas Mehrabian, M. Pawan Kumar, Abigail See, Swarat Chaudhuri, George Holland, Alex Davies, Sebastian Nowozin, Pushmeet Kohli, Matej BalogarXiv 2025 · DOI

Introduction

Google DeepMind introduces AlphaEvolve, an AI agent that bridges the gap between large language models (LLMs) and autonomous scientific discovery. By integrating LLMs into an evolutionary framework, AlphaEvolve can iteratively write, test, and optimize code. This approach has already yielded significant breakthroughs, including the first improvement to Strassen’s 4x4 matrix multiplication algorithm in 56 years and substantial efficiency gains across Google's global computing infrastructure.

Problem Statement

Discovering novel algorithms or highly optimized system heuristics typically requires extensive human trial and error. While LLMs are capable coders, they are often constrained by their training data and prone to hallucinations when tasked with pushing the boundaries of human knowledge. AlphaEvolve addresses the need for an autonomous system that can reliably innovate beyond the state-of-the-art (SOTA) without continuous human intervention.

Methodology

AlphaEvolve operates through a continuous evolutionary "superoptimization" loop. The process begins with a human-defined problem, evaluation criteria, and an initial code solution.

The AlphaEvolve evolutionary loop: Humans define the problem and evaluation criteria, while the agent iteratively proposes and tests code improvements.

The system's core components include:

  • Evolutionary Loop: A prompt sampler retrieves high-performing historical programs. An ensemble of LLMs (Gemini 2.0 Flash and Pro) acts as a mutator, proposing code refinements.
  • Code Diffs: To maintain stability in complex codebases, the agent generates targeted SEARCH/REPLACE diffs rather than full rewrites.
  • Execution Feedback: Proposed mutations are executed and scored by a programmatic evaluator. Successful iterations are added back to the program database to inform future generations.
  • Meta-Evolution: The system can evolve its own instructional prompts, discovering more effective ways to guide the LLM's reasoning.

Advancements Over Prior Work

AlphaEvolve significantly expands the capabilities of previous systems like FunSearch. It moves beyond single-function Python evolution to support multi-file codebases in any language, utilizing richer context and multi-metric optimization.

A comparison of AlphaEvolve against its predecessor, FunSearch, highlighting key architectural and capability improvements.

Key Insights and Discovery Strategies

AlphaEvolve demonstrates that scientific discovery can be formulated as a code optimization problem. A key insight is the evolution of heuristic searchers: for many mathematical problems, the agent evolved the search algorithm itself to find optimal constructions. Furthermore, the system illustrates the power of test-time compute scaling, where machine feedback allows the LLM to learn from thousands of failures, effectively bypassing standard reasoning limits.

Results and Impact

The agent has achieved remarkable success across theoretical and applied domains:

  • Mathematics: Discovered a 4x4 complex matrix multiplication algorithm using only 48 scalar multiplications, a historic improvement over Strassen’s rank-49 algorithm. It also improved lower bounds for the 11-dimensional "kissing number" problem.
  • Infrastructure Optimization: In Google’s Borg system, AlphaEvolve evolved scheduling heuristics that recovered 0.7% of fleet-wide compute resources.
  • AI Training: Optimized tiling heuristics for Gemini kernels resulted in a 23% speedup and a 1% reduction in total training time.

Limitations

Despite its successes, AlphaEvolve is limited by its reliance on automated, programmatic evaluators. It cannot currently address problems requiring physical experimentation or subjective human assessment. Additionally, the search process is compute-intensive, often requiring significant parallelized resources to reach a solution. Future research will focus on distilling these discovery trajectories back into base LLMs to enhance their native capabilities.

Summary updated

BibTeX
@misc{novikov2025alphaevolve,
  author = {Alexander Novikov and Ngân Vu and Marvin Eisenberger and Emilien Dupont and Po-Sen Huang and Adam Zsolt Wagner and Sergey Shirobokov and Borislav Kozlovskii and Francisco J. R. Ruiz and Abbas Mehrabian and M. Pawan Kumar and Abigail See and Swarat Chaudhuri and George Holland and Alex Davies and Sebastian Nowozin and Pushmeet Kohli and Matej Balog},
  title = {{AlphaEvolve: A coding agent for scientific and algorithmic discovery}},
  year = {2025},
  eprint = {2506.13131},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.13131},
}
Figure