Betancourt 2015 - Gibbs, Random-Walk Metropolis and Reparameterisation
Summary
Random-walk Metropolis and Gibbs explore by transitions tuned to conditional variances, which are much smaller than marginal variances when the target is highly correlated, so they devolve into random walks on hierarchical models (Fig. 3: after 2500 iterations neither chain has explored the marginal of ). Parameter expansion and non-centred parameterisation break the dependence between layers but only work when analytic structure exists and the data are weak.
Overview
Deterministic methods (nested Laplace and related work, refs [3]-[5]) can be powerful in a limited set of models; the paper focuses on stochastic MCMC.
Main Content
Why naive samplers fail
Random-walk Metropolis and Gibbs explore via transitions tuned to the conditional variances of the target. In highly correlated targets the conditional variances are much smaller than the marginal variances, so many transitions are needed to cover the distribution and the samplers become random walks. Hierarchical models are highly correlated by construction and the correlations worsen as groups and levels are added.
Figure 3 (funnel, )
(a) Gibbs (Metropolis-within-Gibbs, since has no closed form): chain of has mean and standard deviation after 2500 iterations, versus the true . (b) Random-walk Metropolis: mean , standard deviation . Neither reaches the neck. Global decorrelation (rotation/rescaling) cannot help because the correlations cancel globally.
Efficient implementations reduce correlations between layers by exploiting the hierarchy explicitly (natural for Gibbs, since structure is given by conditional independences).
[9])
Separate layers with an auxiliary variable: , with . Conditioned on the layers are independent and Gibbs mixes well, but the multiplicative auxiliary variable creates strong correlations in the joint that hurt random-walk Metropolis. Requires closed-form expanded conditionals (as any Gibbs sampler does).
; Figure 4)
Factor the dependence into a deterministic transformation: for the one-way normal apply location and scale reparameterisations
This exchanges a direct - dependence for a - dependence: conditioned on the data, and are independent. When the data are not very constraining ( large) the joint is nearly isotropic and both Metropolis and Gibbs improve.
Limits. Parameter expansion needs closed-form conditionals; non-centring is mostly applicable where the dependence between layers is a generalised linear model. To avoid constraining the model class, one needs a more sophisticated sampler (HMC).
Centred vs non-centred as a function of data strength
With the one-way normal and constant : when is large (data weak) non-centred wins; when data are strong ( small) the centred form can be better, but then partial pooling is of little use anyway (Section III.A.2, Fig. 8, Betancourt 2015 - Euclidean HMC Weaknesses - Step Size and Density Variation).
Connections
Non-centring is the first thing to try for a funnel in PyMC/Stan; HMC then handles the remaining geometry. See the Stan-based results in Betancourt 2015 - One-Way Normal Experiments and Stan Models. Existing vault: Hierarchical Models, Monsters and Mixtures.
See Also
Betancourt 2015 - HMC for Hierarchical Models - Overview, Betancourt 2015 - Hierarchical Geometry and the Funnel