约束计数和抽样:弥合理论与实践之间的差距
Constrained Counting and Sampling: Bridging the Gap between Theory and Practice
摘要:
约束计数和抽样是计算机科学中的两个基本问题,具有许多应用,包括网络可靠性、隐私、概率推理和约束随机验证。在约束计数中,任务是根据给定的加权函数计算给定约束的解集的总权重。在约束抽样中,任务是随机抽样,服从给定的加权函数,从一组给定约束的解决方案中。因此,约束计数和抽样多年来一直受到密集的理论和实证研究。然而,以前的工作,提供了启发式技术的准确性保证较差或方法与证明的保证,但在实践中表现不佳。在这篇论文中,我们介绍了一种新的基于哈希的算法框架约束采样和计数,结合了经典的算法技术的通用哈希组合推理工具,特别是,SAT和SMT,在过去的二十年中取得的巨大进展。由此产生的计数框架(ApproxMC 2)和采样框架(UniGen)可以处理具有多达百万个变量的公式,这比现有技术工具处理数百个变量的能力有了显着提高。如果初始约束集表示为析取范式(DNF),则ApproxMC是唯一已知的不涉及Monte Carlo步骤的完全多项式随机逼近方案(FPRAS)。通过利用公式的可定义性和由3-通用散列函数定义的单元格中的解的分布的方差之间的联系,我们引入了一种算法技术MIS,该算法技术将底层通用散列函数中采用的XOR约束的大小减少了多达两个数量级。
英文摘要:
Constrained counting and sampling are two fundamental problems in Computer Science with numerous applications, including network reliability, privacy, probabilistic reasoning, and constrained-random verification. In constrained counting, the task is to compute the total weight, subject to a given weighting function, of the set of solutions of the given constraints. In constrained sampling, the task is to sample randomly, subject to a given weighting function, from the set of solutions to a set of given constraints. Consequently, constrained counting and sampling have been subject to intense theoretical and empirical investigations over the years. Prior work, however, offered either heuristic techniques with poor guarantees of accuracy or approaches with proven guarantees but poor performance in practice. In this thesis, we introduce a novel hashing-based algorithmic framework for constrained sampling and counting that combines the classical algorithmic technique of universal hashing with the dramatic progress made in combinatorial reasoning tools, in particular, SAT and SMT, over the past two decades. The resulting frameworks for counting (ApproxMC2) and sampling (UniGen) can handle formulas with up to million variables representing a significant boost up from the prior state of the art tools' capability to handle few hundreds of variables. If the initial set of constraints is expressed as Disjunctive Normal Form (DNF), ApproxMC is the only known Fully Polynomial Randomized Approximation Scheme (FPRAS) that does not involve Monte Carlo steps. By exploiting the connection between definability of formulas and variance of the distribution of solutions in a cell defined by 3-universal hash functions, we introduced an algorithmic technique, MIS, that reduced the size of XOR constraints employed in the underlying universal hash functions by as much as two orders of magnitude.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。