Documentation

Docs / Related work

ProbLog

What it is

ProbLog is a probabilistic logic programming language from KU Leuven (De Raedt, Kimmig, Toivonen, IJCAI 2007). It is Prolog or Datalog where some facts carry a probability. A query returns the probability that it is true. DeepProbLog (Manhaeve et al., NeurIPS 2018) lets neural networks supply those probabilities.

Model

  • Entities: any, as in Datalog.
  • Rule forms: probabilistic facts 0.8::uses_case(r, payroll)., annotated disjunctions 0.7::purpose(r,audit); 0.3::purpose(r,marketing). (exactly one, or none, is true), normal rules, and evidence (observed facts).
  • Combining: logical, as in Datalog. Probability of a query = sum over possible worlds where it is true.
  • Default: closed world in each possible world.

Formal semantics and what is proved

  • Distribution semantics (Sato 1995): each probabilistic fact is an independent random choice. Each choice gives a possible world, which is a normal logic program with a unique model.
  • Inference is #P-hard in general. Exact inference compiles the relevant proofs into a weighted Boolean formula and uses knowledge compilation (d-DNNF, SDD) and weighted model counting (Fierens et al., TPLP 2015). Approximate inference by sampling or by keeping the k best proofs.
  • Supports conditional queries (given evidence), most probable explanation (MPE), and parameter learning from data.
  • No mechanized proofs we know of.

Purpose and use case

Not built in. But "which use case is this request" is naturally an annotated disjunction over the candidate use cases, with probabilities from a model's reading.

Uncertainty

This is its point. Note the independence assumption: separate probabilistic facts are independent. Correlated readings (the same model reading purpose and recipient from the same sentence) must be modelled as one annotated disjunction over joint values, or the result is wrong.

History and state

None.

What we can reuse

  • The distribution semantics as the meaning of "uncertain readings". A decision has a probability: the total weight of worlds in which it is allow.
  • Annotated disjunctions for "one of these use cases".
  • A clean way to state the key theorem: if a boundary holds in every possible world, it holds with probability 1, whatever the probabilities are. Probability only matters for the non-boundary part (allow versus ask).
  • MPE and conditional queries to choose the best question to ask: the reading whose answer changes the decision most.

What it lacks for us

  • Not a policy language: no fixed algebra, no forms, no forbid semantics.
  • Exact inference is expensive; we must keep the number of uncertain variables per request small.
  • Independence assumptions are easy to get wrong.

Key references

  • De Raedt, Kimmig, Toivonen, "ProbLog: A Probabilistic Prolog and Its Application in Link Discovery", IJCAI 2007. https://www.ijcai.org/Proceedings/07/Papers/396.pdf
  • Fierens et al., "Inference and learning in probabilistic logic programs using weighted Boolean formulas", TPLP 2015. https://doi.org/10.1017/S1471068414000076
  • Sato, "A statistical learning method for logic programs with distribution semantics", ICLP 1995.
  • Manhaeve et al., "DeepProbLog: Neural Probabilistic Logic Programming", NeurIPS 2018. https://arxiv.org/abs/1805.10872
  • ProbLog website. https://dtai.cs.kuleuven.be/problog/

Last built 2026-11-25