Skip to content
IFAI

Generative media

Alibaba's Prompt Relay gives video models seamless scene transitions

Published Reach 41

Alibaba just introduced Prompt Relay, a training-free technique that lets video models jump between radically different scenes without messy visual bleeding. By routing time-stamped prompts directly inside cross-attention layers, it keeps each action strictly in its designated slot while smoothing the handoff. The implementation details are up, with full code rolling out shortly.

Image: gordonchen19.github.io

Anyone who has tried generating multi-scene video clips with a single long prompt knows the pain of concept bleed. You ask for a hero walking through a misty forest followed by an astronaut stepping onto Mars, and the model hands you an astronaut floating between pine trees.

Controlling when specific events happen and when they should stop has been a notorious bottleneck in video synthesis. Alibaba just introduced Prompt Relay, a clever, training-free technique designed to make video models switch scenes cleanly without breaking a sweat.

Running a temporal relay race

Standard video diffusion models struggle to handle sequential storylines described in paragraph form. Because cross-attention looks at the whole text prompt indiscriminately, visual ideas intended for the end of the clip end up contaminating the beginning.

Prompt Relay handles this by turning the text prompt into a relay race. Instead of blasting the entire prompt across every frame, users assign each text block a specific start and end timestamp.

In Alibaba's demos, the transitions look impressively natural. One clip starts with an eagle soaring through crisp blue skies, shifts into a car speeding through a neon cyberpunk cityscape, and finally pulls back to reveal the entire scene playing on a living room TV.

In another trick, a person covers the camera lens with their hand, and when they pull it away, the busy metropolis in the background has morphed seamlessly into a sun-scorched desert, with zero accidental overlap between the prompts.

Free of training and extra compute

What makes Prompt Relay particularly neat is that it requires no model retraining, no architecture modifications, and almost zero added computational overhead.

Everything happens directly during inference inside the cross-attention layers. The researchers introduced a distance-based penalty that throttles attention between video queries and text keys that do not belong to the same temporal interval.

Inside the assigned window, the prompt gets full attention to steer generation unhindered. As frames move toward the boundaries, an exponential decay parameter gently suppresses the signal, ensuring that adjacent scenes blend smoothly without visual noise.

Alibaba has published the project page and implementation notes, though the complete repository with code files is expected to drop in the coming days.

Why it matters

For video creators and AI filmmakers, this is a very practical step toward single-take cinematic storytelling.

Right now, achieving reliable multi-event videos requires piecing together separate generation passes, masking in post-production, or relying on complex LoRA setups. Being able to declare temporal milestones directly in the prompt drastically simplifies the workflow for narrative projects.

We like Alibaba's restraint here. Instead of training massive external controller modules that balloon hardware requirements, they solved the problem with pure mathematical routing inside the existing attention mechanism.

That said, there are obvious limits to keep in mind. While Prompt Relay handles dramatic hard-cut transitions and environmental morphs brilliantly, maintaining character identity while swapping backdrops across longer sequences could prove tricky if the routing suppresses subject tokens too aggressively. We will see how well it holds up once open-source developers get their hands on the raw files.

Sources (2)

  1. [1]
    gordonchen19.github.io(opens in a new tab)Originalgordonchen19.github.io
  2. [2]

Best of AI, daily