Skip to main content
QUICK REVIEW

[Paper Review] Sublinear Approximate Inference for Probabilistic Programs

Yutian Chen, Vikash K. Mansinghka|arXiv (Cornell University)|Nov 6, 2014
Bayesian Methods and Mixture ModelsComputer Science11 references2 citations
TL;DR

This paper introduces a sublinear-time Metropolis-Hastings algorithm for probabilistic programs that subsamples edges in a dynamically constructed graphical model, enabling efficient Bayesian inference in highly coupled models like regressions and state-space models. The method achieves scalable inference across diverse applications—logistic regression, Dirichlet process mixtures, and stochastic volatility—using under 20 lines of code per task.

ABSTRACT

Probabilistic programming languages can simplify the development of ma-chine learning techniques, but only if inference is sufficiently scalable. Un-fortunately, Bayesian parameter estimation for highly coupled models such as regressions and state-space models still scales badly. This paper de-scribes a sublinear-time algorithm for making Metropolis-Hastings updates to latent variables in probabilistic programs. This approach generalizes re-cently introduced approximate MH techniques: instead of subsampling data items assumed to be independent, it subsamples edges in a dynamically con-structed graphical model. It thus applies to a broader class of problems and interoperates with general-purpose inference techniques. Empirical results are presented for Bayesian logistic regression, nonlinear classification via joint Dirichlet process mixtures, and parameter estimation for stochastic volatility models (with state estimation via particle MCMC). All three ap-plications use the same implementation, and each requires under 20 lines of probabilistic code. 1

Motivation & Objective

  • To address the poor scalability of Bayesian inference in highly coupled probabilistic models such as regressions and state-space models.
  • To develop a sublinear-time inference algorithm that maintains accuracy while reducing computational cost.
  • To generalize existing approximate Metropolis-Hastings techniques beyond i.i.d. data subsampling to structured, dependent models.
  • To enable interoperability with general-purpose inference techniques in probabilistic programming frameworks.
  • To demonstrate the method’s effectiveness across diverse, real-world applications with minimal probabilistic code.

Proposed method

  • The method constructs a dynamic graphical model representation of the probabilistic program to identify dependencies between variables.
  • It subsamples edges in this graphical model rather than individual data items, reducing computational overhead.
  • Subsampling edges enables approximate Metropolis-Hastings updates that scale sublinearly with model size.
  • The approach maintains detailed balance and asymptotic correctness under mild regularity conditions.
  • It integrates seamlessly with existing inference engines, including particle MCMC for state estimation.
  • The implementation is lightweight, requiring under 20 lines of probabilistic code per application.

Experimental results

Research questions

  • RQ1Can edge-based subsampling in a dynamically constructed graphical model enable sublinear-time Bayesian inference in coupled models?
  • RQ2How does edge subsampling compare to traditional data subsampling in terms of accuracy and efficiency?
  • RQ3Can the same inference implementation be reused across diverse probabilistic models with minimal code changes?
  • RQ4Does the method maintain correctness and convergence properties under sublinear sampling?
  • RQ5To what extent can this approach scale to complex models like stochastic volatility and non-linear mixtures?

Key findings

  • The proposed method achieves sublinear time complexity by subsampling edges in a dynamically built graphical model, significantly reducing inference cost.
  • Empirical results show the method scales effectively across Bayesian logistic regression, non-linear classification via Dirichlet process mixtures, and stochastic volatility models.
  • All three applications required less than 20 lines of probabilistic code, demonstrating high code reusability and simplicity.
  • The approach maintains accuracy comparable to full-data Metropolis-Hastings while drastically reducing computation time.
  • The method generalizes beyond i.i.d. data assumptions, enabling inference in models with complex dependencies.
  • It interoperates with general-purpose inference techniques, including particle MCMC, enhancing its applicability.

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.