Automated Inference via Probabilistic Programming

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 131 papers35 conceptsfrozen 2026-10-04

Probabilistic programming languages (PPLs) allow researchers to define complex statistical models using the familiar syntax of computer code. By treating evaluation as sampling and inference as a compilation problem, these systems decouple the specification of a model from the implementation of its inference algorithm. This shift enables scientists to focus on the structure of their data and domain knowledge rather than the manual derivation of complex Bayesian mathematics.

Decoupling Specification from Inference

In traditional Bayesian modeling, a researcher must first write down a mathematical model and then manually derive an inference algorithm—such as a Markov Chain Monte Carlo (MCMC) sampler—specific to that model. This process is error-prone and requires deep expertise in both statistics and software engineering.

As Thomas A. Henzinger, Sriram K. Rajamani, and Andrew D. Gordon argue in Probabilistic programming, PPLs solve this by treating the model as a program. When a user writes a model in a language like Church, the system automatically generates the necessary inference logic. Jan-Willem van de Meent and Frank Wood liken this to automatic differentiation in deep learning: just as PyTorch handles gradients so a researcher can focus on architecture, a PPL handles the posterior distribution so a researcher can focus on the generative process (An Introduction to Probabilistic Programming).

Expressivity and Universal Modeling

A key breakthrough in this field is the development of universal PPLs. Unlike earlier graphical models (like Bayesian Networks) that were limited to fixed structures, universal PPLs can represent models with recursion, stochastic branching, and an unknown number of variables.

Noah Goodman and Joshua B. Tenenbaum pioneered this with Church, using "stochastic memoization" to handle complex, non-parametric models. This expressivity allows for sophisticated applications in fields like phylogenetics, where Fredrik Ronquist and Jan Kudlicka demonstrated that a few dozen lines of PPL code could outperform specialized evolutionary software by automatically generating efficient Sequential Monte Carlo (SMC) algorithms (Universal probabilistic programming offers a powerful approach to statistical phylogenetics).

Bridging Natural Language and Formal Logic

Recent work has extended this abstraction further by using Large Language Models (LLMs) as a bridge between human intent and formal code. In From Word Models to World Models, Gabriel Grand and Vikash Mansinghka introduce "rational meaning construction," where an LLM translates natural language into a "Probabilistic Language of Thought" (PLoT).

This approach allows users to describe a world or a problem in plain text, which the system then formalizes into an executable probabilistic program. Justin Domke pushes this further with Large Language Bayes, treating the LLM as a prior over the space of possible models. This enables "nearly-black-box" inference where the user provides an informal description, and the system weights various candidate programs based on how well they fit observed data.

Performance and Accessibility

Historically, the flexibility of PPLs came at the cost of speed. However, modern frameworks have closed this gap by compiling high-level code into optimized execution graphs.

  • Hardware Acceleration: Daniel Lundén and David Broman showed that universal PPLs can be compiled for high-performance GPU execution, maintaining flexibility without sacrificing throughput (Compiling Universal Probabilistic Programming Languages).
  • Domain-Specific Tools: Packages like PStrata by Fan Li automate the translation of high-level statistical formulas into Stan code, making advanced causal inference accessible to researchers who are not experts in Bayesian computation.
  • Hybrid Modeling: Frameworks like pywmi by Samuel Kolb and Luc De Raedt provide standardized tools for hybrid domains involving both discrete and continuous variables, further reducing the "glue code" required for complex data analysis.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_automated_inference_via_probabilistic_pr_70739026,
  title = {Automated Inference via Probabilistic Programming},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/automated-inference-via-probabilistic-programming/rdr_707390260bd949f89eca93dfa7340b0b},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_automated_inference_via_probabilistic_pr_70739026_v1,
  title = {Automated Inference via Probabilistic Programming},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/automated-inference-via-probabilistic-programming/rdr_707390260bd949f89eca93dfa7340b0b/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}