math.COMar 10, 2026

Reinforced Generation of Combinatorial Structures: Ramsey Numbers

Authors: Ansh Nagda, Prabhakar Raghavan, Abhradeep Thakurta

Organizations: University of California, Berkeley, and Google DeepMind. · Google. · Google DeepMind.

Abstract

We present improved lower bounds for nine classical Ramsey numbers: R(3,13)\mathbf{R}(3, 13) is increased from 6060 to 6161, R(3,18)\mathbf{R}(3, 18) from 9999 to 100100, R(4,13)\mathbf{R}(4, 13) from 138138 to 139139, R(4,14)\mathbf{R}(4, 14) from 147147 to 148148, R(4,15)\mathbf{R}(4, 15) from 158158 to 159159, R(4,16)\mathbf{R}(4, 16) from 170170 to 174174, R(4,18)\mathbf{R}(4, 18) from 205205 to 209209, R(4,19)\mathbf{R}(4, 19) from 213213 to 219219, and R(4,20)\mathbf{R}(4, 20) from 234234 to 237237. These results were achieved using AlphaEvolve, an LLM-based code mutation agent. Beyond these new results, we successfully recovered lower bounds for all Ramsey numbers known to be exact, and matched the best known lower bounds across many other cases. These include bounds for which previous work does not detail the algorithms used. 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 our results.

Figures & tables

Explore similar work

May 1, 2026

New Bounds for Zarankiewicz Numbers via Reinforced LLM Evolutionary Search

The Zarankiewicz number Z(m,n,s,t)\textbf{Z}(m, n, s, t) is the maximum number of edges in a bipartite graph Gm,nG_{m, n} such that there is no complete Ks,tK_{s, t} bipartite subgraph. We determine for the first time the exact values of three Zarankiewicz numbers: Z(11,21,3,3)=116\textbf{Z}(11, 21, 3, 3)=116, Z(11,22,3,3)=121\textbf{Z}(11, 22, 3, 3)=121, and Z(12,22,3,3)=132\textbf{Z}(12, 22, 3, 3)=132. We further establish lower bounds for 41 more Zarankiewicz numbers, including several that are within one edge of the best known upper bound, and we match the established value in four more closed cases. Our results are obtained using OpenEvolve, an open-source evolutionary algorithm based on Large Language Models (LLMs) that iteratively improves algorithms for generating mathematical constructions by optimizing a reward signal which we tailored for this specific problem. These findings provide new extremal graph constructions and demonstrate the potential of LLM-guided evolutionary search to contribute to mathematical research. In addition to presenting the resulting constructions, we report the generation algorithms produced, describe the relevant implementation details, and provide our computational costs. Our costs are remarkably low, at less than $30 for each Zarankiewicz parameter combination, showing that LLM-guided evolutionary search can be an inexpensive, reproducible, and accessible tool for discovering new combinatorial constructions.
Feb 10, 2026

ImprovEvolve: Basin-Hopping Meets LLM-Guided Evolutionary Search

LLM-guided evolutionary computation, most notably AlphaEvolve, has been remarkably successful in discovering novel mathematical constructions by solving challenging optimization problems. The standard approach is to evolve a monolithic program that directly outputs a candidate solution. We present ImprovEvolve, an algorithmic alternative that drastically reduces cognitive load on the LLM. Instead of prompting the model for an end-to-end optimizer, we evolve a program with three specialized operators of initialization, local improvement, and perturbation. We then approach the optimum by iteratively applying local improvements and intensity-scheduled perturbations, effectively driving a basin-hopping search with LLM-evolved subroutines. For hexagon in hexagon packing, ImprovEvolve discovers new state-of-the-art packings of 11, 12, 15, and 16 hexagons, and additionally for 14, 17, and 23 hexagons after minimal expert tuning of the generated code. For the second autocorrelation inequality, the evolved and human-scaled program pushes the lower bound from 0.96102 to 0.96258. For spherical codes, the ImprovEvolve program lowers the best-known maximum cosine for the majority of 90 randomly chosen diverse state-of-the-art spherical codes, achieving relative improvements of up to 2.4%.
Apr 23, 2026

Doubly Saturated Ramsey Graphs: A Case Study in Computer-Assisted Mathematical Discovery

Ramsey-good graphs are graphs that contain neither a clique of size ss nor an independent set of size tt. We study doubly saturated Ramsey-good graphs, defined as Ramsey-good graphs in which the addition or removal of any edge necessarily creates an ss-clique or a tt-independent set. We present a method combining SAT solving with bespoke LLM-generated code to discover infinite families of such graphs, answering a question of Grinstead and Roberts from 1982. In addition, we use LLMs to generate and formalize correctness proofs in Lean. This case study highlights the potential of integrating automated reasoning, large language models, and formal verification to accelerate mathematical discovery. We argue that such tool-driven workflows will play an increasingly central role in experimental mathematics.