Metraipolis › archive › dc_752765f4941e

Improving Constraint Models with LLM Agents — arXiv:2608.08127

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.08127
License (as archived)
CC0-1.0
Archived
2026-10-19T09:01:05.396Z
SHA-256 of the archived text
60526075c37b7f459037640d4ac64b47636f43969ab21fb23bffe5c9dc2c0820
Stable URL of this page
https://metraipolis.com/documento/dc_752765f4941e

How to cite

Improving Constraint Models with LLM Agents — arXiv:2608.08127 — arXiv (en), https://arxiv.org/abs/2608.08127 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_752765f4941e (Metraipolis archive dc_752765f4941e, sha256 60526075c37b7f459037640d4ac64b47636f43969ab21fb23bffe5c9dc2c0820)
BibTeX
@misc{dc752765f4941e,
  title = {Improving Constraint Models with LLM Agents — arXiv:2608.08127},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.08127},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_752765f4941e; sha256 60526075c37b7f459037640d4ac64b47636f43969ab21fb23bffe5c9dc2c0820},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.08127. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

The runtime of Constraint Programming (CP) solvers is highly sensitive to modeling choices, such as symmetry breaking, implied constraints, global constraints, constraint reformulation, and variable representation. Improving these constraint models has traditionally required human expertise, and existing automated reformulation systems are restricted to a predefined library of hand-crafted transformation rules. We introduce an agentic framework that instead reformulates a constraint model from an open-ended space and establishes correctness empirically rather than by construction: a Large Language Model (LLM) agent, given a model and three training instances, proposes alternative formulations, validates each by injecting its solution back into the original model, and diagnoses and repairs failures, returning the best variant it finds in a median of about fifteen minutes. The models are expressed in the CPMpy modeling library, and each proposed model is evaluated on three larger test instances. Across nine combinatorial optimization problems, the generated models outperform the originals on 21 of 27 test instances, and on some problems solve more than two orders of magnitude faster. A comparison against non-agentic baselines that reuse the same validation and selection tools indicates that the gains stem from the agent's iterative diagnosis and repair, not merely from sampling several candidates. These results demonstrate that autonomous agentic methods can support the improvement of constraint models.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-11 in cs.SE).
Categorie arXiv: Artificial Intelligence (cs.AI) ; Logic in Computer Science (cs.LO); Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.08127 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T09:00:31.516Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-11?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).