我们提出了一种针对 Max-SAT 实例的资源受限启发式方法,该方法迭代地将较大的问题分解为可由优化求解器和硬件求解的较小子组件。无约束的外层循环维护给定问题的状态空间,并独立于先前调用选择 SAT 变量的子集进行优化。资源受限的内层循环最大化“sub-SAT”问题中可满足子句的数量。我们的外层循环与内层循环的机制无关,允许在优化步骤中使用传统求解器。然而,我们也可以将选定的“sub-SAT”问题转化为二次无约束二元优化(QUBO)问题,并使用专用硬件进行优化。与在分解前将 SAT 实例转换为 QUBO 的现有解决方案不同,我们在 QUBO 优化之前选择 SAT 变量的子集。我们分析了一组变量选择方法,包括一种利用给定 SAT 实例结构的新颖的基于图的方法。编码一个(子)SAT 问题所需的 QUBO 变量数量各不相同,因此我们还额外学习了一个模型,用于预测能够适配固定大小 QUBO 求解器的 sub-SAT 问题的大小。我们在一组随机生成的 Max-SAT 实例以及来自 Max-SAT 评测基准的真实世界示例上实证展示了我们的结果,并优于现有的 QUBO 分解器解决方案。
英文摘要:
We propose a resource-constrained heuristic for instances of Max-SAT that iteratively decomposes a larger problem into smaller subcomponents that can be solved by optimized solvers and hardware. The unconstrained outer loop maintains the state space of a given problem and selects a subset of the SAT variables for optimization independent of previous calls. The resource-constrained inner loop maximizes the number of satisfiable clauses in the "sub-SAT" problem. Our outer loop is agnostic to the mechanisms of the inner loop, allowing for the use of traditional solvers for the optimization step. However, we can also transform the selected "sub-SAT" problem into a quadratic unconstrained binary optimization (QUBO) one and use specialized hardware for optimization. In contrast to existing solutions that convert a SAT instance into a QUBO one before decomposition, we choose a subset of the SAT variables before QUBO optimization. We analyze a set of variable selection methods, including a novel graph-based method that exploits the structure of a given SAT instance. The number of QUBO variables needed to encode a (sub-)SAT problem varies, so we additionally learn a model that predicts the size of sub-SAT problems that will fit a fixed-size QUBO solver. We empirically demonstrate our results on a set of randomly generated Max-SAT instances as well as real world examples from the Max-SAT evaluation benchmarks and outperform existing QUBO decomposer solutions.
Learning Variable Ordering Heuristics for Solving Constraint Satisfaction Problems
Shandong University(山东大学);Singapore Institute of Manufacturing Technology(新加坡制造技术研究院);Nanyang Technological University(南洋理工大学);Southwest Jiaotong University(西南交通大学)
Approximating the Backbone in the Weighted Maximum Satisfiability Problem
School of Software, Dalian University of Technology(大连理工大学软件学院);The State Key Laboratory of Computer Science, Institute of Software, CAS(中国科学院软件研究所计算机科学国家重点实验室)
加权最大可满足性问题(weighted Maximum Satisfiability problem,简称MAX-SAT)是一个NP难问题,在人工智能中有着广泛的应用。主干作为一种有效的启发式设计工具,已被应用于许多NP难问题的启发式设计中。本文研究了在加权MAX-SAT中检索骨干的计算复杂性,并提出了一种新的算法来解决这个问题。我们证明了在以下假设下检索完整的主干是困难的。此外,它是棘手的,以恢复一个固定的骨干部分,以及。在此基础上,提出了一种基于Walksat算子的骨干引导局部搜索算法(BGLS)。BGLS包括两个阶段:第一阶段从局部最优解中抽取骨干信息,骨干阶段在骨干的指导下进行局部搜索。在基准测试上的大量实验结果表明,BGLS在解的质量和运行时间方面都优于现有的算法。
Discovering heuristics in a complex SAT solver with large language models
School of Data Science, Fudan University, Shanghai, China(复旦大学数据科学学院,上海,中国);Key Laboratory of System Software, Institute of Software, Chinese Academy of Sciences, Beijing, China(中国科学院软件研究所系统软件重点实验室,北京,中国);SeedMath Technology Limited, Beijing, China(SeedMath技术有限公司,北京,中国)
Learning Branching Heuristics for Propositional Model Counting
University of Toronto(多伦多大学);UC Berkeley(加州大学伯克利分校);Vector Institute(向量研究所)
命题模型计数(Propositional Model Counting),或#SAT,是计算布尔公式的满意赋值的数量的问题。来自不同应用领域的许多问题,包括许多离散概率推理问题,可以转化为模型计数问题,由#SAT求解器来解决。然而,精确的#SAT求解器通常不能扩展到工业规模的实例。在本文中,我们提出了Neuro#,一种用于学习分支算法的方法,以提高给定问题族实例上的精确SAT求解器的性能。我们的实验表明,我们的方法减少了类似的分布式举行了实例的步骤数,并推广到更大的实例,从同一个问题的家庭。它是能够实现这些结果对一些不同的问题家庭具有非常不同的结构。除了步数改进之外,Neuro#还可以在某些问题族中的较大实例上实现比vanilla求解器高出几个数量级的挂钟加速,尽管查询模型的运行时开销很大。