World Models

Learned environment models that let agents predict, plan, and learn from imagined futures.

intermediate world modelling reinforcement-learningmodel-based-rlrepresentation-learning
latent-dynamicsplanningimaginationmodel-bias

Author @N00bcak

Overview

In reinforcement learning, an agent repeatedly chooses actions and receives observations and rewards from an environment. The central question is: how can the agent improve its behaviour from that experience?

Model-free RL learns the behaviour directly. For example, Q-Learning estimates how good each action is, without first learning a simulator of the environment.

Model-based RL learns or uses a model of the environment, then uses that model to plan or train. A world model is the learned part of this pipeline: it predicts how the world changes when the agent acts.

Given a current state sts_t and action ata_t, a world model predicts quantities such as the next state, reward, or whether the episode continues:

pθ(st+1,rt,ct∣st,at)p_\theta(s_{t+1}, r_t, c_t \mid s_t, a_t)

where ctc_t is a continuation signal. The agent can then ask counterfactual questions like: “what would happen if I took this action instead?”

The motivation is sample efficiency. If real interaction is expensive, as in robotics or long-horizon games, it is useful to learn from imagined rollouts before spending more real environment steps.

Latent Dynamics

Modern world models usually avoid predicting raw pixels at every step. They first compress observations into latent states, then learn dynamics in that latent space:

zt=eϕ(xt),zt+1∼pθ(zt+1∣zt,at)z_t = e_\phi(x_t), \qquad z_{t+1} \sim p_\theta(z_{t+1} \mid z_t, a_t)

This makes planning cheaper because the agent rolls out compact representations rather than full images. Learning Latent Dynamics for Planning from Pixels made this idea practical for visual control by learning a recurrent latent dynamics model and planning inside it.

Later systems such as Dream to Control: Learning Behaviors by Latent Imagination use the same basic idea differently: instead of searching for actions at every step, they train an actor and critic on imagined latent trajectories.

Planning and Imagination

World models can be used in two common ways:

Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model shows another design: the model does not try to reconstruct observations. It predicts the quantities needed for tree search, such as reward, policy, and value.

This is why “world model” does not always mean “video generator”. In RL, the model only needs to be useful for choosing actions.

Taxonomy

World models differ mainly in what they model and how they are used.

The key tradeoff is abstraction versus fidelity. A highly compressed latent may drop details that matter for control, while a detailed generative model may be too expensive for fast planning.

Landmark Methods

PaperYearIdea + Mechanism
World Models2018Train a controller inside a compressed latent world built from a VAE and recurrent dynamics.
Learning Latent Dynamics for Planning from Pixels2019Plan online in recurrent latent states instead of rolling out full images.
Dream to Control: Learning Behaviors by Latent Imagination2020Train an actor and critic from imagined trajectories in a latent world model.
Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model2020Use tree search over a model that predicts reward, policy, and value.
Mastering Atari with Discrete World Models2021Use discrete latents to scale Dreamer-style imagination learning to Atari.
Mastering Atari Games with Limited Data2021Improve MuZero-style tree search for low-data Atari learning.
Temporal Difference Learning for Model Predictive Control2022Combine short-horizon latent MPC with a learned terminal value.
IRIS: Transforming Auto-regressive Models into World Models2022Treat visual dynamics as autoregressive token prediction for synthetic rollouts.
Mastering Diverse Domains through World Models2023Use a robust Dreamer-style recipe across many domains with fixed hyperparameters.
DIAMOND: Diffusion as a Model of Environment Dreams2024Train agents inside diffusion-generated worlds to preserve visual detail.

The progression is not just chronological. It shows three recurring choices: whether to model pixels or latents, whether to plan online or train a policy offline, and whether the model should predict the whole observation or only planning-relevant quantities.

Model-Based vs Model-Free Tradeoffs

Model-based methods often need fewer real environment interactions, because they reuse experience through planning or imagined training. The cost is that they must learn a model, and the policy can fail if the model is wrong.

Model-free methods are usually simpler at decision time. Once a value function or policy has been learned, action selection can be cheap. The cost is that they may require many real interactions, because they do not get extra training signal from imagined futures.

Limitations

World models are powerful because they trade real environment interaction for model learning. This creates characteristic failure modes:

In practice, strong systems use short or moderate rollout horizons, regularised latent spaces, value-aware objectives, or uncertainty estimates to reduce these errors.

World models are built using Neural Networks and are part of model-based reinforcement learning. They are often compared with model-free methods like Q-Learning, which learn values directly from environment interaction.

Learning Path

What should I learn before World Models?

Start with neural-networks, q-learning before studying World Models.

How does World Models connect to other AI topics?

World Models belongs to World Modelling and connects to reinforcement-learning, model-based-rl, representation-learning, latent-dynamics, planning, imagination, model-bias.

Further Reading

  1. World Models
  2. Learning Latent Dynamics for Planning from Pixels
  3. Dream to Control: Learning Behaviors by Latent Imagination
  4. Mastering Diverse Domains through World Models
  5. Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model