Conditional independence by typing
Not on the map. Why?
Abstract (arXiv)
A central goal of probabilistic programming languages (PPLs) is to separate modelling from inference. However, this goal is hard to achieve in practice. Users are often forced to re-write their models in order to improve efficiency of inference or meet restrictions imposed by the PPL. Conditional independence (CI) relationships among parameters are a crucial aspect of probabilistic models that capture a qualitative summary of the specified model and can facilitate more efficient inference. We present an information flow type system for probabilistic programming that captures conditional independence (CI) relationships, and show that, for a well-typed program in our system, the distribution it implements is guaranteed to have certain CI-relationships. Further, by using type inference, we can statically deduce which CI-properties are present in a specified model. As a practical application, we consider the problem of how to perform inference on models with mixed discrete and continuous parameters. Inference on such models is challenging in many existing PPLs, but can be improved through a workaround, where the discrete parameters are used implicitly, at the expense of manual model re-writing. We present a source-to-source semantics-preserving transformation, which uses our CI-type system to automate this workaround by eliminating the discrete parameters from a probabilistic program. The resulting program can be seen as a hybrid inference algorithm on the original program, where continuous parameters can be drawn using efficient gradient-based inference methods, while the discrete parameters are inferred using variable elimination. We implement our CI-type system and its example application in SlicStan: a compositional variant of Stan.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 22 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 2; 2025: 0; 2026: 1.
5 papers.
- 2022Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational Inferencecited by 6
- 2023Automatically Marginalized MCMC in Probabilistic Programmingcited by 4
- 2024Hamiltonian Monte Carlo Inference of Marginalized Linear Mixed-Effects Modelscited by 1
- 2024Inference Plans for Hybrid Particle Filteringcited by 0
- 2026GradInf: Gradient Estimation as Probabilistic Inferencecited by 0
- 2026GradInf: Gradient Estimation as Probabilistic Inference8 Jul 2026
- 2024Hamiltonian Monte Carlo Inference of Marginalized Linear Mixed-Effects Models31 Oct 2024
- 2024Inference Plans for Hybrid Particle Filtering21 Aug 2024
- 2023Automatically Marginalized MCMC in Probabilistic Programming1 Feb 2023
- 2022Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational Inference22 Aug 2022