Linear Variational State Space Filtering

Daniel Pfrommer, Nikolai MatniarXiv 2022

Abstract

We introduce Variational State-Space Filters (VSSF), a new method for unsupervised learning, identification, and filtering of latent Markov state space models from raw pixels. We present a theoretically sound framework for latent state space inference under heterogeneous sensor configurations. The resulting model can integrate an arbitrary subset of the sensor measurements used during training, enabling the learning of semi-supervised state representations, thus enforcing that certain components of the learned latent state space to agree with interpretable measurements. From this framework we derive L-VSSF, an explicit instantiation of this model with linear latent dynamics and Gaussian distribution parameterizations. We experimentally demonstrate L-VSSF's ability to filter in latent space beyond the sequence length of the training dataset across several different test environments.

Introduction

In robotics and autonomous systems, state-space models are fundamental for describing system dynamics and sensor observations. Ideally, control algorithms operate on low-dimensional latent states, such as position and velocity. However, modern sensors often provide high-dimensional data like raw pixels. While Variational Autoencoders (VAEs) excel at image compression, applying them to dynamic sequences introduces challenges.

Previous approaches often suffered from a "conditioning gap," where future information is not effectively utilized during training, or relied on restrictive Markovian assumptions that required batching multiple images to estimate derivatives. This work introduces a theoretically grounded framework to learn latent states from pixels and heterogeneous sensors without these structural limitations.

Methodology: Variational State-Space Filters

The core of the proposed framework is the Variational State-Space Filter (VSSF). Unlike prior models, VSSF utilizes a two-pass inference algorithm designed to bridge the gap between training-time smoothing and test-time filtering.

Comparison of graphical models for RCE, PlaNet, and the proposed VSSF (Our Model).

Inference Algorithm

The inference process consists of two distinct stages:

  1. Forward Pass: Computes filtering posteriors, estimating the state based on all observations up to the current time step.
  2. Backward Pass: Samples a trajectory using a "backwards-in-time" dependency. This allows the model to leverage the full sequence of data during training to learn robust representations while remaining capable of real-time filtering during deployment.
The VSSF architecture illustrating the encoder-decoder structure and the forward/backward inference passes.

Linear VSSF (L-VSSF)

L-VSSF is a specific instantiation of the framework employing linear latent dynamics ($z_{t+1} = Az_t + Bu_t$) and Gaussian distribution parameterizations. Despite the linear dynamics, the mapping from high-dimensional pixels to the latent state is performed by deep neural networks (encoders and decoders). This combination allows the model to handle complex visual scenes while maintaining a simple, efficient physics model for control.

To accommodate heterogeneous sensors (e.g., cameras and IMUs), L-VSSF utilizes Information Filter update equations. This modularity allows the model to integrate any subset of sensors available at test time, even if more were used during training.

Experimental Evaluation

The model was evaluated across three environments of increasing complexity:

  • Pendulum: A classic swinging pendulum task with 10,000 sequences.
  • Blocks (AirSim): A drone-like camera navigating a simulated environment with double-integrator dynamics.
  • Zhangjiajie (AirSim): A complex simulation of a Chinese national park featuring intricate terrain and dynamic fog effects.

Key Results

  • Long-Horizon Filtering: Despite being trained on short sequences (4-5 frames), L-VSSF successfully filtered states over 200 time steps during testing, demonstrating significant temporal generalization.
  • Semi-Supervised Learning: By forcing specific latent dimensions to correspond to real-world measurements (e.g., joint angles), the model becomes highly interpretable. In the Pendulum task, partial supervision reduced MSE from 0.0458 to 0.000452.
  • Robustness: In the challenging Zhangjiajie environment, L-VSSF maintained stable state tracking where models without fixed dynamics often failed or became degenerate.

Conclusion and Future Work

L-VSSF provides a robust framework for bridging raw pixel data with classical control theory. While the current model assumes globally linear latent dynamics—which may struggle with highly non-linear events like collisions—it establishes a strong foundation for future extensions. Subsequent research will explore non-linear latent dynamics to handle more chaotic real-world scenarios.

Summary updated

BibTeX
@misc{pfrommer2022linear,
  author = {Daniel Pfrommer and Nikolai Matni},
  title = {{Linear Variational State Space Filtering}},
  year = {2022},
  eprint = {2201.01353},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.01353},
}
Figure