Given a CNF formula and a weight for each assignment of values to variables, two natural problems are weighted model counting and distribution-aware sampling of satisfying assignments. Both problems have a wide variety of important applications. Due to the inherent complexity of the exact versions of the problems, interest has focused on solving them approximately. Prior work in this area scaled only to small problems in practice, or failed to provide strong theoretical guarantees, or employed a computationally-expensive maximum a posteriori probability (MAP) oracle that assumes prior knowledge of a factored representation of the weight distribution. We present a novel approach that works with a black-box oracle for weights of assignments and requires only an {\NP}-oracle (in practice, a SAT-solver) to solve both the counting and sampling problems. Our approach works under mild assumptions on the distribution of weights of satisfying assignments, provides strong theoretical guarantees, and scales to problems involving several thousand variables. We also show that the assumptions can be significantly relaxed while improving computational efficiency if a factored representation of the weights is known.
Solving Combinatorial Counting Problems with Weighted First-Order Model Counting
School of Artificial Intelligence, Jilin University, Changchun, China;State Key Laboratory of Complex \& Critical Software Environment, Beihang University, China;National Research Center for Educational Materials, China;Tengen Intelligence Institute, China;Czech Technical University in Prague, Prague, Czech Republic
Constrained Sampling and Counting: Universal Hashing Meets SAT Solving
Rice University(莱斯大学);Indian Institute of Technology, Bombay(印度理工学院孟买分校);University of California, Berkeley(加州大学伯克利分校);IBM Research(IBM研究院);Princeton University(普林斯顿大学)
Learning Branching Heuristics for Propositional Model Counting
University of Toronto(多伦多大学);UC Berkeley(加州大学伯克利分校);Vector Institute(向量研究所)
命题模型计数(Propositional Model Counting),或#SAT,是计算布尔公式的满意赋值的数量的问题。来自不同应用领域的许多问题,包括许多离散概率推理问题,可以转化为模型计数问题,由#SAT求解器来解决。然而,精确的#SAT求解器通常不能扩展到工业规模的实例。在本文中,我们提出了Neuro#,一种用于学习分支算法的方法,以提高给定问题族实例上的精确SAT求解器的性能。我们的实验表明,我们的方法减少了类似的分布式举行了实例的步骤数,并推广到更大的实例,从同一个问题的家庭。它是能够实现这些结果对一些不同的问题家庭具有非常不同的结构。除了步数改进之外,Neuro#还可以在某些问题族中的较大实例上实现比vanilla求解器高出几个数量级的挂钟加速,尽管查询模型的运行时开销很大。
On the Approximability of Weighted Model Integration on DNF Structures
University of Oxford(牛津大学)
加权模型计数(Weighted Model Counting,WMC)是计算一个命题公式的所有满足赋值的加权和。WMC是众所周知的是精确求解的#P-困难,但承认一个完全多项式随机逼近方案(FPRAS)时,限制到DNF结构。在这项工作中,我们研究加权模型集成,加权模型计数的推广,其中涉及到真实的变量,除了命题变量,并提出以下问题:是否加权模型集成DNF结构承认FPRAS?基于近似体积计算和近似加权模型计数的经典结果,我们证明了DNF结构上的加权模型积分确实可以近似为一类权重函数。我们的近似算法基于三个子程序,每个子程序都可以是弱(即,近似的),或强的(即,精确)Oracle,并且在所有情况下都有准确性保证。我们通过实验验证了我们的方法在不同大小的随机生成的DNF实例,并表明我们的算法可扩展到大型问题实例,涉及多达1 K个变量,这是目前现有的通用加权模型集成求解器无法达到的。
Lifted Algorithms for Symmetric Weighted First-Order Model Sampling
Beihang University(北京航空航天大学);Zhongfa Aviation Institute of Beihang University(北京航空航天大学中法航空学院);ETH Zurich(苏黎世联邦理工学院);Czech Technical University in Prague(捷克技术大学布拉格分校)