Abstract
This article addresses online variational estimation in state-space models. We focus on learning the smoothing distribution, i.e. the joint distribution of the latent states given the observations, using a variational approach together with Monte Carlo importance sampling. We propose an efficient algorithm for computing the gradient of the evidence lower bound (ELBO) in the context of streaming data, where observations arrive sequentially. Our contributions include a computationally efficient online ELBO estimator, demonstrated performance in offline and true online settings, and adaptability for computing general expectations under joint smoothing distributions.
Introduction
State-space models (SSMs) are fundamental to time-series analysis, providing a robust framework for tracking latent states $X$ through noisy observations $Y$. Applications range from robotics and object tracking to financial market modeling. A primary objective in SSMs is "smoothing"—the estimation of the hidden state sequence given the entire history of observations.
While Particle Smoothing has historically been the standard approach, it often suffers from the "curse of dimensionality" in high-dimensional spaces. Variational Inference (VI) has emerged as a powerful alternative, yet most VI techniques are designed for "offline" settings, requiring the full dataset to calculate the Evidence Lower Bound (ELBO) and its gradients. In real-world scenarios where data arrives in a continuous stream, these methods are often too slow or require simplifying assumptions that compromise model accuracy. This paper introduces a computationally efficient algorithm for online variational inference that leverages backward Markovian factorization and self-normalized importance sampling.
Methodology
The proposed method addresses the limitations of existing online VI by providing a recursive approach to estimate the gradient of the ELBO. The architecture rests on four technical pillars:
1. Backward Factorization
Rather than relying on a standard forward-moving model, the authors structure the variational distribution $q$ using backward kernels. This approach respects the inherent temporal dependencies of the smoothing distribution and allows for a recursive definition of the ELBO, which is essential for processing streaming data.
2. Self-Normalized Importance Sampling (SNIS)
To compute the expectations required for gradient updates, the algorithm utilizes i.i.d. samples from the variational distribution. Since sampling from the exact conditional distributions is often intractable, the method employs SNIS to weight the available samples, ensuring accurate estimation without the need for complex inner optimization loops.
3. Variance Reduction
Gradient estimates derived from score functions are notoriously high-variance. To stabilize the optimization process, the authors implement a built-in control variate technique. By using previously computed statistics to anchor the gradient, the algorithm prevents divergence and ensures stable learning even in high-dimensional state spaces.
4. Efficient Backward Sampling
To overcome the traditional $O(N^2)$ computational bottleneck associated with particle methods (where $N$ is the number of particles), the authors utilize an accept-reject mechanism. This innovation reduces the complexity to $O(N \cdot M)$, where $M$ is a small number of backward samples, making the algorithm viable for high-frequency applications.
Experimental Setup
The algorithm was evaluated against two primary benchmarks:
- Linear-Gaussian HMM: A controlled environment where the true smoothing distribution is analytically computable via Kalman Smoothing. This served as a ground-truth baseline to verify the algorithm's convergence properties.
- Chaotic Recurrent Neural Network (CRNN): A complex, non-linear benchmark where the hidden state is driven by a tanh-based neural network. This setup tested the method's performance against modern sequential variational techniques in a challenging, non-linear regime.
Key Results and Insights
The experimental results highlight significant improvements in both efficiency and convergence speed:
- Computational Efficiency: In the Chaotic RNN benchmark, the proposed method achieved a 5x speedup per gradient step compared to leading regression-based approaches (1 ms vs. 4.8 ms). This efficiency stems from replacing expensive functional regression with Monte Carlo importance sampling.
- Predictive Accuracy: Despite the increased speed, the method remained highly competitive. In the CRNN task, it achieved a Root Mean Square Error (RMSE) of $8.9 \times 10^{-2}$, slightly outperforming the baseline of $9.2 \times 10^{-2}$.
- The Power of Intermediate Updates: The research demonstrates that sequential processing—performing gradient updates within a single "epoch" as data arrives—leads to faster convergence than traditional batch processing, even in offline scenarios.
- Amortization: By utilizing Multi-Layer Perceptrons (MLPs) to map observations to variational parameters, the model demonstrates strong generalization, handling sequences of arbitrary length without requiring re-training.
Conclusion and Future Work
This work presents a scalable and efficient framework for online variational learning in state-space models. By combining backward factorization with importance sampling, the authors provide a method that is significantly faster than current regression-based alternatives while maintaining high accuracy.
Future research will focus on relaxing the current reliance on "exponentially conjugated potentials" to accommodate more complex, multi-modal distributions. Additionally, while the empirical results are promising, further theoretical analysis is required to establish rigorous convergence guarantees for the stepwise optimization of the ELBO in truly infinite-horizon streaming settings.
Summary updated