Book Deep-Read · Generative AI System Design Interview · Chapter 11

Text-to-Video: the Hard Part Isn't Looking Real, It's the Next Frame Still Recognising the Last

Generative AI System Design Interview · Ch 11 · Ali Aminian, Hao Sheng & Alex Xu · 2024

中文 →

What is this chapter about?

You have probably seen AI draw a picture: type a sentence, wait a few seconds, get an image. This chapter asks the next question — type a sentence, get a moving video. That sounds like "just draw more pictures," but the whole chapter is about one thing: the gap in between is not a difference of quantity. It is a new problem.

A strange thing first

Feed "a ginger cat jumps onto a sofa" to an image model one hundred and twenty times, take the hundred and twenty pictures, and play them in order. You get a twitching clip: the cat gets fatter and thinner, the sofa pattern changes every frame, and halfway through the jump it has become a different cat. Each picture is fine on its own. Together they are unwatchable.

Why the old world struggled

Because an image model has no memory. Every time, it starts from a fresh blob of random noise and paints again, with no idea what the previous picture contained. But a video is precisely "photographs with a memory": viewers will forgive slightly worse image quality, yet they spot "that is not the same cat" instantly. Human eyes are far fussier about breaks in time than about sharpness.

The chapter's core idea

Build "time" into the model itself, instead of patching it afterwards. Two intuitions:

First, let the model glance sideways. On top of letting every patch of the picture consult the other patches (that governs composition), let the same spot in the previous and next frames consult each other (that governs motion). Whatever the cat's ear looked like this frame, next frame has to take a look before putting down the brush.

Second, sketch, then fill in, then enlarge. Like making an animated film: draw a handful of key poses first, then fill in the in-between frames, then colour and scale everything up at the end. The hardest step happens only once, on the smallest and roughest sheet of paper; the two steps after it are far cheaper.

What it buys you

That is why today's products all look alike: you type a sentence, wait tens of seconds or even minutes (not seconds), and get back a fixed-length clip of four to eight seconds. Want it longer? Take the last few frames as a new beginning and keep writing. The cost is concrete too: the further you extend, the more it drifts — by the third or fourth segment, that ginger cat may have quietly changed colour.

Remember this one line

An image is judged on "does it look right"; a video is judged on "does the next frame still recognise the last one". The fix is to put time inside the model so the same spot consults itself across frames — and the exploding compute can only be spread out by working in stages: sketch, fill in, enlarge.

Want the mechanisms, notation and diagrams? → Switch to the deep read