Skip to main content
QUICK REVIEW

[Paper Review] Discrete-Continuous Mixtures in Probabilistic Programming: Generalized Semantics and Inference Algorithms

Yi Wu, Siddharth Srivastava|arXiv (Cornell University)|Jun 6, 2018
Bayesian Modeling and Causal InferenceComputer Science12 citations
TL;DR

This paper introduces measure-theoretic Bayesian networks (MTBNs) to generalize probabilistic programming semantics for discrete-continuous mixtures, enabling correct modeling of hybrid random variables. It proposes two provably correct inference algorithms—lexicographic likelihood weighting (LLW) and lexicographic particle filter (LPF)—and validates them in BLOG, showing accurate inference where standard methods fail due to confusion between probability masses and densities.

ABSTRACT

Despite the recent successes of probabilistic programming languages (PPLs) in AI applications, PPLs offer only limited support for random variables whose distributions combine discrete and continuous elements. We develop the notion of measure-theoretic Bayesian networks (MTBNs) and use it to provide more general semantics for PPLs with arbitrarily many random variables defined over arbitrary measure spaces. We develop two new general sampling algorithms that are provably correct under the MTBN framework: the lexicographic likelihood weighting (LLW) for general MTBNs and the lexicographic particle filter (LPF), a specialized algorithm for state-space models. We further integrate MTBNs into a widely used PPL system, BLOG, and verify the effectiveness of the new inference algorithms through representative examples.

Motivation & Objective

  • To address the lack of formal semantics in probabilistic programming languages (PPLs) for random variables with mixed discrete and continuous distributions.
  • To develop a generalized semantic foundation that supports arbitrary measure spaces, including uncountable parent sets and open-universe semantics.
  • To design inference algorithms that correctly distinguish between discrete probability masses and continuous probability densities in hybrid distributions.
  • To integrate the new semantics and algorithms into a widely used PPL, BLOG, and evaluate their effectiveness on real-world models.

Proposed method

  • Introduce measure-theoretic Bayesian networks (MTBNs) as a generalization of Bayesian networks that support arbitrary measure spaces and mixed distributions.
  • Define a formal measure-theoretic semantics that ensures every MTBN represents a unique probability measure on the input space.
  • Develop lexicographic likelihood weighting (LLW), a sampling algorithm that correctly handles discrete masses and continuous densities by ordering them lexicographically.
  • Design the lexicographic particle filter (LPF), a specialized algorithm for state-space models that maintains correctness under mixed distributions.
  • Implement MTBNs and the new inference algorithms in the BLOG PPL, extending its syntax and type system to support mixed distributions.
  • Use a modified BLOG compiler to generate correct inference code that respects the distinction between discrete and continuous components in evidence and conditional distributions.

Experimental results

Research questions

  • RQ1How can probabilistic programming languages be formally extended to support random variables with mixed discrete and continuous distributions?
  • RQ2What semantic foundation ensures consistency and correctness when combining discrete masses and continuous densities in probabilistic models?
  • RQ3Can inference algorithms be designed that provably handle the distinction between discrete probability masses and continuous probability densities?
  • RQ4How do the new algorithms perform on practical models where standard inference fails due to incorrect handling of hybrid distributions?
  • RQ5To what extent can the extended semantics and inference improve reasoning in real-world applications involving hybrid sensors and thresholded measurements?

Key findings

  • LLW correctly infers that a student with a GPA of 4.0 must be from the USA in the GPA model, while standard likelihood weighting incorrectly favors India due to confusion between density and mass.
  • In the noisy scale model, LLW consistently returns the correct posterior that no fake coin exists when the scale balances, whereas naive likelihood weighting converges to incorrect results depending on the noise parameter σ.
  • LPF accurately predicts the true aircraft location in the tracking model by correctly interpreting exact radius measurements as evidence of being out of range, while the naive particle filter fails to converge to the correct posterior.
  • The mean square error between predicted and true aircraft locations is significantly lower for LPF than for the naive particle filter, with LPF converging to the ground truth as particle count increases.
  • The implementation in BLOG successfully extends the language to model truncated sensors, such as radars that output their range exactly, which was previously unrepresentable in the original BLOG semantics.
  • The results demonstrate that standard PPL inference algorithms produce incorrect results when applied to discrete-continuous mixtures, while the proposed algorithms are provably correct under the MTBN framework.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.