[Paper Review] Graphical Comparison of MCMC Performance
This paper introduces a graphical framework for comparing MCMC methods by plotting log density function evaluations per independent observation—derived from autocorrelation time—against tuning parameters across multiple distributions and samplers. The method enables researchers to visualize trade-offs in efficiency across method, distribution, and tuning parameters in a single, interpretable grid of plots, revealing patterns invisible in tabular summaries.
This paper presents a graphical method for comparing performance of Markov Chain Monte Carlo methods. Most researchers present comparisons of MCMC methods using tables of figures of merit; this paper presents a graphical alternative. It first discusses the computation of autocorrelation time, then uses this to construct a figure of merit, log density function evaluations per independent observation. Then, it demonstrates how one can plot this figure of merit against a tuning parameter in a grid of plots where columns represent sampling methods and rows represent distributions. This type of visualization makes it possible to convey a greater depth of information without overwhelming the user with numbers, allowing researchers to put their contributions into a broader context than is possible with a textual presentation.
Motivation & Objective
- To address the limitations of tabular comparisons in MCMC performance evaluation, which restrict researchers to few data points and obscure complex trade-offs.
- To develop a visual alternative that conveys richer, multidimensional performance insights without overwhelming users with numerical tables.
- To demonstrate how graphical visualization can reveal non-obvious patterns in MCMC efficiency, such as logarithmic cost scaling with tuning parameters.
- To provide a scalable, extensible visualization framework for comparing MCMC methods across multiple factors: method, distribution, and tuning parameters.
- To support broader methodological evaluation by enabling researchers to contextualize their new MCMC methods within a full performance landscape.
Proposed method
- Compute the autocorrelation time (τ) of MCMC chains using an AR(p) model fitted via Yule-Walker estimation to avoid inconsistent ACF estimation.
- Derive the figure of merit: log density function evaluations per independent observation, defined as log(1/τ) × effective sample size, representing computational cost per effective sample.
- Construct a grid of plots where rows represent different target distributions, columns represent different MCMC sampling methods, and the x-axis shows a tuning parameter.
- Use confidence intervals around the figure of merit to convey uncertainty across multiple simulation replications for each tuning parameter value.
- Extend the framework to visualize three-dimensional performance landscapes by varying two tuning parameters and one distribution parameter, using color or symbol shape to encode the third factor.
- Implement the method in the R package SamplerCompare, available on CRAN, to enable reproducible simulation and plotting of MCMC comparisons.
Experimental results
Research questions
- RQ1How can MCMC performance be visualized more effectively than with tabular summaries of autocorrelation time or effective sample size?
- RQ2What patterns in MCMC efficiency emerge when plotting log density evaluations per independent observation across tuning parameters for multiple distributions and methods?
- RQ3How does the performance of Adaptive Metropolis sampling vary with respect to its tuning parameter β and problem dimension in high-dimensional, badly-scaled Gaussians?
- RQ4Can graphical comparison reveal non-linear cost behaviors, such as logarithmic scaling with tuning parameter increases, that are obscured in tables?
- RQ5To what extent can graphical plots support the comparison of MCMC methods across three or more factors (e.g., method, distribution, tuning parameters) in a single, interpretable visualization?
Key findings
- Graphical comparison reveals that slice samplers exhibit logarithmic cost scaling with tuning parameters, as each rejected proposal reduces estimated slice size by a factor of two, leading to a log-cost relationship.
- Adaptive Metropolis performs best when its tuning parameter β is below the square root of the smallest eigenvalue of the target covariance (here, 1), with performance stable across dimensions when β is sufficiently small.
- The method shows minimal sensitivity to β in dimensions 2 to 128 when β is below the optimal threshold, indicating robustness in high-dimensional settings.
- Tabular comparisons fail to capture the full complexity of performance trade-offs, such as the logarithmic cost curves of slice samplers, which are clearly visible in the graphical plots.
- The framework supports visualizing up to three factors simultaneously—e.g., method, distribution, and two tuning parameters—by encoding the third factor via color or symbol shape, enabling deeper methodological insight.
- The R package SamplerCompare enables researchers to reproduce and extend the graphical comparison framework, facilitating broader adoption and standardized evaluation of MCMC methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.