Introduction
State-space models (SSMs) are a fundamental tool for modeling sequential data, with applications ranging from robot localization to financial forecasting. However, performing "online" inference—updating beliefs about hidden states and model parameters as new data arrives—remains notoriously difficult. Existing solutions have significant drawbacks: Particle Filters (PF) suffer from exponentially growing computational costs in high-dimensional spaces; standard Variational Inference (VI) is typically designed for "batch" settings, requiring the reprocessing of entire observation histories; and existing online VI methods often rely on heavy simplifications of the variational family, preventing them from accurately capturing complex posterior distributions.
This paper introduces a novel variational method for simultaneous state estimation and parameter learning in SSMs that operates entirely online. By leveraging backward decompositions of the posterior and Bellman-type recursions inspired by Reinforcement Learning (RL), the authors achieve constant-time updates per observation. This allows the model to scale to high-dimensional latent states where traditional methods fail.
Methodology
The core innovation of this work is a backward decomposition of the joint posterior distribution of states. Instead of attempting to update the entire joint distribution $p(x_{1:t} | y_{1:t})$, the method decomposes it into a filtering distribution for the current state and a sequence of backward transition kernels.
Key technical components include:
- Recursive ELBO (RELBO): The authors reformulate the Evidence Lower Bound (ELBO) as an expectation of a "value function" that satisfies a Bellman-type forward recursion. This clever adaptation of RL logic treats log-likelihood terms as "rewards," looking backward to accumulate past log-likelihoods rather than forward to future rewards.
- Gradient Recursions: The method derives similar forward recursions for the gradients of the ELBO with respect to both model parameters ($\theta$) and variational parameters ($\phi$). This corrects the gradient bias present in previous online variational attempts (like AELBO), which often ignore critical dependencies in the gradient computation.
- Function Approximation: Because these value functions and gradients are not analytically tractable for general SSMs, the authors employ regression techniques (such as Kernel Ridge Regression or Neural Networks) to approximate them online, akin to value function approximation in RL.
By utilizing this backward decomposition, the method avoids the growing dimensionality problem. The cost of an update at time $t$ remains constant, regardless of how much history has passed.
Experiments and Results
The methodology was evaluated across three distinct benchmarks:
- Linear Gaussian SSM: A controlled environment with a known ground truth (Kalman Filter) to verify convergence and accuracy.
- Chaotic Recurrent Neural Network (CRNN): A challenging non-linear, high-dimensional system (with latent dimensions up to 100) using Student's t-distribution observations.
- Sequential Variational Auto-Encoder (VAE): Applied to video sequences from the DeepMind Lab environment, where the model learned the transition dynamics of an agent moving through a 3D space from raw pixel data.
The results demonstrate significant improvements over baselines. In the high-dimensional CRNN task, the proposed method substantially outperformed Particle Filters and other online variational baselines in both state estimation error (RMSE) and ELBO values. In the Linear Gaussian case, the method's parameter estimates converged much closer to the analytical baseline (RMLE) than competing variational approaches.
Furthermore, in the Sequential VAE experiment, the model successfully learned to predict plausible future movements of an agent in a complex 3D environment after observing a stream of images, proving its scalability to neural-network-based dynamics.
Limitations and Future Work
While highly effective, the method has limitations. Like all approaches relying on function approximation, there is an inherent approximation bias; if the neural network or kernel used to approximate the value function lacks expressivity, the gradients will be inaccurate. Additionally, while the computational cost is constant per step, the absolute overhead can be high due to the need to solve a regression problem and perform an optimization step at every time point. Future work may explore "amortizing" the cost of optimization by learning a separate network to predict variational parameters directly from observations, further accelerating the online process.
Summary updated