R2: An Efficient MCMC Sampler for Probabilistic Programs

By Aditya V. Nori, Chung-Kil Hur, Sriram K. Rajamani, Selva Samuel. 2014

120 citations recorded by the source corpus.

We present a new Markov Chain Monte Carlo (MCMC) sampling algorithm for probabilistic programs. Our approach and tool, called R2, has the unique feature of employing program analysis in order to improve the efficiencyof MCMC sampling. Given an input program P, R2 propagates observations in P backwards to obtaina semantically equivalent program P' in which every probabilistic assignment is immediately followed by an observe statement. Inference is performed by a suitably modified version of the Metropolis-Hastings algorithm that exploits the structure of the program P'. This has the overall effect of preventing rejections due to program executions that fail to satisfy observations in P. We formalize the semantics of probabilistic programs and rigorously prove the correctness of R2. We also empirically demonstrate the effectiveness of R2—in particular, we show that R2 is able to produce results of similar quality as the CHURCH and STAN probabilistic programming tools with much shorter execution time.

Subfields: Artificial Intelligence, Probabilistic & Bayesian Methods

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Timon Gehr
  2. Martin T. Vechev
  3. A. Gordon
  4. Sasa Misailovic
  5. Aditya V. Nori
  6. Sriram K. Rajamani
  7. Shayak Sen
  8. Johannes Borgström

In Probabilistic & Bayesian Methods

  1. A. Gordon
  2. Sasa Misailovic
  3. Martin T. Vechev
  4. Timon Gehr
  5. Sriram K. Rajamani
  6. Shayak Sen
  7. Johannes Borgström
  8. Marcin Szymczak

Citations in the corpus