提出混合数值方法,精准高效计算加权模型计数。
Numerical Considerations in Weighted Model Counting
- 融合浮点与有理数运算,动态选择最优精度方案。
- 非负权重下可严格控制精度误差,避免溢出问题。
- 适合需要高精度的推理与风险评估场景。
加权模型计数计算布尔公式满足赋值的加权和,其中赋值权重为变量正负项权重的乘积。该技术广泛应用于概率推理与定量风险评估。现有方法多将公式转为支持算术求值的形式,用乘法表示合取、加法表示析取。浮点运算虽快但精度不可控,有理数运算精确但开销大。本文提出结合多种数值表示的方法,确保用户指定精度下的准确计算。当所有权重非负时,证明浮点运算的精度损失可被紧密界定;引入扩展范围双精度(ERD)格式,通过64位额外指数避免溢出与下溢。对于含正负权重的问题,采用区间浮点与有理数结合的方式,在效率与精度间取得平衡。实验设计了极具挑战性的公式与权重配置,验证了方法的鲁棒性。
原文摘要 · Abstract (English)
Weighted model counting computes the sum of the rational-valued weights associated with the satisfying assignments for a Boolean formula, where the weight of an assignment is given by the product of the weights assigned to the positive and negated variables comprising the assignment. Weighted model counting finds applications across a variety of domains including probabilistic reasoning and quantitative risk assessment. Most weighted model counting programs operate by (explicitly or implicitly) converting the input formula into a form that enables arithmetic evaluation, using multiplication for conjunctions and addition for disjunctions. Performing this evaluation using floating-point arithmetic can yield inaccurate results, and it cannot quantify the level of precision achieved. Computing with rational arithmetic gives exact results, but it is costly in both time and space. This paper describes how to combine multiple numeric representations to efficiently compute weighted model counts that are guaranteed to achieve a user-specified precision. When all weights are nonnegative, we prove that the precision loss of arithmetic evaluation using floating-point arithmetic can be tightly bounded. We show that supplementing a standard IEEE double-precision representation with a separate 64-bit exponent, a format we call extended-range double (ERD), avoids the underflow and overflow issues commonly encountered in weighted model counting. For problems with mixed negative and positive weights, we show that a combination of interval floating-point arithmetic and rational arithmetic can achieve the twin goals of efficiency and guaranteed precision. For our evaluations, we have devised especially challenging formulas and weight assignments, demonstrating the robustness of our approach.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。