Google DeepMind's AlphaEvolve Breaks 9 Math Records Unsolved for a Decade
Google DeepMind's AlphaEvolve uses LLM-driven code evolution to crack nine Ramsey number lower bounds that stumped mathematicians for decades
ProTakeaways
- Google DeepMind's new paper reports improved lower bounds for nine classical Ramsey numbers, some records standing for over a decade.
- AlphaEvolve acts as a meta-algorithm, evolving search algorithms that find witness graphs rather than searching for graphs directly.
- Biggest gains: R(4,19) jumped from 213 to 219, R(4,18) from 205 to 209, and R(4,16) from 170 to 174.
- AlphaEvolve also independently rediscovered all known exact Ramsey bounds and matched state-of-the-art on many other cases, including some with no previously published algorithm.
- Discovered algorithms fall into four families: random/stochastic, algebraic (Paley graphs), circulant/cyclic, and hybrid/spectral seeding strategies.
- Witness graphs and search algorithms for all nine new records are publicly available on GitHub.
A Google DeepMind team has just pushed the boundaries of one of mathematics' most stubborn open problem families. Their new paper reports improved lower bounds for nine classical Ramsey numbers, with some records standing unbroken for over a decade. The tool behind it: AlphaEvolve, Google DeepMind's LLM-powered code evolution agent.
Why Ramsey Numbers Are Notoriously Hard
Ramsey numbers sit at the heart of a deep mathematical idea: complete disorder is impossible. The subject can be summarized by the mantra "Complete chaos is impossible!" or, more precisely, "Every large system contains a well-ordered sub-system." Formally, the Ramsey number R(r, s) is the smallest number n such that every undirected graph on n vertices must contain either a clique of size r (a group of nodes all connected to each other) or an independent set of size s (a group of nodes with no connections between them). Think of it as a coloring puzzle: color every edge of a complete graph either red or blue, and R(r, s) is the minimum number of nodes that guarantees you'll always find a red clique of size r or a blue clique of size s, no matter how you color.
Ramsey numbers are considered one of the most difficult quantities to calculate in all of mathematics. These problems are easy to state but hard to solve, and their history and developments are intimately associated with major advances in combinatorics. Erdős quipped that all-out war with mathematically demanding aliens would be easier than trying to figure out R(6), which is somewhere between 102 and 165.
To prove a lower bound on R(r, s), you only need to exhibit a single graph with n vertices that has no r-clique and no s-independent set. That witness graph proves R(r, s) ≥ n+1. The challenge is that the search space for such graphs is astronomically large, and every known approach has required a hand-crafted, bespoke algorithm for each specific pair (r, s).
What AlphaEvolve Actually Does
AlphaEvolve is an evolutionary coding agent for designing advanced algorithms based on large language models such as Gemini. It was developed by Google DeepMind and unveiled in May 2025. Rather than solving a problem directly, AlphaEvolve maintains a population of candidate programs, uses LLMs to propose mutations or refinements, evaluates the resulting programs with a scoring function, and feeds the best candidates back into later generations for further evolution.
The key insight in this paper is using AlphaEvolve not to search for graphs directly, but to search for search algorithms that find graphs. AlphaEvolve acts as a meta-algorithm: it evolves code that itself runs graph construction heuristics. Virtually all known Ramsey lower bounds are derived computationally, with bespoke search algorithms each delivering a handful of results. AlphaEvolve is a single meta-algorithm yielding search algorithms for all of the results.
How the Search Loop Works
The experimental setup is elegant. For each Ramsey pair (r, s), AlphaEvolve runs the following loop:
- Initialize a population with a single baseline program that returns an empty graph.
- Select a parent program from the population based on performance, then prompt Gemini to generate a mutated version.
- Execute the mutated program to produce two graphs: a primary graph G1 (which must be fully valid, containing no r-cliques or s-independent sets) and a larger "prospect" graph G2 (which may have a few violations but hints at what's achievable at larger sizes).
- Score the program. If G1 is valid, it earns a score based on its size, with a 4x bonus if it exceeds the current state-of-the-art. G2 earns a bonus inversely proportional to its violation count, nudging the search to push toward larger graphs even before fully solving the constraint.
- Repeat until compute budget is exhausted, returning the best program found.
This dual-graph scoring is a clever trick. The "prospect" graph G2 acts as a gradient signal, rewarding programs that are close to valid at larger sizes, even if they haven't quite made it yet. It prevents the search from getting stuck only optimizing for the current best size.
The discovered algorithms fall into four broad families based on how they initialize their graph search:
- Random and Stochastic: Start from Erdős-Rényi random graphs (e.g., for R(3,5), R(3,6), R(4,5)).
- Paley and Algebraic Seeding: Initialize from algebraically structured graphs like Paley graphs built from quadratic residues in finite fields (e.g., for R(3,10), R(4,12), R(4,13)).
- Circulant and Cyclic Bootstrap: Start from circulant graphs, where edges are defined by a difference set modulo n, guaranteeing symmetry (e.g., for R(3,9), R(3,13), R(4,14), R(4,16)).
- Hybrid, Fractal, and Spectral: Complex mixtures of the above, including self-similar fractal constructions (e.g., for R(3,6), R(3,11)).
Once initialized, the discovered algorithms typically chain multiple heuristics: simulated annealing, tabu search (which keeps a list of recently visited states to avoid cycling), adaptive energy functions, and custom perturbation strategies to escape local minima. For example, the algorithm for R(4,15) maintains a "harmonic genetic memory" that tracks which edges and cyclic distances appear most often in valid graphs across generations, then biases future initialization toward those patterns.
Nine New Records
The team presents improved lower bounds for nine classical Ramsey numbers. The full set of improvements:
| Ramsey Number | Previous Lower Bound | New Lower Bound |
|---|---|---|
| R(3,13) | 60 | 61 |
| R(3,18) | 99 | 100 |
| R(4,13) | 138 | 139 |
| R(4,14) | 147 | 148 |
| R(4,15) | 158 | 159 |
| R(4,16) | 170 | 174 |
| R(4,18) | 205 | 209 |
| R(4,19) | 213 | 219 |
| R(4,20) | 234 | 237 |
Beyond the new records, AlphaEvolve successfully recovered the exact lower bounds for all Ramsey numbers whose true value is known, and matched the state-of-the-art on many other cases. Some of those matched bounds were previously established without any published algorithm, meaning AlphaEvolve independently rediscovered them from scratch.
The Real Breakthrough: Algorithm Discovery, Not Just Graph Discovery
The headline numbers are impressive, but the deeper story is what AlphaEvolve actually produces. Previous computational work on Ramsey bounds typically required a human expert to design a specialized search algorithm for each (r, s) pair. AlphaEvolve automates that design step entirely. Unlike prior computational attempts at improving Ramsey lower bounds, which typically rely on executing bespoke, human-designed heuristics, AlphaEvolve automates the heuristic discovery process: it searches for novel search algorithms.
The comparison to prior work is revealing. For R(4,13) and R(4,14), AlphaEvolve independently converged on the same algebraic initialization strategies (cubic residue and Paley graphs) that human researchers had used, but then diverged with entirely different optimization strategies. For R(4,18), the previous state-of-the-art was obtained by an indirect method called "differencing" between other Ramsey cells. AlphaEvolve developed a direct ground-up heuristic for that cell instead. For R(4,10), the discovered algorithm appears novel and, according to the authors, absent from existing literature.
The algorithms also exhibit a consistent meta-pattern: they exploit known algebraic structures relevant to the specific cell, chain multiple heuristics in parallel rather than running a single one, and incorporate custom approximate clique and independent set counters to accelerate candidate evaluation. These are properties that tend to emerge from search rather than from human design intuition.
Limitations Worth Knowing
There are real constraints here. Each discovered search algorithm appears highly specific to its (r, s) pair. The paper notes that success does not transfer between cells, even when running an algorithm for a long time on a different target. AlphaEvolve is also not addressing the complementary problem of improving upper bounds on Ramsey numbers, which requires proving the non-existence of any valid graph above a certain size. That's a fundamentally different challenge that cannot be solved by constructing a single example, and AlphaEvolve's approach doesn't apply there.
The system also requires significant compute, and the full AlphaEvolve infrastructure is proprietary. An open-source reimplementation called OpenEvolve exists in the community, though reproducing these specific results would require substantial resources.
What's Available
The team has made the witness graphs for all nine new records publicly available, along with the discovered search algorithms. The code and graph constructions are on GitHub under the google-research repository. This means the bounds are independently verifiable: checking that a graph has no r-clique or s-independent set is computationally straightforward, even if finding such a graph is not.
This work is part of a broader wave of AlphaEvolve applications to extremal combinatorics, including improvements to the cap-set problem, Ramanujan graphs, and the finite field Kakeya problem. The pattern emerging across all of these is consistent: LLM-driven evolutionary search is becoming a genuine tool for attacking problems in discrete mathematics that have resisted human-designed algorithms for decades.