Issue 45 Β· Project 02 GitHub AI / ML β read
google-deepmind/alphaevolve
GitHub β Β·β 42 Β·1 forksΒ·Jupyter NotebookΒ·Apache-2.0 Β·created 2026-11-04 Β·3 min read
TL;DR: DeepMind has open-sourced AlphaEvolve β the LLM-driven evolutionary program-search system from their 2025 paper β as a runnable minimal implementation, together with the actual discovered artifacts: a new upper bound on the matrix multiplication exponent Ο, improved tensor decompositions for small matmul, and better-than-SOTA constructions for sixteen open math problems, each with a Colab notebook that verifies the result rigorously (rational arithmetic where it matters). This turns "an LLM agent discovered new mathematics" from a paper claim into inspectable, re-verifiable code.
What this is
AlphaEvolve is the system where an LLM (Gemini) acts as the mutation operator in an evolutionary loop over programs: candidate programs are executed against an automated evaluator, scored, and the best ones are fed back into the prompt for the LLM to improve. The original 2025 announcement claimed new results in matrix multiplication and combinatorial geometry; this repo is the accompanying code release for a follow-up paper (link is still a TODO in the README).
The headline artifact is a new proven upper bound on Ο, the matrix multiplication exponent β one of the most watched constants in theoretical CS, where decades of human effort have been shaving off the fourth decimal place (current human SOTA ~2.3713). The README doesn't state the new value, but it ships the evolved optimization program that found it, a fast floating-point verifier, and a Colab that re-proves the bound in exact rational arithmetic. A machine-discovered improvement to Ο, if the number holds up, is a genuine milestone: it's not a construction a human then polished β the recursion-depth-3/4 search programs themselves were evolved.
How it works
For the Ο result specifically, the evolved program (omega/level_3/final_program.py) builds a differentiable upper-bound model in JAX/Haiku and runs gradient descent for 32k steps across 32 seeds β i.e., AlphaEvolve evolved the optimizer, and the optimizer found the decomposition. Verification is two-tier: a NumPy/SciPy float verifier for fast iteration, and rational-arithmetic Colab for the actual proof.
What's in the repo
/srcβ minimal AlphaEvolve with local evaluation. Needs Docker and aGEMINI_API_KEY. Example problem configs included (circle packing)./omegaβ the evolved program, verifiers, Dockerfile, pinned requirements, and theclean_level4.npz.xzsolution file for the best bound./mathsβ 16 problems where AlphaEvolve beat SOTA: circle/hexagon packing, ErdΕs minimum overlap, three autocorrelation inequalities, two Heilbronn variants, kissing numbers, cap sets, Shannon capacity of cycle graphs, extremal girth-5 graphs, uncertainty principles, and more. Each has initial programs, the discovered construction, and a verification notebook./matmul_tensor_decompositionsβ explicit decompositions beating known ranks (standard rank and support rank) with correctness-check notebooks.
Caveats
- This is explicitly a minimal implementation. The internal system reportedly used ensemble models, massive parallel evaluation, and sophisticated prompt/database strategies; don't expect to rediscover Ο improvements on a laptop with an API key. The value of
/srcis as a reference architecture. - No paper link or citation yet (
TODO(franrruiz)in the README), and no numbers stated in the README itself β the evidence lives in the notebooks, so budget an hour to run the verifications if you want confirmation. - Running your own experiments means executing LLM-generated code; it's Docker-sandboxed but DeepMind's disclaimer is emphatic.
- Apache-2.0 code, CC-BY data. Repo is day-old (42 stars), so expect churn.
Try it
Zero-install path: open the Ο verification Colab (download clean_level4.npz.xz from the repo first, upload when prompted), or any of the /maths notebooks β e.g. circle packing. To run the search loop yourself:
pip install -r src/requirements.txt # Docker required for evaluation
export GEMINI_API_KEY=...
python run.py --problem_config=./data/problem_config/circle_packing.yaml
Verification notebook for the Ο bound: omega/verification.ipynb in the repo, openable directly in Colab. The notebooks are the fastest way to answer the key question β whether the headline bound reproduces end to end under exact arithmetic.