[Paper Review] Markov Chain Sampling for Non-linear State Space Models Using Embedded Hidden Markov Models
This paper proposes a novel Markov chain sampling method for non-linear state space models that uses embedded Hidden Markov Models (HMMs) to efficiently update all hidden states simultaneously. By creating pools of candidate states at each time step and applying forward-backward dynamic programming on an auxiliary HMM, the method achieves faster mixing than single-site Metropolis updates, especially when states are strongly dependent over time.
I describe a new Markov chain method for sampling from the distribution of the state sequences in a non-linear state space model, given the observation sequence. This method updates all states in the sequence simultaneously using an embedded Hidden Markov model (HMM). An update begins with the creation of a ``pool'' of K states at each time, by applying some Markov chain update to the current state. These pools define an embedded HMM whose states are indexes within this pool. Using the forward-backward dynamic programming algorithm, we can then efficiently choose a state sequence at random with the appropriate probabilities from the exponentially large number of state sequences that pass through states in these pools. I show empirically that when states at nearby times are strongly dependent, embedded HMM sampling can perform better than Metropolis methods that update one state at a time.
Motivation & Objective
- To address the slow mixing of traditional Markov chain Monte Carlo methods in non-linear state space models where adjacent states are highly dependent.
- To develop a method that enables efficient joint updates of all hidden states in a state sequence, rather than updating one state at a time.
- To leverage the computational efficiency of forward-backward algorithms from HMMs to sample from complex posterior distributions in non-linear, non-Gaussian state space models.
- To demonstrate that embedded HMM sampling outperforms standard single-site Metropolis updates in terms of convergence speed and mixing quality.
Proposed method
- For each time point, generate a pool of K candidate states by applying a Markov chain transition (R_t) from the current state and its reverse (R̃_t) to create a symmetric neighborhood around it.
- Define an embedded HMM where the states are indices within each time’s pool, and transition probabilities are derived from the original model’s transition and observation densities.
- Use the forward-backward algorithm to compute the posterior probability of each state sequence that passes through the pools, enabling exact sampling from the conditional distribution of the state sequence given observations.
- Ensure detailed balance and invariance of the target posterior distribution π by constructing the proposal using reversible Markov chains with respect to a pool distribution ρ_t.
- Treat duplicate states in the pool as distinct indices during sampling to preserve proper weighting in the forward-backward computation.
- Use the ratio of model likelihoods to pool distributions as the weight in the embedded HMM, allowing efficient computation of the conditional distribution over sequences.
Experimental results
Research questions
- RQ1Can joint state updates via embedded HMMs significantly improve mixing in Markov chain sampling for non-linear state space models?
- RQ2How does the performance of embedded HMM sampling compare to single-site Metropolis updates in terms of convergence speed and mixing efficiency?
- RQ3What is the impact of pool size K and pool distribution choice (e.g., N(0,1) vs. data-dependent) on sampling efficiency?
- RQ4Does the method remain effective when the true state sequence exhibits strong temporal dependence and multimodal posterior uncertainty?
Key findings
- Embedded HMM sampling achieved rapid convergence in a non-linear state space model with strong temporal dependence, producing state sequences that closely matched the true underlying states after just two updates.
- In contrast, single-site Metropolis updates required over 100 iterations to begin approaching the correct state characteristics, and even then showed poor mixing and high autocorrelation.
- The state at time 200 never reached the region near -1 during 999 Metropolis iterations, indicating poor exploration of the posterior distribution.
- The embedded HMM method successfully captured multimodal posterior uncertainty, switching between states near +1 and -1 in regions of high ambiguity, as shown in trace plots.
- A single embedded HMM update caused a large, meaningful change in the state sequence—e.g., shifting states from near -1 to near +1 in a 30-time-point window—demonstrating effective global moves.
- Despite being approximately 30 times slower per iteration than single-site Metropolis in R, the embedded HMM method’s superior mixing more than compensated, resulting in far more efficient sampling overall.
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.