How well does your sampler really work?
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.
1 Introduction
Markov chain Monte Carlo (MCMC) methods have seen a huge increase in use over the last few decades. The goal in MCMC methods is to take samples from a complex probability distribution given access only to its unnormalized density . The primary use case for MCMC methods is sampling from Bayesian posteriors for the purpose of Monte Carlo integration. These posteriors are intractable to normalize and sample from in complex models.
Approaches such as rejection sampling provide exact independent samples, and importance sampling provides exact independent (but weighted) samples. These approaches are generally computationally inefficient (rejection sampling) or are statistically unsound (importance sampling) except in very low dimensional problems (MacKay, 2003, Ch. 29). MCMC methods produce a Markov chain that marginally samples from the target distribution exactly and have a low per sample computation cost. The downside is that they provide a sequence of correlated samples, albeit marginally from the target distribution. Therefore, any estimates derived from an MCMC chain of length will have far less accuracy than iid samples. Despite there being numerous MCMC diagnostics, there is no practical way to guarantee the accuracy of derived estimates in practice.
Each machine learning conference contains a publication proposing a new variation on MCMC methods. The community lacks a method to determine if these new methods actually sample from posteriors found in real problems with improved accuracy over existing samplers. New methods are benchmarked either 1) via hand-crafted toy problems (where a ground-truth is known) or 2) via test set performance on real problems. The issue with hand-crafted examples is obvious: Performance on these problems may have little relation to performance on real problems; and it is at odds with accepted practice in modern machine learning. Benchmarking via test set performance on real problems is laudable. However, it confounds the specification of the model and priors with the performance of the sampler. In a misspecified model it is possible that a sampler stuck in an unrepresentative part of the posterior could actually have higher test set performance. Conversely, a better sampler may improve test set performance by having good local mixing; however, it is still nowhere near exact iid samples. There is no way to quantify the distance to exact iid samples from test set performance alone.
Whether current samplers are providing samples from anything close to the true posterior on difficult problems is of critical importance for determining future research directions. Are samplers with higher test set performance actually sampling from real posteriors more faithfully? Can we sample with any fidelity from complex high dimensional distributions? Is that merely a “fool’s errand”? The answers to these questions will determine if it is a worthwhile endeavor to continue to hone MCMC methods for application in successful modern models such as deep neural nets.
Practitioners in Bayesian statistics have long faced the dilemma of whether they can trust the output of their sampler, in particular, because statisticians are not traditionally concerned only with test set error rates. As a result, there have been decades of work in developing MCMC diagnostics that aim to alert a practitioner to a poorly behaving chain (Cowles and Carlin, 1996). This is often described by whether their chain is mixing well. In other words, if a chain has a long auto-correlation time, the entire chain may be of equivalent accuracy to just a few iid samples. The diagnostics, by construction, have a low type I error: That is, if a chain closely resembles iid samples, they will not alert that it is mixing poorly. However, there are no guarantees on type II error: If a chain is mixing poorly, will the diagnostic alert? Indeed, there are many ways to construct examples where an MCMC procedure undetectably fails: distant modes, Neal’s funnel (Thompson, 2011), extreme ill-conditioning, etc. However, are these realistic stress tests for MCMC methods or merely pathological cases? We do not know.
We propose a new data-driven approach to create a benchmark that estimates how well various MCMC procedures work on real problems. Arguably, algorithms in machine learning and statistics rely on the “workhorses” of either optimization or sampling methods. The world of (non-convex) optimization has already tackled this challenge with the COCO benchmark (Hansen et al., 2016), which contains a test battery of difficult optimization problems. Various approaches are tested to validate if they can optimize the objective function to a target level within a fixed number of function evaluations. Our approach is an analogous system for sampling methods. However, we aim to further improve upon this using flexible (including neural net based) benchmark examples that have been trained to match posteriors found in practice.
In our approach we use a large “data set of data sets” and a diverse “model zoo” to create a representative set of examples. Long MCMC chains are drawn (using NUTS (Hoffman and Gelman, 2014)) from each of these posteriors. Flexible unsupervised models that serve as a ground-truth in the benchmarking phase are fit to the chains to construct the benchmark examples.
More concretely, each combination of real data set (e.g., MNIST) and real model (e.g., logistic regression) results in a Markov chain from NUTS. We then fit an unsupervised model (e.g., mixture of Gaussians) to this chain to serve as a benchmark example distribution. Once trained, these benchmark example distributions are functionally equivalent to hand-crafted examples such as the toy posterior distributions usually used to benchmark samplers (or such as those in COCO). However, these examples are not hand-crafted but, rather, are much more representative of real problems. Because it is possible to draw exact (iid) samples from the benchmark example distributions, we now have a ground-truth set of samples to validate the accuracy of the sampling methods. We derive a variety of metrics to summarize the performance of a sampler to compare its output to ground-truth iid samples. The ground-truth samples also allow us to assess how well the MCMC diagnostics actually predict estimation performance. In particular, we look at the effective sample size (ESS) because it provides a concrete statement on the quality of an MCMC chain (Kass et al., 1998).
Contributions
We summarize the contributions of this work as follows: 1) We provide a new and novel benchmark to describe how well various samplers work on realistic problems. This involves design of fair and sensible metrics to score samplers across problems. This system will be provided as a software system that will serve as a practical tool in algorithm development analogous to MLcomp/CodaLab or COCO. 2) We shed light on how well the common MCMC diagnostics predict the real estimation performance of MCMC methods. We further create a data-driven meta-diagnostic by combining various MCMC diagnostics to predict the real performance of a sampler.
Related work
The closest existing system is SamplerCompare of Thompson (2011), which tests samplers on a handful of hand-crafted stress-test cases such as Neal’s funnel. However, SamplerCompare is more an R package to aid sampler evaluation than a complete benchmark. A recent piece of work from systems biology (Ballnus et al., 2017) compares various samplers for dynamical systems (i.e., filtering) on a set of hand-crafted ODE systems inspired by biological applications. Sampling in ODE systems is not very representative of the challenges in sampling from posterior distributions in machine learning models.
2 Background
The notion of a black box is highly relevant to conceptually understanding this work. Fundamentally, an MCMC sampler is a system that takes a black box that computes an unnormalized density (and possibly its gradient ) and a previous sample in the Markov chain; it outputs another sample . Once the Markov chain has converged, these samples are theoretically guaranteed to marginally come from the density , albeit with temporal correlation. If the previous sample was drawn exactly, , then exactly as well. This condition is a result of detailed balance.
By analogy, optimization algorithms take an objective function (and possibly its gradient ) as a black box and produce points that successively minimize as much as possible. Just as COCO provides its benchmark objective functions as a black box to the optimizers and keeps hidden the true optimum, our benchmark provides the unnormalized density as a black box to the samplers. Our benchmark keeps hidden the parameterization of needed to efficiently take iid samples from .
2.1 Traditional MCMC Diagnostics
Given that we have a ground-truth to evaluate the performance of the various samplers, we can also benchmark the diagnostics by seeing how predictive they are of actual performance. In particular, we consider three diagnostics in this paper: ESS, Gelman-Rubin (GR), and Geweke. ESS aims to estimate how many iid samples have the same estimation performance as the correlated samples found in the MCMC chain. Gelman-Rubin (Gelman and Rubin, 1992) and Geweke (Geweke, 1992) more closely follow a test statistic paradigm than an estimation one. Gelman-Rubin compares the variance within a single chain to variance between chains (independent restarts). This quantity should be close to one for well-mixing chains and can be very large for poorly performing chains. The Geweke diagnostic works on a single chain and compares the variance between different chunks.
The ESS diagnostic is basically a rescaling of the expected square error (i.e., MSE) on estimating the mean in a single dimension (marginal) of . ESS is based on the notion that for the marginal :
(1) | ||||
(2) |
which utilizes that is an unbiased estimate of . We are careful to distinguish expectations and variances with respect to , where is iid, from where the samples are correlated and from an MCMC method. Naturally, by re-arranging (1), the effective sample size for non-iid samples is:
(3) |
which unlike (1) can be estimated without ground-truth samples from . However, the difficult denominator term is typically estimated using the empirical linear auto-correlation of the Markov chain. This linearity assumption is obviously a potential source of error in the ESS. The fixation in estimating the accuracy of the mean is also a weakness. In Section 4.6, we look at the real effective sample size by comparing estimates with the ground-truth samples. It also allows us to look at other measures than simply the fidelity in matching the means ().
3 Methodology
Our benchmark system follows a six phase approach, which we explain at a high level in this section. In Section 4, we provide low-level specifics. A graphical summary of this section is provided in Figure 1.
In phase 0, we create a “corpus” of data sets that we refer to as a “data set of data sets.” This is meant to create a realistic sample of problems that a practitioner may encounter “in the wild.” Such an approach was also taken in the AutoML competition (Guyon et al., 2015) and the automated statistician project (Lloyd et al., 2014). Our approach can be thought of as a form of meta-learning (Vilalta and Drissi, 2002).
In phase 1, we use a model zoo to simulate a variety of (Bayesian) models that a practitioner might attempt to apply to a real problem. There are models for regression and classification. Each model/data set pair results in a posterior over a parameter space, which varies in dimensionality depending on the problem. Except in very simple cases (e.g., linear regression), we are not able to obtain samples from these posteriors exactly. We use NUTS, the default sampler in probabilistic programming languages (PyMC3 (Salvatier et al., 2016) and Stan (Carpenter et al., 2016)), because it is generally considered to be a good off-the-shelf sampler especially when paired with the intelligent initialization and automatic tuning found in these systems. Therefore, by running multiple long chains of NUTS on the posteriors, we obtain a sufficient approximation and representation for passing to phase 2.
In phase 2, we run various density estimation models to generate benchmark example distributions on the Markov chains from phase 1. We run a separate training procedure on each model/data set pair. These benchmark example distributions serve as surrogates for the real posteriors found in phase 1. Note that the goal is not to replicate the posteriors from phase 1 exactly, but to generate example distributions that are qualitatively similar to the real posteriors in phase 1. This gives us example distributions that are more realistic than the usual hand-crafted toy problems. Nonetheless, we train multiple models and take the one with the highest held-out likelihood on the last 20% of the Markov chain found in phase 1. We use held-out likelihood as it is the most widely accepted generic method of verifying model fidelity. Model checking diagnostics are also run to verify the similarity between the benchmark example distributions (surrogates) and their corresponding Markov chains from the real posteriors (originals).
When selecting models for use as benchmark example distributions in phase 2, we have the following requirements: 1) The models are flexible enough to closely fit the posteriors found in phase 1. 2) They can serve as a black box, providing an unnormalized density (and its gradient) when queried at an arbitrary point . 3) We can efficiently sample (ground-truth) from them given their parameters (which are hidden from the samplers).
In phase 3, we benchmark a collection of samplers. If someone invents and provides a new sampling algorithm, it is added in phase 3. Phases 0–2 remain fixed as new samplers are submitted to be benchmarked. Each sampler to be benchmarked is run on each of the benchmark example distributions for multiple chains. Each chain is allowed to run for a fixed period of time. The raw samples from these Markov chains are saved as the output of phase 3.
In phase 4, we take a large number (e.g., ) of exact iid samples from the benchmark example distributions as a ground-truth. The square loss between point estimates (e.g., or ) taken from the Markov chains from phase 3 and the point estimates from the exact chains are aggregated. We also compute and store the MCMC diagnostics for each chain.
In phase 5, we aggregate the performance results by looking at the real effective sample size as derived from the square errors in point estimation. We also define transformations of the real effective sample size, which we will refer to as efficiency, normalized effective sample size, and effective sample size deviation. In addition, we perform a meta-analysis using Gaussian process (GP) (Rasmussen and Williams, 2006) regression to predict the real effective sample size given the MCMC diagnostics. This will be useful to practitioners aiming to quantify their confidence in an MCMC-based estimate using the diagnostics available.
4 Additional Details
In this section we present additional details for the construction of each phase.
4.1 Phase 0: A Data Set of Data Sets
Phase 0 involved downloading 2,200 data sets from openml.org to form our data set of data sets. We considered other sources, such as the classic UCI repository, mldata.org, and Kaggle, but settled on OpenML because it had the most standardized format and consistent meta-data. Such systems are necessary for automated processing.
The data sets were diverse in that their dimension varied from 1 to 61,359, sample size from 5 to 7,619,400, and the number of output classes in classification problems varied from binary to 100.
After downloading, we subjected each data set to some preprocessing to simulate the diverse set of practices a practitioner might follow. Each data set was randomly preprocessed in one of three ways: standardization, robust standardization (using medians and inter-quartile ranges), or whitening. Categorical variables were represented with one-hot encodings.
4.2 Phase 1: Sampling from the Model Zoo
For the model zoo, we used all of the standard models (regression and classification) typically used with PyMC3. This includes generalized linear models (GLMs) such as logistic regression, but also less “vanilla” GLMs such as robust linear regression (linear regression with Student’s- noise). In addition to models that are linear in the feature space, we included models that are linear in a second order transformation of the feature space. We included Gaussian processes with unknown hyper-parameters (e.g., MCMC sampling was done on the unknown hyper-parameters). Bayesian neural networks were also included.
To keep compute time reasonable, we limited the sample size for expensive models (e.g., GPs), and placed some limits on input dimensionality. Where dimensionality needed to be reduced we used PCA (Jolliffe, 1986) as that is the most frequently used method in practice to reduce dimensionality.
4.3 Phase 2: Fitting Flexible Surrogates
There are three varieties of models that satisfy the requirements (flexibility, tractable density, and fast exact sampling) for benchmark example densities: mixture models, RNADE (Uria et al., 2013), and Real NVP (Dinh et al., 2016). In each example, we pick the model that has the highest held-out likelihood on the last 20% of the chain.
For mixture models, we considered mixture of Gaussians (MoG) with expectation-maximization (EM) (Dempster et al., 1977) and variational MoG. Note that, for simplicity, these models are not themselves fit using MCMC. The Bayesian Occam’s razor effect (Jefferys and Berger, 1992) allowed us to simply fix the number of mixture components to 25 in the variational MoG. We used five-fold cross-validation to select the number of components in the EM MoG. There is no consistent winner between these models, so which one we use depends on the example.
We also tuned the RNADE learning rate and hyper-parameters based on pilot runs. Surprisingly, the mixture models often, but not always, out performed RNADE on the held-out likelihood. Real NVP based models struggled to achieve competitive test set scores.
These models behave better numerically when trained on standardized data. Care is taken to reverse this standardization in phase 3, so the samplers are forced to attempt to sample from the posterior in its original scale, which is more challenging.
4.4 Phase 3: Running the Samplers
Phase 3 forms the real “meat” of the benchmark. This is where candidate sampling algorithms are actually run on the benchmark example densities.
Whether originally designed this way or not, nearly all respected MCMC procedures proceed by proposing a new point using a proposal distribution which is then accepted or rejected using a Metropolis-Hastings step. Therefore, the difference between samplers is based upon their proposal distributions. We provide a preview of the proposals used in Section 5.
The most widely used, until recently, MCMC procedure was random walk Metropolis, which uses a Gaussian random walk proposal , where is typically diagonal. Modern packages such as PyMC3 allow for automatic tuning of the proposal width , which is critical to achieve good performance. We also consider Cauchy and Laplace distributed proposals for comparison.
We include Hamiltonian Monte Carlo (HMC) (Duane et al., 1987) methods, which also utilize gradient information to more efficiently “explore” the space. Recently, the No-U-Turn-Sampler (NUTS) (Hoffman and Gelman, 2014) was introduced as an extension of HMC that automatically adapts some of its tuning parameters in order to attempt high off-the-shelf performance. We include an alternate auxiliary variable method known as slice sampling (Neal, 2003), which we apply in a coordinate Gibbs-like fashion.
We also alternate different proposals to form compound proposals. For instance, we consider mixing expensive efficient proposals like NUTS with cheap inefficient proposals like random walk Metropolis.
Finally, we consider an unconventional sampler known as emcee (Foreman-Mackey et al., 2013) which is popular in fields such as astrophysics, but has not gained much use in machine learning. It works by running multiple “walkers” to explore the space in parallel. Emcee is very fast and can be parallelized, but its efficacy in higher dimensions is somewhat controversial.
Initialization
The accuracy of MCMC based estimates are a function of two factors: the burn-in time and the mixing time. Burn-in time, or time until convergence, is how many steps are required before if , where is some distribution to initialize the chain. The mixing time, or memory length, is how long it takes to get an independent sample once a chain has converged: how many steps are required before if . The burn-in time is crucially dependent on the initialization while the mixing time is purely a function of the proposal.
In order to evaluate these two effects separately, we offer two options for initialization: 1) initialize the chain from an exact sample (because we can do that with the benchmark density examples), or 2) initialize from an ADVI (Kucukelbir et al., 2017) fit to the example density. Additionally, most methods benefit from a prior guess at the relative scale of the variables before tuning. We can use the resulting scales from ADVI for this purpose as well. We use the PyMC3 defaults for these tuning parameters as that is what a practitioner is most likely to use in practice. However, alternate schemes can certainly be used within the benchmark.
4.5 Phase 4: Performance Aggregation
Each sampler is run for a fixed time limit of 15 minutes of CPU time. We log the performance of the chain along a uniform grid of 100 points in time (i.e., every 9s) to monitor real convergence over time. Fair evaluation requires evaluating each sampler with a fixed time budget rather than a fixed number of samples. We expect samplers such as NUTS to be very efficient and high performing on a per-sample basis. However, they require significantly more computation (including gradients) per sample than simpler methods. Therefore, their comparison is not as obvious a-priori. We also log the traditional MCMC diagnostics of each chain.
4.6 Phase 5: Analysis
To summarize the performance of a Markov chain in comparison with ground-truth samples we need to define some evaluation quantities. First, recall that we have Markov chains for each example and sampler .
Each sampler is evaluated on each example separately and can be scored relative to a variety of estimators . Analogous to (3), we can score the samples of a Markov chain by the closeness of its mean on a dimension to the ground-truth samples: and . We can also consider how close the variance of the Markov chain samples match the ground-truth samples: . This flexibility is a generalization of ESS. As in (3), we assume the estimators are unbiased, and just as with the sample mean : . Furthermore, we assume here that each dimension of the samples has been standardized using the variance of the ground-truth samples, which makes the estimation errors on each dimension comparable even when their units differ.
Real ESS
In analogy to the ESS diagnostic we define the real ESS (RESS) based on the estimation error relative to the ground-truth:
RESS | ||||
(4) |
where is the number of independent MCMC chains and is a constant to make RESS comparable across different types of estimators ; it also ensures that RESS tends towards when the samples are iid. We do not need the term from (3) because the samples have been standardized using the ground-truth samples’ scale. If the estimator in (4) is the mean then . Likewise, for variance estimation, provided is large enough for the sample distribution on to be approximately Gaussian.
We also consider the Kolmogorov-Smirnov (KS) distance between the samples and the ground-truth samples as a metric.
RESS is also general in that we can sensibly combine the errors across dimensions by evaluating multivariate estimators :
(5) |
assuming that is an unbiased estimator of . This like (4) tends towards for iid samples.
Efficiency
Likewise, it is useful for practitioners to get a ball-park estimate of the efficiency of a sampler:
(6) |
If the number of samples per chain differs across chains, it is more appropriate to use the harmonic mean of than the mean; this ensures that EFF tends towards unity when samples are drawn iid from . Although EFF is useful, RESS is more appropriate for comparisons between samplers. Thinning can increase EFF without increasing estimation accuracy.
Normalization
When looking at the distribution of sampler performance across examples it is more appropriate to look at normalized ESS (NESS):
(7) |
where the median is taken across different samplers on the same example. The RESS, when evaluating with a fixed time limit, varies widely across examples as the computational cost of each sample varies greatly between benchmark examples.
ESS Deviation
In order to evaluate the diagnostics in a meta-analysis we define the ESS deviation (ESSD) metric which gives a sense on whether the ESS is biased or a generally poor predictor of estimation accuracy. The ESSD is defined as:
(8) |
where is the inverse CDF of the standard normal. ESSD has a standard normal distribution (under CLT assumptions) if the estimates are derived ESS iid samples; indicates the estimation is higher error than expected from ESS. More precisely, if is derived from iid samples then,
(9) |
which implies that . Note that (8) is merely a transformation to put the RESS-vs-ESS performance ratio on a standardized scale, which does not imply issues if the CLT assumption in (9) does not hold exactly.
Meta-analysis
In our meta-analysis, we perform a Gaussian process regression to predict ESSD from , Gelman-Rubin , and Geweke . We also include the dimension of the sample space . Recall that if ESS is a perfect predictor of MCMC performance then ESSD will resemble white-noise (i.e., iid standard normal). Given that the scales of diagnostics vary widely, we use , , and to put them all on a sensible scale.
To assess the regression, we test on a held-out 20% test set of unseen examples (i.e., we do random split on a per example basis) to see if we can predict the ESSD on new unseen benchmark examples from the MCMC diagnostics. We compare performance of the regression to linear regression and an iid normal to see if the features provide any predictive gain. Furthermore, we assess the predictive value of each feature by performing the regression after removing each feature and studying the performance delta.
NESS | prob. success | |||||
---|---|---|---|---|---|---|
sampler | KS | KS | ||||
Cauchy | .004 | .004 | .003 | .604 | .582 | .441 |
Laplace | .007 | .004 | .006 | .566 | .547 | .439 |
Gauss | .007 | .005 | .007 | .585 | .565 | .436 |
HMC | .061 | .151 | .106 | .580 | .604 | .531 |
NUTS | .068 | .375 | .115 | .875 | .783 | .711 |
emcee | .016 | .038 | .025 | .389 | .489 | .379 |
mix | .067 | .164 | .113 | .911 | .825 | .715 |
slice | .044 | .078 | .070 | .745 | .703 | .643 |
5 Results
We first show an overall summary of final performance using NESS at the end of 15 minutes per chain, with chains in Table 1. The box plots in Figure 2 provide a sense of the variation. We found the NESS of the samplers to generally be bimodal: either the samples achieve an efficiency above 1% or they completely fail with an RESS 1. Therefore, in Figure 2 we show the box plots after excluding the complete failures. Inspired by the rule of from MacKay (2003), we use an RESS of 12 to threshold failure-vs-success. Correspondingly, Table 1 also provides an overall success probability for each method. Emcee shows the most bimodal performance: while sometimes achieving a high NESS competitive with other advanced methods, it has the lowest success probability. Emcee also has the lowest efficiency of any methods except random walk Metropolis, but makes up for its lack of efficiency with higher per sample speed.
Other results from Figure 2 are unsurprising: NUTS and HMC are the highest performers, despite their higher per sample cost. Slice sampling also makes a “strong showing” with its performance more competitive in the lower dimensional examples. Random walk Metropolis methods generally have an efficiency in the 0.1% to 1% range while slice sampling and HMC based methods have efficiencies in the ball park of 2% to 40%, with NUTS showing the highest performance. Emcee seems to vary widely. Note that although the compound proposal (mix) does not substantially increase NESS (over NUTS), when the methods succeed Figure 2, mix increases the chance of success (Table 1).
method | MSE | p | NLL (nats) | p |
---|---|---|---|---|
GP | 2.8588 | – | 0 | – |
GP-D | 2.779(70) | 0.0252 | -0.0096(97) | 0.0504 |
GP-ESS | 3.16(23) | 0.0097 | 0.045(31) | 0.0034 |
GP-G | 2.858(1) | 0.0198 | -0.0001(1) | 0.0016 |
GP-GR | 3.17(20) | 0.0017 | 0.045(25) | 0.0005 |
iid | 3.30(28) | 0.0016 | 0.067(36) | 0.0003 |
linear | 3.03(19) | 0.0726 | 0.027(25) | 0.0350 |
We show calibration plots of ESS in Figure 3 and efficiency in Figure 2. The ESS diagnostic is clearly best calibrated for mean estimation, which is not surprising given it was derived for that purpose. However, the ESS diagnostic clearly has an optimistic bias. These results provide caution of ESS.
Finally, we present the results of the meta-analysis to predict ESS deviation. We report the predictive value provided by various features in Table 2 by showing how much performance changes when they are removed. ESS appears very predictive in Figure 3, but the relationship has already largely been accounted for with ESSD (8). In log-loss, the remaining predictive utility of ESS equals that of Gelman-Rubin. Geweke and the dimension show no predictive utility. Predictive performance of ESSD goes up when they are removed.
6 Conclusions
We have presented a general system to benchmark the real performance of MCMC samplers on realistic problems. The data-driven nature of the benchmark makes it a highly novel development. This benchmark is intended to become a general service that will become as wide spread as COCO or MLcomp. Careful attention has been paid to fairly and sensibly derive metrics that compare samplers. This benchmark will evolve with time by including ever more models in phase 1 and more advanced example densities in phase 2.
Footnotes
- For brevity, we simply write RESS rather than to denote the RESS of sampler on example . The same applies to the other performance metrics.
- Recall that the KS distance between samples and a CDF is given by where is the empirical CDF on .
References
- B. Ballnus, S. Hug, K. Hatz, L. Görlitz, J. Hasenauer, and F. J. Theis. Comprehensive benchmarking of Markov chain Monte Carlo methods for dynamical systems. BMC Systems Biology, 11(1):63, 2017.
- B. Carpenter, A. Gelman, M. Hoffman, D. Lee, B. Goodrich, M. Betancourt, M. A. Brubaker, J. Guo, P. Li, and A. Riddell. Stan: A probabilistic programming language. Journal of Statistical Software, 20:1–37, 2016.
- M. K. Cowles and B. P. Carlin. Markov chain Monte Carlo convergence diagnostics: A comparative review. Journal of the American Statistical Association, 91(434):883–904, 1996.
- A. P. Dempster, N. M. Laird, and D. B. Rubin. Maximum likelihood from incomplete data via the EM algorithm. Journal of the Royal Statistical Society (Series B), pages 1–38, 1977.
- L. Dinh, J. Sohl-Dickstein, and S. Bengio. Density estimation using Real NVP. arXiv:1605.08803, 2016.
- S. Duane, A. D. Kennedy, B. J. Pendleton, and D. Roweth. Hybrid Monte Carlo. Physics Letters B, 195(2):216–222, 1987.
- D. Foreman-Mackey, D. W. Hogg, D. Lang, and J. Goodman. Emcee: The MCMC hammer. Publications of the Astronomical Society of the Pacific, 125(925):306, 2013.
- A. Gelman and D. B. Rubin. Inference from iterative simulation using multiple sequences. Statistical Science, pages 457–472, 1992.
- J. Geweke. Evaluating the accuracy of sampling-based approaches to calculating posterior moments. Bayesian Statistics 4, 1992.
- I. Guyon, K. Bennett, G. Cawley, H. J. Escalante, S. Escalera, T. K. Ho, N. Macia, B. Ray, M. Saeed, A. Statnikov, et al. Design of the 2015 ChaLearn AutoML challenge. In Neural Networks (IJCNN), 2015 International Joint Conference on, pages 1–8. IEEE, 2015.
- N. Hansen, A. Auger, O. Mersmann, T. Tusar, and D. Brockhoff. COCO: A platform for comparing continuous optimizers in a black-box setting. arXiv:1603.08785, 2016.
- M. D. Hoffman and A. Gelman. The No-U-Turn Sampler: Adaptively setting path lengths in Hamiltonian Monte Carlo. Journal of Machine Learning Research, 15(1):1593–1623, 2014.
- W. H. Jefferys and J. O. Berger. Ockham’s razor and Bayesian analysis. American Scientist, 80(1):64–72, 1992.
- I. T. Jolliffe. Principal component analysis and factor analysis. In Principal Component Analysis, pages 115–128. Springer, 1986.
- R. E. Kass, B. P. Carlin, A. Gelman, and R. M. Neal. Markov chain Monte Carlo in practice: A roundtable discussion. The American Statistician, 52(2):93–100, 1998.
- A. Kucukelbir, D. Tran, R. Ranganath, A. Gelman, and D. M. Blei. Automatic differentiation variational inference. Journal of Machine Learning Research, 18(14):1–45, 2017.
- J. R. Lloyd, D. K. Duvenaud, R. B. Grosse, J. B. Tenenbaum, and Z. Ghahramani. Automatic construction and natural-language description of nonparametric regression models. In Association for the Advancement of Artificial Intelligence, pages 1242–1250, 2014.
- D. J. MacKay. Information Theory, Inference and Learning Algorithms. Cambridge University Press, 2003.
- R. M. Neal. Slice sampling. Annals of Statistics, pages 705–741, 2003.
- C. E. Rasmussen and C. K. Williams. Gaussian Processes for Machine Learning. MIT Press, 2006.
- J. Salvatier, T. V. Wiecki, and C. Fonnesbeck. Probabilistic programming in Python using PyMC3. PeerJ Computer Science, 2:e55, 2016.
- M. B. Thompson. Introduction to SamplerCompare. Journal of Statistical Software, 43(12):1–10, 2011.
- B. Uria, I. Murray, and H. Larochelle. RNADE: The real-valued neural autoregressive density-estimator. In Advances in Neural Information Processing Systems, pages 2175–2183, 2013.
- R. Vilalta and Y. Drissi. A perspective view and survey of meta-learning. Artificial Intelligence Review, 18(2):77–95, 2002.