VRNN neural behavior model
Recurrent network with a variational autoencoder at every timestep, its prior conditioned on the hidden state.
Time series · 1,989 operations Checked
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
- Task
- Time series
- Parameters
- 187.3K
- Operations
- 1,989
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- NIPS 2015
- Cited by
- 800 (as of 29 October 2026)
- Authors
- Junyoung Chung, Kyle Kastner, Laurent Dinh and others
- Source
- GitHub: jych/nips2015_vrnn
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m21306
- Graph hash
- 6a8b218d43265ce8930a0a4148bb79e016ac1b707935e414914663ef27e1ccb6
- Skeleton hash
- e463cc588b124e6135cd930255c2d1baa0242629ea27aa833eaa7eb706624a51
- Architecture hash
- c9d94e974685bc311877fc2c557a188ff5d6920ef69cbe1de58efa62cc97293a
- Diagram SHA-256
- fa88fd7bbd2df326c9a084782d8593df39876c194c071d84bb6ba9c2649bbb28
- 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 variational RNN (VRNN) puts latent random variables into the hidden state of a recurrent neural network (RNN) by borrowing elements of the variational autoencoder (VAE). The paper argues that such high-level latent variables let the model capture the kind of variability seen in highly structured sequential data such as natural speech.
The VRNN contains a VAE at every timestep, and each of these VAEs is conditioned on the previous state of the RNN. Because of that conditioning, the prior on the latent variable is no longer a standard Gaussian distribution; its parameters are computed from the hidden state. The encoder that produces the approximate posterior and the decoder that generates the output are tied together through the same hidden state. Small networks extract features from the input and from the sampled latent before they reach the recurrence, and the paper found these feature extractors crucial for learning complex sequences. Training maximizes a variational lower bound that is summed timestep by timestep.
The paper evaluates the model against related sequential models on four speech datasets and one handwriting dataset. On the speech modeling tasks it reports that the VRNN-based models significantly outperform the RNN-based models and a VRNN without temporal dependencies between the latent variables. The code accompanying the paper is written mostly as pure Theano code. A separate PyTorch implementation of the VRNN also exists.
Key idea. The VRNN places a variational autoencoder at every timestep of an RNN and conditions its prior on the previous hidden state, linking latent variables across timesteps.
- VRNN
- Variational Recurrent Neural Network
- variational RNN
- VRNN neural behavior model
- recurrent latent variable model
- recurrent VAE
- latent random variables
- sequential data
- speech modeling
- handwriting generation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chung2016recurrentlatentvariablemodel,
title={A Recurrent Latent Variable Model for Sequential Data},
author={Junyoung Chung and Kyle Kastner and Laurent Dinh and Kratarth Goel and Aaron Courville and Yoshua Bengio},
year={2016},
eprint={1506.02216},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1506.02216},
}