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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Weighted Automata for Exact Inference in Discrete Probabilistic Programs

  • Dominik Geißler,
  • Tobias Winkler

摘要

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.