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

Declarative probabilistic logic programming in discrete-continuous domains

Pedro Zuidberg Dos Martires, Luc De Raedt, Angelika Kimmig

Introduction

The integration of logical reasoning with probabilistic modeling has long been a goal in artificial intelligence. While Probabilistic Logic Programming (PLP) has seen significant success in discrete domains through "distribution semantics," extending these frameworks to hybrid environments—where discrete categories coexist with continuous variables—presents substantial challenges. This paper introduces DC-ProbLog, a framework designed to provide declarative semantics and efficient inference for such hybrid domains. By utilizing a novel algorithm called IALW and infinitesimal numbers, it successfully unifies logical reasoning with the ability to condition on exact values in continuous distributions—a long-standing "zero-probability" challenge in the field.

The Challenge of Hybrid Domains

Real-world scenarios often involve a mix of discrete states (e.g., a component's failure status) and continuous measurements (e.g., temperature or pressure). Existing hybrid PLP systems frequently struggle with two main issues:

  1. Lack of Declarative Semantics: The behavior of a program often depends on its execution order rather than its mathematical definition.
  2. The Zero-Probability Problem: Conditioning a model on an exact continuous value (e.g., "temperature = 20.0°C") is mathematically problematic because the probability of any single point in a continuous distribution is zero.

Methodology: DC-ProbLog and IALW

The authors address these challenges through a three-fold approach:

1. Measure Semantics

By extending classic discrete semantics using measure theory, the authors provide a rigorous foundation for programs that mix discrete and continuous random variables. This ensures that the programs have a well-defined mathematical meaning independent of the inference algorithm used.

2. Distributional Clauses

DC-ProbLog utilizes "distributional clauses" to define random variables whose distributions are conditioned on logical predicates. For instance, one might define the number of items in a container based on its size using a Poisson distribution.

3. Infinitesimal Algebraic Likelihood Weighting (IALW)

The core of the inference engine is IALW, which employs two key innovations:

  • Infinitesimal Numbers: To handle conditioning on exact continuous values, probabilities are represented as pairs $(r, n)$, where $r$ is a real number and $n$ represents an infinitesimal interval. This allows the system to compute limits toward exact values without encountering division-by-zero errors.
  • Knowledge Compilation: The logic of the program is compiled into a Directed Acyclic Graph (DAG), specifically a smooth, deterministic, decomposable Negation Normal Form (sd-DNNF). This structure enables significantly faster computation compared to traditional tree-based inference methods.
An example of a compiled computational circuit (sd-DNNF) representing hybrid logical and probabilistic dependencies.

Experimental Evaluation

The system was evaluated on several benchmark problems:

  • The Machine Problem: Modeling failures based on cooling systems and temperature.
  • The Indian GPA Problem: A benchmark involving different GPA scales and "spikes" at specific values.
  • The Faulty Machine Experiment: A synthetic test focusing on rare events (e.g., a failure probability of $10^{-5}$).

Key Results and Insights

  • Robustness to Rare Events: In tests with extremely rare events, standard Likelihood Weighting (LLW) failed to converge. In contrast, the Symbolic IALW (SIALW) approach—which uses exact symbolic inference for discrete components—maintained 100% accuracy regardless of event rarity.
  • Generalization: DC-ProbLog is a strict generalization of standard ProbLog; it reduces to the state-of-the-art discrete PLP engine when continuous variables are absent.
  • Efficiency through DAGs: By using DAGs instead of trees, DC-ProbLog can represent complex, overlapping logical paths compactly, leading to exponential speedups in certain scenarios.

Future Directions

While DC-ProbLog marks a significant step forward, several areas for future work remain. The current implementation is restricted to finite databases, and the framework does not yet natively support continuous-time stochastic processes. Additionally, while DAG compilation is efficient for inference, the compilation step itself remains #P-hard, presenting potential scaling challenges for exceptionally large or cyclic programs.

Summary updated

BibTeX
@article{martires2024declarative,
  author = {Pedro Zuidberg Dos Martires and Luc De Raedt and Angelika Kimmig},
  title = {{Declarative probabilistic logic programming in discrete-continuous domains}},
  journal = {Artificial Intelligence},
  year = {2024},
  doi = {10.1016/j.artint.2024.104227},
}
Figure