When Words Change the Model: Sensitivity of LLMs for Constraint Programming Modelling
Not on the map. Why?
Abstract (arXiv)
One of the long-standing goals in optimisation and constraint programming is to describe a problem in natural language and automatically obtain an executable, efficient model. Large language models appear to bring this vision closer, showing impressive results in automatically generating models for classical benchmarks. However, much of this apparent success may derive from data contamination rather than genuine reasoning: many standard CP problems are likely included in the training data of these models. To examine this hypothesis, we systematically rephrased and perturbed a set of well-known CSPLib problems to preserve their structure while modifying their context and introducing misleading elements. We then compared the models produced by three representative LLMs across original and modified descriptions. Our qualitative analysis shows that while LLMs can produce syntactically valid and semantically plausible models, their performance drops sharply under contextual and linguistic variation, revealing shallow understanding and sensitivity to wording.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 3 of its 18 references that are in the map. First posted on arXiv 18 Nov 2025.
Builds on
3 of 18 references.
References · 3
- 2018Machine Learning for Combinatorial Optimization: a Methodological Tour d'Horizoncited by 623
- 2023NLP Evaluation in trouble: On the Need to Measure LLM Data Contamination for each Benchmarkcited by 348
- 202314 Examples of How LLMs Can Transform Materials Science and Chemistry: A Reflection on a Large Language Model Hackathoncited by 86
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Improving Constraint Models with LLM Agentscited by 0
- 2026Improving Constraint Models with LLM Agents8 Aug 2026