Flow-based Extremal Mathematical Structure Discovery
Gergely Bérczi, Baran Hashemi, Jonas Klüver
TL;DR
FlowBoost reframes mathematical structure discovery as a closed-loop SBO problem over continuous configuration spaces. It combines Conditional Flow Matching to model a transport to high-quality configurations, geometry-aware sampling to enforce hard geometric feasibility, and reward-guided fine-tuning with a teacher–student consistency term to push sampling toward extremal solutions while preserving diversity. Across sphere packing, circle packing, Heilbronn, and star discrepancy tasks, FlowBoost achieves competitive or superior results with orders of magnitude less outer-loop iterations and without reliance on Large Language Models. This approach unifies flow-based generative modeling, RL-inspired feedback, and geometry-aware constraints, offering a scalable tool for exploring extremal configurations in combinatorial geometry and beyond.
Abstract
The discovery of extremal structures in mathematics requires navigating vast and nonconvex landscapes where analytical methods offer little guidance and brute-force search becomes intractable. We introduce FlowBoost, a closed-loop generative framework that learns to discover rare and extremal geometric structures by combining three components: (i) a geometry-aware conditional flow-matching model that learns to sample high-quality configurations, (ii) reward-guided policy optimization with action exploration that directly optimizes the generation process toward the objective while maintaining diversity, and (iii) stochastic local search for both training-data generation and final refinement. Unlike prior open-loop approaches, such as PatternBoost that retrains on filtered discrete samples, or AlphaEvolve which relies on frozen Large Language Models (LLMs) as evolutionary mutation operators, FlowBoost enforces geometric feasibility during sampling, and propagates reward signal directly into the generative model, closing the optimization loop and requiring much smaller training sets and shorter training times, and reducing the required outer-loop iterations by orders of magnitude, while eliminating dependence on LLMs. We demonstrate the framework on four geometric optimization problems: sphere packing in hypercubes, circle packing maximizing sum of radii, the Heilbronn triangle problem, and star discrepancy minimization. In several cases, FlowBoost discovers configurations that match or exceed the best known results. For circle packings, we improve the best known lower bounds, surpassing the LLM-based system AlphaEvolve while using substantially fewer computational resources.
