Hostname: page-component-77f85d65b8-9nbrm Total loading time: 0 Render date: 2026-03-29T12:21:09.114Z Has data issue: false hasContentIssue false

“What if?” in Probabilistic Logic Programming

Published online by Cambridge University Press:  17 July 2023

RAFAEL KIESEL
Affiliation:
TU Wien, Vienna, Austria (e-mail: rafael.kiesel@tuwien.ac.at)
KILIAN RÜCKSCHLOß
Affiliation:
Ludwig-Maximilians-Universität München, Munich, Germany (e-mails: kilian.rueckschloss@lmu.de, felix.weitkaemper@lmu.de)
FELIX WEITKÄMPER
Affiliation:
Ludwig-Maximilians-Universität München, Munich, Germany (e-mails: kilian.rueckschloss@lmu.de, felix.weitkaemper@lmu.de)
Rights & Permissions [Opens in a new window]

Abstract

A ProbLog program is a logic program with facts that only hold with a specified probability. In this contribution, we extend this ProbLog language by the ability to answer “What if” queries. Intuitively, a ProbLog program defines a distribution by solving a system of equations in terms of mutually independent predefined Boolean random variables. In the theory of causality, Judea Pearl proposes a counterfactual reasoning for such systems of equations. Based on Pearl’s calculus, we provide a procedure for processing these counterfactual queries on ProbLog programs, together with a proof of correctness and a full implementation. Using the latter, we provide insights into the influence of different parameters on the scalability of inference. Finally, we also show that our approach is consistent with CP-logic, that is with the causal semantics for logic programs with annotated with disjunctions.

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), 2023. Published by Cambridge University Press
Figure 0

Fig. 1. Results for Q1.

Figure 1

Fig. 2. Two plots showing the runtime using bottom-up (right) and top-down (left) compilation with varying evidence and intervention. The x-axis denotes the signed number of interventions, that is, $-n$ corresponds to n negative interventions and n corresponds to n positive interventions. The y-axis denotes the signed number of evidence atoms using analogous logic. For each square in the main plots, the color of the square denotes the runtime of the instance with those parameters. The extra plot on the top (resp. right side) denotes the average for the number and type of evidences (resp. interventions) over all interventions (resp. evidences).

Supplementary material: File

Kiesel et al. supplementary material

Kiesel et al. supplementary material

Download Kiesel et al. supplementary material(File)
File 18.6 KB