- Introduced by
- Briers, Doucet, and colleagues
- Year
- 2000s–2010s
- Type
- Sequential Monte Carlo / hierarchical state-space inference
- Family
- Bayesian / computational
What does it do?
A hierarchical particle filter applies Sequential Monte Carlo to state-space models with two or more levels of latent variables, typically slowly varying global parameters and a faster-moving local state.
Particle clouds are nested across these levels so that parameters and states can be updated online as observations arrive. The output is an approximate posterior over both levels rather than a point estimate for either. The term is a descriptive label for this family of nested particle-filter constructions rather than a single standardised method; SMC2 (Chopin, Jacob and Papaspiliopoulos, 2013) is the formal instance documented here.
The intuition behind the method
A standard particle filter keeps a set of hypothetical system states and reweights them as each observation arrives, but it treats model parameters as fixed. In a hierarchical model some unknowns change quickly (the local state) while others govern the dynamics and change slowly (the global parameters). The hierarchical particle filter nests the two: an outer set of particles represents candidate parameter values, and each outer particle carries its own inner cloud that filters the local state under that parameter value. The inner clouds supply the information needed to weight the outer particles, so uncertainty about the parameters is updated alongside the state. A flat particle filter over a concatenated state vector does not provide this nested weighting, which is why the nesting matters.
History
Particle filters for state-space models are a standard sequential Monte Carlo approach. The nested construction is formalised most fully in SMC2 (Chopin, Jacob and Papaspiliopoulos, 2013), which propagates and resamples many particle filters over the state dimension within an outer sequential Monte Carlo over the parameters, using the unbiased likelihood estimates these filters produce. The name hierarchical particle filter is used descriptively and does not refer to a single standard origin.
When to use it
Choose a hierarchical particle filter when the data form a sequence, the model has two levels of latent structure (for example, individual-level dynamics governed by group-level parameters), and parameters must be updated as observations arrive rather than estimated once from a complete batch. It is a reasonable choice when the dynamics are non-linear or non-Gaussian, so that Kalman-type approximations are inadequate. Avoid it when the data are not sequential, since batch MCMC is simpler and better understood. A Kalman filter is much cheaper when a linear-Gaussian model is adequate. Deep hierarchies with many levels are also a poor fit, because the nesting compounds the computational cost.
Limitations and considerations
- Cost grows with the product of outer and inner particle counts, since every outer particle runs its own inner filter, and additional levels add further nesting.
- The outer parameter particles can degenerate; without rejuvenation moves they may collapse onto a few parameter values.
- Inner proposal distributions usually need model-specific design, and poor proposals inflate the variance of the importance weights.
- Implementation is considerably more involved than a standard particle filter or a Kalman filter.
- Theoretical guarantees for nested schemes are less developed than for flat sequential Monte Carlo, so the accuracy of the parameter posterior should be checked empirically.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Represents two levels of latent structure directly, whereas a flat particle filter would have to treat the global parameters as fixed or fold them into a single state vector.
- Supports online updating: estimates change as each observation arrives without reprocessing the full history.
- Returns an approximate posterior over both local states and global parameters, not only over the state.
- Applies to non-linear, non-Gaussian state-space models for which Kalman-based filters are not directly applicable.
- The inner sweeps give likelihood estimates that can be accumulated for sequential model comparison.
Applications
- Sequential state-space models with non-linear or non-Gaussian dynamics in which global parameters must be learned as observations arrive.
- Settings with two levels of latent structure, such as group-level parameters that govern individual-level state dynamics.
How it works
How it works
Specify a generative model with at least two levels: global parameters theta that govern the state-space dynamics, and a local latent state x_t that evolves over time and generates the observations y_t. The target is the joint posterior of theta and the state history given observations up to time t.
At each time step, each outer particle representing a candidate theta propagates an inner set of local state particles drawn from a proposal distribution q. The proposal may be the transition density implied by the model or an approximation informed by the current observation; a proposal closer to the posterior reduces the variance of the importance weights.
Formula
x_t^{(i)} \sim q(x_t \mid x_{t-1}^{(i)}, y_t)Each inner particle receives an unnormalised importance weight equal to the observation likelihood times the state transition density, divided by the proposal density, as in the formula above. The weights within each inner set are normalised by dividing each by the sum of all unnormalised weights in that set, giving a Monte Carlo approximation of the filtered state distribution for that outer particle. The inner sweep also yields an estimate of the observation likelihood increment, which is used to weight the outer particles.
Formula
w_t^{(i)} \propto \frac{p(y_t \mid x_t^{(i)})\,p(x_t^{(i)} \mid x_{t-1}^{(i)})}{q(x_t^{(i)} \mid x_{t-1}^{(i)}, y_t)}Resample within each inner set when its weights degenerate, so that a few particles do not carry nearly all the weight. Outer particles are resampled using the likelihood estimates from their inner sweeps, in the manner of SMC2, where an outer sequential Monte Carlo targets the parameter posterior and the inner filters supply unbiased likelihood estimates.
After resampling, each outer particle is moved with a Markov kernel that targets the joint posterior of theta and the latent state. In SMC2 this is a particle Markov chain Monte Carlo move, which can use the inner filter's unbiased likelihood estimate, so the outer particles continue to target the correct posterior at each time step. Without such moves, resampling duplicates a few parameter values and the outer cloud loses diversity over time. Every proposed theta requires its own inner sweep, so these moves add substantially to the computational cost.
Common pitfalls
- Omitting rejuvenation of the outer particles, which lets the parameter cloud collapse after many time steps.
- Using too few inner particles, which makes the likelihood estimates used to weight the outer particles noisy.
- Concatenating the levels into one state vector and running a standard particle filter, which discards the nested weighting that defines the method.
- Applying the method to non-sequential data, where batch MCMC is usually more efficient and better understood.
- Ignoring effective sample size diagnostics at both levels, and failing to resample when weights degenerate.
Frequently asked questions
How does a hierarchical particle filter differ from a standard particle filter?
A standard particle filter maintains one cloud of particles for the latent state and treats model parameters as fixed or estimates them separately. A hierarchical particle filter keeps an outer cloud for the global parameters and, for each outer particle, runs an inner cloud for the local state. The nesting allows parameters and states to be updated jointly as data arrive.
What is the SMC2 algorithm and is it the same as a hierarchical particle filter?
SMC2 (Chopin, Jacob and Papaspiliopoulos, 2013) is a specific, formally developed instance of the nested idea: an outer sequential Monte Carlo over parameters, with inner particle filters providing unbiased estimates of the likelihood. It is the framework documented most fully in the sources used here. The term hierarchical particle filter is a descriptive label for this family of nested constructions rather than a single standardised definition, so SMC2 is the best reference point for the method.
How many particles do I need?
There is no general rule. The inner particle count must be large enough that the likelihood estimates used to weight the outer particles are stable, and the outer particle count must be large enough that parameter estimates do not change between independent runs. Pilot runs with several particle counts, checking the stability of results and the effective sample size at each level, are the practical way to decide.
When should I use MCMC instead?
If the full dataset is available at once and computation time is not critical, offline MCMC, such as Hamiltonian Monte Carlo, is usually simpler to implement and better understood theoretically. The hierarchical particle filter is most useful when observations arrive sequentially and the posterior must be updated as they come in.
Can I use the hierarchical particle filter for model selection?
In principle, yes. The inner sweeps provide likelihood estimates, which can be combined into sequential evidence estimates for comparing hierarchical models as data accumulate. The reliability of these estimates depends on the inner particle count and should be checked, as with other stability diagnostics.
Related methods
Sources
Briers, M., Doucet, A. & Maskell, S. (2010). Smoothing algorithms for state-space models. Annals of the Institute of Statistical Mathematics, 62(1), 61-89.
Open DOI referenceChopin, N., Jacob, P. E. & Papaspiliopoulos, O. (2013). SMC2: an efficient algorithm for sequential analysis of state-space models. Journal of the Royal Statistical Society: Series B, 75(3), 397-426.
Open DOI reference