Nested $\hat R$: Assessing the convergence of Markov chain Monte Carlo when running many short chains

Charles C. Margossian, Matthew D. Hoffman, Pavel Sountsov, Lionel Riou-Durand, Aki Vehtari +1 more
10/25/2021
stat.ME

Official code: charlesm93/nested-rhat (8 stars, Jupyter Notebook, last commit 2026-07-16).

Abstract

Recent developments in parallel Markov chain Monte Carlo (MCMC) algorithms allow us to run thousands of chains almost as quickly as a single chain, using hardware accelerators such as GPUs. While each chain still needs to forget its initial point during a warmup phase, the subsequent sampling phase can be shorter than in classical settings, where we run only a few chains.

Show full abstract

To determine if the resulting short chains are reliable, we need to assess how close the Markov chains are to their stationary distribution after warmup. The potential scale reduction factor $\widehat R$ is a popular convergence diagnostic but unfortunately can require a long sampling phase to work well. We present a nested design to overcome this challenge and a generalization called nested $\widehat R$. This new diagnostic works under conditions similar to $\widehat R$ and completes the workflow for GPU-friendly samplers. In addition, the proposed nesting provides theoretical insights into the utility of $\widehat R$, in both classical and short-chains regimes.

View on arXivView PDF

Code Implementations(1)

Supplemental code for the paper on Nested $\widehat R$

80Jupyter Notebook, RAug 31, 20224 months ago

Similar Papers

Cite this paper

@article{margossian2021nested,
  title  = {Nested $\hat R$: Assessing the convergence of Markov chain Monte Carlo when running many short chains},
  author = {Charles C. Margossian and Matthew D. Hoffman and Pavel Sountsov and Lionel Riou-Durand and Aki Vehtari and Andrew Gelman},
  year   = {2021},
  eprint = {2110.13017},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.13017}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.13017.svg)](https://codeofpaper.com/paper/2110.13017)

Discussion