Abstract
PatternBoost is a hybrid optimization framework designed to discover record-breaking mathematical constructions in extremal combinatorics. By combining simple local search algorithms with transformer-based generative modeling, the framework iteratively refines and generates high-scoring objects. This "local-global" approach has successfully disproved a 30-year-old conjecture regarding hypercube subgraphs and improved best-known solutions for several long-standing problems, demonstrating the potential of AI to assist in pure mathematical research.
Introduction
In extremal combinatorics, researchers aim to identify the "largest" or "best" mathematical objects—such as graphs or point sets—that satisfy a specific set of constraints. For example, one might ask for the maximum number of edges in a graph that contains no triangles. As the number of elements ($n$) grows, the combinatorial explosion of possible configurations makes exhaustive search impossible.
Traditional optimization methods, such as greedy local search, are effective at making incremental improvements but frequently become trapped in local optima. While humans are skilled at identifying broad structural patterns, they often struggle to find the complex, non-obvious configurations required for optimal results. PatternBoost addresses this by using a transformer-based model to learn the underlying "grammar" of high-quality constructions and suggest new, high-potential starting points for local optimization.
The PatternBoost Framework
PatternBoost operates through an iterative, two-phase cycle:
- The Local Phase: A classical search algorithm, such as a greedy "down-and-up" method, generates a large volume of valid constructions. This phase refines random or suggested starting points into reasonably high-quality solutions.
- The Global Phase: The top-performing constructions from the local phase (the top 10–25%) are tokenized and used to train a decoder-only Transformer neural network, similar in architecture to GPT-2.
- Iteration: The trained transformer generates new "seed" constructions. These seeds are then fed back into the Local Phase for further refinement.
The authors liken this process to bicycle design: local search is akin to a mechanic tweaking a single bike, while the global phase is like a designer analyzing thousands of successful bikes to create a brand-new prototype.
Key Insights and Emergent Structure
A critical finding of the research is that the transformer does not need to be a perfect generator. Even if 90% of its outputs are invalid, the remaining 10% often contain structural insights that lead to new records after local optimization. The method of tokenization proved essential; for instance, adding a comma at the end of each row in an adjacency matrix significantly improved the model's ability to generate valid graphs.
Furthermore, the model demonstrates emergent structure. In simple test cases, the transformer independently "discovered" known mathematical properties, such as bipartiteness, without being explicitly programmed to do so. This suggests that the model is capable of abstracting the "essence" of high-quality designs.
Results and Benchmarks
PatternBoost has achieved several record-breaking results in combinatorial research:
- Hypercube Conjecture: The framework found a spanning subgraph of the 6-dimensional cube with only 81 edges that maintains a diameter of 6, disproving a 30-year-old conjecture by Graham and others.
- No-Squares Problem ($C_4$-free graphs): For $n=33$ vertices, PatternBoost matched the known theoretical optimum of 96 edges, whereas pure local search peaked at 89.
- Saturated Sperner Systems: The lower bound for the size of saturated 8-Sperner systems was improved to 108.
- No Isosceles Triangles: In a $100 \times 100$ grid, the best-known construction was improved from 154 points to 160 points.
Limitations and Future Work
The primary bottleneck for PatternBoost is scaling; as $n$ increases, the computational cost of evaluating the "score" of a construction becomes prohibitive. Additionally, the framework acts as a "black box"—it provides the construction but not the formal proof or an explanation of why it works. Human mathematicians must still analyze the AI's output to derive new theoretical insights. Future applications may include finding error-correcting codes or optimizing chemical structures.
Summary updated