Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Shi, Weichun, Liu, Minghao, Zhang, Wanting, Shi, Langchen, Jia, Fuqi, Ma, Feifei, Zhang, Jian
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2510.05774
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912813439516672
author Shi, Weichun
Liu, Minghao
Zhang, Wanting
Shi, Langchen
Jia, Fuqi
Ma, Feifei
Zhang, Jian
author_facet Shi, Weichun
Liu, Minghao
Zhang, Wanting
Shi, Langchen
Jia, Fuqi
Ma, Feifei
Zhang, Jian
contents Constraint programming (CP) is a crucial technology for solving real-world constraint optimization problems (COPs), with the advantages of rich modeling semantics and high solving efficiency. Using large language models (LLMs) to generate formal modeling automatically for COPs is becoming a promising approach, which aims to build trustworthy neuro-symbolic AI with the help of symbolic solvers. However, CP has received less attention compared to works based on operations research (OR) models. We introduce ConstraintLLM, the first LLM specifically designed for CP modeling, which is trained on an open-source LLM with multi-instruction supervised fine-tuning. We propose the Constraint-Aware Retrieval Module (CARM) to increase the in-context learning capabilities, which is integrated in a Tree-of-Thoughts (ToT) framework with guided self-correction mechanism. Moreover, we construct and release IndusCP, the first industrial-level benchmark for CP modeling, which contains 140 challenging tasks from various domains. Our experiments demonstrate that ConstraintLLM achieves state-of-the-art solving accuracy across multiple benchmarks and outperforms the baselines by 2x on the new IndusCP benchmark. Code and data are available at: https://github.com/william4s/ConstraintLLM.
format Preprint
id arxiv_https___arxiv_org_abs_2510_05774
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ConstraintLLM: A Neuro-Symbolic Framework for Industrial-Level Constraint Programming
Shi, Weichun
Liu, Minghao
Zhang, Wanting
Shi, Langchen
Jia, Fuqi
Ma, Feifei
Zhang, Jian
Artificial Intelligence
Constraint programming (CP) is a crucial technology for solving real-world constraint optimization problems (COPs), with the advantages of rich modeling semantics and high solving efficiency. Using large language models (LLMs) to generate formal modeling automatically for COPs is becoming a promising approach, which aims to build trustworthy neuro-symbolic AI with the help of symbolic solvers. However, CP has received less attention compared to works based on operations research (OR) models. We introduce ConstraintLLM, the first LLM specifically designed for CP modeling, which is trained on an open-source LLM with multi-instruction supervised fine-tuning. We propose the Constraint-Aware Retrieval Module (CARM) to increase the in-context learning capabilities, which is integrated in a Tree-of-Thoughts (ToT) framework with guided self-correction mechanism. Moreover, we construct and release IndusCP, the first industrial-level benchmark for CP modeling, which contains 140 challenging tasks from various domains. Our experiments demonstrate that ConstraintLLM achieves state-of-the-art solving accuracy across multiple benchmarks and outperforms the baselines by 2x on the new IndusCP benchmark. Code and data are available at: https://github.com/william4s/ConstraintLLM.
title ConstraintLLM: A Neuro-Symbolic Framework for Industrial-Level Constraint Programming
topic Artificial Intelligence
url https://arxiv.org/abs/2510.05774