What Matrix-Game 2.0 is
Matrix-Game 2.0 turns a video-generation transformer into an interactive world model. It generates a game's video a few frames at a time, each chunk conditioned on what it has already generated, on the first image and on the player's keyboard and mouse, so the player can steer the world as it is drawn. He et al. trained it on about 1,200 hours of Unreal Engine and GTA5 footage with action labels and report minute-long videos at 25 frames per second.
The model on this page is the released, distilled 1.6-billion-parameter base model, a diffusion transformer built on Wan 2.1: 30 blocks of width 1,536 with 12 attention heads, making 352 × 640 video from one starting image. The page is one recorded tree of rollouts: the first chunk walks forward (W), and for each later chunk the page lets you choose W, look left or look right.
Latent frames and the first image
The Wan 2.1 VAE, a causal 3-D autoencoder, compresses 8 × 8 pixels and 4 video frames into each latent pixel of 16 channels, so a latent frame is 44 × 80 × 16; patches of 2 × 2 make it 22 × 40 = 880 tokens. A chunk is 3 latent frames, 12 video frames.
The first image conditions every chunk twice. Its VAE latent, with a mask that marks it as given, is stacked on the noisy latents before the patch embedding. And a CLIP ViT-H/14 image encoder turns it into 257 tokens that every block reads through image cross-attention. There is no text prompt: the image and the actions are the whole instruction.
The block: self, mouse and keyboard attention
Each of the 30 blocks has self-attention, image cross-attention and an MLP, modulated by each frame's noise level; blocks 1–15 also carry the actions, between the cross-attention and the MLP.
- Self-attention runs over the chunk's tokens and the cached keys and values of the frames before it, within a window of 6 latent frames, with 3-D RoPE over time, row and column. It is causal across frames: a chunk never reads the future.
- Mouse attention works at each of the 880 positions on its own. It appends the camera moves (pitch and yaw) of the latent frame's 12 video frames to the token, passes the result through an MLP, and attends over time to the same position in the window's frames.
- Keyboard attention lets every token query embeddings of the keys held (W, A, S, D) over the same 12 video frames.
The board at the top of the page follows one token, on the sky, a tree trunk, the grass or the hand, through block 1 stage by stage, with the attention weights of each part.
Few-step flow matching
The model is trained with flow matching: a clean latent and noise are mixed along a straight line, and the network predicts the velocity that points from the data to the noise,
The distilled model needs only three such calls per chunk. It starts from pure noise at , predicts , mixes it with fresh noise down to the next level, and repeats at and ; these are training steps 1000, 666 and 333 warped by a shift of 5, . The third is the chunk. A fourth, clean pass at then runs the finished chunk through the network once more to write its keys and values into every cache for the next chunk. The flow steps panel decodes after each step.
Autoregressive rollout and distillation
The Autoregressive rollout strip generates chunk after chunk: each reads the previous chunks from the key–value cache, and only the last 6 latent frames stay in it. A model trained on real context but run on its own outputs drifts, since small errors in one chunk become the next chunk's input. Matrix-Game 2.0 is distilled with Self Forcing. A causal few-step student, first fitted to the bidirectional many-step teacher's denoising trajectories, is trained on rollouts it generates itself with its own cache, so it learns to cope with its own mistakes, while a distribution-matching loss (DMD) keeps its videos close to the teacher's. The method builds on CausVid, which first distilled a bidirectional video model into a causal, few-step one.
Where it came from
DIAMOND, the previous tab, showed that a diffusion model can run a game frame by frame, and Oasis, the next, did it for Minecraft with a transformer. Wan (2025) provided an open video diffusion transformer and its VAE; Matrix-Game 2.0 (2025) added frame-level mouse and keyboard modules, a causal attention mask with a cache and few-step distillation, so the model can answer the player as fast as video plays. Cosmos-Predict2, the last tab, is a video diffusion transformer of the same kind used the other way: it denoises a whole clip at once from a first frame and a text prompt, with no actions.
Papers
- Matrix-Game 2.0: An Open-Source, Real-Time, and Streaming Interactive World Model The model this tab records: Wan 2.1 with mouse and keyboard modules, distilled into a causal few-step generator.
- Self Forcing: Bridging the Train-Test Gap in Autoregressive Video Diffusion Training a causal video model on its own rollouts with a key–value cache, the distillation Matrix-Game 2.0 follows.
- From Slow Bidirectional to Fast Autoregressive Video Diffusion Models CausVid: distilling a bidirectional video diffusion model into a causal few-step one.
- Wan: Open and Advanced Large-Scale Video Generative Models The video diffusion transformer and causal 3-D VAE that Matrix-Game 2.0 is built on.
- Flow Matching for Generative Modeling Training a network to predict the velocity along paths from noise to data.
- Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow Rectified flow: straight-line interpolation between noise and data, as in this model's sampler.
- Learning Transferable Visual Models From Natural Language Supervision CLIP, whose image encoder turns the first frame into the tokens the blocks cross-attend to.