Weighted Automata for Exact Inference in Discrete Probabilistic Programs

September 18, 2025 ยท The Ethereal ยท ๐Ÿ› International Colloquium on Theoretical Aspects of Computing

๐Ÿ”ฎ THE ETHEREAL: The Ethereal
Pure theory โ€” exists on a plane beyond code

"No code URL or promise found in abstract"

Evidence collected by the PWNC Scanner

Authors Dominik GeiรŸler, Tobias Winkler arXiv ID 2509.15074 Category cs.FL: Formal Languages Cross-listed cs.PL Citations 1 Venue International Colloquium on Theoretical Aspects of Computing Last Checked 2 months ago
Abstract
In probabilistic programming, the inference problem asks to determine a program's posterior distribution conditioned on its "observe" instructions. Inference is challenging, especially when exact rather than approximate results are required. Inspired by recent work on probability generating functions (PGFs), we propose encoding distributions on $\mathbb{N}^k$ as weighted automata over a commutative alphabet with $k$ symbols. Based on this, we map the semantics of various imperative programming statements to automata-theoretic constructions. For a rich class of programs, this results in an effective translation from prior to posterior distribution, both encoded as automata. We prove that our approach is sound with respect to a standard operational program semantics.
Community shame:
Not yet rated
Community Contributions

Found the code? Know the venue? Think something is wrong? Let us know!

๐Ÿ“œ Similar Papers

In the same crypt โ€” Formal Languages