Manuscript Offprint

arXiv:2611.05917

DecoupAttn: Decoupled Sparse Attention for Training-Free Acceleration of Video Diffusion

Yanjin Li, Bingbing Qiu, Qiang Huang, Rui Qian, Yanfeng Li, Jian Wang, Xiaoying Tang, Mingda Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Sparse attention accelerates few-step video diffusion transformers by computing a few key blocks exactly and compensating for the rest. However, existing sparse attention still faces key challenges, including identification overhead from finding critical blocks at every denoising step, suboptimal budget allocation that sets sparsity budgets uniformly or by local metrics, and cross-step error accumulation as reused masks or clusters go stale. Observing that the errors left on skipped blocks cancel each other once every key is compensated, we propose DecoupAttn, a new paradigm of decoupled sparse attention: semantic clusters compensate every key, and exact attention corrects their error on a few blocks fixed once offline by position. To support this paradigm, we introduce Distortion Budget, a rate-distortion objective for budget allocation that places exact computation across timesteps, layers, and heads where it removes the most distortion that compensation leaves in the final latent. Built on this budget, we further propose Reassign Cache, in which each step reassigns the drifting keys to cached centroids and refreshes compensation while the budgeted blocks stay fixed. Moreover, DecoupAttn is training-free: a few calibration clips compile one plan offline, and inference runs standard block-sparse kernels with one fused compensation kernel. Our code will be released after submission.

1. Introduction

In recent years, video diffusion transformers have been applied to a wide range of generation tasks, from text-to-video synthesis [34] to controlled generation [24] and neural rendering [15], gradually moving from many-step samplers toward few-step distilled generators [6, 44]. Sparse attention makes these generators fast without retraining: since attention grows quadratically with video length, it computes a few key blocks exactly and compensates for the rest, keeping near-dense fidelity (Figure 1). However, existing methods tie compensation to block selection: the groups that pick the exact blocks also summarize the skipped keys, so compensation is costly at every step of a few-step sampler and impossible once the selection is fixed offline.

Cosmos-Predict2.5 (4-step)

Figure

Prompt: An astronaut running through an alley in Rio de Janeiro.

HunyuanVideo (50-step)

Figure

Prompt: A FPV shot zooming through a tunnel into a vibrant underwater space.

Figure 1. DecoupAttn keeps dense-attention quality at a lower latency. Frames from dense attention and DecoupAttn on Cosmos-Predict2.5 (4 steps) and HunyuanVideo (50 steps), with latency, speedup on all ten models (filled: these two), and PSNR and VBench against speedup for DecoupAttn and the seven baselines of Table 1, averaged over the ten models.

Sparse attention for video generation has followed three main lines of work, as shown in Figure 2. First, online routing (dynamic sparse attention) identifies critical blocks at every step from the current queries and keys, by scoring pooled blocks [39, 45] or clustering tokens by semantics [33, 41], treating sparsity as a property of each input. Second, offline calibration (static sparse attention) fixes sparse patterns before deployment, measured on a few prompts [43] or derived from how attention decays with distance [13], treating sparsity as a property of the model. Third, compensation approximates the skipped blocks instead of dropping them, from cluster centroids [53], blockwise Taylor expansions [12], or fitted residuals [32], recov

Figure

Figure 2. Three lines of sparse attention and DecoupAttn. (a) Online routing re-picks exact blocks each step and drops the rest, (b) offline calibration fixes them but drops the rest, and (c) compensation reuses them and reroutes every step. (d) DecoupAttn fixes them offline and compensates every key by semantic clusters. Right: schematic error and time against DecoupAttn (dashed), excess in red.

ering much of the attention that selection leaves out.

However, these methods still face three challenges. (i) Identification overhead. Online routing and the compensation built on its groups identify critical blocks at every denoising step [11, 12, 17, 32, 33, 37, 39–41, 45, 48, 49, 53], an overhead that can offset the gains of sparsity in few-step samplers, while static patterns fixed in advance [13, 43, 46] discard the remaining blocks and incur information loss. (ii) Suboptimal budget allocation. Existing methods set sparsity budgets across heads, layers, and timesteps uniformly or by local metrics such as retained attention mass [20, 41, 43, 48, 53], or by the effect of dropping blocks on the output [38, 51, 52]. Retained attention mass, however, does not determine the output error [32], which depends on the residual left after compensation and on how unevenly later layers and steps amplify it, so exact computation is spent where it barely changes the final video. (iii) Cross-step error accumulation. To avoid redundant recomputation, recent methods reuse masks, clusters, or earlier centroids across steps, or predict masks ahead [2, 10, 16, 18, 20, 29, 40, 41], but attention patterns evolve across denoising steps, so the reused groups go stale and their errors accumulate, while refreshing them repeats the identification.

Our key observation is that once every key is compensated, the residuals of the skipped blocks point in many directions and cancel each other like dithered quantization errors [27], so blocks fixed once offline match blocks re-selected at every step. Based on this observation, we propose DecoupAttn, a new paradigm of decoupled sparse attention: semantic clusters compensate every key, and exact attention corrects their residual on a few blocks fixed once offline by position (Figure 2d). Selecting blocks costs nothing at inference, and the residual of every fixed block can be priced offline. Few-step samplers amplify this residual un-

evenly, so we introduce Distortion Budget, a rate-distortion objective for budget allocation that prices every timestep, layer, and head by the distortion the residual leaves in the final latent. Built on this budget, we further propose Reassign Cache, which limits the growth of these residuals by reassigning the drifting keys to cached centroids at every step, while the blocks and the budget stay fixed. DecoupAttn thus moves block identification and budget allocation into one plan compiled offline with no training, and inference only refreshes the clusters, running standard block-sparse kernels and one fused compensation kernel.

We evaluate DecoupAttn on ten video generation, controlled generation, and neural rendering models, where it outperforms online-routing, offline-calibrated, and compensation-based methods on nine of them and delivers a substantial speedup over dense attention.

References (50)