AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough
World Models
Learn a compact simulator of the world and train the agent inside its "dreams".
The idea
A vision model (VAE) compresses each frame into a small latent code; a recurrent model (MDN-RNN) predicts the next latent state; a tiny controller picks actions from these. After learning from real frames, the controller can be trained entirely within the imagined environment. Dreamer extends this with gradient-based learning in latent space.
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1Encode observations into latent codes with a VAE.
- 2Train a recurrent model to predict the next latent code and reward.
- 3Train a small controller on the latent state, in imagination.
- 4Transfer the controller to the real environment.
1/4
Step by step
- 1Encode observations into latent codes with a VAE.
- 2Train a recurrent model to predict the next latent code and reward.
- 3Train a small controller on the latent state, in imagination.
- 4Transfer the controller to the real environment.
Where it is used
Sample-efficient control from images.
Watch out for
The agent can exploit flaws in its learnt dream world.