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

Generative Datalog with Continuous Distributions

Martin Grohe, Benjamin Lucien Kaminski, Joost-Pieter Katoen, Peter Lindner

TL;DR

This paper introduces a formal semantics for Generative Datalog that extends its capabilities to handle continuous probability distributions, a significant limitation of previous work. This extension allows for more expressive probabilistic modeling and lays the groundwork for a robust framework for probabilistic databases.

What Problem Does This Paper Address?

Probabilistic databases and programming languages are powerful tools for modeling uncertainty in various fields. While previous work introduced "Generative Datalog" as a declarative probabilistic programming language, it was limited to discrete probability distributions. This restriction hindered its applicability in scenarios involving continuous uncertainty, such as those found in sensor data or human behavior modeling. Extending Generative Datalog to handle continuous distributions was identified as an open problem, requiring a more principled approach to its semantics and the underlying probability spaces.

Methods

The authors propose a new formal semantics for Generative Datalog based on stochastic kernels and Markov processes, standard notions in probability theory. This approach allows them to extend the language to handle continuous probability distributions. They achieve this by:

  • Translating Generative Datalog to Existential Datalog: This step decouples the sampling process from the rule application, allowing for a more rigorous treatment of probabilistic rules.
  • Developing a Probabilistic Chase Procedure: This procedure generalizes existing chase procedures to handle continuous distributions and forms the basis for defining the semantics.
  • Constructing Markov Processes: The chase procedure is shown to induce a Markov process over database instances, providing a formal framework for understanding the probabilistic outcomes.
  • Introducing Sequential and Parallel Chase: Both sequential (rule-by-rule) and parallel (all applicable rules simultaneously) chase procedures are developed and shown to yield equivalent results, demonstrating the robustness of the semantics.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Bridging Declarative and Probabilistic Programming: The paper successfully integrates continuous probability distributions into a declarative Datalog framework, offering a powerful new tool for probabilistic reasoning in databases.
  • Formalizing Continuous Uncertainty: By grounding the semantics in measure theory and stochastic kernels, the authors provide a mathematically sound way to handle continuous probability distributions, overcoming a significant hurdle.
  • Robustness of Semantics: The equivalence of sequential and parallel chase procedures, and the independence from chase policies, highlight the robustness and well-definedness of the proposed semantics.
  • Markovian Nature of Computation: The demonstration that the program execution can be modeled as a Markov process provides a deeper understanding of the underlying probabilistic dynamics.

Key Results

  • A formal semantics for Generative Datalog that supports continuous probability distributions is introduced.
  • The semantics is shown to be robust, yielding the same results regardless of whether a sequential or parallel chase procedure is used, and independent of the choice of chase policy.
  • The framework can handle (sub-)probabilistic databases as inputs, producing well-defined output (sub-)probabilistic databases.
  • The paper establishes that the execution of Generative Datalog programs can be modeled as a Markov process.

Limitations and Future Work

The authors acknowledge that their work lays the foundation for a well-defined semantics and does not delve into algorithmic properties or termination behavior. Future work includes:

  • Algorithmic Properties: Investigating the computational complexity and efficiency of the proposed semantics.
  • Termination Behavior: A more thorough investigation into the termination of Generative Datalog programs, especially in the presence of continuous distributions and infinite paths.
  • Concise Representation of Outputs: Exploring ways to represent the output probabilistic databases concisely, potentially allowing for effective querying.
  • Full PPDL Language: Extending the work to the full Probabilistic Programming Datalog (PPDL) language, which includes constraints, and investigating its expressive power for infinite probabilistic databases.
  • Simulation of Other Models: Exploring whether the proposed framework can simulate other probabilistic models like MLNs and PCFGs more effectively.

Summary updated

BibTeX
@article{grohe2022generative,
  author = {Martin Grohe and Benjamin Lucien Kaminski and Joost-Pieter Katoen and Peter Lindner},
  title = {{Generative Datalog with Continuous Distributions}},
  journal = {J. ACM},
  year = {2022},
  doi = {10.1145/3559102},
}
Figure