A one-second clip at 512×512 with 24 frames contains roughly 18.9 million pixel values per color channel, and diffusion must run its denoiser hundreds of times over all of them. A variational autoencoder, or VAE, solves this by learning a compressed latent representation: the encoder maps the pixel video into a much smaller tensor, and the decoder reconstructs pixels from it. Generation then happens entirely in that latent space, and only the final result is decoded back to pixels. The compression is lossy but preserves the structure that matters — layout, motion, appearance — while discarding high-frequency detail the denoiser would otherwise waste compute on.
How Text-to-Video AI Works Under the Hood
Latent Diffusion: Generating Video in Compressed Space
Why Generation Happens in a Smaller Space
1 / 5
Take one second of video at five hundred twelve by five hundred twelve, twenty-four frames. That is about nineteen million values per color channel. Diffusion has to touch every one of those values, hundreds of times.
0:00 / 0:00