Skip to main content
QUICK REVIEW

[Paper Review] Quantifying the probable approximation error of probabilistic inference programs

Marco Cusumano-Towner, Vikash K. Mansinghka|arXiv (Cornell University)|May 31, 2016
Machine Learning and AlgorithmsComputer Science16 references3 citations
TL;DR

This paper introduces a subjective divergence metric to quantify approximation error in probabilistic inference programs by leveraging a reference inference program and a meta-inference program that infers the likely internal random choices of the approximate inference method. The method provides a robust, tractable bound on symmetrized KL divergence and detects implementation bugs even when predictive performance appears acceptable.

ABSTRACT

This paper introduces a new technique for quantifying the approximation error of a broad class of probabilistic inference programs, including ones based on both variational and Monte Carlo approaches. The key idea is to derive a subjective bound on the symmetrized KL divergence between the distribution achieved by an approximate inference program and its true target distribution. The bound's validity (and subjectivity) rests on the accuracy of two auxiliary probabilistic programs: (i) a "reference" inference program that defines a gold standard of accuracy and (ii) a "meta-inference" program that answers the question "what internal random choices did the original approximate inference program probably make given that it produced a particular result?" The paper includes empirical results on inference problems drawn from linear regression, Dirichlet process mixture modeling, HMMs, and Bayesian networks. The experiments show that the technique is robust to the quality of the reference inference program and that it can detect implementation bugs that are not apparent from predictive performance.

Motivation & Objective

  • To address the lack of tractable techniques for estimating Kullback-Leibler (KL) divergence between approximate and true posterior distributions in probabilistic inference.
  • To provide a practical, subjective bound on symmetrized KL divergence that reflects uncertainty in auxiliary programs rather than objective model properties.
  • To detect subtle implementation bugs in inference programs that do not affect predictive performance but distort posterior approximations.
  • To enable validation of probabilistic inference programs across diverse models, including variational and Monte Carlo methods.
  • To offer a scalable, implementation-ready technique within the Venture probabilistic programming platform.

Proposed method

  • The method defines a subjective divergence measure based on the symmetrized KL divergence between the approximate inference output and the true posterior.
  • It relies on a reference inference program that acts as a gold standard for posterior accuracy, even if computationally expensive.
  • A meta-inference program is used to estimate the posterior probability of the internal random choices made by the approximate inference program, given its output.
  • The technique computes a weight estimate using the ratio of the joint density of the output and its inferred history to the proposal density of the approximate inference program.
  • For particle filter-based inference, the meta-inference program uses a conditional SMC (CSMC) update with fixed ancestry to estimate the likelihood of the inference path.
  • The final weight estimate simplifies to a product of the particle filter’s marginal likelihood estimate and a normalized ratio of model and proposal densities.

Experimental results

Research questions

  • RQ1Can a subjective divergence metric be derived that bounds the symmetrized KL divergence between an approximate inference program’s output and the true posterior?
  • RQ2How robust is the proposed method to inaccuracies in the reference inference program?
  • RQ3Can the method detect implementation bugs in inference code that are invisible through predictive performance alone?
  • RQ4Does the technique remain effective when the approximate inference program lacks a tractable density?
  • RQ5How well does the method scale across different inference paradigms, such as variational inference and particle-based sampling?

Key findings

  • The method provides a valid, subjective bound on symmetrized KL divergence that depends on beliefs about the accuracy of the reference and meta-inference programs.
  • Empirical results show robustness to the quality of the reference inference program, with accurate divergence estimates even when the reference is approximate.
  • The technique successfully detected implementation bugs in inference code that did not degrade predictive performance on held-out data.
  • For sampling-based inference (e.g., LW-SIR), the method achieved accurate subjective divergence estimates with bootstrap confidence intervals showing low variance.
  • In optimization-based inference (e.g., variational inference), the method produced consistent divergence profiles across multiple runs, indicating reliable error quantification.
  • The method was successfully implemented and validated on real-world problems including linear regression, Dirichlet process mixture models, HMMs, and Bayesian networks.

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.