Efficient Knowledge Compilation Beyond Weighted Model Counting

05/16/2022
by   Rafael Kiesel, et al.
0

Quantitative extensions of logic programming often require the solution of so called second level inference tasks, i.e., problems that involve a third operation, such as maximization or normalization, on top of addition and multiplication, and thus go beyond the well-known weighted or algebraic model counting setting of probabilistic logic programming under the distribution semantics. We introduce Second Level Algebraic Model Counting (2AMC) as a generic framework for these kinds of problems. As 2AMC is to (algebraic) model counting what forall-exists-SAT is to propositional satisfiability, it is notoriously hard to solve. First level techniques based on Knowledge Compilation (KC) have been adapted for specific 2AMC instances by imposing variable order constraints on the resulting circuit. However, those constraints can severely increase the circuit size and thus decrease the efficiency of such approaches. We show that we can exploit the logical structure of a 2AMC problem to omit parts of these constraints, thus limiting the negative effect. Furthermore, we introduce and implement a strategy to generate a sufficient set of constraints statically, with a priori guarantees for the performance of KC. Our empirical evaluation on several benchmarks and tasks confirms that our theoretical results can translate into more efficient solving in practice. Under consideration for acceptance in TPLP.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/14/2019

Quantitative Logic Reasoning

In this paper we show several similarities among logic systems that deal...
research
11/20/2014

Stable Model Counting and Its Application in Probabilistic Logic Programming

Model counting is the problem of computing the number of models that sat...
research
06/13/2017

A New Probabilistic Algorithm for Approximate Model Counting

Constrained counting is important in domains ranging from artificial int...
research
03/23/2021

On Counting Propositional Logic

We study counting propositional logic as an extension of propositional l...
research
05/19/2022

DPER: Dynamic Programming for Exist-Random Stochastic SAT

In Bayesian inference, the maximum a posteriori (MAP) problem combines t...
research
09/25/2020

Weighted Model Counting in FO2 with Cardinality Constraints and Counting Quantifiers: A Closed Form Formula

Weighted First Order Model Counting (WFOMC) computes the weighted sum of...
research
07/11/2019

Approximate Model Counting, Sparse XOR Constraints and Minimum Distance

The problem of counting the number of models of a given Boolean formula ...

Please sign up or login with your details

Forgot password? Click here to reset