Prompt Relay: Inference-Time Temporal Control for Multi-Event Video Generation
Prompt Relay is a plug-and-play, inference-time method that enhances multi-event video generation by introducing a penalty into the cross-attention mechanism to enforce strict temporal alignment between specific prompt segments and video frames, thereby eliminating semantic entanglement without requiring architectural changes or additional computational overhead.
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 trying to tell a story to a very talented, but slightly confused, artist. You want them to paint a movie scene where:
- First, a caveman walks into the sunset.
- Then, the camera whips around to show a Spartan warrior.
- Finally, a medieval knight rides by.
If you just write this as one long paragraph and say, "Paint a caveman, then a Spartan, then a knight," the artist might get overwhelmed. They might paint a caveman wearing a Spartan helmet, or a knight riding a caveman. Their brain tries to mix all the instructions at once, resulting in a messy, confusing picture where the timeline makes no sense.
This is exactly the problem video AI models face today. They are great at making pretty videos, but when you ask for a sequence of different events, they get "semantically entangled"—the ideas bleed into each other.
Enter "Prompt Relay."
Think of Prompt Relay not as a new artist, but as a super-efficient stage manager for the existing AI. It doesn't require hiring a new crew or building a new theater (no retraining or extra computing power). It just changes how the director gives instructions while the show is happening.
Here is how it works, using three simple analogies:
1. The "Time-Traveling Spotlight"
In a normal AI, the text prompt is like a giant floodlight that shines on the entire video at once. The AI sees "caveman," "Spartan," and "knight" all at the same time, everywhere.
Prompt Relay turns that floodlight into a moving spotlight.
- 0–3 seconds: The spotlight shines only on the "Caveman" instruction. The AI ignores the Spartan and the Knight completely.
- 3–6 seconds: The spotlight smoothly slides over to the "Spartan" instruction. The Caveman instruction is now dimmed to the background.
- 6–9 seconds: The spotlight hits the "Knight."
This ensures that the AI focuses on one idea at a time, exactly when it's supposed to happen.
2. The "Soft Door" vs. The "Hard Wall"
You might think, "Okay, just cut the instruction off sharply when the time is up." But that's like slamming a door shut between scenes. If you do that, the video might look jarring, like a glitchy jump-cut where the background suddenly changes or the character morphs weirdly.
The paper introduces a clever trick called Boundary-Attention Decay.
- The Hard Wall (Old Way): At the exact second the scene changes, the AI is forced to stop listening to the old prompt and instantly start listening to the new one. This causes a "clash" in the middle.
- The Soft Door (Prompt Relay): As the scene gets close to ending, the AI starts to gently lower the volume on the old prompt while gently raising the volume on the new one.
- Imagine a baton pass in a relay race. The runner doesn't stop; they hand the baton over while both are still moving. This creates a smooth transition where the AI can plan the change gradually, making the video look natural and cinematic.
3. The "Global Context" (The Safety Net)
There's one catch: If the AI only listens to the "Caveman" prompt for 3 seconds, it might forget what the caveman looked like when the "Spartan" scene starts. The character might drift or change clothes randomly.
To fix this, Prompt Relay uses a Global Prompt. Think of this as a "Show Bible" or a constant whisper in the AI's ear that says, "Remember, this is a historical drama, keep the style consistent." This ensures that while the specific actions change, the overall world, style, and characters stay consistent throughout the whole movie.
Why Does This Matter?
Before this, making a video with a complex story (like a movie trailer) was like trying to write a novel by throwing all the chapters into a blender and hoping the AI could sort them out. The results were usually a mess.
Prompt Relay is the tool that lets you say:
"First, show me a boy jumping on a bed. Then, have him grab a toy plane and pretend to fly. Finally, show him sleeping."
And the AI actually does it in that order, with smooth transitions and no weird mixing of the boy, the plane, and the bed. It turns video generation from a "lottery" into a directed film, all without needing to retrain the AI or wait longer for the video to generate. It's a plug-and-play upgrade that makes AI storytelling finally feel like real storytelling.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.