Not All Tokens Need 40 Steps: Heterogeneous Step Allocation in Diffusion Transformers for Efficient Video Generation
This paper introduces Heterogeneous Step Allocation (HSA), a training-free inference algorithm that accelerates Diffusion Transformers for video generation by dynamically assigning fewer denoising steps to low-velocity tokens while maintaining global context and quality through a novel KV-cache synchronization mechanism and cached Euler updates.
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 directing a massive, high-budget movie production. In this movie, every single character, background tree, and speck of dust on the floor is an actor. In a standard Diffusion Transformer (the AI model making the video), the director treats every single one of these "actors" exactly the same way.
If the script calls for 40 rounds of rehearsal (denoising steps) to get the scene perfect, the director forces the background wall to rehearse 40 times, the static tree to rehearse 40 times, and the hero running across the screen to rehearse 40 times.
The problem? The wall and the tree barely move. They don't need 40 rehearsals; they could get away with 5. But the AI wastes massive amounts of time and energy making them rehearse anyway, while the hero (who is moving fast and changing shape) also gets the same 40 rounds. It's like paying a superstar actor and a cardboard cutout the exact same hourly wage for the exact same amount of work.
The Solution: Heterogeneous Step Allocation (HSA)
The authors of this paper, Ernie Chu and Vishal Patel, propose a smarter way to run the movie set called Heterogeneous Step Allocation (HSA).
Think of HSA as a smart director who watches the actors and says:
- "You, the background wall? You're boring and static. You only need 5 rehearsals."
- "You, the running hero? You're dynamic and complex. You need all 40 rehearsals."
- "You, the swaying tree? You need 20 rehearsals."
This saves a huge amount of time because the AI stops wasting energy on the boring parts.
The Two Tricky Problems They Solved
You might think, "Okay, but if the wall stops rehearsing after 5 rounds, how does it know what the hero is doing in round 40? They need to see each other to stay in the same scene."
The paper introduces two clever tricks to solve this:
1. The "Ghost Memory" Trick (KV-Cache Synchronization)
In AI, actors need to "see" each other to stay in sync (this is called attention). Usually, if an actor stops rehearsing, they disappear from the room, and the others can't see them.
- The Fix: The AI keeps a "ghost memory" (a cache) of the wall and the tree. Even though they aren't actively rehearsing, their "ghosts" stay in the room. The active actors (the hero) can still look at the ghosts of the inactive actors to know where they are.
- The Result: The hero gets to rehearse intensely while still knowing exactly where the wall is, without the wall actually having to do any work.
2. The "Time Travel" Trick (Cached Euler Update)
What happens to the wall's position while it's taking a break? Does it just freeze?
- The Fix: The AI remembers the last time the wall moved and how fast it was going. It uses a simple math formula to "fast-forward" the wall's position through the skipped time. It's like saying, "The wall moved 1 inch per second last time; I'll just calculate where it is now without making it actually move."
- The Result: The wall is updated in the background instantly, without the AI having to run a complex simulation for it.
The Results: Faster, Cheaper, Just as Good
The researchers tested this on powerful video-making AI models (like Wan-2 and LTX-2). Here is what they found:
- Speed: They could cut the time it takes to make a video by 50% or even 75% (making it take only 25% of the original time).
- Quality: Even with all that time cut out, the videos looked almost exactly the same as the slow, full-speed versions. The "hero" still looked sharp, and the "wall" still looked solid.
- Comparison: Previous methods tried to speed things up by just skipping whole rounds of rehearsal for everyone at once. Those methods caused the video to fall apart (like a building collapsing) when they tried to go too fast. HSA kept the video stable because it only skipped the parts that didn't need work.
In a Nutshell
This paper is about not treating every pixel the same. By realizing that some parts of a video are boring and static while others are exciting and moving, the AI can stop wasting time on the boring parts. It uses "ghost memories" and "math shortcuts" to keep everything in sync, allowing us to generate high-quality videos in a fraction of the time.
It's the difference between a factory that machines every single screw on a car with the same precision, and a factory that spends 90% of its time on the engine and only 10% on the screws that hold the seat covers in place. The car still works perfectly, but it's built much faster.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.