Blocking strategies and stability of particle Gibbs samplers

Sumeetpal S. Singh, Fredrik Lindsten, Miljko ErićBiometrika 2017

Abstract: Sampling from the posterior probability distribution of the latent states of a hidden Markov model is nontrivial even in the context of Markov chain Monte Carlo. To address this, Andrieu et al. (2010) proposed a way of using a particle filter to construct a Markov kernel that leaves the posterior distribution invariant. Recent theoretical results have established the uniform ergodicity of this Markov kernel and shown that the mixing rate does not deteriorate provided the number of particles grows at least linearly with the number of latent states. However, this gives rise to a cost per application of the kernel that is quadratic in the number of latent states, which can be prohibitive for long observation sequences. Using blocking strategies, we devise samplers that have a stable mixing rate for a cost per iteration that is linear in the number of latent states and which are easily parallelizable.

1. Introduction

Hidden Markov Models (HMMs) are fundamental tools for modeling sequential data in fields ranging from speech recognition to bioinformatics. Inferring the sequence of hidden states $X$ from noisy observations $Y$ often requires sophisticated Markov chain Monte Carlo (MCMC) techniques. Particle Gibbs (PG) samplers, introduced by Andrieu et al. (2010), represented a major advancement by using particle filters to propose updates within an MCMC framework.

However, a significant scalability bottleneck exists: to maintain a stable mixing rate as the sequence length $n$ increases, the number of particles $N$ must also grow linearly with $n$. Since the cost of a single particle filter pass is $O(nN)$, the total computational complexity per iteration becomes $O(n^2)$. This quadratic scaling makes standard PG impractical for the long observation sequences common in modern data science.

2. Methodology: Partially Blocked Samplers

To overcome the $O(n^2)$ complexity, this work introduces partially blocked samplers. Instead of attempting to update the entire sequence of $n$ latent states in a single, computationally expensive block, the sequence is partitioned into smaller, overlapping blocks of length $L$.

The proposed blocking strategy partitions the sequence into overlapping blocks $J_1, J_2, \dots, J_n$ to ensure stable mixing and computational efficiency.

Overlapping Blocks and Parallelization

The use of overlapping blocks is a critical design choice. Overlap ensures that information flows smoothly across block boundaries, preventing the sampler from becoming "stuck" at the edges—a common failure mode in naive blocking schemes. Furthermore, this structure naturally supports parallelization. By employing a "checkerboard" update scheme—updating all odd-numbered blocks simultaneously followed by all even-numbered blocks—the algorithm can be efficiently distributed across multiple processing cores.

Theoretical Stability

The authors utilize Wasserstein estimates to provide a rigorous theoretical foundation for the approach. They demonstrate that the mixing rate of the blocked sampler depends on the block size $L$ and the number of particles $N$, but remains independent of the total sequence length $n$. This property ensures that the sampler remains efficient even as datasets scale to massive proportions.

3. Experimental Evaluation

The proposed method was evaluated using a simulated time-varying autoregressive (TVAR) model of order $P=4$ with $n=2000$ time steps. This model was specifically chosen because it violates the "strong mixing" assumptions often required for theoretical proofs, serving as a robust test for real-world applicability.

Key Findings: * Complexity Reduction: The computational cost was successfully reduced from $O(n^2)$ to $O(n)$ per sweep. * Performance Stability: While the standard unblocked PG sampler failed by getting stuck for the first 1,600 time steps, the blocked samplers maintained high mean squared jump distances throughout the entire sequence. * Impact of Overlap: Empirical results confirmed that increasing the overlap (e.g., from $p=0$ to $p=10$) significantly improved the mixing rate, validating the necessity of the overlapping block structure.

4. Conclusion

By exploiting the inherent "forgetting" property of HMMs—where states are only weakly dependent on distant past or future observations—blocking strategies transform Particle Gibbs from a quadratic-time algorithm into a linear-time, parallelizable solution. While future work remains in automating the selection of block size $L$ and overlap $p$, this approach provides a scalable path forward for high-dimensional state-space modeling.

Summary updated

BibTeX
@inproceedings{singh2017blocking,
  author = {Sumeetpal S. Singh and Fredrik Lindsten and Miljko Erić},
  title = {{Blocking strategies and stability of particle Gibbs samplers}},
  booktitle = {Biometrika},
  year = {2017},
  doi = {10.1093/biomet/asx051},
}
Figure