Why plan in a latent space
The previous lesson's planner rolled hundreds of futures through a six-number model. With camera input that recipe breaks: a single 64 by 64 colour frame is 12,288 numbers, and a planner may need thousands of imagined rollouts per decision. Predicting every future pixel of every candidate is far too slow, and most of those pixels do not matter for the decision.
The fix shared by every agent in this lesson is to learn a compact latent state from images and run the dynamics there:
- Ha and Schmidhuber's World Models compress each frame, learn the dynamics of the compressed codes, and evolve a tiny controller on top.
- PlaNet learns a latent dynamics model and plans in it at every step.
- Dreamer learns the same kind of model but trains an actor and critic entirely on imagined latent trajectories.
- MuZero drops images altogether and learns a latent state that only has to predict reward, value and policy.
Read them as four answers to two questions from the previous lesson: what should the model predict, and is it used for background or decision-time planning?

