pith. sign in

arxiv: 1606.09242 · v1 · pith:LKAZKA5Fnew · submitted 2016-06-30 · 💻 cs.AI · cs.PL

Swift: Compiled Inference for Probabilistic Programming Languages

classification 💻 cs.AI cs.PL
keywords inferenceprobabilisticswiftcompiledinterpretationlanguagesmodelsoverhead
0
0 comments X
read the original abstract

A probabilistic program defines a probability measure over its semantic structures. One common goal of probabilistic programming languages (PPLs) is to compute posterior probabilities for arbitrary models and queries, given observed evidence, using a generic inference engine. Most PPL inference engines---even the compiled ones---incur significant runtime interpretation overhead, especially for contingent and open-universe models. This paper describes Swift, a compiler for the BLOG PPL. Swift-generated code incorporates optimizations that eliminate interpretation overhead, maintain dynamic dependencies efficiently, and handle memory management for possible worlds of varying sizes. Experiments comparing Swift with other PPL engines on a variety of inference problems demonstrate speedups ranging from 12x to 326x.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Compositional Inference Metaprogramming with Convergence Guarantees

    cs.PL 2019-07 unverdicted novelty 7.0

    Introduces independent subproblem inference and proves asymptotic convergence guarantees for hybrid MCMC algorithms defined via inference metaprogramming.