Smoothing Nonlinear Variational Objectives with Sequential Monte Carlo

Antonio Khalil Moretti, Zizhao Wang, Luhuan Wu, Itsik Pe'er

Understanding the complex, high-dimensional latent dynamics driving observable time-series data is a central challenge in fields like neuroscience. For instance, researchers often record a single stream of data, such as the voltage of a neuron, but need to infer the underlying multidimensional state that produced it.

Traditionally, there are two approaches to inferring these hidden states:

  1. Filtering: Estimating the current state based only on past and present observations.
  2. Smoothing: Estimating the state by conditioning on the entire sequence, including future observations.

While smoothing is inherently more accurate, it is mathematically and computationally difficult to implement in nonlinear systems. Existing hybrid methods combining Variational Inference (VI) and Sequential Monte Carlo (SMC) often rely on filtering, limiting their ability to accurately reconstruct trajectories. To bridge this gap, researchers introduced Smoothed Variational Objectives (SVOs), a framework that leverages smoothing to achieve state-of-the-art performance in recovering complex hidden structures from noisy data.

The Smoothed Variational Objective (SVO)

The core innovation of SVO is its ability to create a tractable, expressive smoothing objective. Key technical components include:

  • Bidirectional Encoding: Unlike standard SMC, which processes data one step at a time, SVO uses a bidirectional Recurrent Neural Network (RNN) to extract features from the full time-ordered sequence. This allows the proposal distribution to "see" the future.
  • Parameter Sharing: To maintain tractability and expressiveness, the transition function parameters are shared between the proposal distribution and the target generative model. This shared evolution leads to faster convergence and a higher Evidence Lower Bound (ELBO).
  • Locally Linear Covariance Matrix (LLCM): For systems where noise is state-dependent, the covariance matrix is parameterized as a constant plus a nonlinear function of the latent state.
  • Gradient Analysis and the SNR Paradox: A common issue in importance-weighted models is that increasing the number of particles ($K$) can make gradients noisier, stalling learning. The authors demonstrate that for SMC-based objectives, specific biased gradient estimators actually help maintain a healthy Signal-to-Noise Ratio (SNR) as $K$ increases.

Experimental Validation and Key Results

SVO was evaluated on three distinct datasets: the synthetic 2D Fitzhugh-Nagumo system (a dimensionality expansion task), the 3D chaotic Lorenz Attractor, and real-world single-cell electrophysiology data from the Allen Brain Atlas.

Recovering Latent Topology The results highlight the power of hindsight: conditioning on the full sequence (smoothing) is significantly more effective than filtering for recovering the topology of latent spaces. On the Fitzhugh-Nagumo task, SVO successfully recovered the "limit cycle"—the circular path of the dynamics—where other state-of-the-art models struggled.

Fitzhugh-Nagumo limit cycle recovery

Quantitative Performance To quantify performance, the authors used the $R^2_k$ metric, which measures k-step forward prediction accuracy (how well the learned dynamics predict future observations without seeing new data). SVO demonstrated superior reconstruction capabilities, significantly outperforming baselines like AESMC, GfLDS, and VIND.

k-step forward prediction accuracy ($R^2_k$)

Furthermore, SVO proved scalable. In the Lorenz task, its performance improved as the latent dimension increased, plateauing exactly at the correct number of independent variables (three). On the Allen Brain Atlas data, SVO accurately reconstructed complex nonlinearities, such as hyperpolarization and depolarization, directly from raw voltage traces.

Limitations and Future Directions

While SVO offers linear time complexity $O(T)$ compared to traditional smoothing methods like FFBS $O(TK^2)$, FFBS might still be preferable in scenarios where particle support is a critical issue. Additionally, the current SVO model assumes an autonomous system that evolves on its own. Future iterations could incorporate "input terms" to model systems driven by external stimuli, such as a neuron responding to sensory input. Finally, while biased estimators help with SNR, the inherent trade-off between bias and variance requires careful tuning in practical applications.

Summary updated

BibTeX
@inproceedings{moretti2019smoothing,
  author = {Antonio Khalil Moretti and Zizhao Wang and Luhuan Wu and Itsik Pe'er},
  title = {{Smoothing Nonlinear Variational Objectives with Sequential Monte Carlo}},
  booktitle = {DGS @ ICLR},
  year = {2019},
}
Figure