AnyLearn
All lessons
AIintermediate

Learned Simulators for Robots and Cars, and How World Models Fail

How world models train and test robots and driving systems, and where they break. Covers learning to walk in an hour with DayDreamer, driving world models, ranking robot policies in a video simulator, compounding error in code, model exploitation and its defences, hallucinated physics, and why evaluation is the hardest part.

Updated · AI-authored, review-gated · how lessons are made

Progress1 / 10

Four jobs for a learned simulator

Robots and self-driving cars are where world models meet their hardest test, because mistakes there are physical. NVIDIA's Cosmos technical report lists the jobs a world model can do for such systems:

  1. Policy training. Pair the world model with a reward model and run reinforcement learning inside it, the Dreamer recipe from lesson 2.
  2. Policy evaluation. Test a policy against the simulated world instead of the real one, to rank candidates before any real trial.
  3. Planning. Simulate the outcome of candidate action sequences and pick the best, the model-predictive control loop from lesson 1.
  4. Synthetic data. Generate scenarios that are rare, dangerous or expensive to record, to train and test perception and driving models.

Related ground is covered elsewhere and not repeated here: the lessons in How Self-Driving Cars Work cover the driving stack and safety arguments, the Vision-Language-Action lessons cover learned robot policies, and Digital Twins covers simulators tied by live data to one specific physical asset. This lesson is about the learned simulator itself: what it is used for, and how it fails.

Sign in free to save your progress and earn certificates.

Full lesson text

All 10 steps on one page, for reading, reference, and search.

Show

1. Four jobs for a learned simulator

Robots and self-driving cars are where world models meet their hardest test, because mistakes there are physical. NVIDIA's Cosmos technical report lists the jobs a world model can do for such systems:

  1. Policy training. Pair the world model with a reward model and run reinforcement learning inside it, the Dreamer recipe from lesson 2.
  2. Policy evaluation. Test a policy against the simulated world instead of the real one, to rank candidates before any real trial.
  3. Planning. Simulate the outcome of candidate action sequences and pick the best, the model-predictive control loop from lesson 1.
  4. Synthetic data. Generate scenarios that are rare, dangerous or expensive to record, to train and test perception and driving models.

Related ground is covered elsewhere and not repeated here: the lessons in How Self-Driving Cars Work cover the driving stack and safety arguments, the Vision-Language-Action lessons cover learned robot policies, and Digital Twins covers simulators tied by live data to one specific physical asset. This lesson is about the learned simulator itself: what it is used for, and how it fails.

2. Learning on a real robot in an hour

The first job, training in imagination, pays off most when real experience is scarce, and on a physical robot it always is. Wu, Escontrela, Hafner, Goldberg and Abbeel's DayDreamer (2022) ran the Dreamer algorithm directly on four real robots, with no simulator at all:

  • a quadruped learned to roll off its back, stand up and walk from scratch, without resets, in about 1 hour, and adapted within about 10 minutes to being pushed;
  • two robot arms learned to pick and place multiple objects from camera images and sparse rewards;
  • a wheeled robot learned to navigate to a goal from camera images alone.

The authors used the same hyperparameters for all four robots.

Key idea: The world model turns every real second into many imagined ones. While the robot collects a few transitions, the learner keeps improving the model on all past data and trains the policy on thousands of imagined trajectories. Sample efficiency, the abstract advantage from lesson 1, becomes the concrete difference between an hour and many days of robot time.

3. World models for driving

Driving needs the fourth job most: the events that matter are the ones almost never recorded. Three published systems show the range of approaches:

SystemWhat it isReported details
GAIA-1 (Wayve)generative world model for driving videoover 9B parameters: a 6.5B autoregressive transformer over image tokens plus a 2.6B video diffusion decoder; trained on 4,700 hours of London driving; conditioned on video, text and actions
Waymo World Model (Waymo)driving simulator built on Genie 3generates camera and lidar; controlled by driving actions, scene layout, and language
Cosmos (NVIDIA)open-weight world foundation models for physical AIabout 100 million clips curated from about 20 million hours of raw video; diffusion models of 7B and 14B parameters

Waymo's engineering blog describes the controls concretely: driving action control for counterfactuals (could the car have proceeded instead of yielding?), scene layout control to change roads, signals and other road users, and language control for weather, time of day, or entirely synthetic scenes such as a flooded street or an elephant on the road. Waymo also claims a generative model stays realistic when a simulated route departs far from the recorded drive, where reconstruction methods such as 3D Gaussian splatting break down for lack of observations. That is the developer's own assessment, not an independent benchmark.

4. Evaluating robot policies in a video world

Real robot trials are slow, and comparing many policy versions multiplies the cost. A Google DeepMind report, Evaluating Gemini Robotics Policies in a Veo World Simulator, fine-tuned the Veo video model on robot data so that it predicts future multi-camera frames from the current scene and a sequence of future robot poses, an action-conditioned world model. Each candidate policy is rolled out inside it, and humans score the generated videos. The predictions were checked against more than 1,600 real-world trials of eight policy checkpoints on five tasks.

Predict first

The report found that predicted success rates were systematically lower than real ones. Does that make the simulator useless for evaluation?

The report's own limits: rollouts were 8 seconds long, contact-rich interaction with small objects remains hard, and objects sometimes appear spontaneously in the generated video.

5. Failure 1: compounding error

A world model is trained to predict one step ahead, but it is used many steps ahead, feeding each prediction back in as the next input. A small one-step error then grows with the horizon. (Behaviour cloning suffers a related compounding problem, covered in From Control to Imitation Learning; here the error lives in the model, not the policy.) The toy below rolls a slightly wrong model of an oscillator forward next to the true system:

import numpy as np

def oscillator(angle, damping):              # rotate a little, shrink a little
    c, s = np.cos(angle), np.sin(angle)
    return damping * np.array([[c, -s], [s, c]])

A_true  = oscillator(0.200, 0.995)            # the real system
A_model = oscillator(0.202, 0.998)            # learned: 1% fast, damping 0.3% off

x_true = x_model = np.array([1.0, 0.0])
one_step = np.linalg.norm(A_model @ x_true - A_true @ x_true)
print(f"one-step error: {one_step:.4f}")

for h in range(1, 51):
    x_true, x_model = A_true @ x_true, A_model @ x_model
    if h in (1, 5, 10, 25, 50):
        err = np.linalg.norm(x_model - x_true) / np.linalg.norm(x_true)
        print(f"open-loop rollout, {h:2d} steps: relative error {err:.1%}")

Output:

one-step error: 0.0036
open-loop rollout,  1 steps: relative error 0.4%
open-loop rollout,  5 steps: relative error 1.8%
open-loop rollout, 10 steps: relative error 3.7%
open-loop rollout, 25 steps: relative error 9.4%
open-loop rollout, 50 steps: relative error 19.5%

A model that is 0.4 percent wrong over one step is about 20 percent wrong over 50. With one-step error ϵ\epsilon and a dynamics that can stretch differences by a factor up to LL per step,

∥s^t+H−st+H∥≤ϵ∑k=0H−1Lk=ϵ LH−1L−1\left\lVert \hat s_{t+H} - s_{t+H} \right\rVert \le \epsilon \sum_{k=0}^{H-1} L^k = \epsilon \, \frac{L^H - 1}{L - 1}

In the toy, LL is about 1, so the growth is roughly linear; with L>1L > 1 it is geometric. This is why imagination horizons are kept short (the original Dreamer paper imagines 15 steps ahead on continuous control), why MBPO branches short rollouts from real states, and why one-step accuracy says little about long-horizon usefulness.

6. Failure 2: the policy exploits the model

Compounding error is passive. Exploitation is active: as lesson 1 warned, an optimiser trained against a model seeks out the model's mistakes, because a mistake that predicts high reward looks like an opportunity. Lesson 2's VizDoom controller, which learned that dream monsters barely fire, is the textbook case. The defences used across the field:

DefenceMechanismExample
Uncertainty estimatesan ensemble's disagreement marks regions the model does not know; plans through them are penalised or averaged outPETS (Chua and colleagues, 2018)
Short branched rolloutsstart imagined rollouts from real states and keep them short, so errors have little room to compound or be exploitedMBPO (Janner and colleagues, 2019)
Noisier imaginationstochastic predictions make exploits unreliablethe temperature in Ha and Schmidhuber
Replanning on real observationseach plan restarts from the true statemodel-predictive control
Keep collecting real datawherever the policy goes, real transitions arrive and correct the model thereDyna, Dreamer, DayDreamer

MBPO's authors report matching the asymptotic performance of the best model-free algorithms while being more sample-efficient than prior model-based methods, evidence that limiting how far the policy may trust the model costs little.

7. Failure 3: hallucinated physics

Generative world models add a failure the small latent models of lesson 2 rarely showed: video that looks right and behaves wrong. Two studies measure it directly.

  • Physics-IQ (Motamed, Culp, Swersky, Jaini and Geirhos, 2025) tests whether video models can continue real filmed experiments in fluid dynamics, optics, solid mechanics, magnetism and thermodynamics. Across the models evaluated, including Sora, Runway, Pika, Lumiere, Stable Video Diffusion and VideoPoet, physical understanding was severely limited and unrelated to visual realism. Their summary: visual realism does not imply physical understanding.
  • Kang and colleagues (ICML 2025) trained video models on a 2D simulator governed by classical mechanics. The models generalised perfectly in distribution but failed out of distribution, behaving "case-based": they imitated the closest training example rather than abstracting a rule, prioritising color, then size, then velocity, then shape. They conclude that scaling alone is insufficient to uncover physical laws.

Key idea: A generative model learns the statistics of how things look while moving, which overlaps with physics only where the data covers it. In a new situation it will produce the most familiar-looking continuation, not the physically correct one. Objects appearing from nowhere, or vanishing behind an occluder, are the visible symptoms.

8. Failure 4: measuring the wrong thing

The hardest problem may be evaluation itself. A world model can be scored on at least four different questions, and doing well on one says little about the others:

QuestionTypical measureBlind spot
Does it look real?PSNR, FVD, human realism ratingsGameNGen's next-frame PSNR of 29.4 is comparable to lossy JPEG, yet says nothing about physics
Does it obey physics?held-out physical scenarios, as in Physics-IQcovers only the phenomena someone thought to test
Does it respond to actions?does the predicted change match the commanded actiona model can be controllable and still wrong about consequences
Is it useful?agents trained inside succeed in reality; simulated policy rankings match real onesneeds expensive real trials to establish

Gotcha: Most published metrics are open-loop: they score predictions along recorded trajectories. A world model is used closed-loop, by a policy that steers into whatever states it likes, including ones no recording covers. The open-loop versus closed-loop gap described in Modular Stacks vs End-to-End Driving applies here with full force. Only the last row measures the thing that matters, and it is the one that cannot be computed offline.

9. Keeping a learned simulator honest

Real trials are never removed from the loop; they are spent where the learned simulator is least trustworthy.

flowchart LR
  R["Real logs and trials"] --> W["Train the world model"]
  W --> S["Train or rank policies in simulation"]
  S --> C["Spot-check the top candidates in reality"]
  C --> G["Compare simulated and real outcomes"]
  G --> U["Find where the simulator is wrong"]
  U --> R

10. Before trusting a learned simulator

The mechanisms in this course reduce to a short set of questions to ask of any world model before relying on what it predicts:

  1. Coverage. Was it trained on data resembling the states the policy will visit? If the policy is optimised inside it, assume it will be pushed toward the edges.
  2. Horizon. How far ahead must predictions hold? Compare that with the rollout lengths the model was validated at, seconds for many video models.
  3. Uncertainty. Does the model signal when it is guessing, through ensembles or stochastic predictions, and does the planner use that signal?
  4. Re-anchoring. Are imagined rollouts restarted from real observations, by replanning or by branching from real states?
  5. Physics checks. Has it been tested on held-out physical situations, not just on how realistic its frames look?
  6. Closed-loop validation. Do decisions made in simulation, such as policy rankings, agree with decisions validated in reality?

In practice: A learned simulator is best treated as an amplifier for real data, not a replacement for it. Used that way, it turns an hour of robot time into a walking gait and thousands of rare driving events into training material; trusted blindly, it trains policies that are excellent at a world that does not exist.

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. In the Veo world simulator report, predicted robot success rates were lower than real ones. Why was the simulator still useful for evaluation?
    • Because it ran faster than real time
    • Because humans corrected every generated video
    • Because its ranking of policies tracked reality, with a reported Pearson correlation of 0.86 across generalisation tests
    • Because it removed the need for any real-world trials
  2. In the compounding-error example, a model that is 0.4 percent wrong over one step is about how wrong after 50 steps?
    • About 20 percent
    • About 0.4 percent
    • About 2 percent
    • Over 100 percent
  3. What is the core idea behind MBPO's short branched rollouts?
    • Train the model only on imagined data
    • Use a single very long rollout per episode
    • Replace the policy with tree search
    • Start imagined rollouts from real states and keep them short, limiting room for errors to compound or be exploited
  4. What did the Physics-IQ benchmark find about current video generation models?
    • Their physical understanding matched their visual realism
    • Physical understanding was severely limited and unrelated to visual realism
    • They solved every fluid-dynamics scenario but failed optics
    • Larger models always had better physical understanding
  5. Why are most published world-model metrics insufficient on their own?
    • They are computed on too few frames
    • They ignore image resolution
    • They are open-loop, scoring predictions along recorded trajectories, while a policy uses the model closed-loop and steers into unrecorded states
    • They require a physics engine to compute

Related lessons

Robotics
intermediate

Modular Stacks vs End-to-End Driving

Two ways to build a self-driving system: a pipeline of separately engineered modules, or one network trained from sensors to trajectory. Covers imitation learning, causal confusion, why open-loop scores mislead, joint designs like UniAD, foundation-model drivers, and what each approach costs when you must prove it safe.

11 steps·~17 min
AI
intermediate

Interactive Generative World Models: From Video to Playable Worlds

How a video generator becomes a world you can act in. Covers learning controls from unlabeled video with Genie's latent actions, a toy version in code, autoregressive drift and how GameNGen fights it, agents trained inside DIAMOND, the Genie 2 and 3 consistency gains, and how neural and engine simulators differ.

10 steps·~15 min
AI
advanced

Dreaming in Latent Space: World Models, PlaNet, Dreamer and MuZero

How agents learn compact latent world models from pixels and plan inside them. Covers Ha and Schmidhuber's dream-trained controller, PlaNet's recurrent state-space model, Dreamer's actor-critic in imagination with lambda-returns in code, the later Dreamer versions, and MuZero's value-equivalent model.

12 steps·~18 min
AI
intermediate

What a World Model Is, and How an Agent Plans With One

A world model is a learned simulator that predicts what happens if an agent acts. This lesson covers its parts, why model-based learning needs far less real experience, Dyna versus model-predictive control, a working planner in code, and why a planner exploits model errors.

10 steps·~15 min