Skip to main content
QUICK REVIEW

[Paper Review] Augur: a Modeling Language for Data-Parallel Probabilistic Inference

Jean-Baptiste Tristan, Daniel Huang|arXiv (Cornell University)|Dec 12, 2013
Time Series Analysis and ForecastingComputer Science4 citations
TL;DR

Augur is a probabilistic programming language and compiler that automatically generates highly optimized, data-parallel inference code for Bayesian networks, targeting GPU architectures. By leveraging conditional independence and a symbolic intermediate representation, Augur compiles models like LDA and Gaussian Mixture Models into scalable GPU kernels that outperform hand-optimized implementations and other probabilistic tools in terms of runtime and scalability with increasing data size.

ABSTRACT

It is time-consuming and error-prone to implement inference procedures for each new probabilistic model. Probabilistic programming addresses this problem by allowing a user to specify the model and having a compiler automatically generate an inference procedure for it. For this approach to be practical, it is important to generate inference code that has reasonable performance. In this paper, we present a probabilistic programming language and compiler for Bayesian networks designed to make effective use of data-parallel architectures such as GPUs. Our language is fully integrated within the Scala programming language and benefits from tools such as IDE support, type-checking, and code completion. We show that the compiler can generate data-parallel inference code scalable to thousands of GPU cores by making use of the conditional independence relationships in the Bayesian network.

Motivation & Objective

  • To address the high complexity and performance bottleneck in implementing inference for Bayesian networks by automating the generation of efficient, parallel inference code.
  • To enable practical use of probabilistic programming by decoupling model specification from inference implementation, reducing errors and development time.
  • To exploit data-parallelism in MCMC algorithms—particularly Metropolis-Hastings and Gibbs sampling—by automatically identifying and utilizing conditional independence in Bayesian networks.
  • To achieve performance comparable to hand-optimized GPU code (e.g., CUDA) while maintaining modularity and extensibility for new inference algorithms.
  • To scale inference to large models (e.g., LDA with thousands of topics and millions of data points) using symbolic representation instead of explicit graphical model construction.

Proposed method

  • Augur uses a domain-specific embedded language in Scala, leveraging macros for type safety and IDE support, to express probabilistic models in a functional style.
  • It compiles models into a symbolic intermediate representation (IR) that captures the full distribution structure without constructing the full graphical model, enabling efficient analysis and optimization.
  • The IR is used to automatically derive data-parallel inference kernels by identifying conditional independence across data points and parameters, especially in i.i.d. settings.
  • The compiler generates GPU-optimized kernels for Metropolis-Hastings and Gibbs sampling, exploiting per-data-point independence to enable massive parallelism across thousands of GPU cores.
  • The system supports modular inference algorithm integration, allowing reuse of analyses and optimizations across different MCMC techniques.
  • It includes a Metropolis-Within-Gibbs sampler and supports hybrid inference strategies, though these are not detailed in the paper.

Experimental results

Research questions

  • RQ1Can a probabilistic programming language automatically generate data-parallel inference code that scales efficiently on GPUs for Bayesian networks?
  • RQ2How does the performance of automatically generated GPU inference compare to hand-optimized CUDA code and other probabilistic frameworks like Stan and JAGS?
  • RQ3To what extent can symbolic representation of distributions improve scalability and reduce memory overhead in large-scale models like LDA and GMM?
  • RQ4How does the performance of the generated code scale with increasing data size and number of topics?
  • RQ5Can the compiler effectively support multiple inference algorithms (e.g., Metropolis-Hastings, Gibbs) while maintaining high performance and modularity?

Key findings

  • Augur’s generated GPU code for Gibbs sampling in LDA achieves performance comparable to hand-optimized CUDA implementations, especially when sampling more than 256 samples.
  • For a Gaussian Mixture Model, Augur’s runtime scales much more slowly with data size than Stan’s, and it outperforms JAGS beyond 100,000 data points by a factor of 7.
  • Stan’s performance degrades severely with increasing data size, completing only 100,000-point runs in under 3 hours, while Augur maintains efficient scaling.
  • Augur’s performance remains stable and efficient as the number of topics increases, unlike the collapsed Gibbs sampler in Factorie, which degrades significantly with more topics.
  • The sparse implementation in Factorie showed unreliable behavior, with predictive probability decreasing over time, suggesting potential correctness issues.
  • Compilation overhead is amortized effectively beyond 256 samples, making Augur competitive even for moderate sample sizes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.