Skip to main content
QUICK REVIEW

[Paper Review] An Easy to Interpret Diagnostic for Approximate Inference: Symmetric Divergence Over Simulations

Justin Domke|arXiv (Cornell University)|Feb 25, 2021
Gaussian Processes and Bayesian InferenceComputer Science23 references5 citations
TL;DR

This paper proposes a simulation-based diagnostic for approximate inference methods like variational inference and Laplace's method, using symmetric Kullback-Leibler divergence between the true joint model and the inferred approximate posterior over repeated simulated datasets. The method enables interpretable, scalar error estimation without requiring marginal likelihood evaluation, offering a practical and automated measure of average inference accuracy.

ABSTRACT

It is important to estimate the errors of probabilistic inference algorithms. Existing diagnostics for Markov chain Monte Carlo methods assume inference is asymptotically exact, and are not appropriate for approximate methods like variational inference or Laplace's method. This paper introduces a diagnostic based on repeatedly simulating datasets from the prior and performing inference on each. The central observation is that it is possible to estimate a symmetric KL-divergence defined over these simulations.

Motivation & Objective

  • To address the lack of reliable diagnostics for asymptotically approximate inference methods such as variational inference and Laplace’s method, which are not amenable to traditional MCMC convergence diagnostics.
  • To develop a diagnostic that quantifies the average accuracy of an approximate posterior across simulated datasets drawn from the prior.
  • To enable a scalar, interpretable measure of inference error that does not require evaluation of the marginal likelihood $p(\mathbf{x})$.
  • To extend the diagnostic to non-deterministic inference methods by averaging over random seeds, preserving interpretability.
  • To provide a framework applicable to modern inference techniques, including importance-weighted variational inference, by leveraging the structure of the approximate posterior distribution.

Proposed method

  • Simulate multiple datasets $(\mathbf{z}, \mathbf{x}) \sim p(\mathbf{z}, \mathbf{x})$ from the prior and likelihood.
  • For each simulated $\mathbf{x}$, perform inference to obtain an approximate posterior $q(\mathbf{z}|\mathbf{x})$.
  • Compute the symmetric KL divergence $\mathrm{SKL}(p(\mathbf{z},\mathbf{x}) \| q(\mathbf{z},\mathbf{x}))$ using the difference in log-ratios: $d = \log \frac{p(\mathbf{z},\mathbf{x})}{q(\mathbf{z}|\mathbf{x})} - \log \frac{p(\tilde{\mathbf{z}},\mathbf{x})}{q(\tilde{\mathbf{z}}|\mathbf{x})}$, where $\tilde{\mathbf{z}} \sim q(\mathbf{z}|\mathbf{x})$.
  • Estimate the expected value of $d$ across simulations to obtain the symmetric divergence, which cancels normalization terms and avoids marginal likelihood computation.
  • Extend the method to handle non-deterministic inference by averaging over random seeds, defining the diagnostic as $\mathbb{E}_{\bm{\omega}}[\mathrm{SKL}(q(\mathbf{z},\mathbf{x}|\bm{\omega}) \| p(\mathbf{z},\mathbf{x}))]$.
  • Adapt the diagnostic to importance-weighted inference by using the weighted samples to compute the divergence estimate.

Experimental results

Research questions

  • RQ1Can a simulation-based diagnostic be constructed that provides a scalar, interpretable measure of average error for approximate inference methods?
  • RQ2How can symmetric KL divergence be estimated without requiring the marginal likelihood $p(\mathbf{x})$, which is often intractable?
  • RQ3Can the diagnostic be applied to non-deterministic inference methods like stochastic variational inference?
  • RQ4Does the diagnostic effectively capture both mode-finding and mode-spanning errors in approximate posteriors?
  • RQ5Can the diagnostic be extended to importance-weighted variational inference and other modern inference techniques?

Key findings

  • The proposed diagnostic provides a scalar, interpretable measure of average inference error over simulated datasets, without requiring evaluation of the marginal likelihood $p(\mathbf{x})$.
  • The symmetric KL divergence can be estimated via the expected difference in log-ratios $\mathbb{E}[d]$, which cancels normalization constants and enables practical computation.
  • The diagnostic is effective for a range of methods, including standard variational inference, Laplace’s method, and importance-weighted variational inference, as demonstrated in experiments.
  • The method remains valid and interpretable even when inference is non-deterministic, by averaging over random seeds in the diagnostic expectation.
  • The diagnostic can be extended to models with hidden or conditional variables, broadening its applicability to complex probabilistic models.
  • The diagnostic is fundamentally frequentist, measuring average performance over simulated data, which may limit its direct interpretation in a Bayesian context for a single observed dataset.

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.