LLM-Guided Evolutionary Search for Constraint Model Reformulation to Improve Solver Efficiency
Abstract
Combinatorial problems appear in numerous industrial applications. A common approach is to formulate these problems as declarative constraint models that can subsequently be compiled to and solved by a range of back-end solvers. Recent work shows that Large Language Models (LLMs) can produce correct models from natural language, but even a correct model can be expensive to solve because performance remains sensitive to modelling choices. In this work, we investigate whether LLMs can automate performance-oriented model reformulation. Inspired by Automatic Heuristic Design (AHD), we use an evolutionary framework in which an LLM proposes candidate reformulations that are verified and benchmarked against the user-defined baseline model. We compare AHD-adapted search strategies that control which prior attempts, instructions, and measured feedback enter each prompt. Existing retention strategies prioritize recency or performance, but do not explicitly diversify the context. To cover this gap, we introduce Profile-Diverse Retention (PDR), which applies Maximal Marginal Relevance (MMR) to instance-level runtime vectors to retain behaviourally diverse attempts. We systematically evaluate the strategies on eight CSPLib problems using validation-based final model selection. The results show that: (i) iterative reformulation can produce substantial held-out speedups; (ii) strategies that keep the retained context diverse outperform those that retain only recent or the fastest attempts; and (iii) validation-based selection improves the held-out speedup of every strategy.
Create a lesson
Related papers
PatternMiner: Automated Mathematical Discovery Through LLM-Guided Training and Interpretation of Small Models
Shared title terminologycs.AIMichael Ruofan Zeng, Junaid Hasan, Xuanyu Yang et al.
Improving Building Energy Efficiency with an Indoor Environmental World Model and Counterfactual Adaptive Learning
Shared title terminologycs.AIXu Yang, Kailai Sun, Dianyu Zhong et al.
Evolutionary Curriculum Learning Improves Biological Sequence Modeling
Shared title terminologycs.AIRichard Zhu, Kento Nishi
LeanCSP: A Framework for Certifying Constraint Reformulation and Solving in Lean
Shared title terminologycs.AIPablo Manrique, Stefan Szeider
What Is a Theory Worth to an LLM Solver? Measuring, Inducing, and Merging Theories in Context
Shared title terminologycs.AIJun Gao, Shuchao Bi
Keep or Roll Back? Out-of-Loop Judges for Self-Improving VLA and End-to-End Embodied Policies
Shared title terminologycs.AIZilin Huang, Zhengyang Wan, Kangan Qian et al.