[Working Paper] AlphaEvolve: Breaking Decades-Old Ramsey Lower Bounds via LLM-Driven Code Evolution

Reinforced Generation of Combinatorial Structures: Ramsey Numbers

Summary
Problem
Method
Results
Takeaways
Abstract

The paper presents AlphaEvolve, an LLM-based code mutation agent that discovered improved lower bounds for five classical Ramsey numbers: R(3, 13), R(3, 18), R(4, 13), R(4, 14), and R(4, 15). By evolving search algorithms rather than just searching for graphs, the system achieved new SOTA results and recovered all known exact values for small Ramsey numbers.

TL;DR

Ramsey theory—the study of order within chaos—just received a significant update from an AI agent. Using AlphaEvolve, an LLM-based code mutation framework, researchers have discovered new lower bounds for five classical Ramsey numbers, including and . Unlike previous efforts that relied on "bespoke" human-coded algorithms, AlphaEvolve evolved its own search strategies, proving that AI can automate the discovery of sophisticated mathematical heuristics.

The Ramsey Challenge: Searching for Needles in an Exponential Haystack

The Ramsey number is the smallest number of vertices such that any graph of size must contain either a clique of size or an independent set of size . Finding the exact value is notoriously difficult—Paul Erdős famously joked that if aliens demanded the value of , humanity should marshal all its resources, but if they asked for , we should just hope to strike first.

The current strategy for lower bounds is computational construction: if you can build a graph of size that lacks these structures, you've proven . However, the search space is , and existing SOTA results often come from "personal communications" featuring undocumented, specialized algorithms optimized for a single pair.

Methodology: Evolving the Search, Not Just the Solution

The core innovation is AlphaEvolve, a meta-algorithm that doesn't just look for graphs—it looks for programs that find graphs.

The AlphaEvolve Loop

  1. Evolution: A population of search algorithms is maintained. An LLM (like Gemini) is prompted to mutate a high-performing parent program to create a new variant.
  2. Execution: The new program runs and generates two graphs: (the primary candidate) and (a larger "prospect" graph).
  3. Scoring: Programs are rewarded based on the size of and a "near-miss" bonus for . If has fewer violations than a random baseline, the program is deemed "promising" for further evolution.

AlphaEvolve Algorithm Overview Note: The system initializes with an empty graph and forces the LLM to learn how to grow valid structures from scratch.

Evolved Insights: Four Families of Discovery

Crucially, the LLM discovered that different Ramsey numbers require different "starting points." These strategies were categorized into four families:

  • Stochastic Initialization: Best for smaller cases like .
  • Algebraic Seeding: Using Paley/Cubic residue graphs as a foundation for .
  • Cyclic/Circulant Bootstrap: Utilizing symmetries to reduce search space for and .
  • Hybrid/Spectral Seeding: Using complex "fractal" or spectral properties for .

Case Study:

In Algorithm 4, AlphaEvolve abandoned simple random flips. Instead, it initialized with a Cubic Residue Cayley graph over , implemented incremental violation tracking (avoiding full rescans), and utilized a "Strategic Kick" (forced random flips) to escape local minima in the Tabu search.

Experimental Results: Moving the Needle

The results are clear. AlphaEvolve successfully incremented the lower bounds for five classical cases:

Ramsey NumberPrevious BoundNew Bound (AlphaEvolve)
6061
99100
138139
147148
158159

Ramsey Table Comparison

Beyond new results, AlphaEvolve matched the SOTA for 28 other cells, often discovering "novel" search strategies that are absent from existing human literature, such as the Tabu-enhanced Local Search for R(4, 10).

Critical Analysis & Future Outlook

Why does this work? Unlike a human researcher who might stick to a familiar technique (like Simulated Annealing), AlphaEvolve explores the space of heuristics itself. It can combine "Strategic Kicking," "Harmonic Memory," and "Algebraic Seeding" in ways that are non-intuitive but computationally efficient.

Limitations: This approach is primarily for lower bounds. Establishing upper bounds (proving a graph cannot exist) requires formal methods and exhaustive verification (e.g., SAT solvers), which AlphaEvolve is not yet designed to handle.

Conclusion: This paper marks a shift from "AI helping humans" to "AI discovering algorithms." For pure mathematicians, it provides new targets. For AI researchers, it provides a blueprint for using LLMs to solve hard, objective-driven problems in the sciences.

Find Similar Papers

Try Our Examples

  • Search for recent papers using LLM-driven code evolution or "AlphaEvolve" to solve other extremal problems in graph theory or additive combinatorics.
  • Which paper originally introduced the AlphaEvolve framework, and how does its "Select-Mutate-Execute" loop differ from traditional Genetic Programming?
  • Explore if LLM-based code mutation has been applied to automated theorem proving or improving upper bounds in Ramsey theory via formal methods.
Contents
[Working Paper] AlphaEvolve: Breaking Decades-Old Ramsey Lower Bounds via LLM-Driven Code Evolution
1. TL;DR
2. The Ramsey Challenge: Searching for Needles in an Exponential Haystack
3. Methodology: Evolving the Search, Not Just the Solution
3.1. The AlphaEvolve Loop
4. Evolved Insights: Four Families of Discovery
4.1. Case Study: $R(4, 13)$
5. Experimental Results: Moving the Needle
6. Critical Analysis & Future Outlook