Skip to content
Learn Motion
ExploreHow it worksMembership
Log in
Learn Motion

How Text-to-Video AI Works Under the Hood

1From Prompt to Conditioning Signal2Latent Diffusion: Generating Video in Compressed Space3Spatio-Temporal Attention: Keeping Frames Consistent4Where the Pipeline Breaks: Failure Modes and Their Causes
Spatio-Temporal Attention: Keeping Frames Consistent

Attention Inside a Single Frame

1 / 5
Take one frame of the latent video and cut it into a grid of patches. Each patch is just a small bundle of numbers, and on its own it has no idea what it is part of.
0:00 / 0:00

Spatial self-attention operates within one frame. The frame's latent is divided into patches, and each patch produces a query, a key, and a value. Every patch compares its query against all other patches' keys, and the resulting weights decide how much information it pulls from each value. This is how a region that only sees a patch of fur can still represent a whole animal: it gathers evidence from the patches around it. Without this exchange, each patch would be denoised on its own local evidence, and the frame would look like unrelated tiles rather than one scene.

References

  1. [1]Attention Is All You Needarxiv.org
Previous1 / 5Next

Learn Motion

Generate a course. Learn it properly.

Operated by Wuhan Daoyin Technology Co., Ltd.

Contact: [email protected]
Privacy PolicyTerms of Service

© 2026 Learn Motion