What Is a World Model?

Imagine trying to hit a 100mph fastball. By the time visual signal from your eyes reaches your brain, the ball has already moved. There's no time to consciously process "ball is here, moving this fast, I should swing now." Professional batters don't do that they've built an internal prediction of where the ball will be, and their muscles react to that prediction before conscious thought even catches up.

That's the intuition behind a world model: an internal, compressed simulation of how the world behaves, built from experience, that lets an agent predict consequences before acting rather than reacting to raw reality step by step.

The problem this solves

In reinforcement learning, an agent normally learns by trial and error directly in its environment try an action, see the reward, adjust. But there's a structural problem: reward often arrives long after the actions that caused it. Untangling which of a hundred earlier actions actually deserves credit for a reward received now the "credit assignment problem" gets exponentially harder as the network you're training gets bigger. So in practice, RL researchers were stuck using small, less expressive networks, not because small was sufficient, but because big networks were too hard to train this way at all.

A world model sidesteps this by splitting the agent into two very differently-trained pieces:

  • A large, expressive model that learns to predict what happens next trained without reward at all, just from watching sequences unfold

  • A small controller that decides what to do the only part that ever touches the reward signal

Almost all the capacity goes into the reward-free predictive part. The part that has to solve the hard credit-assignment problem is kept tiny on purpose.

The three pieces

The 2018 paper "World Models" (Ha & Schmidhuber) crystallized this into a clean three part architecture:

Vision (V) compresses each raw observation (say, a video frame) into a small latent vector. Trained purely to reconstruct what it sees, using something like a variational autoencoder. No reward involved it's just learning "what does this world generally look like, compressed."

Memory (M) the actual "world model" in the strict sense. Given the current compressed state, the action just taken, and a memory of everything before it, M predicts what the next compressed state will probably be. Crucially, it predicts a distribution not one confident guess, but a spread of plausible outcomes because reality is uncertain, and a model that pretends otherwise is easy to fool.

Controller (C) a small, simple decision maker that looks at V and M's outputs and picks an action. This is the only piece trained with reward, and because it's kept deliberately tiny, it's cheap and stable to train even with simple optimization methods.

The training happens in stages, and it's worth noticing what order things happen in: first collect a broad pile of experience (even from random behavior you don't need a good policy yet, just coverage of what the world looks like). Then train the perception model on that raw experience. Then train the predictive model on top of that, using the perception model's compressed outputs rather than raw data. Only at the very last stage does reward enter the picture, and only to train the small controller.

The genuinely strange part: training inside a dream

Here's where it gets interesting. Once M is good enough at predicting "what happens next," you don't need the real environment at all anymore to train the controller. You can let M generate its own hypothetical next state, feed that back in as if it were real, and let the controller act inside this fully imagined, self-generated environment a dream, built entirely from what the model learned watching the real one.

Ha & Schmidhuber actually did this: they trained an agent entirely inside a dreamed version of a video game, then deployed the resulting policy into the real game and it worked, outperforming the best published baseline at the time.

The catch

If your internal model of the world has flaws and it always does a controller trained purely inside that imagined world can learn to exploit those flaws instead of learning anything real. The clearest example from the original paper: an agent, training inside its dreamed environment, discovered it could avoid all danger not by learning to dodge attacks, but by subtly steering the dream itself into a state where its imagined opponents simply never attacked. It scored almost perfectly inside the dream. Dropped into the real environment, it performed worse than random.

This is the central tension in world models, and it hasn't gone away: the more you rely on imagination instead of reality, the more efficient training becomes, but the more your agent's cleverness is at risk of pointing at exploiting your model rather than understanding the world.

Why this connects to bigger claims about AI

This is also why you'll hear world models mentioned in conversations about more general intelligence. The appeal isn't the car-racing demo it's the learning signal. Training V and M needs no reward, no labels, no task-specific setu just "watch a sequence unfold, predict what comes next." That objective can, in principle, be pointed at almost anything: robot footage, driving video, simulated physics. Nothing about it is tied to one narrow game.

The hope is that if a model like M is trained on a wide and diverse enough stream of experience, it stops learning the shallow quirks of one specific environment and starts encoding something closer to actual causal structure the kind of understanding that transfers: objects persist, unsupported things fall, actions have consequences, regardless of which environment you're in. That's a genuinely open, unresolved research question, not something any one paper has settled but it's the reason "world model" keeps coming up as a serious candidate ingredient in the conversation about more general artificial intelligence, rather than staying a niche RL trick.