Skip to main content
QUICK REVIEW

[Paper Review] Measuring Sample Quality with Kernels

Jackson Gorham, Lester Mackey|arXiv (Cornell University)|Mar 6, 2017
Gaussian Processes and Bayesian InferenceComputer Science42 references52 citations
TL;DR

The paper develops convergence-determining kernel Stein discrepancies (KSDs) using Langevin Stein operators and kernel kernels (notably IMQ) to efficiently assess sample quality, detect non-convergence, and guide hyperparameter/sampler choices. It shows IMQ-based KSDs are robust to high dimensions and scalable, outperforming several prior diagnostics and enabling practical applications like one-sample tests and sample improvement.

ABSTRACT

Approximate Markov chain Monte Carlo (MCMC) offers the promise of more rapid sampling at the cost of more biased inference. Since standard MCMC diagnostics fail to detect these biases, researchers have developed computable Stein discrepancy measures that provably determine the convergence of a sample to its target distribution. This approach was recently combined with the theory of reproducing kernels to define a closed-form kernel Stein discrepancy (KSD) computable by summing kernel evaluations across pairs of sample points. We develop a theory of weak convergence for KSDs based on Stein's method, demonstrate that commonly used KSDs fail to detect non-convergence even for Gaussian targets, and show that kernels with slowly decaying tails provably determine convergence for a large class of target distributions. The resulting convergence-determining KSDs are suitable for comparing biased, exact, and deterministic sample sequences and simpler to compute and parallelize than alternative Stein discrepancies. We use our tools to compare biased samplers, select sampler hyperparameters, and improve upon existing KSD approaches to one-sample hypothesis testing and sample quality improvement.

Motivation & Objective

  • Motivate and formalize a practical, computable measure of sample quality that does not require integrating under the target distribution P.
  • Develop a closed-form kernel Stein discrepancy (KSD) based on RKHS and Langevin Stein operators that is easily computable and parallelizable.
  • Ensure the KSD controls weak convergence for a broad class of target distributions and identify kernel choices that detect non-convergence in higher dimensions.
  • Demonstrate applications of KSD for hyperparameter tuning, sampler selection, hypothesis testing, and improving sample quality.

Proposed method

  • Define the Langevin Stein operator T_P using the score function b = ∇log p and a vector-valued g, with (T_P g)(x) = ⟨g(x), b(x)⟩ + ⟨∇, g(x)⟩.
  • Introduce the kernel Stein set G_k where each g_j ∈ RKHS K_k and ∥g_j∥_{K_k} is controlled, enabling a closed-form KSD.
  • Derive the closed-form KSD: S(μ, T_P, G_k) = ∥w∥ with w_j = √E_{μ×μ}[k_0^j(X, X̃)], where k_0^j is a Stein kernel built from p and k.
  • Prove zero-mean test functions under P and show equivalence (up to constants) across norm choices; provide conditions under which KSD detects convergence.
  • Analyze tail behavior of kernels to ensure convergence-detection (IMQ with β ∈ (-1,0) enforces tightness and detects non-convergence).
  • Provide theoretical results linking KSD to IPMs (bounded Lipschitz) and Wasserstein distance for convergence guarantees.

Experimental results

Research questions

  • RQ1Can kernel Stein discrepancies (KSDs) be designed to reliably detect convergence to P for high-dimensional targets (d ≥ 3)?
  • RQ2Which kernel choices (tails and bandwidth) ensure that KSD detects non-convergence and enforces tightness?
  • RQ3How can KSDs be used to compare biased, exact, and deterministic samplers in practice (hyperparameter tuning, sampler selection, testing, and sample improvement)?
  • RQ4What are the computational benefits of closed-form KSDs versus graph-based Stein discrepancies in terms of speed and parallelizability?

Key findings

  • KSDs based on the Langevin operator with RKHS kernels yield a closed-form computation that is easily parallelizable across sample pairs and coordinates.
  • IMQ kernels with β in (-1,0) enforce tightness and detect non-convergence, while common kernels with light tails may fail in d ≥ 3.
  • Gaussian and Matérn kernels can be driven to zero by off-target sequences in higher dimensions, failing to detect non-convergence; IMQ KSD avoids this failure.
  • For univariate targets in P (distantly dissipative with Lipschitz score), KSD detects non-convergence; for higher dimensions, IMQ KSD remains robust to non-convergence signals.
  • Upper bounds connect KSD convergence to Wasserstein distance, and standard Monte Carlo rates (n^{-1/2}) apply for iid samples, supporting practical usage.
  • Empirical demonstrations show IMQ KSD outperforms Wasserstein and graph Stein discrepancy in speed and scalability, and enables effective hyperparameter tuning and sampler comparison.
  • The IMQ KSD improves one-sample testing power in higher dimensions compared to Gaussian kernels and standard normality tests.
  • KSD-based approaches can be used to improve sample quality by optimizing the target function class T_P G_k, as demonstrated in related work.

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.