arXiv(opens in a new tab)cs.CVOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.29441

Sparsity Should Be ALLOTted by Output: Training-Free Allocation of Block-Sparse Attention for Video Diffusion Transformers

Tianze Xia, Xiaoling Zhou, Ruya Lan, Yiqiao Liao, Chengru Song, Shiming Xiang

Abstract

Full 3D attention is costly in video Diffusion Transformers. Block-sparse attention reduces this cost by computing only selected attention blocks. However, existing methods either overlook the potential to optimize sparsity allocation or rely on heuristic rules or local metrics to guide it. In this work, we observe that sparsifying attention in different layers and at different denoising steps affects final-video fidelity to substantially different degrees. Yet the identities of the most sensitive layer-step pairs remain nearly unchanged across inputs. Building on these findings, we propose Allocating Layer-step Latency by Output Tests (ALLOT), a training-free sparsity allocation method. Treating each layer-step pair as a cell, ALLOT estimates each cell's contribution to final-video error through (i) cell probing and (ii) trajectory calibration, then jointly optimizes cell densities under a measured-latency budget. It preserves existing selection strategies and kernels, replacing only the allocation component. At equal or shorter wall-clock time, ALLOT outperforms every compared allocation strategy with XAttention, with an 11.8 dB PSNR gain on HunyuanVideo. Extensive experiments across four additional published pipelines on Wan2.1, Wan2.2, and HunyuanVideo show that ALLOT outperforms or ties the default in all nine settings.

1. Introduction

Diffusion Transformers (DiTs) [17] have been widely adopted for video generation. Models such as Wan [19] and HunyuanVideo [11] produce high-quality, spatio-temporally consistent videos, yet the cost of their full 3D attention grows quadratically with the number of tokens [18].

On a single GPU, Wan2.1-14B takes roughly one hour to generate a 720p, 81-frame video, and attention accounts for more than half of the end-to-end time.

Sparse attention has been widely studied as a means of reducing this computational cost, with existing approaches broadly categorized as either training-free or training-based. Many training-free methods [14, 24, 25, 29] adopt block-sparse attention, which partitions query and key tokens into blocks. These methods estimate the importance of each query-key block pair and compute dense attention only for selected pairs. These works primarily address two questions: which blocks participate in the attention computation, and how to execute the resulting sparse computation efficiently at the kernel level.

Notably, beyond determining which blocks participate in the computation, the number of blocks retained in each layer at each denoising step also significantly affects generation quality and latency. In threshold-based methods [14, 24, 29], the thresholds serve as an implicit allocation rule. With all other conditions identical, changing only the allocation can substantially alter final-video fidelity. Despite the existence of some explicit allocation approaches, existing methods generally have the following two limitations:

• Heuristic rules do not transfer reliably across settings. Many works use fixed rules, such as keeping the first layer or the first 10–30% of denoising steps dense [12, 14, 25]. Our measurements in §3 show that effective allocations vary across models and selection strategies. Consequently, a rule tuned for one setting does not reliably transfer to another and must be re-tuned.

• Local metrics do not capture final-video effects. Automatic allocation methods commonly rely on local proxies, such as cumulative attention mass [14, 24], Hellinger distance [36], and one-step output error [3, 35], rather than direct measurements of final-video error. Our analysis in §3 shows that the rankings induced by these proxies disagree with those based on final-video error, and allocations guided by these metrics can even yield lower final-video fidelity than a uniform baseline.

To address these limitations, we term each (layer, step) pair a cell and evaluate it directly by its sensitivity, defined as the degradation it induces in the final video relative to the dense output. Building on this formulation, we propose Allocating Layer-step Latency by Output Tests (ALLOT), a training-free latency allocation method.

ALLOT estimates each cell’s sensitivity from two factors: cell probing measures the error injected at its step, and tra-

*Work done during an internship at KlingAI. †Corresponding author.

Wan2.1-1.3B, 480px×81, XAttention (HEART's setting)

Dense

1.00×

Figure

HEART (EBC)

1.21×

PSNR 16.0 dB

ALLOT

1.21×

PSNR 23.2 dB

Wan2.1-14B, 720px×81, SVOO pipeline

Dense

1.00×

SVOO

1.31×

PSNR 21.2 dB

SVOO + ALLOT

1.32×

PSNR 24.8 dB

XAttention

vs. default

vs. HEART (EBC)

vs. Efficient-vDiT

vs. DiTFastAttn-style

vs. FAST

vs. PASA

vs. DFSAttn-style

vs. CalibAtt-style

vs. HEART (EBC + TMR)

SVOO

Wan2.1-14B 720p

Wan2.2-A14B 720p

Wan2.1-1.3B 720p

HunyuanVideo

SVG2

Wan2.1-1.3B 720p

Wan2.1-1.3B 480p

SpargeAttn

Wan2.1-1.3B 720p

Wan2.1-14B 720p

HunyuanVideo

Radial

0

4

8

ΔPSNR (dB)

Figure 1. Changing only the allocation at equal wall-clock time. Left: dense, baseline and + ALLOT (top to bottom), with blue-box insets; prompts are near the median gain. Right: paired PSNR gains (ALLOT – baseline) with 95% CIs for Tabs. 1 and 2; open markers denote ties.

jectory calibration measures how subsequent denoising steps amplify or attenuate that error.

It then jointly allocates all cell densities under a measured-latency budget, so warm-up length and dense layers emerge from the solution rather than hand-set rules. Because sensitivity rankings remain stable across inputs for a fixed model and selection strategy ( §3\S3), we perform both measurements once offline and reuse their results across prompts. During inference, ALLOT looks up densities in a precomputed table and changes only the allocation in existing block-sparse attention pipelines.

Overall, our main contributions are threefold:

• We show that final-video sensitivity varies by orders of magnitude across layers and steps and is misjudged by local metrics, while sensitivity rankings remain stable across inputs.

• We propose ALLOT, which estimates each cell’s error by combining a one-step cell probe with a trajectory gain and jointly solves for all cell densities under a measured-latency budget, replacing only the allocation of existing pipelines.

• Extensive experiments across six selection strategies and three model families show that ALLOT outperforms or ties every compared allocation at equal or shorter wall-clock time ( §5§5).

References (35)