Inference and Learning with Model Uncertainty in Probabilistic Logic Programs

Victor Verreet, Vincent Derkinderen, Pedro Zuidberg Dos Martires, Luc De Raedt

Introduction

Probabilistic models typically focus on aleatoric uncertainty, which represents the inherent randomness of a process (e.g., a coin flip). However, they often neglect epistemic uncertainty—uncertainty arising from a lack of knowledge or data about the model itself. For instance, a coin flipped twice provides much less information about its fairness than one flipped a thousand times.

In Probabilistic Logic Programming (PLP), existing approaches like Subjective Logic (SL) or Credal Sets (CS) face significant hurdles. They often rely on approximations that lead to "unfaithful" results or struggle with calculating complex expectation values. This paper introduces BetaProbLog, a framework designed to reason about both types of uncertainty in a mathematically sound and computationally efficient manner.

The BetaProbLog Framework

BetaProbLog extends PLP by introducing Beta facts. Instead of a fixed probability, each fact is assigned a Beta distribution, $Beta(\alpha, \beta)$, representing the distribution over its possible probabilities.

Inference via Arithmetic Circuits

The system compiles logic programs into Arithmetic Circuits (ACs). To handle the complex integrals required for "second-order" queries (e.g., finding the expected value of a function of a query's probability), BetaProbLog employs a Monte Carlo approach. By leveraging PyTorch tensor operations, the engine parallelizes these evaluations, allowing thousands of samples to be processed simultaneously on a GPU.

Arithmetic circuit used for inference, showing how samples from Beta distributions are propagated through the graph as vectors.

Differentiable Learning

The framework supports parameter learning through the reparameterization trick. This makes the sampling process differentiable, enabling the use of standard stochastic gradient descent (SGD) to learn the parameters ($\alpha, \beta$) of the Beta distributions directly from data.

Experimental Evaluation

The authors evaluated BetaProbLog across several domains:

  • Bayesian Networks: Eight standard networks (e.g., Alarm, Water, Hepar2) from the BNLearn repository, ranging from 9 to 76 nodes.
  • Digit Classification: A task involving an error-prone seven-segment display to compare against credal inference methods.
  • Synthetic Tasks: Tests designed to recover missing parameters in complex networks.

Results indicate that BetaProbLog is not only more accurate than SLProbLog but also significantly faster. The parallelized implementation allows for a massive increase in Monte Carlo samples with negligible impact on total inference time.

Key Insights: The "Beta Mismatch"

A critical finding of this work is the Beta Mismatch. In many PLP systems, query probabilities are assumed to follow a Beta distribution. However, the true distribution is often far more complex—potentially multi-modal or highly skewed. Previous methods like SLProbLog forced these results into a Beta shape using moment matching, which can lead to significant errors.

The "Beta Mismatch": the orange line (moment matching) fails to capture the true, non-Beta distribution (blue histogram) of the query probability.

Furthermore, the paper demonstrates that logic programming, traditionally a symbolic task, can benefit immensely from GPU acceleration. By compiling to ACs, the heavy probabilistic computations are offloaded to hardware optimized for tensor operations.

Conclusion and Future Work

BetaProbLog provides a robust foundation for handling model uncertainty in logic programs. Future work includes addressing the "grounding bottleneck" for large relational domains and integrating the framework with DeepProbLog to combine neural perception with symbolic reasoning under uncertainty.

Summary updated

BibTeX
@inproceedings{verreet2022inference,
  author = {Victor Verreet and Vincent Derkinderen and Pedro Zuidberg Dos Martires and Luc De Raedt},
  title = {{Inference and Learning with Model Uncertainty in Probabilistic Logic Programs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i9.21245},
}
Figure