Automatically adapting the number of state particles in SMC2

Imke Botha, Robert Kohn, Leah F. South, Christopher C. Drovandi

Abstract

Sequential Monte Carlo squared (SMC²) provides a robust framework for Bayesian inference in state-space models (SSMs) where the likelihood is intractable. However, the algorithm's efficiency is critically dependent on the number of state particles, $N_x$, which typically requires manual tuning via pilot runs. This paper presents a fully automated method for adapting $N_x$ during the execution of SMC². By employing Expected Squared Jumping Distance (ESJD) as a diagnostic trigger and introducing the "REPLACE" method for particle updates, the proposed approach eliminates the need for manual intervention while maintaining statistical efficiency. The approach is validated on several benchmark models, showing it can significantly reduce computational costs and prevent the weight collapse common in previous adaptive schemes.

Introduction

State-space models (SSMs) are essential tools in fields ranging from ecology to finance, allowing researchers to model latent processes through noisy observations. Inference in these models often relies on Sequential Monte Carlo (SMC) methods. SMC², in particular, nests a particle filter within an SMC sampler to estimate both parameters and latent states. A primary bottleneck in SMC² is the selection of $N_x$, the number of particles used in the inner particle filter to estimate the likelihood.

If $N_x$ is too low, the resulting likelihood estimates are highly volatile, leading to poor MCMC mixing and potentially biased results. Conversely, an excessively large $N_x$ leads to unnecessary computational expenditure. Traditionally, $N_x$ is fixed after time-consuming pilot runs. This paper addresses this limitation by proposing a framework for bidirectional, automated adaptation of $N_x$.

Methodology

1. Triggering Adaptation with ESJD

The first challenge in automated adaptation is determining when to adjust $N_x$. While simple acceptance rates are often used, they can be misleading; a sampler might have a high acceptance rate but only move in infinitesimal steps. The authors propose using the Expected Squared Jumping Distance (ESJD). ESJD accounts for both the frequency and the distance of moves in the parameter space, serving as a more reliable indicator of the sampler's health. When the ESJD falls below a certain threshold, the adaptation mechanism is triggered.

2. Selecting the Optimal $N_x$: NOVEL-ESJD

Once adaptation is triggered, the algorithm must decide on a new value for $N_x$. The authors introduce "NOVEL-ESJD," a strategy that evaluates a range of candidate $N_x$ values. The goal is to find the "sweet spot" where the computational cost (which scales with $N_x$) is balanced against the improvement in sampling efficiency. Specifically, the method selects the $N_x$ that achieves a target ESJD with the minimum total computational effort.

3. The REPLACE Method

The most significant technical hurdle in changing $N_x$ is updating the existing particle set without degrading the sampler's performance. Previous methods, such as "REWEIGHT," often lead to high weight variance, where a few particles dominate the distribution, effectively reducing the sample size.

The authors introduce the REPLACE method. This technique utilizes a clever mathematical approximation of the "optimal backward kernel." By doing so, the algorithm can replace the entire set of state particles for each parameter particle. Crucially, this update is performed such that the new weights remain exactly equal (weight = 1). This preserves maximum particle diversity and ensures that the adaptation of $N_x$ does not introduce the "weight collapse" that plagues other methods.

Experimental Evaluation

The proposed framework was tested on four benchmark state-space models:

  • Brownian Motion: A fundamental stochastic differential equation model.
  • Stochastic Volatility (SV): A standard model in financial econometrics for asset price variance.
  • Theta-logistic: A non-linear model used in ecology for population dynamics.
  • Noisy Ricker: A discrete-time population model known for its complex, often chaotic, dynamics.

Results and Discussion

The "NOVEL-ESJD + REPLACE" approach was compared against manually tuned fixed-$N_x$ samplers and existing adaptive methods (REWEIGHT and REINIT).

Efficiency and Stability: In the Noisy Ricker model, the proposed method demonstrated efficiency gains of over 2x compared to REWEIGHT strategies. The REPLACE method consistently maintained lower mean squared error ($Z_{MSE}$) because it avoided the weight variance issues inherent in reweighting schemes.

Bidirectional Adaptation: A key advantage of this framework is its ability to both increase and decrease $N_x$. If the initial $N_x$ is set too high, the algorithm identifies the inefficiency and reduces the particle count, preventing the sampler from being unnecessarily slow. This bidirectional capability makes the algorithm truly "plug-and-play."

Automation: The results show that the algorithm converges to the optimal $N_x$ regardless of the starting point. This removes the burden of pilot runs from the user, making SMC² accessible for a wider range of complex modeling tasks.

Conclusion

The introduction of automated $N_x$ adaptation via ESJD and the REPLACE method represents a significant step forward for SMC² algorithms. By optimizing the balance between computational cost and statistical accuracy, this framework makes Bayesian inference for complex state-space models more efficient and user-friendly. Future work may extend these principles to high-dimensional state spaces and mixed-effects models, further broadening the applicability of automated SMC methods.

Summary updated

BibTeX
@article{botha2023automatically,
  author = {Imke Botha and Robert Kohn and Leah F. South and Christopher C. Drovandi},
  title = {{Automatically adapting the number of state particles in SMC2}},
  journal = {Stat. Comput.},
  year = {2023},
  doi = {10.1007/s11222-023-10250-2},
}
Figure