arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.05774cs.AI
收藏

ConstraintLLM: 一种用于工业级约束编程的神经符号框架

ConstraintLLM: A Neuro-Symbolic Framework for Industrial-Level Constraint Programming

Hangzhou Institute for Advanced Study, UCAS, Hangzhou, China(杭州高等研究院,UCAS,杭州,中国);University of Oxford, Oxford, UK(牛津大学,牛津,英国);University of Science and Technology Beijing, Beijing, China(北京科技大学,北京,中国);SKLCS and Key Laboratory of System Software, ISCAS, Beijing, China(SKLCS和系统软件重点实验室,ISCAS,北京,中国);Laboratory of Parallel Software and Computational Science, ISCAS, Beijing, China(并行软件与计算科学实验室,ISCAS,北京,中国);University of Chinese Academy of Sciences, Beijing, China(中国科学院大学,北京,中国)

Weichun Shi, Minghao Liu, Wanting Zhang, Langchen Shi, Fuqi Jia, Feifei Ma, Jian Zhang

AI总结:

ConstraintLLM是一种专为约束编程设计的神经符号框架,通过引入Constraint-Aware Retrieval Module和Tree-of-Thoughts框架,实现了在工业级约束编程基准上的高性能求解。

摘要:

约束编程(CP)是解决现实世界约束优化问题(COPs)的关键技术,具有丰富的建模语义和高效的求解效率。利用大语言模型(LLMs)自动生成COPs的正式建模正成为一种有前途的方法,旨在借助符号求解器构建可信的神经符号AI。然而,与基于运筹学(OR)模型的工作相比,CP受到的关注较少。我们引入ConstraintLLM,这是首个专门针对CP建模设计的LLM,它是在开源LLM上通过多指令监督微调训练的。我们提出了Constraint-Aware Retrieval Module(CARM)以增强上下文学习能力,该模块集成在Tree-of-Thoughts(ToT)框架中,并带有引导的自我校正机制。此外,我们构建并发布了IndusCP,首个工业级的CP建模基准,包含来自不同领域的140个具有挑战性的任务。我们的实验表明,ConstraintLLM在多个基准上实现了最先进的求解准确率,并在新的IndusCP基准上优于基线方法2倍。代码和数据可在:https://github.com/william4s/ConstraintLLM获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑