NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Probabilistic Programming Concepts

Luc De Raedt, Angelika KimmigarXiv 2013

Abstract

This paper provides a unifying survey of the probabilistic programming landscape, specifically focusing on logic-based languages. By identifying a set of core programming concepts—such as distribution semantics, stochastic memoization, and meta-calls—the authors clarify the relationships between diverse formalisms like ProbLog, PRISM, and Church, while mapping these concepts to the specific inference mechanisms required to support them.

Introduction

The field of probabilistic programming has seen an explosion of different languages and formalisms, including ICL, SLPs, BLPs, and BLOG. To researchers and practitioners alike, this "alphabet soup" can be confusing, as each language introduces its own syntax, probabilistic primitives, and specialized inference procedures.

The authors argue that the literature often overemphasizes "expressiveness"—the ability of one language to emulate another—at the expense of understanding the underlying programming concepts. This survey addresses the gap by providing a common framework to understand how these languages relate and how the choice of modeling primitives dictates the complexity and type of inference required.

Methods and Core Primitives

The foundational framework used in this survey is Sato’s Distribution Semantics. This semantics treats a probabilistic program as a distribution over "possible worlds," where each world corresponds to a standard deterministic logic program.

The authors decompose complex languages into basic building blocks:

  • Probabilistic Facts: These represent binary random variables.
  • Annotated Disjunctions: These represent multi-valued choices.
Example of probabilistic facts and rules defining a simple game.

Inference is categorized into three main logical approaches:

  1. Forward Reasoning: A generative approach that builds a tree of all possible outcomes.
  2. Backward Reasoning: A goal-directed approach that finds all possible proofs for a query.
  3. Weighted Model Counting (WMC): Reducing the program to a propositional formula (CNF) and utilizing advanced solvers.

Key Insights: Possible Worlds and Memoization

A central challenge in probabilistic logic is the Disjoint-Sum Problem. Because different "proofs" for the same goal may rely on overlapping random facts, their probabilities cannot simply be summed. This makes exact inference #P-complete and requires tools like Binary Decision Diagrams (BDDs).

A table illustrating the mapping of possible worlds to their respective probabilities under distribution semantics.

Another critical concept is Stochastic Memoization. In logic programming, a random fact is typically memoized, meaning it retains the same value every time it is referenced within a single "world." This contrasts with some functional languages where every call to a random function might result in an independent draw.

Furthermore, the paper explores Knowledge-Based Model Construction (KBMC), showing how logic acts as a template for generating large graphical models, such as Bayesian Networks, where logic defines the structure and local distributions are defined by Conditional Probability Tables (CPTs).

Key Results

The primary contribution is a comprehensive taxonomy relating eight key concepts (e.g., Flexible Probabilities, Continuous Distributions, Negation) to four dimensions of inference.

Key findings include:

  • Backward Sampling is identified as the most flexible inference method, capable of handling nearly all identified concepts, including continuous distributions.
  • Exact Inference is significantly more restricted; for example, forward exact inference cannot handle "flexible probabilities" (where the probability itself is a variable) due to the resulting infinite search space.
  • Annotated Disjunctions serve as a powerful unifying primitive, capable of representing CPTs, noisy-or gates, and stochastic grammars.

Limitations and Future Work

Despite the progress in unification, several challenges remain:

  • Lifted Inference: Reasoning at the first-order level without "grounding" the program remains a significant hurdle for general-purpose implementations.
  • Constraints: While conceptually compatible with distribution semantics, few current systems offer efficient support for hard logical constraints on possible worlds.
  • Continuous Distributions: Exact inference with continuous variables remains largely intractable, making sampling the primary viable path for practical models.
  • Learning: This survey focuses on representation and inference; the authors leave the discussion of learning model parameters or structures from data for future research.

Summary updated

BibTeX
@misc{raedt2013probabilistic,
  author = {Luc De Raedt and Angelika Kimmig},
  title = {{Probabilistic Programming Concepts}},
  year = {2013},
  eprint = {1312.4328},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1312.4328},
}
Figure