TL;DR
Generating AI video requires processing massive amounts of spatial and temporal data, and while "sparse attention" speeds this up by skipping unimportant details, it accidentally creates a severe traffic jam across multi-GPU setups. Because different attention heads do vastly different amounts of work, splitting them evenly leaves most GPUs twiddling their thumbs waiting for one overloaded straggler to finish. AsymHP solves this by looking at what happened in the previous generation step to dynamically deal out uneven numbers of heads to each GPU—speeding up sparse attention by up to $1.54\times$ without changing a single pixel of the final video.
What Problem Does This Paper Address?
Video Diffusion Transformers (DiTs) generate stunning videos by repeatedly refining noisy data over dozens of "denoising steps." The main bottleneck is self-attention: every patch of video wants to compare itself to every other patch across space and time. To survive long, high-res videos, modern systems use dynamic sparse attention, where each attention head applies a threshold (like top-$p$) to compute only the most important connections.
Here is the catch: attention heads naturally specialize. One head might track a crisp local edge (needing very few computations), while another tracks diffuse motion across frames (needing many).
Standard multi-GPU systems (like DeepSpeed-Ulysses) parallelize attention by giving every GPU an equal, contiguous slice of heads—say, 3 heads per GPU across 4 GPUs. Under dynamic sparsity, this equal head-count leads to wildly unequal workloads. One unlucky GPU gets stuck with the "dense" heads while the other GPUs finish early and sit idle. Worse, you faced a chicken-and-egg dilemma: you don't know how heavy a head's workload is until after you generate its sparse mask, which is too late to move it to another GPU without stalling the pipeline.
Methods
The authors introduce AsymHP (Asymmetric Head Parallelism), a lightweight host-side runtime scheduler that drops cleanly into existing sequence-parallel pipelines without altering the underlying sparse-attention math or kernels. It works via three novel components:
- One-Step Lag Predictor: Instead of trying to guess workloads from scratch or waiting for the current mask, AsymHP simply assumes a head's sparsity at step $t$ will match its realized sparsity at step $t-1$. After each step, GPUs share these tiny density numbers (just one scalar per head) in the background.
- Total Cost Model & Greedy Placer: You can't balance based on sparsity alone, because even an ultra-sparse head has fixed setup costs (like building the mask itself). AsymHP uses a simple linear-plus-quadratic cost model fitted from short profiling runs to estimate total runtime per head, then uses a greedy heuristic to assign different numbers of non-contiguous heads to GPUs to minimize the slowest GPU's load.
- Pull–Push Asymmetric Exchange: Standard multi-GPU communication collectives (
all-to-all) expect symmetric data sizes—meaning if one GPU takes 4 heads and another takes 1, you normally have to pad everything with dummy data to match the max size. AsymHP bypasses this by keeping fixed-size sequence buffers and using a custom "pull–push" routing table: each GPU pulls only the exact Q/K/V shards it needs before attention, and pushes only its assigned outputs back afterward.
Datasets
Not discussed in the paper. Rather than training models on video datasets, this is an inference-systems paper that evaluates runtime latency across three pre-trained video generation models (Wan2.1-1.3B, Wan2.1-14B, and HunyuanVideo) across varying resolutions and frame counts (primarily 720p at 15 to 240 frames), using real generation runs and captured activation snapshots.
Key Insights and Ideas
- Denoising has incredible temporal locality: The core "aha!" moment enabling this entire system is that adjacent denoising steps are virtually identical in terms of workload distribution (Pearson correlation $r = 0.9995$). Dense heads stay dense; light heads stay light. In ablations, looking one step into the past performed identically ($1.500\times$ speedup) to an "Oracle" scheduler that magically knew the future!
- "Empty" heads aren't free: Balancing purely by attention density can backfire on shorter sequences. Because generating the sparse mask scales linearly with sequence length regardless of how sparse the result is, dumping too many low-density heads onto one GPU can accidentally turn it into the new straggler.
- Breaking the divisibility rule: Standard head-parallelism crashes if your total attention heads aren't cleanly divisible by your GPU count (e.g., running a 12-head model on 5 GPUs). Because AsymHP embraces uneven head counts natively, it unlocks awkward, non-divisible GPU configurations out of the box.
Key Results
- Sparse-Attention Speedup: Evaluated on H100 NVLink nodes using Sparse VideoGen2 (SVG2), AsymHP speeds up the sparse-attention region across all tested models and GPU counts—reaching up to $1.48\times$ on 120-frame 720p videos, and scaling up to $1.54\times$ on longer 240-frame sequences.
- End-to-End Generation: On a full 50-step generation with Wan2.1-1.3B (720p, 121 frames on 4 H100s), total generation time dropped from $103.91\text{ s}$ to $92.10\text{ s}$—a $1.13\times$ end-to-end speedup, closely matching the theoretical Amdahl's law limit.
- Broad Generality: Switching to a completely different sparse attention algorithm (SpargeAttn) still yielded $1.35\times\text{ to }1.50\times$ speedups. Furthermore, testing on PCIe-only L40S GPUs (without fast NVLink interconnects) still delivered a $1.177\times$ speedup, proving the asymmetric transport pays off even over slower wires.
- Numerical Exactness: The transport is bitwise exact, and decoded videos show no quality degradation (differing from baseline runs no more than two baseline runs differ from each other).
Limitations and Future Work
- Dynamic budgets only: AsymHP relies on workload skew. If you use a sparse attention method with a fixed, static mask or a strict top-$k$ budget where every head is forced to compute the exact same number of blocks, there is no head-level imbalance for AsymHP to fix.
- The "One Giant Head" ceiling: Because AsymHP treats a whole attention head as an indivisible unit, load balancing hits a wall if a single ultra-dense head takes longer than the average target time per GPU. While the authors simulated splitting single heads across GPUs, their actual prototype lost any gains to synchronization and metadata overhead.
- Single-node scope: All experiments were run within single multi-GPU nodes. Scaling asymmetric head redistribution across multiple nodes—where network communication dominates latency—is left for future work.
Summary updated