Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Tuning inner kernel parameters of SMC

This notebook is a continuation of Use Tempered SMC to Improve Exploration of MCMC Methods. In that notebook, we tried sampling from a multimodal distribution using HMC, NUTS and SMC with an HMC kernel. Only the latter was able to get samples from both modes of the distribution. Recall that when setting the HMC parameters

hmc_parameters = dict(
    step_size=1e-4, inverse_mass_matrix=inv_mass_matrix, num_integration_steps=1
)

these were fixed across all iterations of SMC. The efficiency of an SMC sampler can be improved by informing the inner kernel parameters using the particles population. We can tune one or many inner kernel parameters before mutating the particles in step ii, using the particles outputted by step i−1i-1. This notebook illustrates such tuning using IRMH (Independent Rosenbluth Metropolis-Hastings) with a multivariate normal proposal distribution.

See Design choice (c) of section 2.1.3 from https://arxiv.org/abs/1808.07730.

IRMH without tuning

The proposal distribution is normal with fixed parameters across all iterations.

IRMH tuning the diagonal of the covariance matrix

Although the proposal distribution is always normal, the mean and diagonal of the covariance matrix are fitted from the particles outcome of the i−thi-th step, in order to mutate them in the step i+1i+1

IRMH tuning the covariance matrix.

In this case not only the diagonal but all elements of the covariance matrix are fitted based on the outcome particles.

<Figure size 3000x1500 with 9 Axes>

As seen in the previous figure, as dimensions increase, performance degrades. More tuning, less performance degradation.