Using Code Generation to Solve Open Instances of Combinatorial Design Problems

📅 2025-01-29
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This work addresses long-standing existence problems in combinatorial design—particularly those unresolved or unconstructed in the *Handbook of Combinatorial Designs*. We propose CPro1, the first framework integrating large language model (LLM)-driven code generation with formally specified, verifiable construction definitions and an automated feedback loop, enabling fully automated design search and hyperparameter optimization without manual coding. Our method combines domain-specific validators, a scaffolding-based execution framework, and heuristic optimization algorithms—including simulated annealing and genetic algorithms—to systematically explore construction strategies. Evaluated on 16 classical combinatorial design problems, CPro1 successfully resolves six open instances: symmetric and skew weighing matrices, isometric arrays, packing arrays, balanced ternary designs, and Florentine rectangles—marking a significant advance beyond traditional hand-crafted construction methods.

Technology Category

Search and Optimization: Combinatorial OptimizationConstraint Satisfaction and Optimization: Distributed CSP/OptimizationHumans and AI: Game Design — Procedural Content Generation & Storytelling

Application Category

Graph Algorithms and Modeling for the Web: Foundation models and LLMs for Web-related graphsSearch and Retrieval-Augmented AI: Web learning to rank, online learning, and counterfactual learning for rankingEconomics, Online Markets and Human Computation: Uses of LLMs and GenAI for marketplace design, bidding, and strategic interactions
📝 Abstract
The Handbook of Combinatorial Designs catalogs many types of combinatorial designs, together with lists of open instances for which existence has not yet been determined. We develop a constructive protocol CPro1, which uses Large Language Models (LLMs) to generate code that constructs combinatorial designs and resolves some of these open instances. The protocol starts from a definition of a particular type of design, and a verifier that reliably confirms whether a proposed design is valid. The LLM selects strategies and implements them in code, and scaffolding provides automated hyperparameter tuning and execution feedback using the verifier. Most generated code fails, but by generating many candidates, the protocol automates exploration of a variety of standard methods (e.g. simulated annealing, genetic algorithms) and experimentation with variations (e.g. cost functions) to find successful approaches. Testing on 16 different types of designs, CPro1 constructs solutions to open instances for 6 of them: Symmetric and Skew Weighing Matrices, Equidistant Permutation Arrays, Packing Arrays, Balanced Ternary Designs, and Florentine Rectangles.
Problem

Research questions and friction points this paper is trying to address.

Unsolved Design Problems
Combinatorial Designs
Combinatorial Design Handbook
Innovation

Methods, ideas, or system contributions that make the work stand out.

CPro1
Automated Code Generation
Optimization Strategies
🔎 Similar Papers