REVIEW 3 major objections 6 minor 25 references
LLMs can iteratively rewrite correct constraint models into faster ones when the prompt keeps behaviourally diverse past attempts and the final model is chosen on validation data.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · grok-4.5
2026-07-31 12:44 UTC pith:4HUUNJ3W
load-bearing objection Solid empirical CP/LLM systems paper: whole-model evolutionary reformulation works on held-out CSPLib, diversity-aware retention helps, but headline GMs lean on Def. 1 and a few huge wins. the 3 major comments →
LLM-Guided Evolutionary Search for Constraint Model Reformulation to Improve Solver Efficiency
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Iterative LLM-guided whole-model reformulation produces substantial held-out speedups over user baselines on constraint satisfaction problems. Retention strategies that keep the prompt context diverse—above all Profile-Diverse Retention, which balances total speed against distance of instance-level runtime vectors—outperform strategies that keep only recent or only fastest attempts. Validation-based final selection improves held-out speedup for every strategy, and whole-model rewrite outperforms an adapted streamliner-generation baseline that only adds constraints.
What carries the argument
Profile-Diverse Retention (PDR): keep the fastest valid attempt, then repeatedly add candidates via Maximal Marginal Relevance on log-normalised per-instance runtime profiles so the next prompt sees attempts that are both fast and behaviourally distinct.
Load-bearing premise
Agreeing with the baseline’s answers on a small stratified split of instances is treated as enough to accept a reformulation—even ones that shrink the solution set—and gains under one language model, one solver setup, and eight satisfaction problems are assumed to transfer.
What would settle it
Repeat the ten strategies on the same problems with a different language model and a different solver configuration; if held-out geometric-mean speedups fall to about 1× and diversity retention loses its edge over sampling and fastest-only retention, the central claim does not hold.
If this is right
- A correct baseline model can be automatically rewritten into faster variants without hand-authored reformulation rules.
- Prompt memory should favour behaviourally diverse successful attempts, not only the latest or the single fastest.
- Final model choice should use a held-out validation set rather than the training incumbent alone.
- Rewriting the whole model is a stronger efficiency lever than only appending streamlining constraints.
- Classic modelling moves (viewpoint changes, tabulation, symmetry breaking, redundant constraints) can emerge from the search without being hardcoded.
Where Pith is reading between the lines
- Runtime-profile diversity for prompt retention could transfer to MIP or SAT encoding search wherever per-instance solve times are cheap to collect.
- Problems that almost never yield valid incumbents (wide incidence matrices, costly lex orderings) suggest the loop may need propagation or conflict signals, not wall-clock totals alone.
- Because validation is the main filter against training-only streamliner-style restrictions, deployment on industrial instance families would need stronger answer-set or equisatisfiability checks than the small stratified splits used here.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper adapts Automatic Heuristic Design to performance-oriented reformulation of declarative CP models: an LLM iteratively proposes whole-model candidates that are solution-validated against a user baseline and timed on training instances; a retention strategy chooses which attempts enter the next prompt; and the final model is selected on a held-out validation set. Ten strategies are compared (sampling, recency, quality, hybrid, full history, EoH ± feedback, and the proposed Profile-Diverse Retention / PDR, which applies MMR to log-normalized per-instance runtime vectors), on eight CSPLib satisfaction problems with a stratified 8/8/16 train/val/test split, single-worker OR-Tools CP-SAT, and DeepSeek V4 Flash. The main empirical claims are that iterative reformulation yields substantial held-out speedups (aggregate GM up to ~2.26× for PDR; 144/240 runs faster on test), that diversity-aware retention outperforms recency- or fastest-only retention, that validation selection improves every strategy, and that whole-model search beats an adapted StreamLLM-single streamliner baseline.
Significance. If the results hold under clearer validity framing, this is a solid and timely contribution at the intersection of LLM-guided search and constraint modelling. Strengths include a carefully operationalized evaluator (solution-level validity, PAR2, training caps), anti-overfit validation selection (usually missing in AHD pipelines), bootstrap and leave-one-problem-out sensitivity, ablations (PDR vs Top-5, EoH ± feedback, warm-start), qualitative cataloguing of recovered modelling patterns against the CP literature, and a fairer single-model StreamLLM comparison. PDR is a concrete, reusable idea for behaviour-aware prompt retention. The work is practically relevant for reducing manual reformulation effort and advances beyond correctness-only LLM modelling benchmarks.
major comments (3)
- [§3 Definition 1; §6.1; Table 3; Table 2; Table 4] Definition 1 (§3) accepts any candidate whose returned answer is a baseline solution; it does not enforce equisatisfiability or solution-set preservation, even though the system prompt asks for semantic equivalence. §6.1 and Table 3 explicitly state that the largest reported win (covering arrays, 250.7× under PDR) “fixes a canonical enumeration prefix that restricts the solutions it can return, acting as a streamliner.” Aggregate GMs (Table 2: PDR 2.26×) and claim (ii) on diversity-aware retention are therefore partly carried by validity-weak, solution-restricting models that Def. 1 admits by design. Please either (a) report held-out results stratified by whether the selected model preserves the full solution set / is a pure streamliner vs a viewpoint/global-constraint reformulation, or (b) add a stricter post-hoc filter (e.g., multiple diverse baseline solutions accepted, or dual checks
- [Abstract; Figure 2; Table 2; Table 5; §6.2] Problem-level heterogeneity is extreme (Figure 2, Table 5): near-universal large gains on tail assignment / vessel loading / car sequencing, near-floor results on BIBD (2/30) and social golfers (9/30), and PDR’s aggregate lead driven heavily by covering arrays (including the 250.7× outlier). Leave-one-problem-out ranges in Table 2 help, but the abstract and §6.2 still present diversity strategies as generally superior. Please qualify claim (ii) with problem-conditioned analysis (e.g., GM excluding covering arrays; win rates; median-focused summary) and state clearly that strategy ranking is unstable across problems and that a few large wins dominate the headline GM.
- [§5; §7; Abstract] The experimental scope is one LLM, one solver configuration (single-worker CP-SAT), eight satisfaction problems, and a small stratified split (8 train instances). Limitations (§7) acknowledge this, but transfer is load-bearing for the automation claim. At minimum, add a short sensitivity discussion or appendix on whether selected models remain faster under a second search configuration (e.g., more workers) or on a modestly perturbed instance pool; if infeasible, narrow the claims to “under this solver/LLM/protocol” in the abstract and conclusion rather than implying general solver-efficiency automation.
minor comments (6)
- [Figure 2] Figure 2 caption and axis: geometric standard deviation intervals are useful; consider also marking the fraction of runs returning the baseline so readers can separate “no improvement” from “slowdown.”
- [§4.1 PDR; Eq. (5)] Eq. (5) and the profile definition: state the default when max=min on an instance more prominently in the main text (currently brief); λ=0.5 is fixed with no sensitivity—brief λ∈{0.25,0.75} note in appendix would help.
- [Table 3] Table 3 “Best model” column mixes strategy and patterns; a count of how many faster models are streamliner-style vs viewpoint/encoding changes would support the qualitative story.
- [Abstract; §1] Typos / spacing: “Combinatorialproblems”, “naturallanguage”, “toaddress this gap” and similar missing spaces appear in the abstract and early sections—copy-edit pass needed.
- [§6.1; Appendix F] StreamLLM-single adaptation details are thorough in Appendix F; a one-sentence pointer in §6.1 that portfolio reconstruction yields 1.87× vs PDR+base 2.41× would help readers who skip the appendix.
- [Figure 4; §6.2] Cost analysis (Figure 4) is valuable; clarify whether USD costs are API list prices at access date and whether cache hits are provider-reported.
Circularity Check
No significant circularity: held-out speedups and strategy comparisons are empirical measurements, not results forced by definition or self-citation.
full rationale
This is an empirical systems/AHD paper. The load-bearing claims—(i) iterative LLM reformulation yields held-out speedups, (ii) diversity-aware retention (PDR) beats recency/quality-only retention, (iii) validation selection improves every strategy—are established by measuring PAR2 runtimes of solution-valid models on stratified held-out test instances against a fixed baseline, after selection on a separate validation set (Algorithm 1, §5–§6). Training runtime is the search objective; test GM is an independent evaluation metric on unseen instances, so success is not defined by construction from the fit. Definition 1 (solution-level validity) is a methodological acceptance criterion, not a circular identity that forces speedups. Self-citations to the authors’ prior CP-Bench / solution-level evaluation work supply the validity checker and modelling setup; they do not supply uniqueness theorems or fitted constants that the present speedups reduce to. PDR’s MMR on log-normalized per-instance runtime profiles is a retention heuristic whose benefit is measured comparatively (PDR vs Top-5, etc.), not derived as a tautology. Concerns that Def. 1 admits streamliner-style solution-set restrictions (e.g. the 250.7× covering-array model) affect claim scope and correctness risk, not circularity of the derivation chain. No self-definitional step, fitted-input-as-prediction, load-bearing uniqueness import, or renamed known identity was found.
Axiom & Free-Parameter Ledger
free parameters (4)
- PDR λ (quality–diversity trade-off) =
0.5
- Retention/population sizes k, K and iteration budget T =
k=K=5, T=100
- Training evaluation cap C_B =
max(T_B, min(1.5 T_B, 900)) s
- LLM and decoding defaults =
DeepSeek V4 Flash, T=1.0
axioms (4)
- domain assumption Solution-level validity (candidate answers must be solutions of the baseline after fixing baseline variables) is an adequate acceptance criterion for reformulations, including those that may restrict the solution set.
- domain assumption Time-to-first-solution under single-worker OR-Tools CP-SAT is the right performance objective for comparing models.
- ad hoc to paper Instance-level log-normalized runtime vectors are a meaningful behavioural diversity signal for prompt retention (PDR/MMR).
- standard math Standard CP modelling background (global constraints, viewpoints, symmetry breaking, streamliners) and AHD loop structure are valid prior art to build on.
invented entities (1)
-
Profile-Diverse Retention (PDR)
no independent evidence
read the original 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.
Figures
Reference graph
Works this paper leans on
-
[1]
Keep the function signature build_model(data) -> ( ,→model, extractor) and the same input contract ,→(data keys and meaning) as the baseline
-
[2]
You may change decision variables or viewpoints ,→freely, but extractor() must return the exact ,→same JSON structure as the baseline (same keys ,→and value types); how you map your variables ,→to it is up to you
-
[3]
Preserve semantics exactly: the model must not ,→accept invalid solutions and must stay ,→satisfiable for any instance possible (even ,→out of this training set)
-
[4]
Prefer ‘cp.sum ,→‘, ‘cp.max‘, ‘cp.min‘, ‘cp.any‘, ‘cp.all‘ over ,→Python built-ins
Dependencies: ‘import cpmpy as cp‘, numpy, and the ,→Python standard library only. Prefer ‘cp.sum ,→‘, ‘cp.max‘, ‘cp.min‘, ‘cp.any‘, ‘cp.all‘ over ,→Python built-ins
-
[5]
Integer modeling only (floats/fractional constants ,→are strictly not allowed); no printing, no ,→file I/O, no extra scripts, no solving
-
[6]
## CPMpy Documentation CPMpy is a Constraint Programming and Modeling ,→library in Python, based on numpy
Treat prior proposals as explored candidates; do ,→not repeat a previous model with only ,→superficial changes. ## CPMpy Documentation CPMpy is a Constraint Programming and Modeling ,→library in Python, based on numpy. ### Model - ‘cp.Model( *constraints)‘: create a model. - ‘model += constraint‘: add a constraint. - ‘model.minimize(expr)‘ / ‘model.maximi...
-
[7]
t"] k = data[
Do not include additional sections, markdown ,→tables, or extra code blocks. Execution details not given in the main paper.Instance parametervaluesarenotincludedinprompts.Solverseed42 isfixed,andthereturned-answercheckhasa60-secondlimit. The baseline is remeasured before each search. An instance isexcludedfromthatrunifthelivebaselinetimesout,cannot beeval...
-
[10]
Use the baseline model, earlier conversation, ,→measured feedback, and partial reasoning as ,→context
-
[11]
Output exactly two top-level sections: ‘## ,→Rationale‘ and ‘## Final Model‘
-
[12]
Under ‘## Rationale‘, provide a concise visible ,→rationale based on the partial answer
-
[13]
Under ‘## Final Model‘, output exactly one fenced ,→‘python‘ code block containing a complete ,→standalone implementation
-
[14]
Keep the same function signature: build_model(data ,→) -> (model, extractor)
-
[15]
Preserve the same input contract and exact ,→extractor output schema as the baseline
-
[17]
,→Understand the problem being addressed, ,→including its variables, constraints, and ,→optimization goals
Analyze Content: Read the provided CPMpy code. ,→Understand the problem being addressed, ,→including its variables, constraints, and ,→optimization goals
-
[18]
,→These should offer targeted modifications or ,→restrictions designed to reduce the search ,→space effectively
Generate additional Constraints: Based on your ,→analysis, create five unique constraints. ,→These should offer targeted modifications or ,→restrictions designed to reduce the search ,→space effectively
-
[19]
streamliner_1
Always return your constraints as a JSON object, ,→adhering to the structure: {"streamliner_1": ,→"<CPMpy constraint expression>", ..., " ,→streamliner_5": "<CPMpy constraint expression ,→>"}. Your final output should exclusively be ,→the JSON object containing the five ,→constraints
-
[20]
Some constraints might lead to ,→errors, timeouts, or unsatisfiable instances
As a response, you will get feedback for each ,→constraint. Some constraints might lead to ,→errors, timeouts, or unsatisfiable instances
-
[21]
Use the information provided in the previous step ,→to generate five new, and hopefully better ,→constraints
-
[22]
Compliance Rules:
Repeat steps 3 to 5 multiple times. Compliance Rules:
-
[23]
streamliner_1
Response Format: Your final output should ,→exclusively be the JSON object containing the ,→five constraints, adhering to the structure: ,→{"streamliner_1": "<CPMpy constraint ,→expression>", ..., "streamliner_5": "<CPMpy ,→constraint expression>"}
-
[24]
Code Quality: All CPMpy expressions must be ,→syntactically correct and functional
-
[25]
CPMpy adaptation: Each value must be a single ,→constraint expression that can be added to the ,→existing model
Creativity: You’re encouraged to be innovative in ,→proposing constraints, keeping in mind their ,→purpose: to narrow down the search space ,→efficiently without oversimplifying the ,→problem. CPMpy adaptation: Each value must be a single ,→constraint expression that can be added to the ,→existing model. For example, use an ,→expression such as ‘cp.all([c...
-
[2005]
InIJCAI,109–116
Therulesofconstraintmodelling. InIJCAI,109–116. Gent, I. P.; and Walsh, T. 1999. CSPlib: A Benchmark Li- brary for Constraints. In Jaffar, J., ed.,Principles and Prac- tice of Constraint Programming – CP’99, 480–481. Berlin, Heidelberg: Springer Berlin Heidelberg. ISBN 978-3-540- 48085-3. Gestrin, E.; and Seipp, J. 2026. LLM-Evolved Domain- Independent He...
1999
-
[2006]
Hou, Z.; Li, X.; Zhang, Y.; Li, T.; and You, K
Constraintmodelsforthecoveringtestproblem.Con- straints, 11(2): 199–219. Hou, Z.; Li, X.; Zhang, Y.; Li, T.; and You, K. 2026. LLM4Branch: Large Language Model for Discovering Effi- cientBranchingPoliciesofIntegerPrograms. InForty-third International Conference on Machine Learning. Ishay, A.; Yang, Z.; and Lee, J. 2023. Leveraging Large Language Models to...
arXiv 2026
-
[2007]
Constraints, 12: 21–62
Global constraint catalogue: Past, present and future. Constraints, 12: 21–62. Bradley, H.; Dai, A.; Teufel, H.; Zhang, J.; Oostermeijer, K.; Bellagente, M.; Clune, J.; Stanley, K.; Schott, G.; and Lehman, J. 2024. Quality-diversity through AI feedback. InInternational Conference on Learning Representations, volume 2024, 21036–21147. Carbonell, J. G.; and...
2024
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.