Streaming Variational Monte Carlo

Yuan Zhao, Josue Nassar, Ian D. Jordan, Mónica F. Bugallo, Il Memming Park

Introduction

State-space models (SSMs) are fundamental to tracking and signal processing, where a hidden state evolves according to latent dynamics and is observed through noisy measurements. The primary challenge in this domain is dual estimation: the simultaneous filtering of hidden states and the identification of underlying system dynamics from streaming data.

Existing approaches often face significant trade-offs. Classical filters like the Extended Kalman Filter (EKF) struggle with highly nonlinear systems, while Sequential Monte Carlo (SMC) methods depend on proposal distributions that are difficult to optimize online. Conversely, Variational Inference (VI) offers robust optimization frameworks but is traditionally difficult to adapt to streaming, temporally dependent data. Streaming Variational Monte Carlo (SVMC) addresses these limitations by combining the theoretical convergence of SMC with the optimization flexibility of VI.

Methodology

SVMC introduces several technical innovations to enable real-time learning with constant time complexity ($O(1)$) per sample:

  1. The Filtering ELBO: The authors derive a novel objective function targeting the log-likelihood of the filtering distribution. Unlike standard Evidence Lower Bounds (ELBO) that consider full trajectories, this objective allows for unbiased gradients, enabling the use of stochastic gradient descent (SGD) for on-the-fly model adaptation.
  2. Adaptive Proposals: SVMC utilizes neural networks to learn optimal proposal distributions dynamically, replacing fixed transition guesses with learned, data-driven updates.
  3. Sparse Gaussian Process (GP) Dynamics: To model complex motion without rigid functional assumptions, the framework employs sparse GPs. By using inducing points, the computational cost remains constant, avoiding the memory explosion typical of standard GP models.
  4. Particle-Based Inducing Variables: SVMC is the first to represent the posterior of GP inducing variables using particles, facilitating more accurate Bayesian inference than closed-form variational approximations.
Performance of SVMC as a function of gradient steps (A) and particle count (B).

As shown in the figure above, increasing the number of gradient steps and particles leads to a higher ELBO and lower Root Mean Square Error (RMSE), demonstrating the method's convergence and optimization stability.

Experimental Results

The framework was evaluated across diverse datasets, including chaotic recurrent neural networks (vRNN), NASCAR-like latent circuits, and real-world analog circuit data exhibiting birhythmic behavior.

Key performance highlights include:

  • Superior Accuracy: In chaotic RNN filtering, SVMC with 200 particles achieved an RMSE of 0.34, significantly outperforming a standard Bootstrap Particle Filter using 10,000 particles (RMSE 0.4).
  • Real-Time Forecasting: On analog circuit data, the model successfully learned hidden oscillatory dynamics, providing stable 500-step-ahead forecasts that outperformed the Dual EKF.
  • Rapid Adaptability: In non-stationary environments where system rules changed abruptly, SVMC adapted its internal model within dozens of steps, whereas traditional methods failed to recover.
Latent state filtering and multi-step prediction performance on complex dynamics.

Discussion and Conclusion

SVMC provides a robust "safety net" through convergence guarantees; as the particle count increases, the approximation converges to the true filtering distribution. Its likelihood-agnostic nature allows it to handle arbitrary observation models, such as discrete spike counts in neural data, where traditional Kalman filters are inapplicable. Furthermore, the use of GPs ensures that the model provides calibrated uncertainty estimates, which is critical for safety-sensitive applications.

While SVMC maintains $O(1)$ complexity per time step, the constant factor is influenced by the number of particles and inducing points. Future work will focus on optimizing these factors for high-frequency streaming applications and exploring more complex GP kernels to further enhance the model's representational power.

Summary updated

BibTeX
@article{zhao2023streaming,
  author = {Yuan Zhao and Josue Nassar and Ian D. Jordan and Mónica F. Bugallo and Il Memming Park},
  title = {{Streaming Variational Monte Carlo}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  doi = {10.1109/tpami.2022.3153225},
}
Figure