[Paper Review] Mixture of Distributions Matters: Dynamic Sparse Attention for Efficient Video Diffusion Transformers
MOD-DiT introduces a sampling-free dynamic sparse attention framework for video diffusion transformers, modeling attention as a dynamic mixture of three patterns (block-diagonal, parallel-to-main-diagonal, vertical) to achieve faster inference with maintained video quality across multiple models.
While Diffusion Transformers (DiTs) have achieved notable progress in video generation, this long-sequence generation task remains constrained by the quadratic complexity inherent to self-attention mechanisms, creating significant barriers to practical deployment. Although sparse attention methods attempt to address this challenge, existing approaches either rely on oversimplified static patterns or require computationally expensive sampling operations to achieve dynamic sparsity, resulting in inaccurate pattern predictions and degraded generation quality. To overcome these limitations, we propose a \underline{ extbf{M}}ixture-\underline{ extbf{O}}f-\underline{ extbf{D}}istribution extbf{DiT} ( extbf{MOD-DiT}), a novel sampling-free dynamic attention framework that accurately models evolving attention patterns through a two-stage process. First, MOD-DiT leverages prior information from early denoising steps and adopts a {distributed mixing approach} to model an efficient linear approximation model, which is then used to predict mask patterns for a specific denoising interval. Second, an online block masking strategy dynamically applies these predicted masks while maintaining historical sparsity information, eliminating the need for repetitive sampling operations. Extensive evaluations demonstrate consistent acceleration and quality improvements across multiple benchmarks and model architectures, validating MOD-DiT's effectiveness for efficient, high-quality video generation while overcoming the computational limitations of traditional sparse attention approaches.
Motivation & Objective
- Identify the dynamic mixture patterns in attention maps of video diffusion transformers (block-diagonal, parallel-to-main-diagonal, vertical).
- Develop a sampling-free dynamic sparse attention mechanism that adapts to denoising steps for efficient inference.
- Reconstruct and predict attention sparsity maps to enable high-accuracy sparse computation without sampling overhead.
- Demonstrate hardware-friendly implementations that yield speedups while preserving video quality across multiple vDiT models.
- Validate the approach on popular video diffusion transformers and benchmarks to substantiate efficiency and quality gains.
Proposed method
- Reveals three core attention patterns in vDiTs and models their dynamic mixture via a generalized linear approximation of attention sparsity maps.
- Implements a sampling-free dynamic sparse attention by reconstructing complete attention maps, linearly predicting pattern intensities across denoising steps, and generating dynamic masks per head and step.
- Uses a three-stage process: sparsity map reconstruction, linear pattern prediction, and dynamic mask generation.
- Employs a warm-up phase with full attention to capture initial dependencies before switching to sparse computation.
- Optimizes hardware performance with a custom least-squares kernel, FlashAttention-2 for warm-up, and block-wise attention execution.
- Maintains sparsity evolution by periodically reconstructing attention maps and applying top-K pattern-based masking.
Experimental results
Research questions
- RQ1How can we accurately model the dynamic mixture of distribution patterns in attention maps of vDiTs during denoising (Q1)?
- RQ2How can we design a sampling-free dynamic sparse attention algorithm that adapts to denoising steps while maintaining high-quality video generation (Q2)?
- RQ3Can a linear combination of predefined pattern bases (block-diagonal, parallel-diagonal, vertical) capture the evolving sparsity maps across steps?
- RQ4What hardware optimizations enable real-time inference with MOD-DiT on large video diffusion models?
Key findings
- MOD-DiT achieves substantial speedups over baseline sparse attention methods across multiple video diffusion models.
- Attention maps in vDiTs can be well-approximated as a linear combination of three structured patterns with evolving intensities.
- A warm-up full-attention phase followed by sampling-free linear pattern prediction maintains or improves video quality while increasing efficiency.
- Dynamic mask generation leveraging top-K pattern selection and conditional block-diagonal preservation sustains high sparsity without compromising accuracy.
- Hardware-accelerated least-squares solving and block-wise attention enable practical deployment with modest overhead (1-2% of full-attention cost).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.