Skip to main content
QUICK REVIEW

[Paper Review] How well does your sampler really work?

Ryan Turner, Brady Neal|arXiv (Cornell University)|Dec 16, 2017
Machine Learning and Data ClassificationComputer Science19 references4 citations
TL;DR

This paper introduces a data-driven benchmark for evaluating MCMC samplers using real-world posteriors derived from actual datasets and models, training flexible density models (e.g., neural networks) to create realistic benchmark distributions. The key contribution is a systematic, scalable evaluation framework that reveals samplers' true effective sample size (ESS) and efficiency, showing that NUTS and HMC achieve the highest performance, while diagnostics like ESS are often optimistically biased.

ABSTRACT

We present a new data-driven benchmark system to evaluate the performance of new MCMC samplers. Taking inspiration from the COCO benchmark in optimization, we view this task as having critical importance to machine learning and statistics given the rate at which new samplers are proposed. The common hand-crafted examples to test new samplers are unsatisfactory; we take a meta-learning-like approach to generate benchmark examples from a large corpus of data sets and models. Surrogates of posteriors found in real problems are created using highly flexible density models including modern neural network based approaches. We provide new insights into the real effective sample size of various samplers per unit time and the estimation efficiency of the samplers per sample. Additionally, we provide a meta-analysis to assess the predictive utility of various MCMC diagnostics and perform a nonparametric regression to combine them.

Motivation & Objective

  • To address the lack of reliable, realistic benchmarks for evaluating MCMC samplers in real-world Bayesian inference problems.
  • To replace hand-crafted toy problems with data-driven, representative posteriors extracted from real datasets and models.
  • To quantify the real effective sample size (RESS) and estimation efficiency of MCMC samplers per unit time.
  • To assess the predictive utility of common MCMC diagnostics and combine them via nonparametric regression for improved performance prediction.
  • To establish a scalable, evolving benchmark system analogous to COCO for optimization, but tailored for sampling methods.

Proposed method

  • Construct a 'data set of data sets' and 'model zoo' by combining real datasets (e.g., MNIST) with real models (e.g., logistic regression) to generate complex posteriors.
  • Use NUTS to generate long Markov chains from each real posterior, serving as training data for surrogate density models.
  • Fit flexible, unsupervised density models (e.g., mixture of Gaussians, normalizing flows) to the NUTS chains to create benchmark example distributions.
  • Use exact iid sampling from these learned surrogates to compute ground-truth effective sample size (ESS) and assess sampler performance.
  • Apply meta-analysis via Gaussian process regression to combine MCMC diagnostics (e.g., ESS, Gelman-Rubin, Geweke) and predict ESS deviation.
  • Evaluate samplers on 100+ real-world examples using metrics like NESS (normalized ESS) and RESS (relative ESS) over 15-minute chains.

Experimental results

Research questions

  • RQ1How well do common MCMC samplers perform on realistic, data-derived posteriors compared to hand-crafted benchmarks?
  • RQ2To what extent are standard MCMC diagnostics (e.g., ESS, Gelman-Rubin) calibrated to actual sampling efficiency?
  • RQ3Can a meta-learning approach combining multiple diagnostics improve prediction of ESS deviation?
  • RQ4How does sampler performance vary across different model and data complexity levels?
  • RQ5What is the true effective sample size and estimation efficiency of modern samplers like NUTS, HMC, and emcee on real problems?

Key findings

  • NUTS and HMC achieve the highest normalized effective sample size (NESS) and relative ESS (RESS), with NESS values exceeding 0.115 in high-dimensional settings.
  • Emcee shows highly bimodal performance: it occasionally achieves high NESS but has the lowest success probability (38%) and is outperformed by NUTS in 62% of cases.
  • The ESS diagnostic is optimistically biased: real ESS is below the estimated ESS 55% of the time for mean estimation, 68% for variance, and 83% for KS statistics.
  • Nonparametric regression (Gaussian process) using ESS, Gelman-Rubin, and dimensionality features reduces prediction error in ESS deviation by 2.7% (MSE) and 0.0096 nats (log-loss) compared to baseline models.
  • Removing ESS from the meta-analysis reduces predictive performance the most, indicating ESS is the most informative single diagnostic for predicting ESS deviation.
  • The benchmark reveals that random walk Metropolis and emcee often fail to achieve RESS > 1, indicating they are functionally equivalent to fewer than one independent sample per chain.

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.