Declarative Probabilistic Logic Programming in Discrete-Continuous Domains
Pedro Zuidberg Dos Martires, Luc De Raedt, Angelika Kimmig
TL;DR
This work extends probabilistic logic programming to hybrid discrete-continuous domains by introducing a measure-based semantics (the measure semantics) and the DC-ProbLog language, which unifies discrete PLP, distributional clauses, and continuous distributions. A central contribution is the Infinitesimal Algebraic Likelihood Weighting (IALW) inference method, which uses knowledge compilation to handle conditioning, including zero-probability events, by operating on algebraic circuits (sd-DNNF) and infinitesimal semirings. The paper shows the semantic and algorithmic integration of random-variable dependencies with logical reasoning, enabling exact or quasi-exact inference in hybrid settings and positioning DC-ProbLog as a versatile generalization of ProbLog, Extended PRISM, PCLP, and BLOG. Empirical results demonstrate robustness of SIALW against rare events and demonstrate the practicality of the approach for complex hybrid models. The framework advances declarative hybrid probabilistic programming with a principled semantics, scalable inference, and broad compatibility with existing PLP paradigms.
Abstract
Over the past three decades, the logic programming paradigm has been successfully expanded to support probabilistic modeling, inference and learning. The resulting paradigm of probabilistic logic programming (PLP) and its programming languages owes much of its success to a declarative semantics, the so-called distribution semantics. However, the distribution semantics is limited to discrete random variables only. While PLP has been extended in various ways for supporting hybrid, that is, mixed discrete and continuous random variables, we are still lacking a declarative semantics for hybrid PLP that not only generalizes the distribution semantics and the modeling language but also the standard inference algorithm that is based on knowledge compilation. We contribute the measure semantics together with the hybrid PLP language DC-ProbLog (where DC stands for distributional clauses) and its inference engine infinitesimal algebraic likelihood weighting (IALW). These have the original distribution semantics, standard PLP languages such as ProbLog, and standard inference engines for PLP based on knowledge compilation as special cases. Thus, we generalize the state of the art of PLP towards hybrid PLP in three different aspects: semantics, language and inference. Furthermore, IALW is the first inference algorithm for hybrid probabilistic programming based on knowledge compilation
