What Is a World Model in AI?
A world model is an AI system's internal simulation of how its environment changes, letting it predict outcomes before acting.
A world model is a learned internal representation of how an environment behaves — how it changes over time, and how it responds to actions taken within it — that an AI system uses to predict future states before, or instead of, acting in the real environment. Rather than reacting to raw observations one step at a time, an agent with a world model can simulate “if I do this, what happens next” internally, and choose actions based on those simulated outcomes.
The idea predates the current wave of generative AI by decades and comes out of robotics and control theory, but it has become newly relevant as large-scale learned models — including video-generation systems — turn out to be surprisingly good at capturing world dynamics implicitly, just by learning to predict what comes next in a sequence.
Model-based vs. model-free
The clearest way to place world models is against the split between two approaches to reinforcement learning:
- Model-free approaches learn a policy or value function directly from experience, without ever building an explicit model of how the environment works. The agent learns “in this situation, this action tends to work well” purely from trial and error, without being able to answer “what would happen if I tried something I’ve never tried before.”
- Model-based approaches learn a world model — a function that predicts the next state (and often the resulting reward) given the current state and an action — and then use that model to plan, by simulating many possible action sequences internally before committing to one in the real environment.
Model-based methods can be dramatically more sample-efficient, because the agent can generate as much simulated experience as it wants from the learned model, rather than needing new real-world trials for every scenario it wants to evaluate. The trade-off is that the whole approach is only as good as the model: if the world model’s predictions drift from reality, planning against it can confidently produce actions that fail when actually executed.
What a world model actually predicts
Concretely, a world model is usually a function (or a set of functions) that map a current state and an action to a predicted next state, and often a predicted reward or outcome signal. The internal representation of “state” doesn’t have to be a raw pixel grid or a literal physical description — most useful world models compress observations into a lower-dimensional latent representation first, learned by something like an autoencoder, and predict transitions in that compressed space rather than in raw sensory data. This is closely related to how a neural network more generally learns compressed, useful representations of its input during training rather than memorizing raw examples.
Some world models are explicitly trained as simulators — given a state and an action, output the next frame or sensor reading — and are evaluated on how accurately their rollouts match reality over many predicted steps. Others are trained more indirectly, as a byproduct of a different objective, and turn out to have learned usable environment dynamics anyway.
World models vs. language models
It’s easy to conflate world models with large language models, since both are large learned systems that predict “what comes next.” The distinction is in what “next” refers to:
- A language model predicts the next token in text, given prior tokens — its notion of “state” is a sequence of symbols, and its predictions are about language, not about a physical or simulated environment. The transformer architecture underlying most modern language models was designed for this kind of sequence prediction.
- A world model predicts the next state of an environment, given the current state and an action — its notion of “state” is closer to “what does the world look like now,” and its predictions are meant to be actionable: an agent can use them to decide what to do.
The two aren’t mutually exclusive. Video-generation and multimodal systems that predict future frames conditioned on an agent’s actions are, functionally, world models even when they’re built on the same underlying architectures used for language generation — the training objective (predict the next visual state given an action) is what makes something a world model, not the specific network architecture used to implement it. Some research systems, loosely related to generative adversarial networks and other generative approaches, are explicitly built to serve this dual purpose: generate plausible video while also functioning as a queryable simulator of physical dynamics.
Where world models are used
- Robotics. A robot arm that has to manipulate objects benefits enormously from being able to simulate the physical consequences of a candidate motion before executing it, rather than learning purely through (expensive, sometimes damaging) trial and error on real hardware.
- Game-playing agents. Building a model of a game’s dynamics lets an agent plan many moves ahead internally, evaluating candidate strategies against the model instead of playing out every possibility in the actual game.
- Autonomous driving. Predicting how other vehicles and pedestrians are likely to move, given the current scene, is a world-modeling problem — the vehicle needs to simulate several seconds into the future to decide on a safe action now.
- Planning and reasoning more broadly. Reasoning models that explore multiple candidate solution paths before committing to an answer share the same underlying structure as model-based planning, even outside physical environments — they’re simulating “what happens if I take this reasoning step” rather than acting on the first idea generated.
The core trade-off
The appeal of a world model is sample efficiency and the ability to plan ahead instead of reacting. The risk is compounding error: a model that’s slightly wrong about how the environment behaves after one step will be more wrong after ten simulated steps, and an agent that plans confidently against a flawed model can produce a plan that looks good internally but fails when actually executed. This is the same fundamental issue that shows up whenever a system’s decisions rest on a learned approximation of reality rather than the ground truth itself, and it’s a large part of why model-based methods, despite their theoretical efficiency advantages, still require careful validation against real outcomes rather than being trusted purely in simulation.
The takeaway
A world model is a learned function that predicts how an environment will change in response to an action, letting an agent plan by simulating outcomes internally instead of only reacting to what it observes. It sits on the model-based side of the model-based-versus-model-free divide in reinforcement learning, and it’s a different kind of prediction problem than language modeling — even though both rely on the same broad family of learned, next-step-prediction techniques. The payoff is more efficient planning; the cost is that the whole approach only works as well as the model’s predictions hold up against reality.
Keep reading
Chisato · · 5 min read Supervised vs Unsupervised vs Reinforcement Learning
Three ways machine learning models learn: from labeled examples, from patterns in unlabeled data, or from trial-and-error reward signals.
Chisato · · 4 min read Overfitting vs Underfitting: How ML Models Fail
Overfitting memorizes training data and fails on new inputs; underfitting fails to learn the pattern at all. How to spot each and what fixes each one.
Chisato · · 4 min read Precision vs Recall, Explained
Precision measures how many of a model's positive predictions were correct; recall measures how many actual positives it found. Why you can't max both.