Train Short, Inference Long: Training-free Horizon Extension for Autoregressive Video Generation
FLEX is a training-free inference framework that extends autoregressive video generation horizons by addressing spectral bias and noise sampling limitations through Frequency-aware RoPE Modulation, Antiphase Noise Sampling, and an Inference-only Attention Sink, enabling high-quality long-duration video synthesis without additional model training.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are teaching a child how to draw a story. You show them a few pages of a comic book (the training phase). They learn how to draw a character, a car, and a tree. But then, you ask them to keep drawing that story for hours, far beyond the few pages they studied.
What usually happens? The child gets confused. The car starts melting, the character's face changes into a blob, and the story loses its plot. In the world of AI video generation, this is called extrapolation failure. The AI knows how to make a 5-second clip, but when asked to make a 60-second or 4-minute video, it falls apart.
The paper you shared introduces a clever solution called FLEX. It's like giving the AI a set of "training wheels" and a "map" so it can keep drawing the story correctly for hours, without needing to go back to school and relearn everything.
Here is how FLEX works, broken down into three simple tricks:
1. The "Zoom Lens" for Time (Frequency-aware RoPE Modulation)
The Problem:
Think of the AI's understanding of time like a radio dial. It has stations for "fast changes" (like a flickering light) and "slow changes" (like a sunset).
When the AI was trained on short clips, it only listened to the "fast change" stations. It never got enough practice with the "slow change" stations. When you ask it to make a long video, it tries to tune into those slow stations but gets static because it's never heard them before.
The FLEX Fix:
FLEX acts like a smart zoom lens.
- For the fast changes (high frequency), it says, "You're good at this! Keep doing exactly what you do." It lets the AI use its natural talent for quick details.
- For the slow changes (low frequency), it says, "You haven't practiced this much. Let's slow you down and stretch your understanding so you can handle the long timeline."
This keeps the video sharp and detailed without losing the big picture.
2. The "Anti-Boredom" Noise (Antiphase Noise Sampling)
The Problem:
When AI starts generating a video, it starts with a cloud of random static (noise). Usually, to keep the video consistent, the AI is told to make this noise very similar from frame to frame.
Imagine a drummer who is told to keep the beat exactly the same for 100 hours. Eventually, the music becomes a boring, robotic drone. The video looks like a frozen painting that barely moves. The AI gets "too consistent" and loses all the energy and motion.
The FLEX Fix:
FLEX introduces Antiphase Noise. Instead of telling the AI to make the noise similar, it tells it to make the noise opposite to the previous frame.
- Think of it like a pendulum. If the previous frame swings left, the next one is nudged to swing right.
- This injects energy right at the start. It forces the AI to create movement and dynamic changes, preventing the video from turning into a boring, static slideshow. It's like adding a spark to a campfire so it keeps burning bright instead of dying out.
3. The "Anchor" (Attention Sink)
The Problem:
As the AI draws more and more frames, it starts to forget the beginning of the story. It's like a person telling a long joke who forgets the punchline setup halfway through. The characters might change faces, or the background might shift colors because the AI lost its grip on the original scene.
The FLEX Fix:
FLEX adds an Anchor.
- Imagine the AI is a ship sailing on a long ocean. As it sails, it might drift off course. FLEX ties a heavy anchor to the very first frame of the video and keeps it connected to the ship.
- No matter how far the video goes (even 4 minutes long), the AI constantly looks back at that first frame to remind itself: "This is who the character is, and this is where the scene started." This stops the characters from morphing into strangers.
The Result: "Train Short, Inference Long"
The magic of FLEX is that it is training-free.
- Old Way: To make a 4-minute video, you had to train the AI on 4-minute videos. This takes millions of dollars and weeks of computing power.
- FLEX Way: You take an AI trained on 5-second clips, plug in FLEX, and suddenly it can make 4-minute videos that look just as good.
In a nutshell:
FLEX is a plug-and-play upgrade that fixes the AI's "short attention span" and "boredom." It gives the AI a better map for time, a spark of energy for movement, and an anchor to keep it on track. This allows us to generate long, consistent, and dynamic videos without the massive cost of retraining the models.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.