TL;DR
DraftAttention2 is a training-free framework that significantly accelerates video diffusion models by combining block-level sparsity with mixed-precision attention (4-bit, 8-bit, and 16-bit). By using a low-resolution "draft" map to intelligently allocate computational budgets, it achieves a superior quality-efficiency trade-off, delivering up to 2.5x speedups with minimal impact on video fidelity, particularly in few-step generation scenarios.
What Problem Does This Paper Address?
Modern video generation relies heavily on Diffusion Transformers (DiTs). While powerful, these models face a massive computational bottleneck: attention. As video resolution and duration grow, the cost of attention over spatiotemporal tokens scales quadratically. As shown in the authors' runtime analysis, attention can dominate the total DiT inference time.
Previous attempts to solve this usually took one of two paths:
- Sparsity: Skipping "unimportant" attention interactions entirely.
- Quantization: Computing all interactions but at a lower numerical precision (e.g., 4-bit or 8-bit).
Sparsity often discards useful information, while uniform low-bit quantization introduces noise across the board. The challenge lies in combining these two approaches—assigning high precision to critical interactions and low precision (or zero precision/skipping) to others—without incurring massive hardware overhead from switching between different formats.
Methods
DraftAttention2 introduces a joint sparsity-precision allocation strategy guided by a low-resolution "draft" map.
1. Draft-Guided Allocation
The framework first creates a low-resolution summary of the attention map. It uses both average pooling (to capture mean regional statistics) and max pooling (to capture local variations) on the Query ($Q$) and Key ($K$) tensors.
These pooled descriptors are used to compute a "Draft Map." Region pairs are ranked by their scores in this map. Under a configurable budget:
- The highest-ranked blocks are computed in 16-bit.
- Moderately important blocks are computed in 8-bit or 4-bit.
- The least important blocks are skipped (sparse).
2. Hardware-Efficient Execution
To make mixed-precision practical on GPUs, the authors developed a phased execution scheme within a single attention kernel. Instead of launching separate kernels for each precision, they group blocks by format and process them in consecutive phases. All phases share the same online softmax statistics and a common output accumulator, avoiding the need for expensive memory-merging steps.
They also utilize Fused Operand Preparation, which combines spatial reordering, pooling, and quantization into a single step to minimize global memory movement.
Datasets
The authors evaluated DraftAttention2 using two state-of-the-art video diffusion models:
- HunyuanVideo-13B: Generating 129-frame videos at $1280 \times 720$ resolution.
- MiniMax-H3: Generating 362-frame videos at $1344 \times 768$ resolution, including 4-step and 8-step "few-step" variants.
Evaluation metrics included VBench for general video quality and PSNR, SSIM, and LPIPS to measure fidelity relative to full-precision "dense" attention outputs.
Key Insights and Ideas
- The "Low-Bit Recovery" Advantage: A key theoretical insight is that computing a moderately important block at low precision is often much better than skipping it entirely. The authors prove that recovering these interactions with low-bit math can substantially tighten the overall output-error bound compared to pure sparsity.
- Complementary Pooling: Using only average pooling for the draft map can miss sharp, localized attention peaks. Adding max pooling provides a much better proxy for block importance.
- Shared Ranking is Key: By ranking all blocks across the entire head, the system naturally adapts. Some query regions might get many high-precision blocks, while others get mostly low-precision or skipped blocks, all while staying within a global budget.
Key Results
- Superior Efficiency: On HunyuanVideo, DraftAttention2 achieved a 2.38x to 2.51x speedup while maintaining higher VBench scores and better fidelity (lower LPIPS) than sparse-only baselines like XAttn or SVG2.
- Few-Step Champion: The benefits were most pronounced in few-step diffusion (4 or 8 steps). In these settings, errors accumulate quickly. DraftAttention2’s ability to retain more interactions at low precision allowed it to significantly outperform uniform quantization methods like SageAttention3 in terms of visual quality at similar speeds.
- Fidelity: As shown in Figure 1(b), the mixed 4/8-bit allocation achieved a relative L2 error of only 3.13%, compared to 10.54% for a 16-bit sparse allocation at the same latency.
Limitations and Future Work
- Budget Tuning: While the quotas ($T_{16}, T_8, T_4$) are configurable, the paper does not detail an automated way to find the optimal balance for a specific hardware target or quality requirement.
- Hardware Specifics: The current implementation is optimized for NVIDIA GPUs (specifically testing on RTX 5090). Porting the fused mixed-precision kernels to other architectures (like AMD or specialized AI accelerators) would require significant engineering effort.
- Future Directions: The authors suggest that this joint sparsity-precision logic could be extended beyond video to other long-context transformer applications, such as large language models (LLMs) with massive context windows.
Summary updated