AoiZora: Topology-Aware Auto-Parallel Optimization for Inference of Diffusion Transformers
AoiZora is a compiler-mediated topology planner that optimizes low-latency video diffusion inference on TPU sub-slices by integrating physical interconnect awareness into the auto-parallel search process, achieving up to a 1.42x latency reduction for Wan 2.1 compared to existing solutions.
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 organize a massive, high-stakes relay race to create a video. The "runners" are computer chips (specifically Google's TPU chips), and the "baton" is the data needed to generate each frame of the video.
The video generation process is like a long, repetitive loop where the runners have to clean up a noisy image over and over again (called "denoising") until it looks clear. Because the video is huge and the process is slow, you can't do it on just one chip; you need a whole team of chips working together.
The Problem: The "Seating Chart" Mistake
Currently, when engineers set up this team, they focus on the logical plan: "Runner A will handle the background, Runner B will handle the sky, and Runner C will handle the people." This is like assigning tasks on a whiteboard.
However, they often ignore the physical reality: Where exactly are these runners sitting in the stadium?
In a real stadium (the physical TPU network), some runners are sitting right next to each other and can pass a baton instantly. Others are on opposite sides of the field, and passing a baton takes time and causes traffic jams on the shared paths between them.
The paper found that even if you give the runners the exact same tasks (the same logical plan), simply changing where they sit in the stadium can make the race 16.6% slower or faster. The main culprit isn't the distance they run, but the fact that some runners are forced to use the same narrow hallway (a shared network link) at the same time, causing a traffic jam.
The Solution: AoiZora (The Smart Coach)
The authors built a new tool called AoiZora (named after the Japanese words for "Blue Sky"). Think of AoiZora as a super-smart coach who doesn't just write the play; it also designs the seating chart based on the actual stadium layout.
AoiZora solves a tricky problem: Checking every possible seating arrangement is too slow and expensive. If you tried to test every single way to seat the runners, you'd spend more time planning than actually running the race.
How AoiZora Works (The Two-Stage Strategy)
AoiZora uses a clever "filter and refine" approach, like a hiring process:
Stage 1: The Quick Resume Screen (Pre-Compilation)
First, AoiZora looks at the "resumes" (the logical task plans) using a cheap, fast method. It doesn't build the whole stadium yet; it just checks if the tasks make sense on paper. It quickly throws away the bad plans that would clearly fail (like trying to split a task that can't be split). This is fast and cheap, like a 30-second interview.Stage 2: The Full Simulation (Post-Compilation)
For the few top candidates that survived the first round, AoiZora does the hard work. It builds a detailed simulation of the actual stadium (the physical TPU chips) and runs a full test. It sees exactly where the traffic jams will happen on the specific network links. It then picks the single best seating arrangement that avoids those jams.
The Result
By using this two-step method, AoiZora finds the perfect combination of "what to do" and "where to do it."
- The Analogy: Imagine you are organizing a dinner party.
- Old Way: You decide who brings what dish (logical plan) and tell them to sit anywhere. Sometimes, the person bringing the heavy soup has to walk past the person carrying the fragile cake, and they bump into each other, spilling everything.
- AoiZora Way: You first quickly rule out guests who can't bring a dish. Then, for the remaining guests, you look at the actual table layout and seat the soup-bearer right next to the kitchen door and the cake-bearer on the other side, ensuring no one bumps into anyone else.
The Bottom Line
On Google's TPU chips, AoiZora made video generation 1.42 times faster than previous methods. It didn't change the video game itself or the rules of the race; it just figured out the smartest way to seat the runners so they could pass the baton without tripping over each other. This allows for faster, lower-latency video generation without needing to rewrite the underlying software.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.