Manuscript Offprint
arXiv:2610.21129Sparse Attention for Video Generation Acceleration via Growing Sparsity and Reduced Search
Abstract
Diffusion Transformers (DiTs) dominate video generation but suffer from high inference cost due to the quadratic complexity of self-attention. Sparse attention mitigates this by skipping unnecessary computation in the attention matrix, but existing methods apply a fixed sparsity ratio throughout denoising and struggle to accurately determine which computations to skip. To address these limitations, we analyze attention dynamics through attention entropy and mean attention distance, and find that attention becomes increasingly concentrated across denoising steps. We further observe that blocks selected early continue to capture a large fraction of the total attention weight at later steps. These findings suggest two acceleration opportunities: the sparsity ratio should grow as denoising progresses, and earlier search results can be reused to reduce the search space. Based on these findings, we propose Growing Sparsity and Reduced Search (GSRS), a training-free framework that retains more computation early and progressively reduces it later, while restricting subsequent searches to an early candidate set to reduce search overhead. GSRS adopts Top-p selection for adaptive sparsity control, supported by a precise evaluation scheme that computes exact attention weights within the FlashAttention computation at negligible overhead. Experiments on HunyuanVideo and Wan 2.1 validate that GSRS achieves speedup while maintaining generation quality comparable to full attention.
1. Introduction
Diffusion Transformers (DiTs) [38] represent the dominant architecture in the field of video generation [5, 11, 16, 24], with models such as Sora [31], HunyuanVideo [20], and Wan [49] achieving state-of-the-art performance in high-resolution and long-duration synthesis. Despite their success, the 3D full attention [48] has emerged as the primary computational bottleneck within this framework [55]. The 3D full attention converts video and text tokens into a single unified token sequence and apply self-attention across them, which causes inference costs to rise sharply as video resolution and temporal length increase. For instance, generating a 125-frame 720p video using HunyuanVideo on a single NVIDIA A800 GPU requires processing more than 115K tokens and takes approximately 38 minutes, with self-attention operations accounting for roughly 80% of the total latency.
Recent studies have shown that attention computation in DiTs contains substantial redundancy [6, 44, 52, 68], with the majority of token interactions making a negligible contribution to the final output. Sparse attention methods [14, 61] exploit this redundancy by partitioning the attention matrix into fixed-size blocks and selecting a subset of blocks to compute. Existing sparse attention strategies generally fall into two categories. Static methods [21, 22, 30, 51, 65] restrict block interactions to fixed windows, and dynamic methods [19, 29, 39, 43, 56, 58, 67] identify critical blocks at runtime. Critical blocks are blocks that actually contribute to the final output. These approaches achieve notable speedups, yet they share two limitations. First, a fixed sparsity ratio or selection threshold may allocate computation inefficiently across denoising steps. Second, accurately and efficiently identifying critical blocks remains challenging. Static methods rely on predefined blocks that may misalign with the ground truth. Evaluating block importance on the fly is expensive for dynamic methods, which may reduce identification accuracy to improve evaluation efficiency.
A detailed analysis of how attention behavior changes during the denoising process can guide the design of a better sparse attention strategy. To characterize this change, we measure how concentrated each query's attention is via attention entropy [1] and how far each query attends to via mean attention distance [23]. Lower entropy indicates that attention is focused on fewer tokens, while shorter distance means attention is more localized on nearby tokens. We observe that both metrics generally decrease across denoising steps, meaning that attention focuses on fewer and closer tokens as denoising progresses. This observation suggests growing sparsity. Retaining more computation early and progres-
Corresponding author.
sively reducing it later can improve the quality-efficiency trade-off. Meanwhile, we find that a candidate set of blocks selected early in denoising continues to capture a large fraction of the total attention weight at later steps. This finding suggests reduced search. Subsequent searches can focus on the candidate set established at an early denoising step rather than repeatedly evaluating all blocks, reducing search overhead while maintaining high coverage of critical blocks.
Based on these insights, we propose Growing Sparsity and Reduced Search (GSRS), a training-free framework that translates the above findings into two concrete acceleration strategies. To realize growing sparsity, GSRS progressively lowers selection thresholds over denoising steps, retaining more computation early and allowing greater sparsity later. To realize reduced search, GSRS establishes a candidate set of blocks at an early denoising step and restricts subsequent searches to this set, avoiding repeated evaluation of all blocks. This helps reduce search overhead while maintaining high coverage of critical blocks. Both mechanisms rely on selecting critical blocks at each search step. GSRS adopts cumulative attention probability (Top-p) [17, 25, 72] to adaptively adjust the number of retained blocks based on the actual attention concentration, which requires precise measurement of block importance to correctly select critical blocks. To support reliable Top-p selection, we design a precise block importance evaluation scheme fused into the FlashAttention [9] computation at negligible overhead. Together, these strategies allocate computation according to the changing attention concentration and reduce the cost of identifying critical blocks, improving the quality-efficiency trade-off.
Our contributions are summarized as follows:
• We systematically analyze DiT attention using attention entropy, mean attention distance, and how much attention weight early-selected blocks retain at later denoising steps, providing empirical motivation for growing sparsity and reduced search.
• We propose GSRS, a training-free sparse attention framework that combines growing sparsity and reduced search. To support reliable Top-p selection in GSRS, we design a precise block importance evaluation scheme fused into FlashAttention at negligible overhead.
• Extensive experiments on HunyuanVideo and Wan2.1 demonstrate that GSRS achieves up to speedup while maintaining generation quality comparable to full attention, and delivers a superior quality-efficiency trade-off compared to compared sparse attention methods.
Sparse Attention in Video DiTs. Static methods [30, 51, 65] predefine spatial-temporal sparse patterns based on local windows or head-type classification, offering simplicity but limited adaptability to diverse attention behaviors. Dynamic methods [42, 53, 56, 63, 67, 69] perform runtime block selection through various importance estimation strategies, achieving better adaptability but struggling to balance identification accuracy with search overhead. Despite their diverse strategies, these methods do not exploit how attention behavior changes across denoising steps.
Other Acceleration Techniques for DiTs. Beyond sparse attention, several orthogonal techniques accelerate DiT inference. Caching-based methods [7, 28, 34, 35, 57, 70] reduce redundant computation by reusing intermediate activations across denoising steps. Low-bit attention quantization methods [4, 12, 26, 27, 52, 64] accelerate inference by reducing the numerical precision of attention computation. Step distillation methods [10, 13, 15, 36, 62, 71] reduce the number of sampling steps required. Bottleneck Sampling [45] employs variable resolution across different sampling stages to reduce token count during intermediate phases. These approaches are complementary to sparse attention and can be combined with our method for further speedup.
3. Preliminary
3.1. Attention and FlashAttention
In the self-attention mechanism [48], input tokens are projected into query, key, and value matrices , where is the sequence length and is the head dimension. The attention output is computed as:
which requires materializing the full attention matrix, incurring time and memory cost. FlashAttention [8, 9, 40, 60] addresses this by partitioning Q, K, V into blocks and computing attention incrementally without materializing the full matrix. During this process, it maintains a per-row Log-Sum-Exp (LSE) [2] value as the global normalization factor, which we later leverage for precise block importance evaluation ( ). A detailed description of FlashAttention's computation is provided in Appendix A.1.

(a) Hunyuan: Entropy

(b) Hunyuan: MAD

(c) Wan2.1: Entropy

(d) Wan2.1: MAD
Figure 1. Quantitative analysis of attention dynamics in DiT models. The subfigures (a–d) displays the variation of attention entropy and mean attention distance (MAD) across 10 diverse prompts, where curves of different shades represent individual samples. Tokens are reordered via Hilbert curves to preserve spatial-temporal adjacency before computing positional distances (Appendix A.6).
3.2. Block Sparse Attention
Block sparse attention reduces computation by skipping irrelevant blocks during the FlashAttention loop. Given a sparse mask , the sparse attention output is computed as:
where denotes element-wise masking that excludes uns-elected blocks from the softmax computation. In practice, these blocks are simply skipped during the FlashAttention tiling loop, avoiding both computation and memory access.
We measure attention recall as the fraction of total attention weight captured by the selected blocks:
where denotes the full attention weights. Higher recall indicates that the selected blocks capture more of the total attention weight.

Figure 2. Attention recall under a fixed sparse mask. A sparse mask is constructed at an early denoising step and held fixed at subsequent steps. The mask maintains high attention recall throughout subsequent steps on both HunyuanVideo and Wan2.1.
4. Attention Dynamics Analysis
Before presenting our method, we investigate how attention behavior changes during the denoising process. To characterize these dynamics, we introduce two metrics based on the post-softmax attention weight from query i to key j. Attention entropy and mean attention distance are defined respectively as:
measures how concentrated the attention distribution is. Lower entropy means attention is focused on fewer tokens. measures the weighted average distance between the query i and the keys j it attends to, where denotes the distance between positions i and j in the token sequence. Smaller mean attention distance means attention is focused on nearby tokens.
We conduct systematic analysis on HunyuanVideo and Wan2.1 across multiple prompts, yielding the following key observations.
Observation 1: Attention entropy and distance generally decrease across denoising steps. As shown in Figure 1(a-d), both attention entropy and mean attention mean attention distance generally decrease across denoising steps on HunyuanVideo and Wan2.1. This indicates that attention focuses on fewer and closer tokens as denoising progresses. This trend remains consistent across different model architectures and independent of specific inputs, indicating an inherent property of the denoising process. This motivates us to allocate more computation to early denoising steps and progressively increase sparsity later to improve the quality-efficiency trade-off.
Observation 2: An early candidate set of blocks maintains high attention recall at later steps. Figure 3 il-
Step 5
Double Layer 1
Head 23
Step 17

Step 29
Single Layer 33
Head 11
Step 37
Step 49
Figure 3. Block-level attention patterns across denoising steps. Each cell represents the attention weight between a query block and a key block. Two representative heads at steps 5, 17, 29, 37, and 49 on HunyuanVideo. Tokens are reordered via Hilbert curves [3] to preserve spatial-temporal adjacency. As attention becomes more concentrated, blocks with high attention weights early in denoising continue to capture substantial attention weight, while those with low weights tend to retain low weights at later steps.
lustrates that blocks with high attention weights early in denoising continue to capture substantial attention weight at later steps. Blocks with low attention weights early in denoising also tend to retain low weights at later steps. To quantify this observation, we select a candidate set of blocks at an early denoising step and construct a sparse mask from this set. We then keep this mask fixed and measure its attention recall at subsequent denoising steps. As shown in Figure 2, this candidate set continues to capture a large fraction of the total attention weight on both HunyuanVideo and Wan2.1. This motivates us to restrict subsequent searches to the candidate set established early in denoising, reducing search overhead while maintaining high coverage of critical blocks.
5. Methodology
Guided by the analysis in Section 4, we propose GSRS, a training-free framework that applies increasing sparsity across denoising steps while reducing the search space for block selection. We visualize the workflow of GSRS in Figure 4. At the first search step, GSRS evaluates all blocks and establishes a baseline sparse mask. All subsequent searches are restricted to this baseline mask with progressively tighter Top-p thresholds ( ). Between search steps, the most recent mask is directly reused. Central to this framework is Top-p block selection for adaptive sparsity control ( ), which requires precise measurement of each block's importance for reliable selection. To support reliable Top-p selection, we propose a precise block importance evaluation scheme fused into the FlashAttention computation at negligible overhead ( ).
5.1. Growing Sparsity and Reduced Search
The search strategy of GSRS comprises two complementary mechanisms: growing sparsity that increases the sparsity ratio across denoising steps to retain more computation early and reduce it later, and reduced search that limits the search space to an early candidate set while preserving dynamic block selection within this set.
Growing Sparsity. As revealed by Observation 1, attention entropy and mean attention distance generally decrease across denoising steps. This motivates allocating more computation to early steps and increasing sparsity later. GSRS employs cumulative attention probability (Top-p) for block selection. Blocks are sorted by their importance in descending order and retained until their cumulative importance exceeds a threshold p. Inspired by the observation, GSRS applies a decreasing threshold across search steps, starting from a high and gradually lowering to . Early steps retain more blocks because the model's attention is still spread widely, while later steps safely discard more blocks as attention concentrates on fewer tokens. As validated in Table 2, this decreasing threshold schedule consistently outperforms both fixed and shuffled p configurations under comparable computational budgets.
Reduced Search. Observation 2 shows that a candidate set of blocks selected early in denoising continues to capture a large fraction of the total attention weight at later steps.
Growing Sparsity

Figure 4. Overview of GSRS. The top row illustrates growing sparsity. As denoising progresses, progressively tighter Top-p thresholds retain fewer blocks, yielding increasingly sparse masks. The bottom row illustrates reduced search. The first search step evaluates all blocks to establish a baseline sparse mask. Subsequent search steps only evaluate blocks within this baseline mask, while non-search steps directly reuse the most recent mask without re-evaluation.
GSRS uses this candidate set to limit subsequent searches while maintaining high coverage of critical blocks. Given a predefined set of search steps , GSRS begins with full attention warmup for the first steps. At step , a full-space evaluation establishes a baseline sparse mask . The blocks selected by form a fixed candidate set for subsequent searches. At each subsequent search step ( ), GSRS re-evaluates all blocks within instead of restricting selection to the previously selected mask . It then applies threshold to obtain an updated sparse mask , allowing previously omitted blocks within to be selected again. Between search steps, the most recently updated sparse mask is directly reused without re-evaluation. This design preserves the ability to dynamically select blocks while reducing search overhead compared with evaluating all blocks at every search step, as validated in Table 3.
5.2. Adaptive Block Selection via Top-p
Prior works [21, 51, 53] have shown that sparse patterns varies substantially across layers and heads. A fixed Top-k strategy assigns the same number of blocks to every head, regardless of its actual sparse pattern. We also observe this variation in our experiments and provide detailed analysis in Appendix K.4 and K.5. To address this, GSRS employs cumulative attention probability (Top-p) for block selection. Blocks are sorted by their importance in descending order and retained until their cumulative importance exceeds a threshold p (Algorithm 3). For heads where a few blocks carry most of the attention weight, Top-p retains only those few blocks. For heads where attention is distributed more evenly, more blocks are needed to reach the same threshold p. A single threshold p thus achieves adaptive sparsity across layers and heads without any manual tuning. The advantage of Top-p over fixed Top-k is validated in Section 6.3.
5.3. Precise Block Importance Evaluation
The Top-p selection described above requires precise measurement of each block's importance to determine which blocks to retain and how many are needed to reach the cumulative probability threshold. In this section, we explain why obtaining this measurement within FlashAttention is challenging, and present our two-phase evaluation scheme.
Block Importance Definition. Given a query block u and a key block v, each containing B tokens, we define the block importance as the average attention weight that query block u assigns to key block v:
(5)
Here, is the scaled attention score between query and key , and denotes the corresponding post-softmax attention weight. The row-wise normalization factor is computed via Eq. 12, where contains the attention scores between query and all key tokens. For each query block , the block importance sums to 1 over all key blocks . This property is essential for Top-p selection, which relies on accumulating block importance until the sum reaches the threshold .
The Challenge of Computing Precise Block Importance. Computing requires the global normalization factor , which depends on the scores between query and all key tokens. However, FlashAttention processes key blocks one at a time and only produces the final after the last key block has been processed (see Appendix A.1). This means that during the computation, we cannot yet compute exact attention weights for any individual block. Prior work [53] addresses this by reusing the cached from a previous denoising step, denoted , to compute an approximate block importance:
However, as the attention distribution changes across denoising steps, the true normalization factor drifts away from the cached . This drift scales each row's block importance by a factor of , causing them to no longer sum to 1. Since Top-p selects blocks until their importance sums exceed a threshold , inaccurate sums directly affect the selection. When the sums exceed 1, the threshold is reached too early, causing important blocks to be incorrectly discarded.
Two-Phase Block Importance Evaluation. GSRS computes block importance in two phases without relying on cached LSE values. During FlashAttention computation, we record the log-sum-exp of attention scores for each query row within each key block. Once the current row-wise LSE becomes available, we normalize these stored statistics and average the normalized weights over query rows to obtain block importance.
Phase 1: Fused block log-sum-exp computation. During FlashAttention computation, we compute and store the log-sum-exp of attention scores within each key block:
where is the maximum score within key block for query . Computing keeps the exponent non-positive, preventing numerical overflow. We store only one scalar per query row and key block, avoiding storage of the full attention matrix.
Phase 2: Block importance recovery. After FlashAttention finishes and the current row-wise LSE is available, we recover block importance as
This computation recovers the exact block importance defined in Eq. (5) without using cached LSE. A detailed derivation is provided in Appendix A.2.
Phase 1 is fused into FlashAttention, while Phase 2 requires only lightweight post-processing of the stored statistics. Together, they require no additional pass over the data and introduces negligible overhead in both latency (Figure 5) and memory (Table 6). The complete procedure is detailed in Appendix A.3.
Differences from AdaSpa and LiteAttention. AdaSpa [53] uses a fixed sparsity target and evaluates all blocks at scheduled search steps using cached LSE values. GSRS instead progressively lowers Top-p thresholds and restricts subsequent searches to , reducing both attention computation and search overhead. Moreover, GSRS computes block importance from block log-sum-exp statistics and the current row-wise LSE, avoiding errors caused by cached LSE values and supporting reliable Top-p/Top-k selection. Once LiteAttention [41] skips a block, it excludes that block from both evaluation and computation for the remaining denoising steps. GSRS re-evaluates all blocks within at each search step, allowing previously omitted blocks to be selected again as attention changes. See Appendix J for more details.
6. Experiments
6.1. Experimental Setup
Models and Datasets. We evaluate GSRS on two open-sourced DiT models, Wan2.1-T2V-14B [49] and HunyuanVideo-T2V-13B [20]. Both generate 720p videos with 50 denoising steps. In latent space, Wan2.1 and HunyuanVideo process 21 and 32 frames respectively, with 3,600 tokens per frame. For all experiments, we use the original dataset from VBench [18] for both models.
Metrics. We use PSNR [37], SSIM [50] and LPIPS [66] to measure pixel-level similarity between videos generated with sparse attention and full attention. For video quality
Table 1. Quantitative evaluation of quality and efficiency. We evaluate on Wan 2.1 and HunyuanVideo. Bold and underline denote the best and second best results.
| Model | Method | Quality | Efficiency | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| PSNR | SSIM | LPIPS | SubConsist | ImageQual | VBench-Q | Density | Latency | Speedup | ||
| Wan 2.1 | Full Attention | - | - | - | 98.26% | 73.29% | 83.75% | 100% | 3689s | 1.00× |
| SpargeAttn [63] | 20.55 | 0.757 | 0.295 | 94.88% | 72.80% | 82.21% | 42.00% | 2732s | 1.35× | |
| SVG [51] | 20.87 | 0.786 | 0.277 | 97.74% | 71.99% | 83.69% | 40.14% | 2675s | 1.38× | |
| SVG 2 [58] | 22.83 | 0.847 | 0.214 | 97.80% | 72.23% | 83.19% | 32.08% | 2455s | 1.50× | |
| SVOO [33] | 23.34 | 0.865 | 0.195 | 97.89% | 72.42% | 83.33% | 32.82% | 2610s | 1.41× | |
| GSRS | 23.79 | 0.872 | 0.187 | 98.21% | 73.22% | 83.72% | 30.63% | 2380s | 1.55× | |
| Hunyuan | Full Attention | - | - | - | 96.82% | 70.71% | 83.98% | 100% | 3057s | 1.00× |
| SpargeAttn [63] | 27.79 | 0.907 | 0.192 | 96.55% | 70.65% | 83.85% | 33.00% | 2014s | 1.52× | |
| SVG [51] | 27.64 | 0.895 | 0.221 | 96.71% | 68.98% | 83.21% | 31.65% | 2066s | 1.48× | |
| SVG 2 [58] | 29.27 | 0.914 | 0.213 | 96.60% | 66.50% | 82.24% | 26.38% | 1978s | 1.55× | |
| SVOO [33] | 30.31 | 0.931 | 0.172 | 96.88% | 69.19% | 82.97% | 27.12% | 1975s | 1.55× | |
| GSRS | 32.37 | 0.957 | 0.138 | 96.66% | 70.79% | 84.01% | 25.06% | 1825s | 1.68× | |
evaluation, we report Subject Consistency, Imaging Quality, and the overall quality score VBench-Q from VBench [18]. To quantify the computational saving of sparse attention, we report density, defined as the ratio of actual computation performed to that of full attention. For efficiency, we report the end-to-end latency and the overall speedup.
Baselines. We compare GSRS against both static and dynamic sparse attention methods. For static methods, we include SVG [51]. For dynamic methods, we include SpargeAttention [63], SVG 2 [58] and SVOO [33]. All baselines are evaluated under the same hardware configuration and input settings as GSRS.
Implementation Details. We implement GSRS using Tile-Lang [46] for fused attention computation and block importance evaluation at search steps, and the CUDA kernels from Block Sparse Attention [14] for sparse attention computation at non-search steps. All experiments are conducted on a single NVIDIA A800 GPU with CUDA 12.8. Tokens are reordered using the Generalized Hilbert curve [3] with a block size of . By default, we perform search at denoising steps with Top-p thresholds . For all experiments, the first 20% of denoising steps are executed with full attention as warmup before applying sparse computation. Experiments with different warmup lengths are provided in Appendix C.
6.2. Main Results
Similarity. As shown in Table 1, GSRS achieves the highest PSNR and SSIM on both models, reaching an average PSNR of 32.75 on HunyuanVideo and 23.79 on Wan2.1, outperforming all baselines. The high similarity scores indicate that the sparse attention output of GSRS closely approximates full attention, preserving fine-grained details in the generated videos. Figure 8 further shows that GSRS also achieves a more stable distribution, indicating more consistent performance across diverse prompts.
Quality. GSRS maintains VBench-Q scores close to full attention and outperforms all evaluated sparse attention baselines on both models. GSRS achieves the highest VBench-Q among the evaluated sparse attention methods on both models, with scores of 83.72% on Wan2.1 and 84.01% on HunyuanVideo, comparable to 83.75% and 83.98% for full attention. Full VBench-Q results are provided in Appendix B.
Efficiency. GSRS achieves the lowest attention density and the highest speedup among the evaluated sparse attention methods on both models. It reduces density to 30.63% on Wan2.1 and 25.06% on HunyuanVideo, achieving end-to-end inference speedups of 1.55× and 1.68×, respectively. As shown in Appendix G, GSRS also achieves the highest speedup among the evaluated methods on NVIDIA H800, reaching 1.78× on Wan2.1 and 2.21× on HunyuanVideo.
6.3. Ablation Study
We conduct ablation studies on HunyuanVideo to validate each design choice of GSRS. All ablations use the default configuration with search steps and cumulative probability thresholds . Experiments are evaluated on a fixed subset of the VBench
Table 2. Effect of Top-p schedule configurations on HunyuanVideo.
| p schedule | PSNR↑ | VB-Q↑ | Latency↓ |
|---|---|---|---|
| {0.95, 0.90, 0.85, 0.80} | 31.96 | 84.99 | 1825 |
| {0.95, 0.80, 0.85, 0.90} | 31.64 | 84.98 | 1850 |
| {0.93, 0.93, 0.93, 0.93} | 31.20 | 84.90 | 1852 |
| {0.90, 0.90, 0.90, 0.90} | 30.28 | 84.89 | 1774 |
Table 4. Ablation on search steps on HunyuanVideo.
| PSNR↑ | VB-Q↑ | Latency↓ | |
|---|---|---|---|
| {10} | 32.94 | 84.93 | 2076 |
| {10, 30} | 32.59 | 84.88 | 1870 |
| {10, 20, 30} | 31.89 | 84.88 | 1845 |
| {10, 30, 40} | 32.59 | 84.89 | 1882 |
| {10, 20, 30, 40} | 31.96 | 84.99 | 1825 |
dataset. VB-Q represent VBench Quality (VBench-Q). Since PSNR measures pixel-level deviation while VBench-Q better reflects perceptual quality, we consider both metrics with emphasis on VBench-Q for quality assessment.
Decreasing Schedule. As shown in Table 2, the decreasing schedule achieves the highest PSNR and VBench-Q among the compared configurations. The shuffled schedule lowers PSNR to 31.64 at similar latency, highlighting the benefit of decreasing thresholds over denoising steps. Compared with the fixed schedule with , the decreasing schedule improves PSNR from 31.20 to 31.96 while reducing latency from 1852s to 1825s. These results support retaining more computation early and progressively reducing it later to improve the quality-efficiency trade-off. Appendix F provides results for additional Top-p configurations.
Search Strategies. With previous-mask search, each search step is restricted to the mask selected at the preceding search step, so previously excluded blocks cannot be selected again. Without Reduced Search, each search step evaluates all blocks in the full attention matrix instead of restricting to the baseline mask . Table 3 shows that removing Reduced Search increases density from 25.06% to 28.62% and latency from 1825s to 1990s while maintaining comparable VBench-Q. As shown in Figure 7, reduced search lowers the total search overhead by on HunyuanVideo, confirming that restricting searches to the baseline mask is both safe and efficient. Previous-mask search reduces latency to 1757s but lowers PSNR and VBench-Q to 30.87 and 84.80, respectively, highlighting the benefit of preserving dynamic block selection within .
Precise Block Importance Evaluation. We replace our precise block importance evaluation scheme with an estima- tor that uses cached LSE values from a previous denoising step. As shown in Table 3, this reduces PSNR from 31.96 to 25.32 and VBench-Q from 84.99 to 84.04. Cached LSE values distort block importance and can alter both cumulative probability sums and block rankings, leading to inaccurate selection. These results demonstrate the effectiveness of our precise block importance evaluation scheme in supporting reliable Top-p selection. Our scheme also enables accurate Top-k block selection, as further evaluated in Appendix J.
Table 3. Ablation on search strategies and block importance evaluation on HunyuanVideo. Den. represents Density.
| Config | PSNR↑ | VB-Q↑ | Den.↓ | Latency↓ |
|---|---|---|---|---|
| GSRS | 31.96 | 84.99 | 25.06 | 1825 |
| w/ Cached LSE | 25.32 | 84.04 | 20.89 | 1730 |
| w/ Previous-mask Search | 30.87 | 84.80 | 23.06 | 1757 |
| w/o Reduced Search | 32.57 | 84.98 | 28.62 | 1990 |
Table 5. Comparison of Top-p and Top-k selection strategies on HunyuanVideo.
| Strategy | PSNR↑ | VB-Q↑ | Latency↓ |
|---|---|---|---|
| Top-p (ours) | 31.96 | 84.99 | 1825 |
| Top-k (25%) | 29.84 | 84.95 | 1813 |
| Top-k (50%) | 32.67 | 85.03 | 2245 |
Top-p vs Top-k. Table 5 compares Top-p with Top-k under matched density. Top-k (25%) matches the average density of Top-p but only achieves a PSNR of 29.84, significantly lower than Top-p's 31.96 at similar latency. Top-k (50%) achieves slightly higher PSNR but incurs substantially higher latency of 1304s with only marginal improvement in VBench-Q. This confirms that adaptive Top-p selection allocates computation more effectively than fixed budgets.
Search Steps. Table 4 shows that all configurations achieve high PSNR above 31.89 and stable VBench-Q scores, indicating that the generation quality is well preserved regardless of the number of search steps. Among them, the four-step configuration {10, 20, 30, 40} achieves the highest VBench-Q score while maintaining low latency, resulting in the best overall trade-off between quality and efficiency.
7. Conclusion
In this paper, we propose GSRS, a training-free sparse attention framework featuring grow sparsity and reduced search to accelerate video DiT inference. Combined with Top-p and precise block importance evaluation, GSRS achieves up to speedup while maintaining generation quality comparable to full attention.
References
[1] Ali Araabi, Vlad Niculae, and Christof Monz. Entropy-and distance-regularized attention improves low-resource neural machine translation. In Proceedings of the 16th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track), pages 140–153, 2024. 1
[2] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. 2
[3] Jakub Červený and Contributors. Gilbert: Space-filling curve for rectangular domains of arbitrary size. https://github.com/jakubcerveny/gilbert, 2025. Accessed: 2025-04-16. 4, 7, 17
[4] Yi-Chung Chen, Zhi-Kai Huang, and Jing-Ren Chen. Step-baq: Stepping backward as correction for quantized diffusion models. Advances in Neural Information Processing Systems, 37:54054–54078, 2024. 2
[5] Zhe Chen, Weiyun Wang, Hao Tian, Shenglong Ye, Zhangwei Gao, Erfei Cui, Wenwen Tong, Kongzhi Hu, Jiapeng Luo, Zheng Ma, et al. How far are we to gpt-4v? closing the gap to commercial multimodal models with open-source suites. Science China Information Sciences, 67(12):220101, 2024. 1
[6] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. 1
[7] Huanpeng Chu, Wei Wu, Guanyu Feng, and Yutao Zhang. Omnicache: A trajectory-oriented global perspective on training-free cache reuse for diffusion transformer models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 16302–16312, 2025. 2
[8] Tri Dao. Flashattention-2: Faster attention with better parallelism and work partitioning. In The Twelfth International Conference on Learning Representations, 2024. 2
[9] Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in neural information processing systems, 35:16344–16359, 2022. 2
[10] Zihan Ding, Chi Jin, Difan Liu, Haitian Zheng, Krishna Kumar Singh, Qiang Zhang, Yan Kang, Zhe Lin, and Yuchen Liu. Dollar: Few-step video generation via distillation and latent reward optimization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 17961–17971, 2025. 2
[11] Hao Fei, Shengqiong Wu, Wei Ji, Hanwang Zhang, and Tat-Seng Chua. Dysen-vdm: Empowering dynamics-aware text-to-video diffusion with llms. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 7641–7653, 2024. 1
[12] Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alis-tarh. Gptq: Accurate post-training quantization for generative pre-trained transformers. arXiv preprint arXiv:2210.17323, 2022. 2
[13] Youping Gu, Xiaolong Li, Yuhao Hu, Minqi Chen, and Bohan Zhuang. Blade: Block-sparse attention meets step distillation for efficient video generation. arXiv preprint arXiv:2508.10774, 2025. 2
[14] Jialin Guo, Haotian Tang, Shang Yang, Zhao Zhang, Zirui Liu, and Song Han. Block sparse attention. https://github.com/mit-han-lab/Block-Sparse-Attention, 2024. 1, 7, 16
[15] Jonathan Ho, William Chan, Chitwan Saharia, Jay Whang, Ruiqi Gao, Alexey Gritsenko, Diederik P Kingma, Ben Poole, Mohammad Norouzi, David J Fleet, et al. Imagen video: High definition video generation with diffusion models. arXiv preprint arXiv:2210.02303, 2022. 2
[16] Jonathan Ho, Tim Salimans, Alexey Gritsenko, William Chan, Mohammad Norouzi, and David J Fleet. Video diffusion models. Advances in neural information processing systems, 35:8633–8646, 2022. 1
[17] Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. The curious case of neural text degeneration. In International Conference on Learning Representations, 2019. 2
[18] Ziqi Huang, Yinan He, Jiashuo Yu, Fan Zhang, Chenyang Si, Yuming Jiang, Yuanhan Zhang, Tianxing Wu, Qingyang Jin, Nattapol Chanpaisit, Yaohui Wang, Xinyuan Chen, Limin Wang, Dahua Lin, Yu Qiao, and Ziwei Liu. VBench: Comprehensive benchmark suite for video generative models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024. 6, 7
[19] Huiqiang Jiang, Yucheng Li, Chengruidong Zhang, Qianhui Wu, Xufang Luo, Surin Ahn, Zhenhua Han, Amir H Abdi, Dongsheng Li, Chin-Yew Lin, et al. Minference 1.0: Accelerating pre-filling for long-context llms via dynamic sparse attention. Advances in Neural Information Processing Systems, 37:52481–52515, 2024. 1, 2
[20] Weijie Kong, Qi Tian, Zijian Zhang, Rox Min, Zuozhuo Dai, Jin Zhou, Jiangfeng Xiong, Xin Li, Bo Wu, Jianwei Zhang, et al. Hunyuanvideo: A systematic framework for large video generative models. arXiv preprint arXiv:2412.03603, 2024. 1, 6
[21] Qirui Li, Guangcong Zheng, Qi Zhao, Jie Li, Bin Dong, Yiwu Yao, and Xi Li. Compact attention: Exploiting structured spatio-temporal sparsity for fast video generation. arXiv preprint arXiv:2508.12969, 2025. 1, 5
[22] Xingyang Li, Muyang Li, Tianle Cai, Haocheng Xi, Shuo Yang, Yujun Lin, Lvmin Zhang, Songlin Yang, Jinbo Hu, Kelly Peng, et al. Radial attention: sparse attention with energy decay for long video generation. arXiv preprint arXiv:2506.19852, 2025. 1
[23] Yang Li, Zhichen Dong, Yuhan Sun, Weixun Wang, Shaopan Xiong, Yijia Luo, Jiashun Liu, Han Lu, Jiamang Wang, Wenbo Su, et al. Attention illuminates llm reasoning: The preplan-and-anchor rhythm enables fine-grained policy optimization. arXiv preprint arXiv:2510.13554, 2025. 1
[24] Bin Lin, Yunyang Ge, Xinhua Cheng, Zongjian Li, Bin Zhu, Shaodong Wang, Xianyi He, Yang Ye, Shenghai Yuan, Liuhan Chen, et al. Open-sora plan: Open-source large video generation model. arXiv preprint arXiv:2412.00131, 2024. 1
[25] Chaofan Lin, Jiaming Tang, Shuo Yang, Hanshuo Wang, Tian Tang, Boyu Tian, Ion Stoica, Song Han, and Mingyu Gao. Twilight: Adaptive attention sparsity with hierarchical top-p pruning. arXiv preprint arXiv:2502.02770, 2025. 2
[26] Haokun Lin, Haobo Xu, Yichen Wu, Jingzhi Cui, Yingtao Zhang, Linzhan Mou, Linqi Song, Zhenan Sun, and Ying Wei. Duquant: Distributing outliers via dual transformation makes stronger quantized llms. Advances in Neural Information Processing Systems, 37:87766–87800, 2024. 2
[27] Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. Awq: Activation-aware weight quantization for on-device llm compression and acceleration. Proceedings of machine learning and systems, 6:87–100, 2024. 2
[28] Feng Liu, Shiwei Zhang, Xiaofeng Wang, Yujie Wei, Haonan Qiu, Yuzhong Zhao, Yingya Zhang, Qixiang Ye, and Fang Wan. Timestep embedding tells: It's time to cache for video diffusion model. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 7353–7363, 2025. 2
[29] Liu Liu, Zheng Qu, Zhaodong Chen, Yufei Ding, and Yuan Xie. Transformer acceleration with dynamic sparse attention. arXiv preprint arXiv:2110.11299, 2021. 1
[30] Songhua Liu, Zhenxiong Tan, and Xinchao Wang. Clear: Conv-like linearization revs pre-trained diffusion transformers up. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. 1, 2
[31] Yixin Liu, Kai Zhang, Yuan Li, Zhiling Yan, Chujie Gao, Ruoxi Chen, Zhengqing Yuan, Yue Huang, Hanchi Sun, Jianfeng Gao, et al. Sora: A review on background, technology, limitations, and opportunities of large vision models. arXiv preprint arXiv:2402.17177, 2024. 1
[32] Enzhe Lu, Zhejun Jiang, Jingyuan Liu, Yulun Du, Tao Jiang, Chao Hong, Shaowei Liu, Weiran He, Enming Yuan, Yuzhi Wang, et al. Moba: Mixture of block attention for long-context llms. arXiv preprint arXiv:2502.13189, 2025. 2
[33] Jiayi Luo, Jiayu Chen, Jiankun Wang, Cong Wang, Hanxin Zhu, Qingyun Sun, Chen Gao, Zhibo Chen, and Jianxin Li. Attention sparsity is input-stable: Training-free sparse attention for video generation via offline sparsity profiling and online QK co-clustering. In Proceedings of the 43rd International Conference on Machine Learning, pages 82177–82195. PMLR, 2026. 7, 18
[34] Zhengyao Lv, Chenyang Si, Junhao Song, Zhenyu Yang, Yu Qiao, Ziwei Liu, and Kwan-Yee K Wong. Fastercache: Training-free video diffusion model acceleration with high quality. In The Thirteenth International Conference on Learning Representations, 2025. 2
[35] Zehong Ma, Longhui Wei, Feng Wang, Shiliang Zhang, and Qi Tian. Magcache: Fast video generation with magnitude-aware cache. arXiv preprint arXiv:2506.09045, 2025. 2
[36] Weili Nie, Julius Berner, Nanye Ma, Chao Liu, Saining Xie, and Arash Vahdat. Transition matching distillation for fast video generation. arXiv preprint arXiv:2601.09881, 2026. 2
[37] OpenCV Contributors. Opencv: Open source computer vision library. https://github.com/opencv/opencv, 2025. Accessed: 2025-02-26. 6
[38] William Peebles and Saining Xie. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF international conference on computer vision, pages 4195–4205, 2023. 1
[39] Yifan Pu, Zhuofan Xia, Jiayi Guo, Dongchen Han, Qixiu Li, Duo Li, Yuhui Yuan, Ji Li, Yizeng Han, Shiji Song, et al. Efficient diffusion transformer with step-wise dynamic attention mediators. In European Conference on Computer Vision, pages 424–441. Springer, 2024. 1
[40] Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, and Tri Dao. Flashattention-3: Fast and accurate attention with asynchrony and low-precision. Advances in Neural Information Processing Systems, 37:68658–68685, 2024. 2
[41] Dor Shmilovich, Tony Wu, Aviad Dahan, and Yuval Domb. Liteattention: A temporal sparse attention for diffusion transformers. arXiv preprint arXiv:2511.11062, 2025. 6, 21
[42] Wenhao Sun, Rong-Cheng Tu, Yifu Ding, Jingyi Liao, Zhao Jin, Shunyu Liu, and Dacheng Tao. Vorta: Efficient video diffusion via routing sparse attention. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. 2
[43] Xin Tan, Yuetao Chen, Yimin Jiang, Xing Chen, Kun Yan, Nan Duan, Yibo Zhu, Daxin Jiang, and Hong Xu. Dsv: Exploiting dynamic sparsity to accelerate large-scale video dit training. arXiv preprint arXiv:2502.07590, 2025. 1
[44] Jiaming Tang, Yilong Zhao, Kan Zhu, Guangxuan Xiao, Baris Kasikci, and Song Han. Quest: query-aware sparsity for efficient long-context llm inference. In Proceedings of the 41st International Conference on Machine Learning, pages 47901–47911, 2024. 1
[45] Ye Tian, Xin Xia, Yuxi Ren, Shanchuan Lin, Xing Wang, Xuefeng Xiao, Yunhai Tong, Ling Yang, and Bin Cui. Training-free diffusion acceleration with bottleneck sampling. arXiv preprint arXiv:2503.18940, 2025. 2
[46] TileLang. Tilelang github repository. https://github.com/tile-ai/tilelang, 2024. 7, 16
[47] Philippe Tillet, Hsiang-Tsung Kung, and David Cox. Triton: an intermediate language and compiler for tiled neural network computations. In Proceedings of the 3rd ACM SIGPLAN International Workshop on Machine Learning and Programming Languages, pages 10–19, 2019. 23
[48] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. 1, 2
[49] Team Wan, Ang Wang, Baole Ai, Bin Wen, Chaojie Mao, Chen-Wei Xie, Di Chen, Feiwu Yu, Haiming Zhao, Jianxiao Yang, et al. Wan: Open and advanced large-scale video generative models. arXiv preprint arXiv:2503.20314, 2025. 1, 6
[50] Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600–612, 2004. 6
[51] Haocheng Xi, Shuo Yang, Yilong Zhao, Chenfeng Xu, Muyang Li, Xiuyu Li, Yujun Lin, Han Cai, Jintao Zhang, Dacheng Li, et al. Sparse video-gen: Accelerating video diffusion transformers with spatial-temporal sparsity. In International Conference on Machine Learning, pages 68208–68224. PMLR, 2025. 1, 2, 5, 7, 18
[52] Yifei Xia, Fangcheng Fu, Wentao Zhang, Jiawei Jiang, and Bin Cui. Efficient multi-task llm quantization and serving for multiple lora adapters. Advances in Neural Information Processing Systems, 37:63686–63714, 2024. 1, 2
[53] Yifei Xia, Suhan Ling, Fangcheng Fu, Yujie Wang, Huixia Li, Xuefeng Xiao, and Bin Cui. Training-free and adaptive sparse attention for efficient long video generation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 15982–15993, 2025. 2, 5, 6, 21
[54] Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. In The Twelfth International Conference on Learning Representations, 2023. 2
[55] Shuo Xiao, Dongqing Zhu, Chaogang Tang, and Zhenzhen Huang. Combining graph contrastive embedding and multi-head cross-attention transfer for cross-domain recommendation. Data Science and Engineering, 8(3):247–262, 2023. 1
[56] Ruyi Xu, Guangxuan Xiao, Haofeng Huang, Junxian Guo, and Song Han. Xattention: Block sparse attention with antidiagonal scoring. In International Conference on Machine Learning, pages 69819–69831. PMLR, 2025. 1, 2
[57] Qirui Yang, Runyu Jin, Ni Fan, Devasena Inupakutika, Bridget Davis, and Ming Zhao. Adacache: A disaggregated cache system with adaptive block size for cloud block storage. In 2023 IEEE 16th International Conference on Cloud Computing (CLOUD), pages 348–359. IEEE, 2023. 2
[58] Shuo Yang, Haocheng Xi, Yilong Zhao, Muyang Li, Jintao Zhang, Han Cai, Yujun Lin, Xiuyu Li, Chenfeng Xu, Kelly Peng, et al. Sparse videogen2: Accelerate video generation with sparse attention via semantic-aware permutation. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. 1, 7, 18
[59] Jingyang Yuan, Huazuo Gao, Damai Dai, Junyu Luo, Liang Zhao, Zhengyan Zhang, Zhenda Xie, Yuxing Wei, Lean Wang, Zhiping Xiao, et al. Native sparse attention: Hardware-aligned and natively trainable sparse attention. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 23078–23097, 2025. 2
[60] Ted Zadouri, Markus Hoehnerbach, Jay Shah, Timmy Liu, Vijay Thakkar, and Tri Dao. Flashattention-4: Algorithm and kernel pipelining co-design for asymmetric hardware scaling. arXiv preprint arXiv:2603.05451, 2026. 2
[61] Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big bird: Transformers for longer sequences. Advances in neural information processing systems, 33:17283–17297, 2020. 1
[62] Haiyu Zhang, Xinyuan Chen, Yaohui Wang, Xihui Liu, Yunhong Wang, and Yu Qiao. Accvideo: Accelerating video diffusion model with synthetic dataset. arXiv preprint arXiv:2503.19462, 2025. 2
[63] Jintao Zhang, Chendong Xiang, Haofeng Huang, Jia Wei, Haocheng Xi, Jun Zhu, and Jianfei Chen. Spargeattention: Accurate and training-free sparse attention accelerating any model inference. In International Conference on Machine Learning, pages 76397–76413. PMLR, 2025. 2, 7, 18
[64] Jintao Zhang, Pengle Zhang, Jun Zhu, Jianfei Chen, et al. Sageattention: Accurate 8-bit attention for plug-and-play inference acceleration. In The Thirteenth International Conference on Learning Representations, 2025. 2
[65] Peiyuan Zhang, Yongqi Chen, Runlong Su, Hangliang Ding, Ion Stoica, Zhengzhong Liu, and Hao Zhang. Fast video generation with sliding tile attention. In International Conference on Machine Learning, pages 74714–74731. PMLR, 2025. 1, 2, 17
[66] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In 2018 IEEE/CVF conference on computer vision and pattern recognition, pages 586–595. IEEE, 2018. 6
[67] Yuechen Zhang, Jinbo Xing, Bin Xia, Shaoteng Liu, Bohao PENG, Xin Tao, Pengfei Wan, Eric Lo, and Jiaya Jia. Training-free efficient video generation via dynamic token carving. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. 1, 2, 17
[68] Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuandong Tian, Christopher Ré, Clark Barrett, et al. H2o: Heavy-hitter oracle for efficient generative inference of large language models. Advances in Neural Information Processing Systems, 36:34661–34710, 2023. 1
[69] Tianchen Zhao, Ke Hong, Xinhao Yang, Xuefeng Xiao, Huixia Li, Feng Ling, Ruiqi Xie, SiQi Chen, Hongyu Zhu, Zhang Yichong, et al. Paroattention: Pattern-aware reordering for efficient sparse and quantized attention in visual generation models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. 2
[70] Xuanlei Zhao, Xiaolong Jin, Kai Wang, and Yang You. Real-time video generation with pyramid attention broadcast. In The Thirteenth International Conference on Learning Representations, 2024. 2
[71] Kaiwen Zheng, Yuji Wang, Qianli Ma, Huayu Chen, Jintao Zhang, Yogesh Balaji, Jianfei Chen, Ming-Yu Liu, Jun Zhu, and Qinsheng Zhang. Large scale diffusion distillation via score-regularized continuous-time consistency. arXiv preprint arXiv:2510.08431, 2025. 2
[72] Kan Zhu, Tian Tang, Qinyu Xu, Yile Gu, Zhichen Zeng, Rohan Kadekodi, Liangyu Zhao, Ang Li, Arvind Krishnamurthy, and Baris Kasikci. Tactic: Adaptive sparse attention with clustering and distribution fitting for long-context llms. arXiv preprint arXiv:2502.12216, 2025. 2
Sparse Attention for Video Generation Acceleration via Growing Sparsity and Reduced Search
Supplementary Material
A. Algorithm Details
A.1. FlashAttention Details
Standard Softmax and Numerical Instability. Given a row of pre-softmax scores , the standard softmax computes:
When the scores are large, the exponentials can overflow, leading to numerical errors. A common solution is to subtract the row-wise maximum before exponentiation:
This is valid because softmax is shift-invariant: for any constant ,
Subtracting the maximum ensures that the largest exponent is , preventing overflow while producing identical results.
Log-Sum-Exp (LSE). The denominator of softmax can be compactly represented using the Log-Sum-Exp (LSE). For a score vector , LSE is defined as:
With LSE, each softmax weight for the -th element can be recovered as:
LSE serves as the global normalization factor in log-space. It plays a central role in FlashAttention's incremental computation, as we describe next.
Online Softmax and Incremental Computation. Standard softmax requires two passes over the data: one to compute the maximum and denominator, and another to normalize. This is impractical when the full score vector is not available in memory, as is the case in FlashAttention where scores are computed block by block.
Online softmax solves this by simultaneously accumulating the numerator and denominator of softmax as each block is processed, deferring the final division to the end. Suppose we have already processed blocks with running statistics and . When a new block with local scores arrives, the update proceeds as follows:
The key insight is that when a new maximum is encountered, all previously accumulated sums must be rescaled by to remain on the same numerical basis. This rescaling is again justified by the shift-invariance of softmax.
Similarly, the partial attention output is rescaled at each step:
After all blocks have been processed, the final output is normalized by the accumulated sum:
and the final LSE is computed as:
Why LSE Is Only Available After Completion. The running maximum may change as new blocks are processed. Each such change triggers a rescaling of all previously accumulated results. Therefore, the true global maximum and the true LSE are only known after the last block has been processed. Any block weight computed during the loop using intermediate statistics will be based on an incomplete normalization factor, and thus will not be precisely normalized.
This is exactly the challenge that GSRS's two-phase correction addresses (Section 5.3): Phase 1 computes block weights using a cached LSE as an approximate reference during the kernel, and Phase 2 corrects them with the true LSE once the kernel completes.
Summary. Algorithm 1 summarizes the complete FlashAttention procedure described above.
Algorithm 1 FlashAttention with Online Softmax
Require: Q, K, V: query, key, value matrices; : block size; : number of blocks Ensure: O: attention output; LSE: log-sum-exp values
1: for each query block do 2: Initialize for each row 3: for each key-value block do 4: 5: 6: 7: 8: 9: 10: end for 11: 12: 13: end for 14: return O, LSE
A.2. Equivalence to the Block Importance Definition
We show that the two-phase evaluation recovers the block importance defined in Eq. (5). For query block , let denote the evaluated key blocks and their key tokens. This set contains all key blocks at the first search and the candidates defined by at subsequent searches. For each query row and key block , Phase 1 stores
Since is constant across keys within block v, it cancels when the expression is expanded:
Subtracting the block maximum before exponentiation provides numerical stability while preserving the block log-sum-exp.
After all candidate blocks have been processed, FlashAttention provides the current row-wise LSE . Substituting the expression for into Phase 2 gives
This is the block importance in Eq. (5), with attention normalized over the evaluated key tokens. Consequently, , providing normalized block weights for Top-p selection without cached LSE values.
A.3. Fused Precise Block Importance Evaluation
Algorithm 2 presents the complete procedure of the fused block importance evaluation described in Section 5.3. Phase 1 is executed within the FlashAttention kernel, while Phase 2 is a lightweight post-kernel operation.
Algorithm 2 Fused Precise Block Importance Evaluation without Cached LSE
Require: Q, K, V: query, key, value matrices; S: search candidate mask; B: block size Ensure: O: attention output; L: current row-wise LSE; W: block importance matrix 1: Initialize and // Phase 1: In-kernel attention and block log-sum-exp 2: for each query block u in parallel do 3: Initialize for 4: for each key-value block do 5: 6: 7: 8: 9: , 10: 11: 12: 13: Store 14: end for 15: , 16: Write and for 17: end for // Phase 2: Post-kernel block importance recovery 18: for each query block u and candidate block do 19: 20: end for 21: return O, L, W
For fully masked block rows, we set , , and ; the corresponding scale factor is zero. The history scale is zero when no valid key has yet been processed. Rows with no valid keys return and and contribute zero to block importance.
Memory Overhead. The primary memory overhead of GSRS comes from storing the row-level weight sums during the fused evaluation kernel. For a sequence of length with block size and attention heads, the storage requirement is elements. Compared to materializing the full attention matrix of size , this reduces memory by a factor of . For example, with , , and on HunyuanVideo, the storage is approximately 4.6 GB in bfloat16. As shown in Table 6, GSRS achieves slightly lower peak memory than full attention despite the additional storage for , indicating that the memory overhead of block importance evaluation does not increase the overall memory footprint in practice.
Table 6. Peak GPU memory usage during inference on HunyuanVideo (single A800, 125 frames, 720p).
| Configuration | Peak Memory (GB) |
|---|---|
| Full Attention | 65.60 |
| GSRS | 62.65 |
Kernel Latency Analysis. Beyond memory efficiency, we evaluate the overhead of fused block importance evaluation using TileLang [46] implementations on H800 and A800 GPUs, as well as a CUDA implementation on A800. Figure 5 compares attention kernel latency with and without fused block statistics computation at varying density levels. Search steps perform both attention computation and block importance evaluation, while non-search steps perform attention computation only. For the CUDA implementation, we use the attention-only kernels from Block Sparse Attention [14] as the baseline. The small latency gap across the tested implementations indicates that collecting block log-sum-exp statistics adds limited overhead to attention computation.

(a) H800 TileLang

(b) A800 TileLang

(c) A800 CUDA
Figure 5. Per-step attention kernel latency at varying density levels ( , , ).
A.4. Top-p Block Selection
Algorithm 3 describes the Top-p block selection procedure used to construct the sparse mask from the block importance matrix W.
Algorithm 3 Top-p Block Selection
Require: W: block importance matrix of shape ; p: Top-p threshold Ensure: S: selected block mask
1: for each head h, each query block u do 2: Sort in descending order, yielding permutation 3: Compute cumulative sum 4: Find smallest such that 5: 6: end for 7: return S
A.5. GSRS Pipeline
Algorithm 4 presents the complete GSRS inference pipeline, integrating warmup, fused evaluation, Growing Sparsity and Reduced Search, and mask reuse across denoising steps.
Algorithm 4 GSRS Pipeline
Require: Per-step : warmup steps; : search steps with ; : Top-p thresholds; : block size
Ensure: : attention output at each step
1:
2: for each denoising step do
3: if then
4:
5:
6:
7: else if for then
8:
9:
10:
11: else if or then
12:
13: else
14:
15: end if
16: end for
The first search computes full attention and can coincide with the last warmup step. The current LSE is used within FusedEval to recover block importance and is not cached across denoising steps.
A.6. Token Reordering via Hilbert Curve
Flattening a 3D video tensor into a 1D sequence in row-major order can separate spatiotemporally adjacent tokens, weakening locality within fixed-size blocks (Figure 6(a)). We therefore reorder tokens using the Generalized Hilbert curve [3], which preserves spatial-temporal locality and groups nearby tokens into compact blocks (Figure 6(b)). This helps block sparse attention capture local interactions.
Following prior work [3, 65, 67], we apply this reordering in all experiments.

(a) Standard

(b) Gilbert
Figure 6. Token distribution within a single block under different ordering strategies. (a) Standard row-major ordering groups tokens from a flat spatial-temporal slab. (b) Gilbert curve ordering groups tokens from a compact spatial-temporal region, better preserving spatial-temporal adjacency.
A.7. GSRS Runtime Breakdown
Figure 7 presents the runtime breakdown of GSRS on HunyuanVideo. Without reduced search, each search step evaluates all blocks in the attention matrix rather than restricting to the baseline mask. Evaluating all blocks not only increases the search time at each search step, but also retains more blocks due to the larger search space, leading to additional attention computation time (shown as Extra Attention in the figure). The search overhead itself (shown as Search) is dominated by intermediate matrix I/O, rescaling, and averaging, as the efficient kernel fusion described in Section 5.3 minimizes the computational cost. We define the total overhead of removing reduced search as the sum of Extra Attention and Search. As shown in the figure, reduced search lowers this total overhead by , confirming that restricting searches to the baseline mask is essential for practical efficiency.

Figure 7. Runtime breakdown on HunyuanVideo. Removing reduced search introduces substantial extra attention and search overhead. GSRS with reduced search achieves lower overhead compared to the variant without it.
B. Details about VBench Result
Table 7. Detailed VBench Quality dimensions. Full breakdown of VBench Quality Score across all 7 dimensions for Wan 2.1 and HunyuanVideo. Bold and underline denote the best and second best results.
| Model | Method | Subject Consistency | Background Consistency | Temporal Flickering | Motion Smoothness | Aesthetic Quality | Imaging Quality | Dynamic Degree | VBench-Q |
|---|---|---|---|---|---|---|---|---|---|
| Wan 2.1 | Full Attention | 98.26% | 98.25% | 99.08% | 99.21% | 63.07% | 73.29% | 33.52% | 83.75% |
| SpargeAttn [63] | 94.88% | 95.49% | 99.07% | 99.15% | 61.73% | 72.80% | 32.95% | 82.21% | |
| SVG [51] | 97.74% | 97.90% | 99.27% | 99.43% | 63.18% | 71.99% | 34.65% | 83.69% | |
| SVG 2 [58] | 97.80% | 97.47% | 99.26% | 99.38% | 61.87% | 72.23% | 31.81% | 83.19% | |
| SVOO [33] | 97.89% | 97.76% | 99.30% | 99.40% | 61.63% | 72.42% | 32.38% | 83.33% | |
| GSRS | 98.21% | 98.22% | 99.07% | 99.19% | 63.09% | 73.22% | 33.52% | 83.72% | |
| HunyuanVideo | Full Attention | 96.82% | 97.07% | 98.62% | 99.51% | 56.40% | 70.71% | 61.93% | 83.98% |
| SpargeAttn [63] | 96.55% | 96.68% | 98.52% | 99.48% | 56.25% | 70.65% | 63.06% | 83.85% | |
| SVG [51] | 96.71% | 96.85% | 98.70% | 99.52% | 55.60% | 68.98% | 57.38% | 83.21% | |
| SVG 2 [58] | 96.60% | 96.05% | 98.77% | 99.49% | 54.05% | 66.50% | 55.11% | 82.24% | |
| SVOO [33] | 96.88% | 96.39% | 98.73% | 99.51% | 55.05% | 69.19% | 55.68% | 82.97% | |
| GSRS | 96.66% | 96.91% | 98.58% | 99.49% | 56.51% | 70.79% | 63.06% | 84.01% |
C. Effect of Warmup Length
Table 8 shows that increasing the number of warmup steps improves similarity to full attention at the cost of higher latency. We use to balance similarity and speedup. Meanwhile, VBench-Q remains between 83.71% and 84.01% across warmup settings (Table 9), indicating that generation quality is largely preserved even with .
Table 8. Ablation on the number of warmup steps on HunyuanVideo.
| PSNR↑ | SSIM↑ | LPIPS↓ | Latency(s)↓ | |
|---|---|---|---|---|
| 1 | 24.60 | 0.835 | 0.258 | 1680 |
| 3 | 27.63 | 0.899 | 0.203 | 1728 |
| 5 | 29.39 | 0.925 | 0.180 | 1746 |
| 8 | 31.00 | 0.944 | 0.161 | 1785 |
| 10 | 32.37 | 0.957 | 0.138 | 1825 |
| 15 | 33.79 | 0.966 | 0.134 | 1992 |
Table 9. Detailed VBench Quality dimensions under different warmup steps. Full breakdown of VBench Quality Score across all 7 dimensions on HunyuanVideo.
| Warmup Steps | Subject Consistency | Background Consistency | Temporal Flickering | Motion Smoothness | Aesthetic Quality | Imaging Quality | Dynamic Degree | VBench-Q |
|---|---|---|---|---|---|---|---|---|
| 1 | 96.64% | 96.44% | 98.55% | 99.49% | 56.02% | 70.66% | 63.06% | 83.80% |
| 3 | 96.66% | 96.50% | 98.59% | 99.49% | 55.89% | 70.86% | 61.36% | 83.71% |
| 5 | 96.68% | 96.50% | 98.60% | 99.49% | 56.03% | 70.81% | 61.93% | 83.78% |
| 8 | 96.66% | 96.52% | 98.61% | 99.50% | 55.94% | 70.82% | 62.50% | 83.81% |
| 10 | 96.66% | 96.91% | 98.58% | 99.49% | 56.51% | 70.79% | 63.06% | 84.01% |
| 15 | 96.67% | 96.49% | 98.62% | 99.50% | 55.89% | 70.78% | 62.50% | 83.80% |
D. PSNR Distribution
Figure 8 compares PSNR distributions across VBench prompts on Wan2.1 and HunyuanVideo. GSRS achieves the highest median PSNR on both models, consistent with the average scores in Table 1. Its lower and upper quartiles are also higher than those of all baselines, showing improved similarity to full attention across diverse prompts.

(a) PSNR distribution on Wan 2.1

(b) PSNR distribution on HunyuanVideo
Figure 8. PSNR distribution across VBench prompts. GSRS achieves the highest median PSNR on both Wan2.1 and HunyuanVideo.
E. Performance Across Random Seeds
We evaluate GSRS on HunyuanVideo using five random seeds and report the mean and standard deviation of PSNR, SSIM, LPIPS, and VBench-Q. PSNR, SSIM, and LPIPS are measured against full-attention outputs generated with the same seed.
Table 10. GSRS performance across five random seeds on HunyuanVideo. Values are reported as mean standard deviation.
| Model | PSNR | SSIM | LPIPS | VBench-Q |
|---|---|---|---|---|
| HunyuanVideo |
F. Quality-Efficiency Trade-off
We evaluate the quality-efficiency trade-off of GSRS on HunyuanVideo by varying the Top-p thresholds across search steps. Table 11 reports PSNR, SSIM, LPIPS, and VBench-Q alongside inference latency and speedup.
Table 11. GSRS performance under different Top-p configurations on HunyuanVideo.
| Top-p configuration | PSNR | SSIM | LPIPS | VBench-Q | Latency | Speedup |
|---|---|---|---|---|---|---|
| \{0.95, 0.95, 0.95, 0.95\} | 32.55 | 0.959 | 0.136 | 84.89 | 1969s | |
| \{0.93, 0.93, 0.93, 0.93\} | 31.20 | 0.947 | 0.153 | 84.90 | 1852s | |
| \{0.90, 0.90, 0.90, 0.90\} | 30.28 | 0.937 | 0.166 | 84.89 | 1774s | |
| \{0.88, 0.88, 0.88, 0.88\} | 29.63 | 0.930 | 0.170 | 84.95 | 1749s | |
| \{0.95, 0.80, 0.85, 0.90\} | 31.64 | 0.951 | 0.143 | 84.98 | 1850s | |
| \{0.90, 0.90, 0.95, 0.95\} | 30.40 | 0.939 | 0.163 | 84.87 | 1792s | |
| \{0.95, 0.95, 0.90, 0.90\} | 32.38 | 0.957 | 0.141 | 84.85 | 1907s | |
| \{0.90, 0.85, 0.80, 0.75\} | 30.00 | 0.933 | 0.174 | 84.85 | 1719s | |
| \{0.85, 0.80, 0.75, 0.70\} | 28.95 | 0.920 | 0.190 | 84.78 | 1631s | |
| \{0.95, 0.90, 0.85, 0.80\} | 31.96 | 0.953 | 0.141 | 84.99 | 1825s |
G. Inference Speed on NVIDIA H800
We compare the inference latency and speedup of GSRS and compared sparse attention methods on a single NVIDIA H800 GPU. Speedup is measured relative to full attention on the same GPU.
Table 12. Inference latency and speedup on a single NVIDIA H800 GPU.
| Method | Wan2.1 | HunyuanVideo | ||
|---|---|---|---|---|
| Latency | Speedup | Latency | Speedup | |
| Full Attention | 2573s | 2265s | ||
| SpargeAttn | 1934s | 1497s | ||
| SVG | 1796s | 1319s | ||
| SVG2 | 1735s | 1168s | ||
| SVOO | 1759s | 1143s | ||
| GSRS | 1443s | 1026s | ||
H. Limitations
GSRS has two limitations that warrant future investigation. First, at least one full-attention warmup step is required to obtain the initial LSE for subsequent block importance evaluation. Although the warmup overhead is small relative to the total inference time, eliminating this requirement would further improve efficiency. Second, GSRS is designed and evaluated specifically for DiT-based video generation models. Whether the observed attention dynamics and the proposed mechanisms generalize to other architectures such as large language models remains an open question for future work.
I. Broader Impacts
This work improves the efficiency of video diffusion models, reducing computational cost and energy consumption for high-quality video generation. By lowering the hardware requirements, GSRS makes video generation more accessible to researchers and creators with limited computational resources, potentially democratizing access to this technology.
However, improved efficiency may also lower the barrier to generating realistic synthetic videos at scale, which could be misused for producing misleading or deceptive content such as deepfakes. The ability to generate videos faster and cheaper amplifies both beneficial and harmful applications. We encourage responsible deployment of this technology and recommend combining video generation systems with safeguards such as content watermarking and synthetic media detection to mitigate potential misuse.
J. Detailed Comparison with AdaSpa and LiteAttention
Search and block selection. AdaSpa [53] uses a fixed sparsity target and evaluates all blocks at scheduled search steps, whereas GSRS progressively lowers Top-p thresholds and restricts subsequent searches to the early candidate set . Once LiteAttention [41] skips a block, it excludes that block from evaluation and computation for the remaining denoising steps. GSRS re-evaluates all blocks within at each search step, allowing previously omitted blocks within to be selected again as attention changes. This design preserves the ability to dynamically select blocks while reducing search overhead compared with evaluating all blocks at each search step.
Block importance estimation. GSRS computes block importance from block log-sum-exp statistics and the current row-wise LSE, without relying on cached LSE values. AdaSpa uses cached LSE values to estimate block importance, while LiteAttention applies a local tile-skipping condition based on the running softmax statistics. The distinction between cached and current-step normalization affects both cumulative probability thresholds and block rankings.
Let and denote a query block and a key block, respectively, the number of query rows, and the pre-softmax attention score. For a fixed query block, let denote the evaluated key blocks and their key tokens. The current row-wise normalization factor is . The normalized attention weight assigned to block and its query-block average are
At subsequent search steps, AdaSpa reuses row-wise LSE values cached from an earlier step to estimate current block importance. Denoting these cached values by , the resulting per-row block scores are
Consequently, , which need not equal one. If such uncorrected scores are used for Top-p selection, the cumulative threshold can be reached too early or too late. AdaSpa aggregates these scores over query rows to obtain block importance. Because varies across rows, this aggregation introduces query-dependent reweighting:
For two candidate blocks v and w, this difference can have a different sign from , changing their ranking and potentially affecting Top-k selection as well. Normalizing the aggregated scores by a single scalar does not undo this query-dependent reweighting.
GSRS directly computes block importance using block log-sum-exp statistics and the current row-wise LSE :
This yields normalized block importance within the search candidate set without requiring cached LSE values. The equivalence to the block importance definition is derived in Appendix A.2.
LiteAttention compares each block's row-wise maximum attention scores with the running row-wise maxima maintained during online softmax. A block is marked for skipping when its local maximum falls below the running maximum by a specified margin for every query row. This criterion uses intermediate softmax statistics and depends on block processing order, which may lead to less accurate block selection.
Experimental comparison. Table 13 compares GSRS with related sparse attention methods on HunyuanVideo. To match AdaSpa without head-adaptive allocation, we replace Top-p selection in GSRS with fixed Top-k selection using a uniform 20% keep ratio for every head. This configuration removes differences in Top-p selection and head-adaptive sparsity allocation from the comparison. We also implement an Ampere-compatible LiteAttention kernel in CUDA, preserving its original skipping criterion and cross-step mask update mechanism.
Table 13. Comparison with related sparse attention methods on HunyuanVideo. GSRS (AdaSpa aligned) and AdaSpa (w/o Head Adaptive) both use a uniform 20% keep ratio.
| Method | PSNR↑ | SSIM↑ | Speedup↑ |
|---|---|---|---|
| MInference | 22.53 | 0.7435 | 1.27× |
| XAttention | 29.08 | 0.9099 | 1.36× |
| LiteAttention | 21.85 | 0.7036 | 1.33× |
| AdaSpa (w/o Head Adaptive) | 28.51 | 0.8825 | 1.76× |
| AdaSpa | 29.07 | 0.8905 | 1.78× |
| GSRS (AdaSpa aligned) | 29.66 | 0.9330 | 1.86× |
Under the matched keep ratio, GSRS improves PSNR and SSIM over AdaSpa without head-adaptive allocation while achieving a higher speedup. These results show that the gains are not solely attributable to Top-p selection or head-adaptive sparsity allocation. GSRS also outperforms our Ampere implementation of LiteAttention in PSNR, SSIM, and speedup. These results support the effectiveness of combining Reduced Search with precise block importance evaluation to reduce search overhead while preserving accurate block selection.
K. More Details about Attention Entropy and Mean Attention Distance
To characterize the attention dynamics without incurring the memory overhead of materializing full attention maps, we fuse the computation of attention entropy and mean attention distance directly into our FlashAttention-based kernels. This section provides the formal derivation of the efficient calculation used in our implementation.
K.1. Efficient Derivation of Attention Entropy
The attention entropy for a specific query i is defined based on the softmax-normalized weights :
In a hardware-efficient FlashAttention implementation, the weight is typically computed using the raw attention score (e.g., the scaled dot-product ) and the Log-Sum-Exp constant :
Substituting this into the entropy formula, we can transform it into a form that avoids explicit exponentiation of every element during the final reduction:
Given the normalization property , the expression simplifies to:
where represents the expected value of the raw attention scores for query . This formulation allows us to compute entropy by maintaining a single running scalar during the block-wise tiling process.
K.2. Fused Accumulation Logic
Consistent with the definition in the Section 4, the Mean Attention Distance represents the expected relative distance between the query i and its attended keys j:
In our Triton-based [47] implementation, we fuse the calculation of and into the attention kernel by maintaining two running accumulators, and :
-
Accumulation: For each block of keys, we compute and .
-
Online Rescaling: Since the softmax local maximum and the LSE update during the kernel's execution, we rescale and at each step to ensure numerical consistency, identical to the standard output rescaling in FlashAttention.
-
Finalization: After the final reduction, is obtained by subtracting the accumulated from the final .
This approach ensures that capturing these diagnostics adds negligible computational overhead and zero additional memory footprint beyond the storage of the resulting metrics themselves.
K.3. Attention Dynamics Across Prompts
To verify that the attention trends reported in Section 4 are not artifacts of specific inputs, we visualize attention entropy and mean attention distance across a diverse set of test prompts for both HunyuanVideo and Wan2.1 in Figure 9.
Despite substantial differences in generated content, all prompts exhibit the same monotonic decrease in both metrics as denoising progresses. The curves remain tightly bundled, with only minor variation in absolute values between prompts. This confirms that the progressive concentration of attention is an intrinsic property of the model architecture rather than a content-dependent phenomenon.

(a) Hunyuan: Double-stream [Entropy]

(b) Hunyuan: Double-stream [MAD]

(c) Hunyuan: Single-stream [Entropy]

(d) Hunyuan: Single-stream [MAD]

(e) Wan2.1: Conditional [Entropy]

(f) Wan2.1: Conditional [MAD]

(g) Wan2.1: Unconditional [Entropy]

(h) Wan2.1: Unconditional [MAD]
Figure 9. Attention entropy and MAD profiles across diverse prompts for HunyuanVideo and Wan2.1. Each line represents a different test prompt. Both metrics exhibit a consistent monotonic decrease across all prompts, confirming that the attention concentration trend is an intrinsic model property independent of input content.
K.4. Attention Dynamics Across Layers
Figure 10 presents layer-wise attention entropy and mean attention distance (MAD) heatmaps for HunyuanVideo and Wan2.1. Across all models, two consistent patterns emerge. First, both metrics decrease monotonically along the denoising trajectory within each layer, confirming that the progressive concentration observed at the model level (Section 4) holds at the individual layer level as well. Second, the variation across layers is substantial and persistent: certain layers maintain high entropy and long attention distance throughout denoising, while others exhibit consistently concentrated and localized attention. Notably, for Wan2.1, the conditional and unconditional branches display similar layer-wise patterns, suggesting that this variation is an architectural property rather than a conditioning artifact. These observations further support the need for layer-adaptive sparsity, as a uniform sparsity ratio would over-prune concentrated layers while under-pruning dispersed ones.

(a) Hunyuan [Entropy]
(b) Hunyuan [MAD]

(c) Wan2.1 (Conditional) [Entropy]
(d) Wan2.1 (Conditional) [MAD]

(e) Wan2.1 (Unconditional) [Entropy]
(f) Wan2.1 (Unconditional) [MAD]
Figure 10. Layer-wise attention entropy and MAD across denoising steps. Both metrics decrease monotonically within each layer. Meanwhile, substantial variation exists across layers, confirming distinct attention concentration patterns at different depths.
K.5. Attention Dynamics Across Heads
Across heads, we visualize attention entropy and mean attention distance (MAD) for representative layers in HunyuanVideo and Wan2.1 (conditional and unconditional branches). Each figure shows head-wise heatmaps over denoising steps.
Within each layer, different heads behave differently. Some heads keep more dispersed attention, while others stay more concentrated. Moreover, all heads show a similar decreasing trend as denoising progresses. The conditional and unconditional branches of Wan2.1 also show very similar patterns, suggesting that these differences across heads are not caused by conditioning.

Layer9 Entropy

Layer9 MAD

Layer10 Entropy

Layer10 MAD
Layer15 Entropy
Layer15 MAD
Figure 11. Head-level attention entropy and MAD in HunyuanVideo. Each row corresponds to one layer, showing entropy (left) and MAD (right) for all heads. While different heads exhibit diverse behaviors, all follow a consistent decreasing trend across denoising steps.

Layer9 Entropy

Layer9 MAD
Layer10 Entropy
Layer10 MAD
Layer15 Entropy
Layer15 MAD
Figure 12. Head-level attention entropy and MAD in Wan2.1 (conditional branch). Significant variation exists across heads within each layer, while the overall monotonic decrease over denoising is preserved.

Layer9 Entropy

Layer9 MAD
Layer10 Entropy
Layer10 MAD
Layer15 Entropy
Layer15 MAD
Figure 13. Head-level attention entropy and MAD in Wan2.1 (unconditional branch). The patterns are highly consistent with the conditional branch, suggesting that head-wise variation is largely independent of conditioning.
L. Visualization of the generated videos
We provide visualization comparison between Full Attention and GSRS on Wan 2.1 and HunyuanVideo. Results in Figure 14 and Figure 15 demonstrate that GSRS can preserve high pixel-level fidelity, achieving similar generation quality compared with the full attention. More video samples are provided in the supplementary materials.
Full Attention

GSRS
Full Attention

GSRS
Full Attention

GSRS
Full Attention

GSRS
Figure 14. Comparison of Full Attention and GSRS on Wan 2.1 Text-to-Video generation.
Full Attention

GSRS
Full Attention

GSRS
Full Attention

GSRS
Full Attention

GSRS
Figure 15. Comparison of Full Attention and GSRS on HunyuanVideo Text-to-Video generation.