Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Bayesian›Dynamic Variational Inference
Bayesian methodsBayesian / computational

Dynamic Variational Inference

Dynamic Variational Inference for Sequential Latent Variable Models · Also known as: sequential variational inference, temporal variational inference, variational inference for state-space models, DVI

Dynamic variational inference extends the variational inference framework to sequential and time-series settings by positing a structured approximate posterior that respects the temporal ordering of latent states. It jointly learns a generative model of how hidden states evolve over time and a recognition network that maps observed sequences back to those latent states, optimising a sequential evidence lower bound (ELBO).

ScholarGate
  1. Bayesian methods
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Dynamic Variational Inference
Dynamic Bayesian NetworkKalman FilterParticle FilterSequential Monte CarloTime series Bayesian inf…Variational InferenceDynamic Bayesian Model A…Time series variational…

When to use it

Use dynamic variational inference when you have sequential or time-series data with suspected latent structure and need scalable approximate posterior inference — for example, modelling trajectories, sensor streams, speech, or longitudinal health records. It is especially suitable when the sequence length or dataset size makes MCMC impractical, or when a learned recognition network can amortise inference across many sequences. Avoid it when the temporal structure is absent or when model interpretability is critical and the neural recognition network is a black box — a classical state-space model or particle filter may be more transparent. Also avoid when the ELBO gap (posterior approximation quality) cannot be assessed and exact inference is affordable.

Strengths & limitations

Strengths
  • Scales to long sequences and large datasets via stochastic gradient optimisation and amortised inference.
  • Jointly learns the generative dynamics and the recognition network end-to-end.
  • Provides a tractable lower bound (ELBO) as a principled training objective.
  • Can incorporate rich non-linear dynamics through neural network parameterisation.
  • Amortised recognition network enables fast inference on new sequences at test time.
Limitations
  • The ELBO is only a lower bound; the gap between the ELBO and the true marginal likelihood can be large for highly non-Gaussian or multimodal posteriors.
  • Mean-field or partially structured approximate posteriors may underestimate posterior variance, especially for correlated latent states.
  • Sensitive to the choice of generative and recognition network architectures; poorly chosen models can collapse or fail to capture temporal dependencies.
  • Training can be unstable: KL annealing or careful initialisation is often required to prevent posterior collapse.

Frequently asked

How does dynamic variational inference differ from a Kalman filter?

The classical Kalman filter assumes linear Gaussian dynamics and provides exact inference. Dynamic variational inference relaxes both assumptions — dynamics and observations can be non-linear and non-Gaussian — and uses a learned neural recognition network to approximate the posterior, at the cost of introducing an approximation error captured by the ELBO gap.

What is posterior collapse and how can I prevent it?

Posterior collapse occurs when the recognition network outputs a posterior very close to the prior, effectively ignoring the data. Mitigation strategies include KL annealing (gradually increasing the KL weight during training), using a free-bits heuristic that keeps a minimum KL per latent dimension, and monitoring reconstruction loss separately from the KL term.

Can I use dynamic variational inference with missing observations?

Yes. The generative model can be adapted to mask missing time steps from the reconstruction loss while still propagating latent state uncertainty forward. Some recognition architectures also handle irregular or missing observations by design, for instance using attention over available time points.

When should I prefer sequential Monte Carlo over dynamic variational inference?

Sequential Monte Carlo (particle filter) provides consistent, asymptotically exact posterior approximations and is better suited when the ELBO approximation quality is unknown or insufficient. Dynamic variational inference is preferable when sequence datasets are large, speed is critical, or amortised inference across many sequences is needed.

Is a GPU required for practical use?

Not strictly, but dynamic variational inference relies on neural network training with backpropagation through sequences, which becomes very slow on CPU for non-trivial sequence lengths or dataset sizes. GPU acceleration is strongly recommended for research-scale applications.

Sources

  1. Krishnan, R. G., Shalit, U., & Sontag, D. (2015). Deep Kalman Filters. NIPS 2015 Workshop on Advances in Approximate Bayesian Inference. link ↗
  2. Bayer, J., & Osendorfer, C. (2014). Learning Stochastic Recurrent Networks. NIPS 2014 Workshop on Advances in Variational Inference. link ↗

How to cite this page

ScholarGate. (2026, June 3). Dynamic Variational Inference for Sequential Latent Variable Models. ScholarGate. https://scholargate.app/en/bayesian/dynamic-variational-inference

Related methods

Dynamic Bayesian NetworkKalman FilterParticle FilterSequential Monte CarloTime series Bayesian inferenceVariational Inference

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Dynamic Bayesian NetworkBayesian↔ compare
  • Kalman FilterBayesian↔ compare
  • Particle FilterBayesian↔ compare
  • Sequential Monte CarloBayesian↔ compare
  • Time series Bayesian inferenceBayesian↔ compare
  • Variational InferenceBayesian↔ compare
Compare side by side →

Referenced by

Dynamic Bayesian Model AveragingTime series variational inference

Similar methods

Time series variational inferenceDynamic Bayesian InferenceHierarchical Variational InferenceVariational InferenceVariational Inference with Missing DataRobust Variational InferenceMultilevel Variational InferenceDynamic Bayesian Network

Related reference concepts

Variational InferenceHidden Markov ModelsLatent Variable and Mixture ModelsDeep Generative ModelsGaussian Process ModelsTime-Series Models • Dynamic Quantile Regressions • Dynamic Treatment Effect Models • Diffusion Processes • State Space Models

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Dynamic Variational Inference (Dynamic Variational Inference for Sequential Latent Variable Models). Retrieved 2026-07-21 from https://scholargate.app/en/bayesian/dynamic-variational-inference · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Bayer, Osendorfer, Krishnan and colleagues
Year
2014–2015
Type
Bayesian approximate inference
DataType
sequential / time-series data
Subfamily
Bayesian / computational
Related methods
Dynamic Bayesian NetworkKalman FilterParticle FilterSequential Monte CarloTime series Bayesian inferenceVariational Inference
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account