Reproduce “AlphaEvolve: A coding agent for scientific and algorithmic discovery” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Alexander Novikov, Ngân Vũ, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang, Adam Zsolt Wagner, Sergey Shirobokov, Borislav Kozlovskii and 10 more

AlphaEvolve uses language models to evolve code that searches for better algorithms, evaluating candidate programs and feeding useful results into later proposals. On a hard matrix-multiplication task, it found an exact rank-48 decomposition for multiplying two 4 × 4 complex-valued matrices, versus Strassen’s rank-49 method. The result applies to complex-valued matrices and does not establish that rank 48 is optimal.

Key insights

  • Integrating Large Language Models (LLMs) into an evolutionary feedback loop allows for continuous, iterative refinement of code, transforming LLMs from one-shot generators into active agents for discovery.
  • LLMs can automate the design of complex 'evolution operators' and even evolve entire heuristic search algorithms, enabling adaptive, multi-stage problem-solving previously difficult to achieve.
  • Combining an ensemble of LLMs with efficient, parallelized evaluation cascades and multi-objective optimization strategies significantly boosts the system's ability to explore complex search spaces and identify subtle improvements.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.