All models

Kalman Variational Autoencoder (KVAE)

A convolutional VAE per frame, with a Kalman state space model carrying the dynamics in latent space.

Time series · 2,164 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 2,164 operations (1.2 MB) and is drawn when you ask.

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
144.3K
Operations
2,164
Framework
PyTorch
Recurrent
Yes
Published
NeurIPS 2017
Cited by
327 (as of 4 October 2026)
Authors
Marco Fraccaro, Simon Kamronn, Ulrich Paquet, Ole Winther
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14352
Graph hash
cadaa4e81e2ca90d36bd32a5ca63a4ee6d5a71bca32cf18046d7290d93b72e5d
Skeleton hash
17beb401f9cfd066070a0077ac0258f5534a5bb923a8b3b66637edcb581cbd9a
Architecture hash
ff4a7bac16abb92ae024f95ee02a6bfd8cfbd1ceca185a2cde2d03eab1d65650
Diagram SHA-256
2fdcc4ceebed60b8bea268f0bf42a05e3132dc9bff6eb1ff33f6a154a1235f17
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The Kalman variational auto-encoder (KVAE) is a framework for unsupervised learning of sequential data that disentangles two latent representations: an object's representation, coming from a recognition model, and a latent state describing its dynamics. The aim is temporal reasoning about a changing video not in pixel space but in a latent space that describes the non-linear dynamics of the objects in its world. The recognition model is a convolutional variational auto-encoder and the latent dynamics model is a linear Gaussian state space model (LGSSM).

At each time step a variational auto-encoder compresses the high-dimensional frame into a latent encoding, and the temporal dynamics of those encodings are modelled with a linear Gaussian state space model adapted to handle complex dynamics despite the linear relations among its states. The parameters of the state space model are adapted at each time step and depend non-linearly on past encodings through a recurrent neural network. That network is a dynamics parameter network built from LSTM cells that takes the encoded state at each step and emits softmax weights. The weighted sum can be read as a soft mixture of K different LGSSMs whose time-invariant matrices are combined using time-varying weights. Because the backbone is linear Gaussian, exact posterior inference can be done with the Kalman filtering and smoothing algorithms, which is what makes imputing missing data tractable.

The traced member follows the authors' bouncing-ball setup: 5000 sequences of 20 time steps of a ball moving in a two-dimensional box, each frame a 32x32 binary image. The encoder is a three layer convolutional network with 32 units in each layer, 3x3 kernels, stride 2 and ReLU activations, and the decoder is an equally sized network using the sub-pixel procedure for deconvolution. Trained end-to-end on videos of a variety of simulated physical systems, the model outperforms competing methods in generative and missing data imputation tasks.

Key idea. A sequence model that separates what an object looks like from how it moves, pairing a per-frame VAE with a linear Gaussian state space model whose parameters an LSTM re-mixes at every step, so Kalman smoothing gives exact latent inference and missing-data imputation without generating frames.

  • Kalman Variational Autoencoder
  • KVAE
  • K-VAE
  • Kalman VAE
  • kalman variational auto-encoder
  • disentangled recognition and nonlinear dynamics model
  • linear Gaussian state space model
  • LGSSM
  • bouncing ball
  • video imputation
  • Fraccaro
  • NIPS 2017

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{fraccaro2017disentangledrecognitionnonlineardynamics,
      title={A Disentangled Recognition and Nonlinear Dynamics Model for Unsupervised Learning}, 
      author={Marco Fraccaro and Simon Kamronn and Ulrich Paquet and Ole Winther},
      year={2017},
      eprint={1710.05741},
      archivePrefix={arXiv},
      primaryClass={stat.ML},
      url={https://arxiv.org/abs/1710.05741}, 
}