Probabilistic Programming Meets Automata Theory: Exact Inference using Weighted Automata

📅 2025-12-15
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This work addresses exact posterior distribution inference for discrete probabilistic programs. We propose a semantics-driven method based on weighted finite automata (WFA): program variables’ posteriors—including those with infinite support—are encoded as WFAs, and program semantics are realized via compositional WFA operations (e.g., product, concatenation), establishing a precise correspondence between program constructs and automaton transformations. To our knowledge, this is the first systematic application of WFAs to exact inference in probabilistic programming, overcoming the fundamental limitation of prior approaches—namely, their restriction to finite-support distributions. For a practically relevant class of discrete probabilistic programs, our method yields decidable, exact posterior computation, eliminating approximation error entirely. The framework provides a formal foundation for verifiable probabilistic reasoning in machine learning and autonomous systems.

Technology Category

Reasoning under Uncertainty: Probabilistic ProgrammingMachine Learning: Probabilistic Circuits and Graphical ModelsKnowledge Representation and Reasoning: Logic Programming

Application Category

Semantics and Knowledge: Methods, algorithms and applications for the development of semantic models, knowledge graphs and other forms of structured data models with machine-interpretable semanticsSystems and Infrastructure for Web, Mobile and WoT: Applied ML and AI for Web-based mobile applicationsGraph Algorithms and Modeling for the Web: Algorithms and analysis for incomplete, noisy, or partially observed Web-related graphs
📝 Abstract
Probabilistic programs encode stochastic models as ordinary-looking programs with primitives for sampling numbers from predefined distributions and conditioning. Their applications include, among many others, machine learning and modeling of autonomous systems. The analysis of probabilistic programs is often quantitative - it involves reasoning about numerical properties like probabilities and expectations. A particularly important quantitative property of probabilistic programs is their posterior distribution, i.e., the distribution over possible outputs for a given input (or prior) distribution. Computing the posterior distribution exactly is known as exact inference. We present our current research using weighted automata, a generalization of the well-known finite automata, for performing exact inference in a restricted class of discrete probabilistic programs. This is achieved by encoding distributions over program variables - possibly with infinite support - as certain weighted automata. The semantics of our programming language then corresponds to common automata-theoretic constructions, such as product, concatenation, and others.
Problem

Research questions and friction points this paper is trying to address.

Exact inference of posterior distributions in probabilistic programs
Using weighted automata for analyzing discrete probabilistic programs
Encoding infinite-support distributions via automata-theoretic constructions
Innovation

Methods, ideas, or system contributions that make the work stand out.

Weighted automata encode distributions for exact inference
Automata-theoretic constructions correspond to programming language semantics
Exact inference performed in restricted discrete probabilistic programs
🔎 Similar Papers
No similar papers found.
D
Dominik Geißler
TU Berlin
T
Tobias Winkler
RWTH Aachen University