⚏ World Models
tuul.dev · interactive learning course · code companion: nanoworld

World models from scratch

Where does the simulator come from?

The prerequisite AlphaZero course ends on a cliffhanger. Self-play worked because Go gave us a perfect simulator for free: the rules of the game. Feed the search a position, it hands back the next one, and the flywheel spins. But the real world does not ship with rules. A robot reaching for a cup has no env.step() to call.

Four landmark systems give four escalating answers, and you will rebuild each one small enough to read in a sitting. MuZero learns the game's transitions and plans inside them. Dreamer learns a simulator from pixels and trains its policy inside the dream. JEPA predicts in representation space and skips pixels entirely. Genie learns the simulator and its action space from raw video. Animated equations, an in-browser MuJoCo robot arm, real-home robot data, labs, and flashcards throughout.

Start module 1: MuZero ›

One axis runs through the whole course

Sort environments by what you know about their rules. Every module is a different answer to losing the rulebook, and each one lives at a different point on the axis.

M1 · MuZeroboard games, rules deleted
M2 · Dreamerphysics engines, pixels in
M3 · JEPAreal video, no labels
M4 · Genieraw video, actions unknown
rules known & cheap
rules known, stepping is expensive
rules unknown

The modules

Module 1 · MuZero

Plan in a learned model

AlphaZero's search calls the real rules at every node. Delete that call and train three small networks to do the job: h encodes the board, g predicts the next state, f judges positions. Then measure exactly where the learned model is right and where it drifts.

live now12 scenes · 8 labs · 20 flashcardsenter ›
Module 2 · Dreamer

Train inside the dream

Learn a latent simulator from pixels and train the policy entirely on imagined rollouts. Features the in-browser MuJoCo robot arm: the same engine, the same scene, running in your tab.

in build
Module 3 · JEPA

Predict in representation space

Skip the pixels entirely: predict what the next moment means, not what it looks like. Along the way, meet collapse, the failure mode every model trained this way has to avoid.

planned
Module 4 · Genie

Learn the actions too

No action labels, just raw video: discover a latent action space from footage alone, and turn a video model into a playable world.

planned
Module 5 · The bridge

From AlphaZero to R1

The same loop that mastered Go, predict, search, distill, resurfaces in reasoning LLMs. What actually transfers, and what is marketing.

planned
Satellite · S1

Omni models are world models

An any-to-any model that predicts its own next observation is also a world model. This satellite ties the course to the nano-omni track.

planned
Satellite · S2

Continual learning

The world keeps changing after training ends. What it takes to keep a learned simulator current, and why that is still an open problem.

planned
Capstone

Build your own world model

Pick an environment, pick what your model should predict, and defend the choice with measurements.

planned