Hostname: page-component-77f85d65b8-45ctf Total loading time: 0 Render date: 2026-03-28T04:55:51.285Z Has data issue: false hasContentIssue false

Efficient Knowledge Compilation Beyond Weighted Model Counting

Published online by Cambridge University Press:  03 August 2022

RAFAEL KIESEL
Affiliation:
TU Wien, Vienna, Austria (e-mail: rafael.kiesel@web.de)
PIETRO TOTIS
Affiliation:
KU Leuven, Leuven, Belgium (e-mails: pietro.totis@kuleuven.be, angelika.kimmig@kuleuven.be)
ANGELIKA KIMMIG
Affiliation:
KU Leuven, Leuven, Belgium (e-mails: pietro.totis@kuleuven.be, angelika.kimmig@kuleuven.be)
Rights & Permissions [Opens in a new window]

Abstract

Quantitative extensions of logic programming often require the solution of so called second level inference tasks, that is, 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.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2022. Published by Cambridge University Press
Figure 0

Fig. 1. Two sd-DNNFs for $\mathcal{L}_{ex}$. Mixed nodes for partition $\{a,b\},\{c,d\}$ are circled red and pure nodes are boxed blue or boxed green, when they are from $\{a,b\}$ or $\{c,d\}$, respectively.

Figure 1

Fig. 2. Q1: Comparison of tree decomposition width for $\mathbf{X}$-first and $\mathbf{X}/\mathbf{D}$-first variable order, across all 2AMC instances (left) and for solved 2AMC instances only (right). We solve 822 of the 825 instances with $\mathbf{X}/\mathbf{D}$-width at most 20, 118 of the 219 instances with $\mathbf{X}/\mathbf{D}$-width between 21 and 40, and 7 of the 353 instances with $\mathbf{X}/\mathbf{D}$-width above 40.

Figure 2

Fig. 3. Q1: Running times per instance for different configurations on MAP grids (left) and all other 2AMC instances (right).

Figure 3

Fig. 4. Q2: Running times of different solvers on MAP problem sets (top), indicated above each plot, MEU problems (bottom left) and SUCCSM (bottom right).

Figure 4

Fig. 5. Q3: Running times of different solvers on SUCC programs.

Supplementary material: PDF

Kiesel et al. supplementary material

Kiesel et al. supplementary material

Download Kiesel et al. supplementary material(PDF)
PDF 219.9 KB