Towards automatic calibration of the number of state particles within the SMC$^2$ algorithm

Nicolás Chopin, James Ridgway, Mathieu Gerber, Omiros PapaspiliopoulosarXiv 2015 · DOI

Abstract

SMC$^2$ is an efficient algorithm for sequential estimation and state inference of state-space models. It generates $N_θ$ parameter particles $θ^{m}$, and, for each $θ^{m}$, it runs a particle filter of size $N_{x}$. We discuss how to automatically calibrate $N_{x}$ in the course of the algorithm. Our approach relies on conditional Sequential Monte Carlo updates, monitoring the state of the pseudo random number generator, and on an estimator of the variance of the unbiased estimate of the likelihood produced by the particle filters, obtained using nonparametric regression techniques. We observe that our approach is both less CPU intensive and with smaller Monte Carlo errors than the initial version of SMC$^2$.

Introduction

State-space models (SSMs) are fundamental tools for tracking latent states from noisy observations. The SMC$^2$ algorithm represents a state-of-the-art approach for joint estimation of model parameters ($\theta$) and hidden states ($x$). However, its "double-layer" complexity—tracking $N_\theta$ parameter particles, each requiring a separate particle filter with $N_x$ state particles—presents a significant tuning challenge. Choosing $N_x$ is a balancing act: if it is too small, likelihood estimates become excessively noisy, causing algorithmic failure; if it is too large, the computational cost becomes prohibitive. Previous attempts to adjust $N_x$ dynamically often suffered from weight degeneracy, leading to instability.

Methodology

The proposed method introduces three innovations to automate the calibration of $N_x$:

  1. Particle Gibbs (PG) for $N_x$ Updates: By replacing importance sampling with a Particle Gibbs step, the authors allow $N_x$ to change without affecting the importance weights of the parameter particles. This decoupling prevents the weight degeneracy typically associated with dynamic particle counts.
  2. PRNG Recycling: To manage the high memory requirements of Particle Gibbs, the authors store only the initial seeds of the pseudo-random number generator (PRNG). Past states are re-generated from these seeds as needed, trading a small amount of CPU time for a massive reduction in RAM usage.
  3. Non-parametric Calibration: The algorithm decides the optimal $N_x$ by estimating the variance of the log-likelihood using a Generalized Additive Model (GAM). This regression of estimated likelihoods against parameter values allows the algorithm to target a specific variance level ($\tau$), ensuring computational resources are allocated where they are most needed.

Results and Discussion

The approach was evaluated using a Stochastic Volatility (SV) model applied to S&P 500 Index monthly log-returns ($T=401$).

Stability and Resource Allocation

In the original SMC$^2$ implementation, $N_x$ frequently exploded to high values (exceeding 3,000) to compensate for noise. In contrast, the proposed PG-based approach maintained a much lower and more stable particle count, typically between 250 and 500, across different runs.

Evolution of the number of state particles $N_x$ over time steps, showing the stability of the proposed approach compared to the original.

Computational Efficiency

The efficiency of the algorithm was measured using the product of the variance of the log-evidence and the CPU time. The new version consistently outperformed the standard SMC$^2$, producing more accurate results for a lower computational budget. In tests, the proposed method was significantly faster while maintaining lower variability in parameter estimates.

Efficiency metric (variance of log evidence multiplied by CPU time) across time steps. Lower values indicate better performance.

Conclusion

The introduction of Particle Gibbs updates and PRNG recycling significantly enhances the practicality and stability of the SMC$^2$ algorithm. While the method introduces a new hyperparameter $ au$ (target variance), it is generally more robust than manual tuning of $N_x$. Future work may explore the scalability of the GAM-based calibration in higher-dimensional parameter spaces and further optimize the CPU overhead introduced by PRNG recycling.

Summary updated

BibTeX
@misc{chopin2015towards,
  author = {Nicolás Chopin and James Ridgway and Mathieu Gerber and Omiros Papaspiliopoulos},
  title = {{Towards automatic calibration of the number of state particles within the SMC$^2$ algorithm}},
  year = {2015},
  eprint = {1506.00570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1506.00570},
}
Figure