Skip to content
Generative models and multimodal Frontier 28 min read

Video and world models

A video generator is a latent diffusion or flow model whose tokens are patches of space and time. A world model is a predictor of what happens next, given what you do. The two converged in 2024–2026: the same compressed spacetime latents and large transformers now power text-to-video systems, playable generated games and robot planners. The open question that runs through this page is whether predicting pixels well is the same as understanding the world. The evidence so far says: not yet, and not automatically.

10,000 ft

Video is the largest store of information about how the physical world behaves: objects persist, fall, collide and respond to pushes. Generative video models are latent diffusion extended in time, trained with flow matching on transformer backbones built from ViT-style patches. World models are older: learned simulators that let an agent imagine the consequences of actions, from Ha and Schmidhuber's 2018 "dream" agents to Dreamer and MuZero. They meet in action-conditioned video models (GameNGen, Genie, Cosmos) and in predictive representation models (V-JEPA 2) that plan robot actions. Where this goes, from robotics to embodied AI to the debate about whether models need explicit world models, is one of the central questions of the frontier.

2,000 ft

Text-to-video, the 2024–2026 recipe: compress video with a causal 3-D VAE (4–8× in time, 8× in each spatial direction); cut the latent into spacetime patches (typically 1×2×2) to get tens of thousands of tokens; run a diffusion transformer with full spacetime attention, trained by flow matching, conditioned on text from an LLM-class encoder; sample with guidance; decode. Train on images and videos together, re-caption everything with a VLM, and curate the data hard. World models: learn \(p(\text{next observation}\mid\text{history},\text{action})\); roll it forward to imagine; use the imagined futures to train a policy or to plan, and re-plan often because errors compound.

One backbone, two uses
One backbone, two uses. video clip T′×H′×W′×3, causal 3-D VAE 4–8× time, 8× space, spacetime patches 10⁴–10⁵ tokens, diffusion transformer flow matching, text prompt (re-captioned data), actions (keys, controls, robot), generated video, next frames given action = a learned simulator, text-to-video, world modelOne backbone, two uses. video clip T′×H′×W′×3, causal 3-D VAE 4–8× time, 8× space, spacetime patches 10⁴–10⁵ tokens, diffusion transformer flow matching, text prompt (re-captioned data), actions (keys, controls, robot), generated video, next frames given action = a learned simulator, text-to-video, world model

Ground level

Why video is hard

Three things make video harder than images, beyond size.

  1. Size. Five seconds of 720p at 24 frames per second is 120 frames of \(1280\times720\times3\): 332 million numbers. Even after an 8× spatial compression, a per-frame latent model would carry the redundancy of 120 nearly identical frames.
  2. Consistency. Every frame must be a good image and agree with every other frame: the same face, the same number of fingers, the same lighting, objects that do not appear from nowhere. Errors that would be invisible in one image become flicker and morphing in motion.
  3. Dynamics. Motion must be plausible. Liquids pour, cloth folds, a ball that hits the rim bounces off it. Viewers are very sensitive to wrong physics, and "plausible" requires modelling a process that is only indirectly visible in pixels.

Data adds a fourth difficulty: good video–text pairs are scarce, captions rarely describe motion, and most web video is edited (cuts, overlays, slideshows), so curation pipelines (shot detection, motion filtering, aesthetic and OCR filters, re-captioning) are a large part of every serious system. Stable Video Diffusion (Blattmann et al. 2023) made this explicit: it separated training into image pre-training, video pre-training on a large curated set, and fine-tuning on a small high-quality set, and showed that curation at the video pre-training stage measurably improves the final model.

First generation: teach an image model to move

The first video diffusion models extended image architectures:

  • Video Diffusion Models (Ho et al. 2022) used a 3-D U-Net factorised over space and time: spatial convolutions and attention within each frame, then temporal attention across frames at each location. Training jointly on images (as one-frame videos) and videos improved quality, a trick every later system kept.
  • Make-A-Video (Singer et al. 2022) learned what things look like from text–image pairs and how things move from unlabelled video, with no paired text–video data at all.
  • Imagen Video (Ho et al. 2022) was a cascade of video diffusion models (a base model, then spatial and temporal super-resolution stages) that reached 1280×768 at 24 fps for 5.3 seconds.
  • Video LDM (Blattmann et al. 2023) took a pre-trained latent image model (including Stable Diffusion), froze it, and inserted temporal layers trained on video, turning an image generator into a video generator cheaply.

These systems typically generated sparse keyframes and filled the gaps with temporal super-resolution. Lumiere (Bar-Tal et al. 2024) argued that this cascade makes global temporal consistency hard (fast motion aliases between keyframes) and introduced a Space-Time U-Net that downsamples in time as well as space and generates all 80 frames (5 s at 16 fps) in one pass.

Second generation: latent spacetime transformers

In February 2024 OpenAI's Sora report (Video generation models as world simulators) described the recipe that became standard, though without model details: compress videos into a lower-dimensional latent, cut the latent into spacetime patches, and train a diffusion transformer on videos and images of varying duration, resolution and aspect ratio, with re-captioned training data. A patch is a token, exactly as in ViT, and variable-length sequences mean nothing has to be cropped to a square.

8 RGB frames (pixels) 3-D VAE 2 latent frames (4× in time, 8× in space, C channels) patchify tokens: one per 1×2×2 block, C·4 values each one spacetime patch
From pixels to tokens. A causal 3-D VAE removes most of the redundancy between neighbouring frames and pixels; the transformer then sees one token per small block of latent space-time, and attends across all of them at once.

The open technical reports since then fill in the details, and they agree remarkably:

System Year Video autoencoder Backbone Objective
Movie Gen Video (Meta) 2024 TAE, 8× time, 8× space 30B transformer, 48 layers, width 6,144 flow matching
HunyuanVideo (Tencent) 2024 causal 3-D VAE, 4×8×8 13B, dual-stream then single-stream blocks flow matching
Wan 2.1 (Alibaba) 2025 causal Wan-VAE, 4×8×8 14B and 1.3B DiT flow matching
Cosmos (NVIDIA) 2025 continuous and discrete video tokenizers diffusion and autoregressive world models both

Worked example: Movie Gen's 73K-token context

Movie Gen's largest setting is 16 seconds at 16 fps and 768×768: 256 frames, 453 million pixel values. The temporal autoencoder compresses 8× in each of time, height and width: \(32\times96\times96\) latent positions. Patchifying 2×2 in space gives \(96/2 = 48\) per side, so \(32\times48\times48 = 73{,}728\) tokens: the "73K video tokens" of the paper's abstract. A single full-attention pass over them, at width 6,144 and 48 layers, costs about \(4N^2dL \approx 6.4\times10^{15}\) FLOPs for the attention matrices alone, per denoising step. Fifty steps with guidance is several hundred times that.

The causal video VAE. HunyuanVideo and Wan encode the first frame on its own and every later group of four frames together, with convolutions that only look backwards in time. A clip of \(1 + 4k\) frames becomes \(1 + k\) latent frames, and a single image is just a one-frame video, so one autoencoder and one generator serve both images and videos. Causality also allows encoding and decoding long videos chunk by chunk.

Spacetime attention. Full 3-D attention lets every token see every other token, across frames and positions, which is what keeps identities and layouts consistent. It is also the cost centre: for a 5-second 720p clip with a 4×8×8 VAE and 2×2 patches there are 108,000 tokens and \(1.2\times10^{10}\) attention pairs. Factorising (attention within each frame, then across frames at each location, as in ViViT (Arnab et al. 2021) and the early video U-Nets) cuts that 30-fold (Build it), at the cost of weaker interactions between "this place now" and "that place later". Most large systems pay for full attention and recover the cost with sequence parallelism, attention kernels and step distillation.

Conditioning and control. Text enters through a strong text encoder (Movie Gen combines UL2, ByT5 for rendering text, and a long-prompt MetaCLIP), with classifier-free guidance exactly as in latent diffusion. Image-to-video conditions on a clean first latent frame. Systems have since added synchronised sound: Movie Gen includes a separate audio model for 48 kHz soundtracks, Google's Veo 3 generates sound effects, ambience and dialogue natively with the video, and OpenAI's Sora 2 (September 2025) also generates audio with video.

Discrete alternatives. Video can also be tokenised into discrete codes and generated by an autoregressive language model. MAGVIT-v2 (Yu et al. 2023) argued that with a good enough tokenizer, an LLM beats diffusion on image and video benchmarks, and VideoPoet (Kondratyuk et al. 2023) generated video with matching audio from a decoder-only transformer. Cosmos ships both families side by side.

Long videos and the drift problem

A model with a 73K-token context generates 16 seconds. Longer videos are produced by generating chunks conditioned on the end of the previous chunk, which turns a video model into an autoregressive model over chunks, and autoregressive generation drifts: small errors in one chunk are inputs to the next, compound, and eventually the video degrades into texture soup. Two ideas recur:

  • Noise augmentation of the context. Train the model on corrupted past frames (with the noise level as an input), so at inference it has learned to correct, rather than copy, the imperfections in its own previous outputs. GameNGen, below, found this essential for stable long rollouts.
  • Diffusion forcing (Chen et al. 2024): train with an independent noise level per frame, so one model can denoise the next frame while treating the past as clean, partly noisy or anything in between, combining next-token-style rollout with full-sequence diffusion.

Is a video generator a world simulator?

The Sora report's title made a claim: scaling video generation is a path to general simulators of the physical world. Careful tests so far say that visual realism and physical understanding come apart.

  • Physics-IQ (Motamed et al. 2025) built real filmed test cases across fluid dynamics, optics, solid mechanics, magnetism and thermodynamics, and asked models to continue them. Across the models tested (including Sora, Runway, Pika, Lumiere, Stable Video Diffusion and VideoPoet), physical understanding was "severely limited, and unrelated to visual realism", though some cases were solved.
  • A physical-law perspective (Kang et al. 2024) trained diffusion video models on simulated 2-D collisions governed by known laws. Scaling gave perfect in-distribution generalisation and improving combinatorial generalisation, but failure out of distribution. The models generalised "case-based", imitating the nearest training example, and when matching they weighted attributes in the order colour > size > velocity > shape: a model that pays more attention to an object's colour than to its velocity has not learned mechanics.

Pixels versus consequences

A video model learns \(p(\text{video})\), the distribution of what cameras recorded. A simulator must answer counterfactual questions, \(p(\text{future}\mid\text{past}, \text{do}(\text{action}))\), including for situations nobody filmed. Observational data underdetermines that; the gap is the gap between correlation and intervention. That is why the world-model work below puts actions into the training data.

World models: from dreams to Dreamer

The idea that an agent should learn a model of its environment and plan or learn inside it goes back to Schmidhuber's work around 1990 and to Sutton's Dyna (1991) in model-based RL. Its deep-learning form:

World Models (Ha and Schmidhuber 2018) split an agent into a Vision model (a VAE compressing each frame to a small latent), a Memory model (an MDN-RNN predicting the distribution of the next latent given the action) and a tiny linear Controller trained by evolution strategies. It solved CarRacing-v0 (906 ± 21 over 100 trials, above the 900 that defines "solved"), and in VizDoom trained a policy entirely inside its own dream and transferred it to the real game. The paper also found the failure mode that haunts the field: agents learned to exploit the model's imperfections, finding actions that "cheated" the dream. Raising the sampling temperature of the dream made it harder to exploit and the transferred policy better.

Dreamer (Hafner et al., 2019–2025) learns a recurrent latent dynamics model from pixels and trains an actor–critic purely on imagined latent trajectories. DreamerV3 (Hafner et al. 2023) used one set of hyperparameters across more than 150 tasks and was the first algorithm to collect diamonds in Minecraft from scratch, without human data or curricula. DIAMOND (Alonso et al. 2024) replaced the latent model with a pixel-space diffusion world model and found that visual detail matters for the agent, reaching a mean human-normalised score of 1.46 on Atari 100k.

Interactive generated worlds

Put actions into a large video model and you get a generated environment you can play:

  • GameNGen (Valevski et al. 2024) fine-tuned Stable Diffusion to predict the next DOOM frame from past frames and the player's actions, with training data from an RL agent's play. It runs at 20 frames per second on a single TPU, its next-frame PSNR is 29.4 (comparable to lossy JPEG), and human raters were only slightly better than chance at telling short clips from the real game. Noise augmentation of the context frames was what kept multi-minute play stable.
  • Genie (Bruce et al. 2024) learned without action labels. An 11B-parameter model trained on 30,000 hours of 2-D platformer gameplay (filtered from over 200,000 hours of internet video) learns a latent action model: a tiny discrete vocabulary (\(|A| = 8\)) of whatever changes between consecutive frames that the frames themselves cannot predict. Those latent actions turn out to be consistent controls (move left, jump) across games, and a user can play a world generated from a single image or sketch.
  • Genie 3 (Google DeepMind, August 2025) generates navigable worlds from text in real time at 24 fps and 720p, staying consistent for a few minutes with visual memory reaching back about a minute, and accepts text "world events" (change the weather, add a character) mid-session. Its listed limitations are a limited action space, weak simulation of other agents and limited interaction duration.
  • Cosmos (NVIDIA, 2025) frames video models as world foundation models for "physical AI": pre-trained on about 100M clips curated from roughly 20M hours of raw video, then post-trained for robotics and driving, where cheap synthetic experience is the point.

Predict representations, not pixels

Yann LeCun's critique of pixel prediction is that most pixel detail (the exact texture of leaves, the noise in a sensor) is unpredictable and irrelevant to acting, so a model trained to predict pixels spends its capacity on the wrong thing, the same argument that motivated latent diffusion and CLIP. The JEPA programme predicts in representation space instead. V-JEPA (Bardes et al. 2024) learns video features purely by predicting the representations of masked spacetime regions, without pixels, text or negatives. V-JEPA 2 (Assran et al. 2025) pre-trained on more than a million hours of video, then post-trained an action-conditioned predictor (V-JEPA 2-AC) on less than 62 hours of unlabelled robot video from the DROID dataset. Deployed zero-shot on Franka arms in two labs, it picked and placed objects by planning toward image goals in representation space, with no data from those robots or environments and no task-specific reward.

Three meanings of 'world model'
Three meanings of 'world model'. world model, learned simulator for an agent p(o_t+1 | history, a_t) Dreamer, GameNGen, Genie, video generator as implicit simulator p(video | text) Sora, Veo, Movie Gen, predictive representation predict features, plan in them V-JEPA 2, internal state inside an LLM probes find board states Othello-GPTThree meanings of 'world model'. world model, learned simulator for an agent p(o_t+1 | history, a_t) Dreamer, GameNGen, Genie, video generator as implicit simulator p(video | text) Sora, Veo, Movie Gen, predictive representation predict features, plan in them V-JEPA 2, internal state inside an LLM probes find board states Othello-GPT

The fourth meaning, an internal representation of world state inside a sequence model, is the subject of Othello-GPT and the world models and neuro-symbolic AI page.

History

Video generation and world models, 1990–2026
Video generation and world models, 1990–2026. Schmidhuber 1990, Dyna 1991 learn a model, plan in it, World Models 2018 V-M-C agent learns in a dream, Dreamer 2019–2023 imagination-trained RL, Video Diffusion Models 2022 Imagen Video, Make-A-Video, Video LDM, SVD 2023 latent video from image models, Sora report Feb 2024 spacetime-patch DiT, Movie Gen, HunyuanVideo, Wan 2024–25 open technical reportVideo generation and world models, 1990–2026. Schmidhuber 1990, Dyna 1991 learn a model, plan in it, World Models 2018 V-M-C agent learns in a dream, Dreamer 2019–2023 imagination-trained RL, Video Diffusion Models 2022 Imagen Video, Make-A-Video, Video LDM, SVD 2023 latent video from image models, Sora report Feb 2024 spacetime-patch DiT, Movie Gen, HunyuanVideo, Wan 2024–25 open technical report

How the two threads met

The world-model thread came from reinforcement learning: Jürgen Schmidhuber's recurrent world models and Richard Sutton's Dyna around 1990–91 argued that an agent should learn a model of its environment and plan or learn inside it. David Ha and Schmidhuber's 2018 "World Models", with its interactive web paper, revived the idea with deep generative models, and Danijar Hafner's Dreamer line turned it into a general algorithm. The video-generation thread came from generative modelling: GAN-based video in the late 2010s, then Jonathan Ho and colleagues' Video Diffusion Models in 2022 and a rapid sequence of latent and transformer-based systems. OpenAI's Sora report (February 2024) explicitly framed video generation as world simulation, and within months GameNGen and Genie showed action-conditioned video models that could be played. By 2025 the frontier labs were shipping both: video generators with native audio (Veo 3, Sora 2) and real-time interactive world models (Genie 3).

First principles

Why compress time. Consecutive frames are highly redundant: at 24 fps most pixels change little between frames. A latent that compresses 4–8× in time removes that redundancy before the expensive model sees it, exactly as an image autoencoder removes imperceptible texture. The causal design keeps the first frame separate so images remain first-class training data, which matters because image–text data is far more plentiful and better captioned than video–text data.

Why errors compound. A one-step predictor with error \(\epsilon\) per step, rolled forward on its own outputs, feeds each error back in as input. If the dynamics stretch perturbations by a factor \(L\) per step, the error after \(H\) steps can grow like \(\epsilon\,(L^H - 1)/(L - 1)\): linearly when \(L = 1\), exponentially when \(L > 1\). Training only on real histories (teacher forcing) never shows the model its own mistakes, so it has not learned to recover from them (exposure bias, the same problem as in language modelling). Three remedies follow: train on corrupted or self-generated context (noise augmentation, diffusion forcing), keep horizons short and re-plan from real observations (model-predictive control), and learn in a compact latent space where dynamics are smoother.

Why actions are necessary. Observational video tells you what tends to follow what. An agent needs to know what would follow if it acted. When the camera operator's choices and the scene's dynamics are entangled in the data, \(p(\text{next}\mid\text{past})\) cannot separate them. Action-labelled data (game logs, robot trajectories) or inferred latent actions (Genie) supply the missing intervention variable, which is why even a small amount of interaction data (V-JEPA 2-AC's 62 hours) changes what a video model can be used for.

Why a model can be exploited. A policy optimised against a learned model maximises the model's predicted reward, including in regions where the model is wrong. The optimiser actively searches for those errors, the same dynamic as reward hacking in RLHF. Uncertainty-aware models, stochastic dreams (Ha and Schmidhuber's temperature), short imagination horizons and continual correction from real data are all defences.

The maths

Latent shapes and token counts. For a clip of \(T' = 1 + c_t k\) frames at \(H'\times W'\), a causal VAE with temporal factor \(c_t\) and spatial factor \(c_s\) gives a latent of shape \((1 + k)\times C\times\frac{H'}{c_s}\times\frac{W'}{c_s}\). With \(p\times p\) spatial patches,

\[ N = (1 + k)\cdot\frac{H'}{c_s\,p}\cdot\frac{W'}{c_s\,p}. \]

Attention cost. Full spacetime attention costs \(\approx 4N^2dL\) FLOPs per forward pass for the score and value products (width \(d\), \(L\) layers). With \(T\) latent frames of \(S\) tokens each (\(N = TS\)), factorised attention needs \(TS^2 + ST^2\) pairs instead of \(T^2S^2\), a saving of \(TS/(S + T)\), which is about \(T\) when \(S \gg T\).

Flow matching for video. Exactly the image objective on video latents (score and flow matching): with clean latent \(z_0\), noise \(\epsilon\) and \(z_t = (1-t)z_0 + t\epsilon\),

\[ \mathcal{L} = \mathbb{E}_{t,z_0,\epsilon}\big\lVert v_\theta(z_t, t, c) - (\epsilon - z_0)\big\rVert^2 , \]

with \(c\) the text (and optionally first-frame, audio or action) conditioning. Movie Gen reports that flow matching was more robust to the noise schedule than diffusion losses and naturally has zero terminal SNR (compare the noise-schedule pitfalls in latent diffusion).

A latent world model (Dreamer-style). With observations \(o_t\), actions \(a_t\), rewards \(r_t\) and latent states \(s_t\), learn a prior \(p_\theta(s_t\mid s_{t-1}, a_{t-1})\), a posterior \(q_\theta(s_t\mid s_{t-1}, a_{t-1}, o_t)\) and decoders, by maximising

\[ \sum_t \Big(\mathbb{E}_q\big[\log p_\theta(o_t\mid s_t) + \log p_\theta(r_t\mid s_t)\big] - \mathrm{KL}\big(q_\theta(s_t\mid s_{t-1},a_{t-1},o_t)\,\big\Vert\,p_\theta(s_t\mid s_{t-1},a_{t-1})\big)\Big), \]

an ELBO over sequences. The policy is then trained on rollouts of the prior alone ("imagination"), where no observations are needed.

Planning with a model (MPC). At each real step, choose

\[ a_{t:t+H}^\star = \arg\min_{a_{t:t+H}} \sum_{k=0}^{H} c\big(\hat s_{t+k}\big),\qquad \hat s_{t+k+1} = f_\theta(\hat s_{t+k}, a_{t+k}), \]

execute only \(a_t^\star\), observe the real \(s_{t+1}\), and repeat. Random shooting or the cross-entropy method approximates the argmin; V-JEPA 2-AC does this in representation space with an image goal's embedding as the target.

Build it

First, the budget. How many tokens does a video DiT see, and what does attention over them cost?

def latent_tokens(seconds, fps, h, w, ct, cs, patch=2, causal=True):
    """Tokens a latent video DiT sees: VAE compresses time by ct and space by cs; then p x p patches."""
    frames = round(seconds * fps)
    t = 1 + (frames - 1) // ct if causal else frames // ct    # causal VAE: first frame kept on its own
    return t * (h // cs // patch) * (w // cs // patch), t

def attention_flops(n_tokens, d=6144, layers=48):             # Movie Gen 30B: 48 layers, width 6144
    return 4 * n_tokens**2 * d * layers                        # QK^T and AV, forward only

print(f"{'clip':34s}{'pixels (M)':>11s}{'latent T':>9s}{'tokens':>8s}{'attn PFLOP/step':>16s}")
for name, sec, fps, h, w, ct, cs in [
        ("Movie Gen: 16 s, 16 fps, 768x768", 16, 16, 768, 768, 8, 8),
        ("4x8x8 VAE: 5 s, 16 fps, 480x832", 5, 16, 480, 832, 4, 8),
        ("4x8x8 VAE: 5 s, 24 fps, 720x1280", 5, 24, 720, 1280, 4, 8),
        ("4x8x8 VAE: 60 s, 24 fps, 720x1280", 60, 24, 720, 1280, 4, 8)]:
    n, t = latent_tokens(sec, fps, h, w, ct, cs, causal=(ct == 4))
    px = sec * fps * h * w * 3 / 1e6
    print(f"{name:34s}{px:11.0f}{t:9d}{n:8d}{attention_flops(n)/1e15:16.1f}")

# Full 3-D attention vs factorised (spatial within a frame, then temporal per location)
n, t = latent_tokens(5, 24, 720, 1280, 4, 8)
s = n // t
full, fact = n * n, t * s * s + s * t * t
print(f"\n720p 5 s: {t} latent frames x {s} tokens/frame; attention pairs full {full/1e6:.0f}M "
      f"vs factorised {fact/1e6:.0f}M ({full/fact:.0f}x fewer)")

Output:

clip                               pixels (M) latent T  tokens attn PFLOP/step
Movie Gen: 16 s, 16 fps, 768x768          453       32   73728             6.4
4x8x8 VAE: 5 s, 16 fps, 480x832            96       20   31200             1.1
4x8x8 VAE: 5 s, 24 fps, 720x1280          332       30  108000            13.8
4x8x8 VAE: 60 s, 24 fps, 720x1280        3981      360 1296000          1981.4

720p 5 s: 30 latent frames x 3600 tokens/frame; attention pairs full 11664M vs factorised 392M (30x fewer)

The first row reproduces Movie Gen's 73,728-token context exactly. The last row is why nobody generates a minute of 720p in one pass: attention cost grows with the square of duration, so 12× longer is 144× more expensive per step. Long video means chunking, sparse or factorised attention, more aggressive compression, or all three.

Second, a world model in miniature. The "real world" is a puck with drag in a gentle, position-dependent wind. The agent collects 5,000 random transitions, fits a linear world model by least squares (which cannot represent the wind exactly), then (a) imagines open-loop rollouts and (b) uses the model to steer to a goal, either by planning once and executing blindly or by re-planning at every step.

import numpy as np
rng = np.random.default_rng(0)

def step(s, a):
    """True world: a puck with drag in a gentle, position-dependent wind field."""
    x, y, vx, vy = s.T
    ax, ay = np.clip(a, -1, 1).T
    vx = 0.9 * vx + 0.1 * ax + 0.06 * np.sin(2 * y)
    vy = 0.9 * vy + 0.1 * ay + 0.06 * np.cos(2 * x)
    return np.stack([x + vx, y + vy, vx, vy], axis=1)

# 1. Collect experience with random actions, fit a world model s' = [s, a, 1] W by least squares.
S = rng.uniform(-2, 2, (5000, 4)) * [1, 1, 0.2, 0.2]
A = rng.uniform(-1, 1, (5000, 2))
X = np.c_[S, A, np.ones(5000)]
W, *_ = np.linalg.lstsq(X, step(S, A), rcond=None)
model = lambda s, a: np.c_[s, np.clip(a, -1, 1), np.ones(len(s))] @ W

# 2. Open-loop rollouts: one-step error is small, but errors compound with the horizon.
s0 = rng.uniform(-2, 2, (500, 4)) * [1, 1, 0.2, 0.2]
acts = rng.uniform(-1, 1, (40, 500, 2))
real, imag = s0.copy(), s0.copy()
print("horizon | mean position error of the model's imagined rollout")
for h in range(1, 41):
    real, imag = step(real, acts[h - 1]), model(imag, acts[h - 1])
    if h in (1, 5, 10, 20, 40):
        print(f"{h:7d} | {np.linalg.norm(real[:, :2] - imag[:, :2], axis=1).mean():.3f}")

# 3. Planning with the model: random-shooting MPC towards a goal, open loop vs replanning.
goal = np.array([1.5, -1.5])
def plan(s, horizon=15, n=300):
    seqs = rng.uniform(-1, 1, (n, horizon, 2))
    sim = np.repeat(s[None], n, 0)
    cost = np.zeros(n)
    for t in range(horizon):
        sim = model(sim, seqs[:, t]); cost += np.linalg.norm(sim[:, :2] - goal, axis=1)
    return seqs[cost.argmin()]

start = np.array([[-1.5, 1.5, 0.0, 0.0]])
s, first_plan = start.copy(), plan(start[0], horizon=40)
for t in range(40): s = step(s, first_plan[t][None])          # execute the whole plan blindly
open_loop = np.linalg.norm(s[0, :2] - goal)
s = start.copy()
for t in range(40): s = step(s, plan(s[0])[0][None])            # replan every step, act once
print(f"\ndistance to goal after 40 steps: open-loop plan {open_loop:.2f}, "
      f"replanning (MPC) {np.linalg.norm(s[0, :2] - goal):.2f}, start {np.linalg.norm(start[0, :2] - goal):.2f}")

Output:

horizon | mean position error of the model's imagined rollout
      1 | 0.055
      5 | 0.659
     10 | 1.760
     20 | 4.344
     40 | 10.793

distance to goal after 40 steps: open-loop plan 9.25, replanning (MPC) 0.76, start 4.24

The one-step error is 0.055; by step 10 the imagined puck is 1.8 units from the real one, by step 40 more than 10: compounding. Planning once and executing blindly ends further from the goal (9.25) than where it started (4.24), because the plan was optimised for a world that drifts away from the real one. The same model, used to re-plan from the real state at every step, reaches within 0.76 of the goal. An imperfect model is still very useful, provided reality keeps correcting it. That is the operating principle of model-predictive control and of V-JEPA 2-AC's robot planner.

Things to try

  • A better model class. Add np.sin(2 * y) and np.cos(2 * x) to the regression features. How does the 40-step error change, and does open-loop planning now work?
  • Exploit the model. Replace the goal cost with "maximise imagined speed" and optimise a long action sequence. Compare imagined and real speed: the optimiser finds model errors.
  • Noise augmentation. Fit the model on states with noise added to the inputs (not the targets). Does the long-horizon error grow more slowly?
  • Attention budget. In the first program, find the clip length at which factorised attention costs the same as full attention at 5 seconds.
  • A real one. The Wan 2.1 1.3B model is reported to need about 8 GB of VRAM; on a capable GPU, generate the same prompt at two durations and check how generation time scales.

In practice

  • Using video models (as of 2026). Closed systems (Veo, Sora, Runway, Kling and others) lead on quality, duration and audio; open weights (Wan, HunyuanVideo, Cosmos and successors) are usable for research and fine-tuning. Clips are typically seconds long; longer pieces are assembled from shots.
  • Prompting. These models are trained on dense VLM-written captions, so long, literal descriptions of subject, action, camera motion, lighting and style work better than short prompts. Image-to-video (start from a still you like) is the most controllable mode.
  • Expect physics errors. Hands, liquids, collisions, object permanence and counting remain weak; do not use generated video as evidence of how something would behave.
  • World models for agents. Use them with short imagination horizons and frequent re-planning; validate any policy trained in a learned simulator in the real environment, and watch for exploitation of model errors.
  • Provenance. Realistic generated video is a misinformation and impersonation risk. Major providers attach provenance metadata or watermarks; see guardrails and security and governance.

Common misconceptions

\"A model that renders physics convincingly has learned physics\"

Physics-IQ found physical understanding unrelated to visual realism, and controlled studies show case-based matching (colour before velocity) rather than learned laws. Convincing is a property of the pixels; correct is a property of the counterfactuals.

\"World model\" means one thing

It can mean a learned simulator for an agent, a video generator, a predictive representation, or an internal state representation inside an LLM. Claims about one rarely transfer to the others; ask which conditional distribution is being learned and whether actions are in it.

\"Longer videos just need more compute\"

Attention cost grows quadratically with duration, and chunked generation drifts. Long-horizon coherence needs memory, re-anchoring and training on the model's own imperfect outputs, not only bigger models.

Check yourself

Why does a causal video VAE encode the first frame on its own?

So that a clip of \(1 + 4k\) frames maps to \(1 + k\) latent frames and a single image (one frame) maps to one latent frame. Images become one-frame videos, so the same autoencoder and generator train on plentiful image–text data and video data together, and long videos can be encoded in causal chunks.

Compute the token count for 10 s of 24 fps 480×832 video with a 4×8×8 causal VAE and 2×2 patches.

240 frames → \(1 + 239//4 = 60\) latent frames. Spatially \(480/16 = 30\) by \(832/16 = 52\), so 1,560 tokens per latent frame and \(60\times1{,}560 = 93{,}600\) tokens.

Why did Lumiere argue against keyframes plus temporal super-resolution?

The base model sees only sparse keyframes, so fast motion is aliased between them and global temporal consistency is hard to recover; super-resolution stages work on local windows and cannot fix it. Generating the whole clip at once with a space-time U-Net lets the model reason about motion over the full duration.

In the toy world model, why does re-planning succeed when the open-loop plan fails, with the same model?

Open-loop execution commits to 40 actions optimised in the model's imagined trajectory, whose error compounds to more than 10 units. Re-planning uses only the first action of each plan and then restarts from the real state, so the model never has to be accurate beyond a few steps and its errors are corrected by observation every step.

What is Genie's latent action model, and why is it needed?

Internet gameplay video has no action labels. Genie learns, from consecutive frames, a small discrete code (8 values) capturing what changed that the past frames could not predict. A dynamics model conditioned on that code learns to generate the next frame; at play time the user chooses the code, and the codes turn out to act like consistent controls.

Hard: Ha and Schmidhuber found that raising the dream's temperature improved the transferred policy. Explain.

A deterministic or low-temperature dream lets the controller find action sequences that exploit the model's specific errors, achieving high imagined reward that does not transfer. Sampling the MDN-RNN at higher temperature makes the dream noisier and harder than reality, so exploits stop working reliably and the controller must learn behaviour that is robust to model error, which transfers better. It is regularisation by pessimism.

Hard: give the argument that observational video alone cannot determine the effect of an action, and say what V-JEPA 2-AC adds.

In observational video, what the camera or agent did and how the scene evolved are confounded: many combinations of (unobserved) actions and dynamics produce the same footage, so \(p(\text{next}\mid\text{past})\) does not identify \(p(\text{next}\mid\text{past},\text{do}(a))\). V-JEPA 2-AC adds a small amount of trajectory data in which the robot's actions are known, and trains an action-conditioned predictor on top of the self-supervised video representation, turning a model of what happens into a model of what happens if the robot acts.

Go deeper

Papers

Videos and lectures

Articles and blog posts

Code

Where this leads