Skip to content

Menu

WorksComputer Science

iCATS: Fast Video Generation via Interaction-Aware Sparse Attention and Timestep-Adaptive Sparsity

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_7vh2njcj. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Training-free sparse attention offers a practical acceleration solution to Diffusion Transformers (DiTs) via reducing computations without fine-tuning. It typically involves estimating the importance of query-key regions and deriving sparse masks to compute only the important candidates, which inevitably introduces approximation errors that may degrade generation quality. To better balance the efficiency-quality trade-off, we propose iCATS, integrating improved importance estimation and sparse mask construction with an efficient hardware execution strategy. Specifically, for importance estimation, unlike previous works that perform independent clustering over query and key tokens based on feature similarity to estimate attention scores, iCATS demonstrates that clustering based on query-key dot-product interactions is more accurate and further reformulates this objective as a simple quadratic form for low-cost computation. For sparse mask construction, instead of using a fixed top-p rule, we observe that tolerance to sparse approximation errors varies across denoising timesteps and therefore introduce an SNR-guided sparsity schedule to adjust sparsity dynamically, leading to higher accuracy. Finally, for hardware execution, we devise a tail-merging strategy to reduce padding overhead caused by irregular cluster sizes, improving GPU kernel utilization. Extensive experiments show that iCATS achieves 2.03×2.03\times acceleration with 31.017 dB PSNR on HunyuanVideo-T2V-13B and 1.55×1.55\times acceleration with 29.301 dB PSNR on Wan2.1-T2V-14B, delivering a state-of-the-art efficiency-quality trade-off.

Visualizations on HunyuanVideo-T2V-13B and Wan2.1-T2V-14B

Figure 1. Visualizations on HunyuanVideo-T2V-13B and Wan2.1-T2V-14B show that iCATS better preserves visual details while achieving higher speedup than other training-free methods, producing results closer to native videos. On average, it achieves 2.03× acceleration with 31.017 dB PSNR on HunyuanVideo-T2V-13B, and 1.55× acceleration with 29.301 dB PSNR on Wan2.1-T2V-14B.

Introduction

Diffusion Transformers (DiTs) [1] have driven remarkable progress in video generation [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], emerging as the dominant backbone architecture. However, as the demand for generating longer and higher-resolution videos continues to grow, the length of token sequences increases substantially, causing the quadratic computational cost of attention mechanisms to rise sharply [13]. This quadratic scaling has become a critical bottleneck during inference for DiT-based video generation models, motivating efficient attention acceleration while preserving generated video quality.

Sparse attention [14, 15, 16, 17, 18, 19, 20, 21, 22, 23] is an effective way to accelerate DiT inference by computing only a subset of attention interactions. Existing works fall into two categories: training-based and training-free methods. Training-based methods [24, 25, 26, 27] fine-tune models with predefined sparse patterns, achieving high sparsity (e.g., ∼90%\sim90\% [25]) but requiring retraining when sparsity changes. In contrast, training-free methods [28, 29, 30, 31, 32, 33] introduce sparsity without modifying model parameters. With lower sparsity (e.g., ∼70%\sim70\% [17]), they provide greater flexibility and plug-and-play usability across various pretrained DiT models, which is more practical for real applications. Therefore, this work focuses on training-free sparse attention for DiT acceleration.

The core idea of training-free sparse attention is retaining the most important attention computations only during inference. This is typically achieved by first estimating the importance of query-key regions in the attention map and then deriving sparse masks through rules such as top-pp selection. A common strategy is to partition query and key tokens independently and use group mean features to form a smaller query-key matrix for this importance estimation [29, 21, 17]. Based on this matrix, sparse masks are constructed by selecting the most important blocks or clusters. Among these methods, SVG2 [17] groups tokens by feature similarity via kk-means clustering and employs cluster centroids to estimate attention scores for cluster selection, achieving state-of-the-art performance.

While this clustering strategy is efficient, its optimization objective is not fully aligned with minimizing the importance estimation error (see § 3.1 for details). A more principled approach is to cluster tokens based on their query-key dot-product interactions. However, explicitly clustering tokens by their full query-key dot-product interactions is prohibitively expensive for long video sequences: constructing the full query-key dot-product matrix already incurs quadratic complexity in sequence length, not to mention that each interaction vector itself also has sequence-length dimensionality. To tackle this issue, we reformulate the clustering objective derived from query-key interactions as a quadratic form in the original query/key space, avoiding explicit construction of the full matrix. This yields a more efficient clustering scheme for more accurate importance estimation.

Upon the estimated importance, sparse masks are determined by pre-defined rules. The fixed top-pp rule [34, 35] is widely used by selecting the highest-scoring query-key regions until the cumulative importance reaches pp. While simple and effective, this rule yields a similar sparsity across the denoising process, overlooking the fact that tolerance to sparse approximation errors varies across timesteps. Since signal-to-noise ratio (SNR) characterizes the denoising state [36, 37, 38] by reflecting the relative strength of noise and signal at different timesteps, it provides a natural basis for adaptive sparsity control. Based on this, we propose an SNR-guided sparsity schedule, in which the top-pp value is computed offline from a smooth function of the logarithmic SNR, effectively driving sparse masks to match various denoising timesteps.

When deploying these optimization methods on hardware, execution efficiency is critical. In existing cluster-based sparse attention, mapping clusters to block-based GPU kernels often produces underfilled tail blocks due to irregular cluster sizes [39, 40, 41, 42], increasing computational overhead and reducing hardware utilization. This problem is particularly severe on the query side, where the same padding overhead may be incurred repeatedly across multiple selected key clusters. To alleviate this, we introduce a tail-merging strategy that reduces padding overhead and improves utilization during sparse attention execution.

Building on these designs, we propose iCATS (Fast Video Generation via Interaction-Aware Sparse Attention and Timestep-Adaptive Sparsity), a training-free framework that performs optimization throughout the sparse attention pipeline. The main contributions of this work are as follows:

  • We propose a training-free method, called iCATS, for DiT acceleration. iCATS clusters tokens according to query-key interactions via a quadratic-form objective defined in the original query/key space, avoiding complicated full query-key dot-product computation while improving the accuracy of importance estimation.

  • For sparse mask construction, iCATS introduces an SNR-guided sparsity schedule that dynamically adjusts the top-pp value across denoising timesteps, thereby allocating the computation budget to the selected informative query-key interactions.

  • Moreover, when deployed on hardware, iCATS develops a tail-merging strategy that reduces padding overhead from irregular query cluster sizes, improving GPU kernel utilization during sparse attention execution.

  • Extensive experiments on representative DiT-based video generation models show that iCATS achieves state-of-the-art performance among training-free sparse attention methods, delivering an advanced trade-off between generation quality and inference efficiency.

Related Work

Training-based Sparse Attention

Training-based sparse attention methods accelerate DiT-based video generation by learning model-adaptive sparse computation patterns. DSV [43] trains separate low-rank predictors to identify critical key-value pairs and achieves acceleration using specialized kernels and sparsity-aware parallelism. However, the decoupled predictor design limits end-to-end optimization. VSA [20] addresses this issue by introducing an end-to-end trainable sparse attention design: it first performs coarse cube-level attention on pooled representations to locate important regions, and then computes token-level attention within the selected cube blocks, enabling joint optimization of selection and computation. VMoBA [44] likewise adopts block-level selection, but with a different motivation: it exploits the spatio-temporal locality of videos through recurrent 1D-2D-3D block partitioning, global block selection, and threshold-based selection.

The above methods all directly discard unselected tokens, whereas SLA [24] revisits this design and instead partitions blocks into three computational levels: sparse attention for critical blocks, linear attention for marginal blocks, and direct skipping for negligible ones. Building on this idea, SLA2 [25] replaces heuristic splitting with a learnable router and further introduces ratio-based branch fusion and quantization-aware low-bit sparse attention.

Despite their different designs, these methods all rely on additional model-specific training or fine-tuning, which limits their flexibility when the target model changes.

Training-free Sparse Attention

Training-free sparse attention improves inference efficiency without modifying model parameters, which is more flexible for deployment. One line of work uses predefined sparse patterns derived from spatio-temporal priors. SVG [31] profiles per-head spatial and temporal patterns online and applies the resulting masks through FlexAttention [45]. RainFusion [15] and Sparse-vDiT [18] extend this line with richer predefined patterns, while STA [14] replaces full attention with sliding tile attention over local 3D neighborhoods. Although these methods are fast, their fixed or hand-designed sparse patterns limit adaptivity to diverse video content.

Another line of work dynamically constructs sparse masks based on token features. SpargeAttn [46] identifies important blocks through a two-stage online filtering scheme. XAttention [47] estimates block importance using strided antidiagonal sums followed by cumulative thresholding. SVG2 [17] further improves dynamic sparse attention by first applying kk-means clustering to group tokens with similar features, then using cluster centroids to estimate attention importance for group selection, and finally reordering the selected groups into contiguous layouts for more efficient sparse attention execution. Compared with predefined-pattern methods, these dynamic approaches are more content-adaptive. However, their token grouping operates independently in the query and key feature spaces; while simple, it sacrifices accuracy.

Following importance estimation, most existing methods [31, 17] apply a fixed sparsity level across denoising timesteps to construct sparse masks. This produces similar sparsity patterns across steps, even though different denoising timesteps exhibit distinct characteristics during the generation process. These observations motivate a more accurate and efficient sparse attention framework that optimizes the entire pipeline.

Motivation

Independent Clustering Mismatches Q-K Interaction Objectives

As aforementioned, existing sparse attention methods [17] typically adopt a clustering-based approach for importance estimation: clustering centroids are used to construct a smaller query-key matrix that replaces the original full matrix. Therefore, the clustering objective is to minimize the error between the original and the smaller query-key matrices.

To further explain, we fix the query matrix QQ and analyze key clustering as an illustrative example. Let G={Bt}t=1PG = \{B_t\}_{t=1}^{P} denote a partition of key tokens, where each key token kj∈R1×dk_j \in\mathbb{R}^{1 \times d} is a row vector and μt∈R1×d\mu_t \in\mathbb{R}^{1 \times d} is the centroid of cluster BtB_t. If each key token is replaced by its cluster centroid when forming the smaller query-key matrix, the optimization objective is then to minimize the resulting error in the query-key dot-product interactions, i.e., minimizing E(G)=∑t=1P∑j∈Bt∥Q(kj−μt)∥22E(G) = \sum_{t=1}^{P} \sum_{j \in B_t} \lVert Q(k_j - \mu_t) \rVert_2^2.

By contrast, previous key-space clustering methods like kk-means assume that QTQ∝IQ^{\mathsf{T}}Q \propto I, i.e., the query matrix treats all directions in the key space isotropically, and simplify E(G)E(G) to E^(G)=∑t=1P∑j∈Bt∥kj−μt∥22\hat{E}(G) = \sum_{t=1}^{P} \sum_{j \in B_t} \lVert k_j - \mu_t \rVert_2^2. Apparently, this E^(G)\hat{E}(G) optimization is not aligned with the true objective E(G)E(G) of minimizing the query-key interaction error, thereby reducing estimation accuracy.

Instead, this paper proposes to directly optimize E(G)E(G). However, this is computationally expensive for long video sequences, as it requires constructing the full query-key dot-product matrix and representing each token with a sequence-length interaction vector, which increases inference time. Therefore, we develop an efficient method, termed Interaction-aware Clustering, which minimizes E(G)E(G) using a low-complexity scheme without explicitly constructing the full matrix.

Fixed Sparsity Overlooks Denoising Dynamics

In flow-based video generation [38], samples are synthesized through an iterative denoising process. Let a latent representation x0∈RT×H×W×Cx_0 \in\mathbb{R}^{T \times H \times W \times C} be mapped from a clean video XX, where TT, HH, WW, and CC denote the numbers of frames, height, width, and channels. At denoising timestep t∈{0,…,N}t \in\{0, \ldots, N\}, the latent is xt=αtx0+btϵx_t = \alpha_t x_0 + b_t \epsilon, where ϵ∼N(0,I)\epsilon\sim\mathcal{N}(0, I), NN is the total number of steps, and αt\alpha_t and btb_t are determined by the timestep schedule. As tt increases, xtx_t transitions from signal-dominated to noise-dominated, while sampling follows the reverse denoising process back to x0x_0.

Existing methods typically use a fixed top-pp rule to construct sparse masks across denoising timesteps. Although the exact number of selected blocks or clusters may vary slightly due to score estimation, the overall sparsity remains broadly similar throughout the denoising trajectory (see our analysis in appendix § 9). While simple, this implicitly assumes that approximation errors between dense and sparse computations contribute uniformly across timesteps. However, denoising is a recursive process in which the state at each timestep depends on the previous update. Consequently, errors introduced at one timestep accumulate and propagate along the denoising trajectory. As a result, errors at different timesteps have varying impacts on the final output.

Therefore, under a fixed computational budget, the key challenge is not only how much attention computation can be reduced but also how to allocate this budget appropriately across timesteps to best preserve quality. This motivates our SNR-guided Sparsity that adjusts sparse mask construction according to the characteristics of each denoising timestep. As the SNR directly reflects denoising progress and signal dominance, it serves as an ideal indicator for such adaptation.

Varying Cluster Sizes Incur Tail Overhead

Unlike block-based sparse attention, which naturally matches fixed-size block kernels (Figure 2a), cluster-based sparse attention selects computation at the cluster level (Figure 2b). This easily produces irregular cluster sizes that do not align with the fixed execution granularity of sparse kernels.

More specifically, in cluster-based sparse attention with block-based kernels, tokens from selected key clusters are gathered into a contiguous sequence for each query cluster, and attention is computed block by block. The last block is often partially filled, yet the kernel still executes full-block computation, introducing overhead on padded positions. This inefficiency is especially severe on the query side, where padding in the last query block repeats across all key/value blocks, causing overhead to scale with the selected key length. Therefore, reducing tail execution overhead is crucial for improving hardware efficiency, motivating our Tail-merging Strategy.

Visualization of block-based and cluster-based sparse attention

Figure 2. Visualization of (a) block-based and (b) cluster-based sparse attention.

Method

This section details our proposed iCATS. As shown in Figure 3, iCATS consists of three components: interaction-aware clustering for accurate importance estimation (§ 4.1), SNR-guided sparsity for sparse mask construction (§ 4.2), and tail merging for sparse attention execution (§ 4.3).

Interaction-Aware Clustering

Recalling § 3.1, iCATS performs interaction-aware clustering by grouping tokens using their query-key dot-product interactions. We represent all token features as row vectors. Let Q=[q1⊤,q2⊤,…,qn⊤]⊤∈Rn×dQ = [q_1^\top, q_2^\top, \ldots, q_n^\top]^\top\in\mathbb{R}^{n \times d} (d≪nd \ll n) denote the query matrix, where qi∈R1×dq_i \in\mathbb{R}^{1 \times d} is the ii-th query token. Here, nn is the sequence length and dd is the token dimension, e.g., n=75,600n = 75,600 and d=128d = 128 in Wan2.1-T2V-14B. Let BtB_t denote the tt-th key cluster and μt∈R1×d\mu_t \in\mathbb{R}^{1 \times d} its centroid, where t∈{1,…,P}t \in\{1, \ldots, P\} with PP being the total number of key clusters. We define the key clustering objective as:

L=∑t=1P∑j∈Bt∥Qkj⊤−Qμt⊤∥22=∑t=1P∑j∈Bt∑i=1n(qikj⊤−qiμt⊤)2=∑t=1P∑j∈Bt(kj−μt)(∑i=1nqi⊤qi)(kj⊤−μt⊤)=∑t=1P∑j∈Bt(kj−μt)Q⊤Q(kj⊤−μt⊤).(1)\begin{aligned} \mathcal{L} = \sum_{t=1}^{P} \sum_{j \in B_t} \lVert Q k_j^\top- Q\mu_t^\top\rVert_2^2 = \sum_{t=1}^{P} \sum_{j \in B_t} \sum_{i=1}^{n} \left(q_i k_j^\top- q_i \mu_t^\top\right)^2 \\ &= \sum_{t=1}^{P} \sum_{j \in B_t} (k_j - \mu_t) \left(\sum_{i=1}^{n} q_i^\top q_i\right) (k_j^\top- \mu_t^\top) = \sum_{t=1}^{P} \sum_{j \in B_t} (k_j - \mu_t) Q^\top Q (k_j^\top- \mu_t^\top). \tag*{(1)} \end{aligned}

As seen, clustering using query-key interactions requires computing, for each key, its dot products with all queries to form an nn-dimensional interaction vector, followed by clustering in this space. (1) finally reformulates this objective as a quadratic form in the original key feature space of dimension dd, where d≪nd \ll n, avoiding explicit construction of the full query-key dot-product matrix. Query clustering is defined symmetrically, yielding a corresponding quadratic form induced by K⊤KK^\top K. Although Q⊤QQ^\top Q and K⊤KK^\top K are only of size d×dd \times d, computing them still requires aggregating statistics over all tokens. To reduce this overhead, we approximate them using cluster centroids and sizes. Specifically, for query clusters {Ar}r=1O\{A_r\}_{r=1}^{O}, where OO is the number of query clusters, with centroid μr\mu_r and size ∣Ar∣|A_r|, and key clusters {Bt}t=1P\{B_t\}_{t=1}^{P} defined similarly with size ∣Bt∣|B_t|, we define MQ=∑r=1O∣Ar∣μr⊤μrM_Q = \sum_{r=1}^{O} |A_r| \mu_r^\top\mu_r and MK=∑t=1P∣Bt∣μt⊤μtM_K = \sum_{t=1}^{P} |B_t| \mu_t^\top\mu_t. Approximating Q⊤QQ^\top Q and K⊤KK^\top K with MQM_Q and MKM_K, and noting that MQM_Q and MKM_K are symmetric matrices, the quadratic-form objectives for clustering become:

(kj−μt)MQ(kj⊤−μt⊤)=kjMQkj⊤+μtMQμt⊤−2kjMQμt⊤,(k_j - \mu_t)M_Q(k_j^\top- \mu_t^\top) = k_jM_Qk_j^\top+ \mu_tM_Q\mu_t^\top- 2k_jM_Q\mu_t^\top,
(qi−μr)MK(qi⊤−μr⊤)=qiMKqi⊤+μrMKμr⊤−2qiMKμr⊤.(2)(q_i - \mu_r)M_K(q_i^\top- \mu_r^\top) = q_iM_Kq_i^\top+ \mu_rM_K\mu_r^\top- 2q_iM_K\mu_r^\top. \tag*{(2)}

Built on Flash-Kmeans [48], we precompute the token-side terms (e.g., kjMQk_jM_Q, kjMQkj⊤k_jM_Qk_j^\top, qiMKq_iM_K, and qiMKqi⊤q_iM_Kq_i^\top) only once before the clustering iterations begin, as token features remain fixed. The centroid-side terms are recomputed from the current centroids at each iteration.

Figure 3. Overview of iCATS pipeline. For each attention layer, query and key tokens are first grouped by ① Interaction-aware Clustering. Then, the corresponding query-key cluster centroids are used to approximate softmax scores at the cluster level. Based on these approximated scores, ② SNR-guided Sparsity determines the top-pp value at each denoising timestep and selects the corresponding attention computation region. Finally, ③ Tail-merging Strategy is applied before sparse attention kernel computation by reassigning tail tokens of non-block-aligned query clusters, thereby reducing padding overhead caused by irregular cluster sizes. In this figure, interaction clustering denotes interaction-aware query-key clustering, while Euclidean clustering is used to initialize query clusters solely at the first sparse timestep.

Based on this design, we perform interaction-aware clustering alternately. At the first sparse timestep, query tokens are clustered in the original feature space, and the resulting query centroids and cluster sizes are used to construct MQM_Q. Key tokens are then clustered using the quadratic form induced by MQM_Q, and the resulting key centroids and cluster sizes are used to construct MKM_K. At later timesteps, we use the previous MKM_K to guide query clustering, leveraging the similarity of quadratic structures between adjacent timesteps. The updated query clusters define the current MQM_Q, which in turn induces the quadratic form for key clustering. The resulting key clusters form a new MKM_K for the next timestep.

SNR-Guided Sparsity

Motivated by the observation in § 3.2, iCATS devises the SNR-guided sparsity schedule, which dynamically adjusts the sparsity of sparse masks across timesteps. Specifically, we employ the timestep-wise SNR to characterize the denoising state: a low SNR typically corresponds to noise-dominated latents at earlier denoising stages, where approximation errors may affect more subsequent updates, while a high SNR indicates the emergence of cleaner signal components and more stable semantic structures. This makes SNR a practical indicator for adapting top-pp across timesteps. Formally, the timestep-wise SNR is defined as SNR⁡(t)=(at/bt)2\operatorname{SNR}(t) = (a_t/b_t)^2.

Figure 4a shows that the raw SNR spans a wide range across timesteps, making early- and late-stage differences hard to distinguish. We therefore operate in the logarithmic domain and define ℓt=log⁡SNR⁡(t)\ell_t = \log\operatorname{SNR}(t) (see Figure 4b). This converts ratio changes in SNR into additive differences, making variations across timesteps easier to model and analyze.

Visualization of proposed SNR-guided sparsity schedule

Figure 4. Visualization of proposed SNR-guided sparsity schedule on Wan2.1-T2V-14B. (a) Raw SNR over denoising timesteps. (b) log⁡SNR⁡(t)\log\operatorname{SNR}(t), where the pivot marks the center of the flattest region. (c) The resulting top-pp schedule generated by an inverted sigmoid.

As analyzed in Figure 4b, the log⁡SNR⁡(t)\log\operatorname{SNR}(t) curve exhibits a clear stage-wise pattern: the early and late stages change more sharply, while the middle stage is comparatively smooth. Based on this observation, we use an inverted sigmoid function to generate timestep-adaptive top-pp values for sparse mask construction. The inverted sigmoid provides a simple schedule shape that aligns well with the stage-wise pattern of the log⁡SNR⁡(t)\log\operatorname{SNR}(t) curve: its two saturated ends help maintain relatively stable computation in the early and late stages, while its transition region allows top-pp to decrease gradually in the smoother middle stage. Overall, we keep dense attention before the first sparse timestep tsparset_{\mathrm{sparse}}, and apply sparse attention for t≤tsparset \leq t_{\mathrm{sparse}} with

top-p⁡t=pmin⁡+(1−pmin⁡)(1−11+exp⁡(−kxt)),t≤tsparse,(3)\operatorname{top\text{-}p}_t = p_{\min} + (1 - p_{\min})\left(1 - \frac{1}{1 + \exp(-k x_t)}\right), \qquad t \leq t_{\mathrm{sparse}}, \tag*{(3)}

where pmin⁡p_{\min} denotes the minimum top-pp value, and xt=ℓt−ℓtpivotx_t = \ell_t - \ell_{t_{\mathrm{pivot}}} is defined by the log⁡SNR⁡(t)\log\operatorname{SNR}(t) difference between timestep tt and a pivot timestep tpivott_{\mathrm{pivot}}. The pivot is chosen automatically as the timestep immediately following the minimum difference between consecutive log⁡SNR⁡(t)\log\operatorname{SNR}(t) values, which typically lies near the smoothest denoising stage.

We choose τ∈(0,1)\tau\in(0, 1) to be very close to 1 in practice (e.g., 0.99 or 0.999), which controls how close the inverted sigmoid is to its upper bound at the first sparse timestep and thus determines the sigmoid slope as k=log⁡1τ∣ℓtsparse−ℓtpivot∣k = \frac{\log\frac{1}{\tau}}{\left\lvert\ell_{t_{\mathrm{sparse}}} - \ell_{t_{\mathrm{pivot}}} \right\rvert}. Finally, rather than introducing an additional parameter, we set the minimum retained ratio of key clusters by linearly scaling top-pp as min-pt=0.1⋅top-pttop-ptpivot\mathrm{min\text{-}p}_t = 0.1 \cdot\frac{\mathrm{top\text{-}p}_t}{\mathrm{top\text{-}p}_{t_{\mathrm{pivot}}}}.

As illustrated in Figure 4c, the final top-pp schedule resulting from log⁡SNR⁡(t)\log\operatorname{SNR}(t) keeps the sparse masking budget more stable in the early and late stages while reducing top-pp more smoothly in the middle stage, which better aligns with the stage-wise characteristics of denoising. Since the SNR sequence is fully determined by the predefined noise schedule, the top-pp values can be computed offline before video generation, largely saving runtime overhead during inference. To further illustrate this behavior, we visualize the computational density of iCATS across timesteps in Appendix § 9 (Figure 1), where density denotes the proportion of retained computations.

Tail-Merging Strategy

Motivated by the tail execution issue analyzed in § 3.3, iCATS develops a tail-merging strategy before the kernel computation of sparse attention to reduce the extra overhead caused by irregular cluster sizes. The core idea is to restructure query clusters in a hardware-friendly manner while preserving the original sparse attention pattern as much as possible, thereby reducing both scheduling and padding overhead. To this end, we first exploit merging opportunities that do not alter the original sparse pattern, and then further reduce the remaining tail waste.

Specifically, we merge query clusters within the same attention head that attend to the same set of key clusters. Because these clusters share the same attended key-cluster set, this operation preserves the original sparse attention pattern without introducing additional error, while reducing the number of query clusters and subsequent scheduling overhead.

We then handle query clusters whose sizes are not divisible by the block execution size, since their final execution blocks are only partially occupied while still fully computed, leading to tail overhead. Our goal is to reassign only tokens in these tail blocks to improve execution-block utilization while minimizing perturbation to the sparse attention pattern. To this end, we need to find suitable target clusters for these tail tokens. Specifically, we measure the compatibility between query clusters based on the similarity of their key-cluster masks. Each mask is represented as a packed binary vector, from which pairwise Hamming distances between clusters are computed. A smaller Hamming distance indicates that the key-cluster masks of two query clusters are more similar; when the merged mask is updated by union, this usually leads to fewer newly introduced key clusters, making them better candidates for merging. Under size and alignment constraints, we iteratively identify compatible cluster pairs and reassign the tail-block tokens of the source cluster to the target cluster. After merging, empty clusters are removed, and the remaining clusters are compactly reindexed. In implementation, we perform two rounds of tail merging. Detailed pseudocode is presented in Appendix § 13.§ 1.

Experiments and Analysis

Setup

Experimental setup. We evaluate iCATS on three mainstream video generation DiT models, including HunyuanVideo-T2V-13B, Wan2.1-T2V-14B, and Wan2.1-I2V-14B, for 5-second 720p generation. Following prior works [31, 17], we use the Penguin Benchmark with VBench [49, 50] prompt optimization for text-to-video evaluation. For image-to-video evaluation, we use VBench prompt-image pairs and resize the input images to 16:9 to match the 720p setting. Ablations are conducted on Wan2.1-T2V-14B using 138 randomly sampled text prompts. More setting details can be found in Appendix § 10.

Evaluation metrics. We measure the similarity between videos generated by the accelerated DiT models and the original DiT models using PSNR, SSIM [51], and LPIPS [52] and evaluate video quality with VBench [49]. The main paper reports the average VBench score, while the detailed breakdown over subject consistency, background consistency, motion smoothness, aesthetic quality, and imaging quality is reported in Appendix § 11. To assess practical efficiency, we report the speedup over the original dense attention. We also report sparsity, defined as the theoretical computation reduction ratio of sparse attention methods relative to dense attention.

Comparison setup. We compare iCATS against two state-of-the-art sparse attention methods, SVG [31] and SVG2 [17], using their official open-source implementations and settings for fair comparisons. Moreover, we evaluate two iCATS variants, Base and Turbo, whose hyperparameters are chosen to match the speed or sparsity of prior methods. Unless otherwise stated, experiments are conducted on eight NVIDIA H100 GPUs.

Quality & Efficiency Evaluation

Table 1 shows that iCATS-Base and iCATS-Turbo consistently achieve a better quality-efficiency trade-off than SVG and SVG2 on both HunyuanVideo-T2V-13B and Wan2.1-T2V-14B. At comparable speedup, iCATS-Base achieves better PSNR, SSIM, LPIPS, and VBench than SVG2, indicating stronger quality preservation. Meanwhile, iCATS-Turbo provides higher acceleration at similar sparsity while maintaining better reconstruction quality and competitive VBench scores. The same trend also holds on Wan2.1-I2V-14B, where iCATS-Base improves all reconstruction metrics and VBench over SVG2 at comparable speed, while iCATS-Turbo achieves the fastest inference among sparse methods and still maintains better reconstruction quality with matched VBench. Detailed VBench results can be found in Appendix § 11. Visualization comparisons are shown in Figure 1 and Appendix § 16. Results of cross-model and cross-task hyperparameter transfer without retuning are provided in Appendix § 14.

To understand the quality gains from interaction-aware clustering, we compare both clustering schemes with exact dense attention using two metrics. (i) Token-level top-pp selection overlap: for each query token qq, we compute its exact dense attention weights (full softmax over all keys) and apply top-pp (p=0.9p = 0.9) to obtain the keys selected for qq; the method computes keys in the key clusters selected for the query cluster containing qq; overlap is the fraction of dense-selected keys covered by the method, averaged over all query tokens. (ii) Attention output MSE between dense and masked attention outputs (attention weights multiplied by VV), with masked weights zeroed and the remaining weights renormalized. The diagnostics are conducted on Wan2.1-T2V-14B with 20 randomly sampled prompts, covering 5 timesteps (t=952,882,768,555,92t = 952, 882, 768, 555, 92), 5 layers (1, 10, 20, 30, 39), and 4 heads (0, 10, 20, 30) per layer. Both schemes share the same top-pp (0.9), min-pp (0.1), cluster configuration (400 query / 1000 key clusters), clustering iterations (50 at the first sparse timestep, then 2), warmup, and kernel implementation; only the clustering scheme differs. As shown in Table 2, interaction-aware clustering achieves higher selection overlap (+1.7 points) and a 36% lower output MSE, with consistent gains at every sampled timestep, layer, and head (Appendix § 12). These results indicate that interaction-aware clustering better matches dense attention in both region selection and attention outputs. On Wan2.1-T2V-14B over 20 randomly sampled prompts, replacing MQ/MKM_Q/M_K with exact QTQ/KTKQ^{\mathsf{T}}Q/K^{\mathsf{T}}K under the same SNR-guided sparsity schedule yields the same reported token-level overlap (0.912 for both), while increasing denoising time from 1219 s to 1257 s.

To quantify the effect of tail merging, we measure the reduction in execution blocks before and after merging at each sparse attention timestep, where execution blocks are defined following FlashInfer [53]. Figure 5 shows the average reduction ratio of iCATS, with the shaded region indicating the min-max range across layers. The reduction is largest at early timesteps and gradually decreases during denoising. The merging procedure is efficiently implemented in Triton [54]. On Wan2.1-T2V-14B running on an NVIDIA H100 GPU, each invocation of the merging function takes ∼\sim3 ms, while merging itself takes ∼\sim10 s per generation, which is negligible relative to the total inference time of 1222 s. More details are provided in Appendix § 13.§ 2. A detailed breakdown of the denoising runtime is provided in Appendix § 15.

Figure 5. Reduction ratio of execution blocks on Wan2.1-T2V-14B.

Cross-Hardware Validation

To evaluate the hardware generalization of iCATS, we further deploy iCATS-Turbo on Wan2.1-T2V-14B on the T-Head Zhenwu M890P3, an AI accelerator developed by Alibaba T-Head, with sparse kernel operators adapted to this platform. As shown in Table 3, iCATS achieves performance comparable to that on H100 GPUs, demonstrating strong adaptability and generalization across hardware platforms.

Human Evaluation

We blindly compare iCATS-Base with SVG2 on Wan2.1-T2V-14B using 20 VBench-optimized Penguin Benchmark prompts covering complex scenes, highly dynamic human actions, and simple static scenes. Eleven video-domain professionals with normal vision view anonymized, randomly ordered A/B pairs side by side on 2K screens, selecting the perceptually better video or “Similar Quality,” yielding 220 votes. Table 4 shows 54.1% preference for iCATS-Base, 18.6% for SVG2, and 27.3% similar quality, supporting iCATS-Base’s perceptual advantage on these samples beyond automatic metrics.

PreferenceVotesPercentage
SVG24118.6%
iCATS-Base11954.1%
Similar Quality6027.3%

Table 4. Human preference on Wan2.1-T2V-14B.

Ablation Study

We conduct ablation studies on the turbo variant on Wan2.1-T2V-14B to evaluate the contribution of interaction-aware clustering (IC), SNR-guided sparsity (SG), and tail-merging strategy (TM). Here, “Anchor” denotes the starting configuration built upon SVG2 settings.

As reported in Table 5, both IC and SG improve quality over Anchor, and their combination brings further gains, indicating that they are complementary. In particular, SG controls how the sparsity budget is allocated across timesteps, whereas IC improves how this budget is used for sparse region selection. Adding TM yields the best overall trade-off, improving speedup from 1.56×1.56 \times to 1.61×1.61 \times while achieving the best quality metrics. Although TM slightly reduces sparsity, it improves speed by reducing padding overhead. Overall, all three components contribute positively to final performance.

MethodPSNR↑\uparrowSSIM↑\uparrowLPIPS↓\downarrowTime↓\downarrowSparsity
Wan2.1-T2V-14B–––1890s–
Anchor25.8940.8680.1011227s (1.54×\times)68.7%
w/ IC26.4350.8780.0931224s (1.54×\times)69.9%
w/ SG27.3090.8900.0851219s (1.55×\times)69.5%
w/ TM26.0850.8720.0981223s (1.55×\times)67.9%
w/ IC & SG28.2830.9030.0741213s (1.56×\times)70.0%
w/ IC & SG & TM28.3720.9050.0721171s (1.61×\times)69.0%

Table 5. Ablation study on Wan2.1-T2V-14B

Conclusion & Limitation

We propose iCATS, a training-free sparse attention framework accelerating DiT-based video generation through improved importance estimation, sparse masking, and hardware execution. It replaces independent clustering with query–key interaction clustering and reformulates the resulting optimization for low-cost computation. SNR-guided scheduling adapts sparsity across denoising timesteps, while hardware-friendly tail merging reduces execution overhead. Together, these designs achieve state-of-the-art performance across DiT models.

Currently, the clustering procedure in iCATS is not optimized for multi-GPU parallel execution and is left for future work. The token-level sparse masking kernel also remains to be further optimized.

Acknowledgments and Disclosure of Funding

This work was supported by the National Natural Science Foundation of China (Grant No. 62571174), Alibaba Group through the Alibaba Innovative Research Program, and the Advanced Computing Center of Hangzhou Normal University. We thank the anonymous area chair and reviewers for their feedback on earlier drafts, and the outstanding prior works on video generation and sparse attention.

Appendix

SNR-Guided Sparsity

Figure 1 illustrates the efficacy of our proposed SNR-guided sparsity in iCATS. Specifically, we present the density changes across timesteps on Wan2.1-T2V-14B. As shown, iCATS allocates computation dynamically along the denoising trajectory: it keeps full computation during warmup, gradually reduces density in the middle stage, and stabilizes in the late stage. Compared with the fixed-density baseline SVG2 (the light blue dotted line in Figure 1), iCATS preserves more computation early on while using much lower density later, with iCATS-Turbo being more aggressive.

Figure 1 (PDF p. 14). Density of the original full attention, SVG2, and our iCATS across timesteps on Wan2.1-T2V-14B.

Detailed Experimental Settings

This appendix provides the detailed settings for all compared methods.

Compared methods. We compare iCATS with two state-of-the-art sparse attention baselines, SVG and SVG2. On HunyuanVideo-T2V-13B, Wan2.1-T2V-14B and Wan2.1-I2V-14B, all baseline methods follow their official open-source implementations and default settings, including warmup timesteps, warmup layers, and the number of clustering iterations.

iCATS variants. We evaluate two variants of iCATS, Base and Turbo, designed to match the speed or sparsity of prior methods under different models. For fair comparison, the warmup timesteps, warmup layers, and clustering iterations of iCATS follow the baseline configuration of each model, as summarized in Table 1.

MethodPSNR↑\uparrowSSIM↑\uparrowLPIPS↓\downarrowVBench↑\uparrowTime (s)↓\downarrowSparsity
HunyuanVideo-T2V-13B (Dense)–––0.8441730–
SVG20.3620.7250.2350.843874 (1.98×\times)75.8%
SVG226.2470.8690.0970.842853 (2.03×\times)71.5%
iCATS-Base31.0170.9260.0500.844854 (2.03×\times)66.1%
iCATS-Turbo30.4660.9220.0540.844827 (2.09×\times)70.3%
Wan2.1-T2V-14B (Dense)–––0.8391889–
SVG21.4970.7410.1970.8361220 (1.55×\times)65.7%
SVG225.6060.8530.0980.8371226 (1.54×\times)68.6%
iCATS-Base29.3010.9080.0580.8381222 (1.55×\times)61.7%
iCATS-Turbo28.1720.8950.0680.8371176 (1.61×\times)69.0%
Wan2.1-I2V-14B (Dense)–––0.8471519–
SVG26.5330.8470.1010.8441088 (1.40×\times)65.7%
SVG229.0820.8900.0670.8451081 (1.41×\times)69.9%
iCATS-Base30.6060.9110.0560.8461084 (1.41×\times)63.2%
iCATS-Turbo30.0970.9050.0600.8461057 (1.44×\times)68.9%

Table 1. Comparison with existing works on various benchmark models

ModelWarmup timestepsWarmup layersCluster iters (first/later)
HunyuanVideo-T2V-13B5/501/6050/2
Wan2.1-T2V-14B10/501/4050/2
Wan2.1-I2V-14B14/401/4050/2

Table 1 (PDF p. 14). Warmup and clustering configurations for each model.

For HunyuanVideo-T2V-13B, both iCATS variants use 500 query clusters and 1000 key clusters. The Base variant uses pmin⁡=0.7p_{\min} = 0.7 and τ=0.98\tau= 0.98, while the Turbo variant uses pmin⁡=0.65p_{\min} = 0.65 and τ=0.97\tau= 0.97.

For Wan2.1-T2V-14B, both iCATS variants use 400 query clusters and 1000 key clusters. The Base variant uses pmin⁡=0.7p_{\min} = 0.7 and τ=0.999\tau= 0.999, while the Turbo variant uses pmin⁡=0.65p_{\min} = 0.65 and τ=0.97\tau= 0.97.

For Wan2.1-I2V-14B, both iCATS variants use 400 query clusters and 1000 key clusters. The Base variant uses pmin⁡=0.8p_{\min} = 0.8 and τ=0.999\tau= 0.999, while the Turbo variant uses pmin⁡=0.75p_{\min} = 0.75 and τ=0.98\tau= 0.98.

These settings are chosen to provide comparable speed or sparsity to prior sparse attention methods.

Additional VBench Results

Table 2 reports detailed VBench results for all compared methods across all models. Specifically, we report subject consistency, background consistency, motion smoothness, aesthetic quality, imaging quality, and the averaged VBench score. These fine-grained results complement the average scores reported in the main paper and provide a clearer view of quality preservation under sparse attention.

MethodTop-pp overlap↑\uparrowOutput MSE (×10−4\times10^{-4})↓\downarrow
Independent Euclidean clustering0.8968.99
Interaction-aware clustering (ours)0.9135.75

Table 2. Attention fidelity of different clustering schemes on Wan2.1-T2V-14B.

Overall, iCATS remains highly competitive with dense attention and strong sparse baselines across all models. On HunyuanVideo-T2V-13B, both iCATS-Base and iCATS-Turbo achieve an average VBench score of 0.844, exactly matching dense attention. More specifically, both variants match dense attention in subject consistency, background consistency, motion smoothness, and imaging quality. Compared with existing sparse baselines, iCATS further achieves the strongest subject consistency while remaining tied for the best background consistency and motion smoothness. These results indicate that the proposed sparse attention design preserves identity consistency, scene coherence, temporal stability, and visual fidelity without measurable degradation on this model.

On Wan2.1-T2V-14B, iCATS-Base achieves an average VBench score of 0.838, outperforming SVG (0.836) and slightly surpassing SVG2 (0.837), while iCATS-Turbo matches SVG2 at 0.837. In addition, iCATS remains competitive in subject consistency and background consistency, preserves motion smoothness close to other sparse methods, and achieves the strongest imaging quality among the sparse variants. These results suggest that the proposed sparse attention design preserves both structural coherence and visual fidelity well, while still enabling substantial efficiency gains.

On Wan2.1-I2V-14B, iCATS likewise remains highly competitive with dense attention. Both iCATS-Base and iCATS-Turbo achieve an average VBench score of 0.846, exceeding SVG (0.844) and SVG2 (0.845) while staying very close to dense attention (0.847). Looking at the detailed dimensions, iCATS-Base matches dense attention in imaging quality, iCATS-Turbo matches dense attention in background consistency, and both variants preserve the same motion smoothness as dense attention. Meanwhile, subject consistency and aesthetic quality also remain competitive with the strongest sparse baselines, showing that iCATS generalizes well beyond text-to-video generation and can maintain strong appearance consistency, scene coherence, motion quality, and perceptual fidelity in the image-to-video setting.

MethodSub.Cons.↑\uparrowBack.Cons.↑\uparrowMot.Smooth↑\uparrowAes.Qual.↑\uparrowImg.Qual.↑\uparrowVBench (Avg.)↑\uparrow
HunyuanVideo-T2V-13B (Dense)0.9400.9590.9940.6280.6980.844
SVG0.9380.9590.9940.6320.6930.843
SVG20.9390.9590.9930.6270.6950.842
iCATS-Base0.9400.9590.9940.6270.6980.844
iCATS-Turbo0.9400.9590.9940.6270.6980.844
Wan2.1-T2V-14B (Dense)0.9340.9550.9870.6300.6890.839
SVG0.9290.9530.9870.6290.6860.836
SVG20.9310.9540.9860.6300.6840.837
iCATS-Base0.9320.9540.9860.6290.6870.838
iCATS-Turbo0.9310.9530.9860.6290.6870.837
Wan2.1-I2V-14B (Dense)0.9580.9580.9860.6180.7160.847
SVG0.9530.9540.9860.6120.7150.844
SVG20.9560.9550.9860.6140.7150.845
iCATS-Base0.9560.9570.9860.6150.7160.846
iCATS-Turbo0.9550.9580.9860.6160.7150.846

Table 2 (PDF p. 15). Detailed VBench comparison with existing methods on benchmark models

Attention Fidelity Breakdown

Table 3 breaks down the attention fidelity diagnostics in Table 2 of the main paper by timestep, layer, and head. Interaction-aware clustering consistently outperforms independent Euclidean clustering on both metrics across all sampled points.

MethodPSNR↑\uparrowSSIM↑\uparrowLPIPS↓\downarrowTime (s)↓\downarrowSpeedup↑\uparrowSparsity
Wan2.1-T2V-14B (Dense)–––2828––
SVG21.8470.7740.18622081.28×\times65.7%
SVG226.3210.8700.08822141.28×\times68.9%
iCATS-Turbo28.8490.9030.06120731.36×\times68.9%

Table 3. Comparison of different methods on Wan2.1-T2V-14B using the Zhenwu M890P.

95288276855592
Timestep tt
Top-p overlap↑0.902 / 0.8910.914 / 0.8960.915 / 0.8960.916 / 0.8970.917 / 0.901
Output MSE↓8.91 / 11.756.33 / 9.525.41 / 8.274.71 / 7.483.40 / 7.91
Layer110203039
Top-p overlap↑0.947 / 0.9410.879 / 0.8630.881 / 0.8630.904 / 0.8800.952 / 0.935
Output MSE↓1.36 / 4.1918.42 / 20.224.76 / 5.592.68 / 10.741.55 / 4.19
Head0102030–
Top-p overlap↑0.933 / 0.9190.920 / 0.9100.903 / 0.8920.894 / 0.866–
Output MSE↓5.25 / 8.544.81 / 5.047.04 / 7.285.91 / 15.08–

Table 3 (PDF p. 16). Breakdown of attention fidelity on Wan2.1-T2V-14B by timestep, layer, and head. Each entry is reported as “interaction-aware (ours) / Euclidean”; MSE values are in units of 10−410^{-4}.

Tail-Merging Strategy

Algorithm Overview

Algorithm 1 Proposed Tail-merging Strategy

Input:

L∈ZBH×NL \in\mathbb{Z}^{BH \times N}: query-cluster labels; s∈ZBH×Cs \in\mathbb{Z}^{BH \times C}: cluster sizes; CC: number of query-clusters

P∈{0,1}BH×C×WP \in\{0,1\}^{BH \times C \times W}: key-cluster mask per cluster; WW: number of key-clusters; bb: block stride

Output:

L′∈ZBH×NL' \in\mathbb{Z}^{BH \times N}: updated labels; s′∈ZBH×C′s' \in\mathbb{Z}^{BH \times C'}: merged sizes (C′≤CC' \le C); M′∈{0,1}BH×C′×WM' \in\{0,1\}^{BH \times C' \times W}: merged masks

  1. Ppack←PackToInt64⁡(P)P_{\mathrm{pack}} \leftarrow\operatorname{PackToInt64}(P); (P∗,π)←Unique⁡([head_id,Ppack])(P^*, \pi) \leftarrow\operatorname{Unique}([\mathrm{head\_id}, P_{\mathrm{pack}}]) ▷ merge clusters with identical key-cluster masks within each head

  2. if duplicate masks exist then

  3. s∗←IndexAdd⁡(π,s)s^* \leftarrow\operatorname{IndexAdd}(\pi, s); L∗←Remap⁡(L,π)L^* \leftarrow\operatorname{Remap}(L,\pi) ▷ accumulate sizes of merged clusters; rewrite token labels via π\pi

  4. else

  5. L∗,s∗,P∗←L,s,PpackL^*, s^*, P^* \leftarrow L, s, P_{\mathrm{pack}}

  6. end if

  7. τ←s∗ mod b\tau\leftarrow s^* \bmod b; T←ComputeIsTail⁡(L∗,s∗,b)T \leftarrow\operatorname{ComputeIsTail}(L^*,s^*,b) ▷ τi\tau_i: tail length of cluster ii; T∈{0,1}BH×NT \in\{0,1\}^{BH \times N} flags tail tokens

  8. if ∃τi>0\exists\tau_i > 0 then

  9. D←HammingDist⁡(P∗,P∗)D \leftarrow\operatorname{HammingDist}(P^*,P^*); Dii←∞D_{ii} \leftarrow\infty

  10. Dij←∞D_{ij} \leftarrow\infty if τi=0∨τj=0∨τi+τj>b\tau_i=0 \lor\tau_j=0 \lor\tau_i+\tau_j>b ▷ forbid self-merge, clusters without tails, and tail overflow

  11. for r=1,2r=1,2 do

  12. j∗(i)←arg⁡min⁡jDijj^*(i) \leftarrow\arg\min_j D_{ij}; E←{(i,j):j∗(i)=j, j∗(j)=i, i<j}E \leftarrow\{(i,j):j^*(i)=j,\ j^*(j)=i,\ i<j\} ▷ nearest neighbor by mask similarity; mutually selected pairs only

  13. if E=∅E=\varnothing then break

  14. end if

  15. for (i,j)∈E(i,j)\in E do

  16. Pi∗←Pi∗∪Pj∗P_i^* \leftarrow P_i^* \cup P_j^*; si∗+=τjs_i^* \mathrel{+}= \tau_j; sj∗−=τjs_j^* \mathrel{-}= \tau_j ▷ merge masks via bitwise OR; transfer τj\tau_j tail tokens from jj to ii

  17. Ln∗←i ∀n:Ln∗=j∧Tn=1L_n^* \leftarrow i\ \forall n:L_n^*=j\land T_n=1; Dj,⋅=D⋅,j←∞D_{j,\cdot}=D_{\cdot,j}\leftarrow\infty ▷ reassign tail tokens of jj to ii; invalidate jj in this round

  18. end for

  19. if r<2r<2 then

  20. τ←s∗ mod b\tau\leftarrow s^* \bmod b; T←ComputeIsTail⁡(L∗,s∗,b)T \leftarrow\operatorname{ComputeIsTail}(L^*,s^*,b); recompute DD and reapply constraints to DD

  21. end if

  22. end for

  23. end if

  24. L′←Remap⁡(L∗,s∗>0)L' \leftarrow\operatorname{Remap}(L^*,s^*>0); s′←s∗[s∗>0]s' \leftarrow s^*[s^*>0]; M′←Unpack⁡(P∗[s∗>0])M' \leftarrow\operatorname{Unpack}(P^*[s^*>0]) ▷ remove empty clusters and compact indices

  25. return L′,s′,M′L',s',M'

Algorithm 1 summarizes the complete tail merging procedure in iCATS. Given per-token cluster assignments, cluster sizes, and binary key-cluster masks, we first pack each mask into a compact integer and, within each head, merge clusters with identical masks exactly by summing their sizes and remapping token labels. We then selectively reassign tail tokens from non-block-aligned clusters: a pair (i,j)(i, j) with i<ji < j is merged only if the two clusters are mutually closest in Hamming distance and their tails fit into one block, moving the tail tokens of jj into ii and merging their masks by union, which improves block utilization while largely preserving the original sparsity structure. After two rounds, empty clusters are removed and the rest are compactly reindexed within each head for subsequent sparse attention computation.

Implementation Details

In line with the previous cluster-based method [17], in our implementation, we employ FlashInfer [53] to execute sparse attention. To evaluate the effectiveness of the tail-merging strategy, we measure the relative reduction in the number of executed blocks under the iCATS-Base setting, with SNR-guided sparsity configured by τ=0.999\tau= 0.999 and pmin⁡=0.7p_{\min} = 0.7. FlashInfer organizes sparse attention computation into execution blocks, e.g., with a query-side block size of 128 and a key/value-side block size of 96. As shown in Figure 2, the average reduction across layers is about 25% at early denoising timesteps where the sparsity level remains low. As denoising progresses and the sparsity increases according to the SNR-guided sparsity schedule (see Figure 1), the key/value sequence length also decreases, and thus this average reduction gradually decreases to around 7%. The min-max range in Figure 2 further shows the variation in block reduction ratio across sparse attention layers at each denoising timestep.

Figure 2 (PDF p. 17). Relative reduction in the number of executed FlashInfer blocks on Wan2.1-T2V-14B under the iCATS-Base setting.

Hyperparameter Sensitivity and Transferability

In the main experiments, model-specific hyperparameters are chosen to match the runtime or sparsity of the corresponding baselines. To examine whether these settings can be reused across models and tasks, we directly transfer the query/key cluster counts and SNR-guided sparsity hyperparameters of HunyuanVideo-Base to Wan2.1-T2V-14B and Wan2.1-I2V-14B without retuning. Warmup timesteps, warmup layers, and clustering iterations follow each target model’s baseline settings, while tail merging uses two rounds throughout. We evaluate the transferred configuration using 100 randomly sampled prompts.

Table 4 shows that the transferred configuration achieves better PSNR, SSIM, and LPIPS than SVG2 on both tasks at comparable speedup. On Wan2.1-T2V-14B, it achieves 28.656 dB PSNR, compared with 25.411 dB for SVG2, while differing from the Wan-tuned iCATS-Base configuration by only 0.404 dB. On Wan2.1-I2V-14B, it improves PSNR from 29.068 to 29.810 dB with slightly higher speedup. These results support the reuse of a shared clustering and sparsity-schedule configuration across the evaluated models and tasks.

We further examine hyperparameter sensitivity on Wan2.1-T2V-14B using the same prompt set. Starting from the Base setting (τ=0.999\tau= 0.999, pmin⁡=0.7p_{\min} = 0.7), we independently decrease τ\tau to 0.99, 0.98, and 0.97, or decrease pmin⁡p_{\min} to 0.6, while keeping all other settings fixed. Unlike the configuration-transfer experiment, these runs retain the Wan-specific query/key cluster counts to isolate the effects of the two sparsity-schedule hyperparameters.

MethodPSNR↑\uparrowSSIM↑\uparrowLPIPS↓\downarrowSpeedup↑\uparrowSparsity
Wan2.1-T2V-14B
SVG225.4110.8450.1011.54×68.7%
iCATS-Base (Wan-tuned)29.0600.9040.0601.54×60.5%
iCATS (transferred)28.6560.8990.0651.55×66.2%
Wan2.1-I2V-14B
SVG229.0680.8900.0671.42×70.1%
iCATS (transferred)29.8100.9010.0631.44×71.5%

Table 4 (PDF p. 18). Hyperparameter transfer from HunyuanVideo-Base to Wan2.1 without retuning.

As shown in Table 5, decreasing either parameter increases sparsity and speedup, with a gradual reduction in reconstruction quality. Across the tested τ\tau values, sparsity increases from 60.5% to 66.4%, while speedup increases from 1.54× to 1.58×. All tested settings retain better PSNR, SSIM, and LPIPS than SVG2, indicating that the quality advantage is maintained across the evaluated parameter range rather than depending on a single setting.

SettingPSNR↑\uparrowSSIM↑\uparrowLPIPS↓\downarrowSpeedup↑\uparrowSparsity
SVG225.4110.8450.1011.54×68.7%
iCATS-Base29.0600.9040.0601.54×60.5%
τ=0.99\tau= 0.9928.7160.9000.0631.55×63.4%
τ=0.98\tau= 0.9828.5370.8970.0651.56×65.2%
τ=0.97\tau= 0.9728.3920.8950.0671.58×66.4%
pmin⁡=0.6p_{\min} = 0.628.5760.8960.0661.57×63.8%

Table 5 (PDF p. 18). Hyperparameter sensitivity on Wan2.1-T2V-14B. Each variant changes only the indicated parameter from iCATS-Base.

Runtime Breakdown

We profile iCATS-Turbo on Wan2.1-T2V-14B over 10 randomly sampled prompts using NVIDIA H100 GPUs and CUDA events. We use 50 denoising steps, 40 layers, 10 dense warmup steps, one dense warmup layer, and classifier-free guidance, with approximately 70% average sparsity over sparse timesteps. Timings cover denoising only, excluding model loading, text encoding, and VAE decoding.

ComponentTime (s)
Dense attention286.5
Sparse attention kernel263.3
Clustering78.5
Token permutation11.2
Tail merging10.6
Sparse mask construction3.8
Others (proj., QK-norm, RoPE, FFN, cross-attn., norm, etc.)507.1
Total1161.0

Table 6. Runtime breakdown of iCATS-Turbo.

Clustering accounts for 6.8% of the total denoising time. Following prior methods, we use 50 initialization iterations and two refinement iterations at later timesteps, warm-started from previous centroids. Other DiT operations include projections, QK normalization, RoPE, FFNs, cross-attention, and normalization.

Additional Visualizations

We provide additional visualization comparisons between iCATS and dense attention on Wan2.1-T2V-14B. These examples demonstrate that iCATS preserves high visual fidelity and maintains generation quality that is visually close to the original dense attention across diverse scenes and motion patterns.

Figure 3 (PDF p. 19). Dense. Ours. A sleek skateboard with a vibrant, graffiti-inspired design on its deck rests on a sunlit, urban street. The camera zooms in to reveal the intricate artwork, featuring bold colors and dynamic patterns. The scene transitions to a close-up of the skateboard's wheels, which are a striking neon green, spinning smoothly as the board glides effortlessly over the pavement. The background blurs slightly, emphasizing the skateboard's motion. Finally, the skateboarder, wearing a pair of worn-out sneakers and ripped jeans, performs a series of impressive tricks, including an ollie and a kickflip, showcasing the skateboard's agility and the rider's skill against the backdrop of a bustling cityscape.

Dense. Ours. A vibrant blue jay perches gracefully on a slender branch, its feathers shimmering in the soft morning light. The bird's keen eyes scan the surroundings, capturing the essence of the tranquil forest. It flutters its wings briefly, showcasing the intricate patterns of blue, white, and black on its plumage. The background reveals a lush canopy of green leaves, with rays of sunlight filtering through, creating a dappled effect on the forest floor. The blue jay then tilts its head, emitting a melodious call that echoes through the serene woodland, adding a touch of magic to the peaceful scene

Dense. Ours. A sleek, modern bicycle with a matte black frame and aerodynamic design begins its journey on a smooth, sunlit road. The rider, clad in a fitted, neon green cycling suit and helmet, leans forward, gripping the handlebars tightly. The camera captures the initial slow pedal strokes, the wheels spinning with increasing speed. As the bicycle accelerates, the background blurs, emphasizing the rapid motion. The rider's muscles tense and flex, showcasing the effort and determination. The sunlight glints off the bike's frame and the rider's helmet, creating a dynamic interplay of light and shadow. The sound of the wind rushing past and the rhythmic clicking of the gears enhance the sensation of speed and exhilaration.

Dense. Ours. A focused individual grips the steering wheel of a sleek, modern car, the dashboard illuminated by soft, ambient lighting. The camera captures the driver's profile, revealing a calm expression and a pair of stylish sunglasses. Outside the window, a picturesque landscape of rolling hills and a setting sun unfolds, casting a golden glow over the scene. The interior of the car is luxurious, with leather seats and a state-of-the-art infotainment system. As the car glides smoothly along the winding road, the driver occasionally glances at the rearview mirror, reflecting a serene, empty highway behind. The journey exudes a sense of freedom and tranquility, with the gentle hum of the engine providing a soothing soundtrack.

caption: Visualization comparison between iCATS and dense attention on Wan2.1-T2V-14B.

Figure 3 (PDF p. 20). Dense

Ours

A dimly lit music studio, filled with an array of high-end equipment, sets the scene. The room is adorned with soundproofing foam panels, creating an intimate and professional atmosphere. A sleek black grand piano sits in one corner, its polished surface reflecting the soft glow of ambient lighting. Nearby, a vintage microphone on a stand awaits the next vocal performance. The mixing console, with its myriad of buttons and sliders, is the heart of the studio, surrounded by monitors displaying intricate waveforms. Shelves lined with vinyl records and musical instruments, including guitars and a drum set, add to the creative vibe. The air is thick with the promise of musical magic, as the studio stands ready to capture the next hit.

Dense

Ours

A vibrant orange ceramic bowl sits on a rustic wooden table, bathed in the soft glow of morning sunlight streaming through a nearby window. The bowl's glossy surface reflects the light, highlighting its smooth curves and rich color. Inside, a collection of fresh, colorful fruits—red apples, green grapes, and yellow bananas—create a striking contrast against the bowl's vivid hue. The scene is serene and inviting, with the background featuring a blurred view of a cozy kitchen, complete with potted plants and vintage decor, enhancing the warm, homely atmosphere.

Figure 3 continued.

References

  1. [1]Peebles, W., S. Xie. Scalable diffusion models with transformers. arXiv preprint arXiv:2212.09748, 2022.arxiv.org/abs/2212.09748
  2. [2]Team Wan, A. Wang, B. Ai, et al. Wan: Open and advanced large-scale video generative models. arXiv preprint arXiv:2503.20314, 2025.arxiv.org/abs/2503.20314
  3. [3]Kong, W., Q. Tian, Z. Zhang, et al. HunyuanVideo: A systematic framework for large video generative models. arXiv preprint arXiv:2412.03603, 2024.arxiv.org/abs/2412.03603
  4. [4]Yang, Z., J. Teng, W. Zheng, et al. CogVideoX: Text-to-video diffusion models with an expert transformer. arXiv preprint arXiv:2408.06072, 2024.arxiv.org/abs/2408.06072
  5. [5]Gao, Y., H. Guo, T. Hoang, et al. Seedance 1.0: Exploring the boundaries of video generation models. arXiv preprint arXiv:2506.09113, 2025.arxiv.org/abs/2506.09113
  6. [6]Team Seedance, D. Chen, L. Chen, et al. Seedance 2.0: Advancing video generation for world complexity, 2026.arxiv.org/abs/2604.14148
  7. [7]Kling Team, J. Chen, Y. Ci, et al. Kling-Omni technical report, 2025.
  8. [8]Wu, B., C. Zou, C. Li, et al. HunyuanVideo 1.5 technical report, 2025.arxiv.org/abs/2511.18870
  9. [9]Liu, Y., K. Zhang, Y. Li, et al. Sora: A review on background, technology, limitations, and opportunities of large vision models, 2024.arxiv.org/abs/2402.17177
  10. [10]Feng, W., C. Yang, H. Qin, et al. QuantSparse: Comprehensively compressing video diffusion transformer with model quantization and attention sparsification. In The Fourteenth International Conference on Learning Representations. 2026.arxiv.org/abs/2509.23681
  11. [11]Li, S., R. Lu, Q. Chen, et al. DSA: Efficient inference for video generation models via distributed sparse attention. In The Fourteenth International Conference on Learning Representations. 2026.
  12. [12]Zhou, X., Q. Mang, S. Yang, et al. SVG-EAR: Parameter-free linear compensation for sparse video generation via error-aware routing, 2026.arxiv.org/abs/2603.08982
  13. [13]Vaswani, A., N. Shazeer, N. Parmar, et al. Attention is all you need. In Advances in Neural Information Processing Systems, vol. 30. 2017.arxiv.org/abs/1706.03762
  14. [14]Zhang, P., Y. Chen, R. Su, et al. Fast video generation with sliding tile attention. In Forty-second International Conference on Machine Learning. 2025.arxiv.org/abs/2502.04507
  15. [15]Chen, A., B. Dong, J. Li, et al. Rainfusion: Adaptive video generation acceleration via multi-dimensional visual redundancy. arXiv preprint arXiv:2505.21036, 2025.arxiv.org/abs/2505.21036
  16. [16]Chen, A., Y. Liu, J. Huang, et al. RainFusion2.0: Temporal-spatial awareness and hardware-efficient block-wise sparse attention. arXiv preprint arXiv:2512.24086, 2025.arxiv.org/abs/2512.24086
  17. [17]Yang, S., H. Xi, Y. Zhao, 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.
  18. [18]Chen, P., X. Zeng, M. Zhao, et al. Sparse-vDiT: Unleashing the power of sparse attention to accelerate video diffusion transformers. arXiv preprint arXiv:2506.03065, 2025.arxiv.org/abs/2506.03065
  19. [19]Li*, X., M. Li*, T. Cai, et al. Radial Attention: O(n log n) sparse attention with energy decay for long video generation. arXiv preprint arXiv:2506.19852, 2025.arxiv.org/abs/2506.19852
  20. [20]Zhang, P., Y. Chen, H. Huang, et al. Faster video diffusion with trainable sparse attention. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, N. Chen, eds., Advances in Neural Information Processing Systems, vol. 38, pages 152509–152534. Curran Associates, Inc., 2025.DOI
  21. [21]Liu, X., Z. Li, J. Zhang, et al. Rectified SpaAttn: Revisiting attention sparsity for efficient video generation. arXiv preprint arXiv:2511.19835, 2025.arxiv.org/abs/2511.19835
  22. [22]Agarwal, K., Z. Chen, C. Luo, et al. MonarchRT: Efficient attention for real-time video generation, 2026.arxiv.org/abs/2602.12271
  23. [23]Luo, J., J. Chen, J. Wang, et al. Training-free sparse attention for fast video generation via offline layer-wise sparsity profiling and online bidirectional co-clustering, 2026.
  24. [24]Zhang, J., H. Wang, K. Jiang, et al. SLA: Beyond sparsity in diffusion transformers via fine-tunable sparse-linear attention. In The Fourteenth International Conference on Learning Representations. 2026.arxiv.org/abs/2509.24006
  25. [25]—. SLA2: Sparse-linear attention with learnable routing and qat. arXiv preprint arXiv:2602.12675, 2026.arxiv.org/abs/2602.12675
  26. [26]Chen, J., Y. Zhao, J. Yu, et al. SANA-Video: Efficient video generation with block linear diffusion transformer. In The Fourteenth International Conference on Learning Representations. 2026.arxiv.org/abs/2509.24695
  27. [27]Fang, T., H. Zhang, R. Xie, et al. SALAD: Achieve high-sparsity attention via efficient linear attention tuning for video diffusion transformer, 2026.arxiv.org/abs/2601.16515
  28. [28]Shmilovich, D., T. Wu, A. Dahan, et al. LiteAttention: A temporal sparse attention for diffusion transformers, 2025.arxiv.org/abs/2511.11062
  29. [29]Zhang, Y., J. Xing, B. Xia, et al. Training-free efficient video generation via dynamic token carving. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, N. Chen, eds., Advances in Neural Information Processing Systems, vol. 38, pages 81913–81946. Curran Associates, Inc., 2025.arxiv.org/abs/2505.16864
  30. [30]Li, X., Y. Gu, X. Lin, et al. PSA: Pyramid sparse attention for efficient video understanding and generation, 2025.arxiv.org/abs/2512.04025
  31. [31]Xi, H., S. Yang, Y. Zhao, et al. Sparse Video-Gen: Accelerating video diffusion transformers with spatial-temporal sparsity. In Forty-second International Conference on Machine Learning. 2025.arxiv.org/abs/2502.01776
  32. [32]Liang, C., H. Chen, L. Hou, et al. VMonarch: Efficient video diffusion transformers with structured attention, 2026.arxiv.org/abs/2601.22275
  33. [33]Xia, Y., S. Ling, F. Fu, et al. Training-free and adaptive sparse attention for efficient long video generation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 15982–15993. 2025.arxiv.org/abs/2502.21079
  34. [34]Zhu, K., T. Tang, Q. Xu, et al. Tactic: Adaptive sparse attention with clustering and distribution fitting for long-context LLMs. In The Fourteenth International Conference on Learning Representations. 2026.arxiv.org/abs/2502.12216
  35. [35]Lin, C., J. Tang, S. Yang, et al. Twilight: Adaptive attention sparsity with hierarchical top-p pruning. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, N. Chen, eds., Advances in Neural Information Processing Systems, vol. 38, pages 119406–119432. Curran Associates, Inc., 2025.arxiv.org/abs/2502.02770
  36. [36]Ho, J., A. Jain, P. Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020.arxiv.org/abs/2006.11239
  37. [37]Song, Y., J. Sohl-Dickstein, D. P. Kingma, et al. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations. 2021.
  38. [38]Lipman, Y., R. T. Chen, H. Ben-Hamu, et al. Flow matching for generative modeling. arXiv preprint arXiv:2210.02747, 2022.arxiv.org/abs/2210.02747
  39. [39]Dao, T., D. Fu, S. Ermon, et al. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in neural information processing systems, 35:16344–16359, 2022.arxiv.org/abs/2205.14135
  40. [40]Dao, T. Flashattention-2: Faster attention with better parallelism and work partitioning. arXiv preprint arXiv:2307.08691, 2023.arxiv.org/abs/2307.08691
  41. [41]Shah, J., G. Bikshandi, Y. Zhang, et al. Flashattention-3: Fast and accurate attention with asynchrony and low-precision. Advances in Neural Information Processing Systems, 37:68658–68685, 2024.arxiv.org/abs/2407.08608
  42. [42]Zadouri, T., M. Hoehnerbach, J. Shah, et al. Flashattention-4: Algorithm and kernel pipelining co-design for asymmetric hardware scaling, 2026.arxiv.org/abs/2603.05451
  43. [43]Tan, X., Y. Chen, Y. Jiang, et al. Dsv: Exploiting dynamic sparsity to accelerate large-scale video dit training. arXiv preprint arXiv:2502.07590, 2025.arxiv.org/abs/2502.07590
  44. [44]Wu, J., L. Hou, H. Yang, et al. VMoBA: Mixture-of-block attention for video diffusion models. In The Fourteenth International Conference on Learning Representations. 2026.arxiv.org/abs/2506.23858
  45. [45]Dong, J., B. Feng, D. Guessous, et al. Flex Attention: A programming model for generating optimized attention kernels, 2024.arxiv.org/abs/2412.05496
  46. [46]Zhang, J., C. Xiang, H. Huang, et al. SpargeAttention: Accurate and training-free sparse attention accelerating any model inference. In Forty-second International Conference on Machine Learning. 2025.arxiv.org/abs/2502.18137
  47. [47]Xu, R., G. Xiao, H. Huang, et al. XAttention: Block sparse attention with antidiagonal scoring. In Forty-second International Conference on Machine Learning. 2025.arxiv.org/abs/2503.16428
  48. [48]Yang, S., H. Xi, Y. Zhao, et al. Flash-kmeans: Fast and memory-efficient exact k-means, 2026.arxiv.org/abs/2603.09229
  49. [49]Huang, Z., Y. He, J. Yu, et al. VBench: Comprehensive benchmark suite for video generative models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2024.arxiv.org/abs/2311.17982
  50. [50]Zheng, D., Z. Huang, H. Liu, et al. VBench-2.0: Advancing video generation benchmark suite for intrinsic faithfulness. arXiv preprint arXiv:2503.21755, 2025.arxiv.org/abs/2503.21755
  51. [51]Wang, Z., A. C. Bovik, H. R. Sheikh, et al. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600–612, 2004.pubmed.ncbi.nlm.nih.gov/15376593
  52. [52]Zhang, R., P. Isola, A. A. Efros, et al. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 586–595. 2018.arxiv.org/abs/1801.03924
  53. [53]Ye, Z., L. Chen, R. Lai, et al. FlashInfer: Efficient and customizable attention engine for LLM inference serving. In Eighth Conference on Machine Learning and Systems. 2025.arxiv.org/abs/2501.01005
  54. [54]Tillet, P., H.-T. Kung, D. 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.DOI

Machine contribution statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How machine contributions are recorded

Paper details

Citation

Cite
Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Contents

Pick where to look, or just type