dreamer_rssm_gru
The GRU-plus-Gaussian latent dynamics model that PlaNet plans with and Dreamer imagines in.
Reinforcement learning and control · 13,876 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
- Parameters
- 557.9K
- Operations
- 13,876
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- ICML 2019
- Cited by
- 706 (as of 18 October 2026)
- Authors
- Danijar Hafner, Timothy Lillicrap, Ian Fischer and others
- Source
- GitHub: pytorch/rl
- License
- MIT
- 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
- m4387
- Graph hash
- 5e6bbb3ba6b3f6748e776b25204a367433e7b293a971d2571634720d02dc87c0
- Skeleton hash
- 6ed2cb1e50ae26706bba297a0c34a77dac1e7c2a481d6765e4f42e56a15a0ba0
- Architecture hash
- ea95cdbc57a8f76478a4f21fce434dc0cc9b421ef3c0cfc0240c9215e2fe7417
- Diagram SHA-256
- 95b224119d9d7fa38fc03321938a052a214af85b004561edf8cd0717eed07b5f
- 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 Recurrent State-Space Model, or RSSM, is the latent dynamics model that Dreamer implements as its transition model. PlaNet introduced it as part of a purely model-based agent that learns environment dynamics from images and plans in latent space. Planning needs a model that can predict forward purely in latent space. The authors liken it to a non-linear Kalman filter or sequential VAE.
The key design choice is to split the state into a stochastic part and a deterministic part, which depend on the previous step through a recurrent neural network. The PlaNet experiments show that both paths are crucial for successful planning. The paper's deterministic path is a GRU with 200 units. Its latent distributions are 30-dimensional diagonal Gaussians with predicted mean and standard deviation. All information about the observations must pass through the sampling step of the encoder, to avoid a deterministic shortcut from inputs to reconstructions.
Dreamer learns the same world model as PlaNet. Dreamer learns behaviors by propagating analytic gradients of learned state values back through trajectories imagined in the compact state space of that world model. On 20 challenging visual control tasks, Dreamer exceeds existing approaches in data-efficiency, computation time, and final performance. In PlaNet, the RSSM achieves pixel-accurate predictions for 50 steps into the future.
Key idea. The RSSM splits the latent state into a deterministic recurrent path and a stochastic path, and PlaNet's experiments show both are crucial for successful planning in latent space.
- RSSM
- Recurrent State-Space Model
- PlaNet
- Deep Planning Network
- Dreamer
- world model
- latent dynamics
- latent imagination
- Hafner
- torchrl
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{hafner2019learninglatentdynamicsplanning,
title={Learning Latent Dynamics for Planning from Pixels},
author={Danijar Hafner and Timothy Lillicrap and Ian Fischer and Ruben Villegas and David Ha and Honglak Lee and James Davidson},
year={2019},
eprint={1811.04551},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1811.04551},
}