Manuscript Offprint

arXiv:2609.31050

Where Compute Matters: Heterogeneous Attention for Efficient Video Diffusion

Olga Zatsarynna, Denis Korzhenkov, Juergen Gall, Amir Habibian, Mohsen Ghafoorian

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

Olga Zatsarynna 1,2^{1,2}, Denis Korzhenkov 1^{1}, Juergen Gall 2^{2}, Amir Habibian 1^{1}, Mohsen Ghafoorian 1^{1}

1^{1}Qualcomm AI Research 2^{2}University of Bonn

Efficient video generation requires reducing the quadratic cost of self-attention over long spatio-temporal token sequences. Existing efficient-attention methods typically apply the same computation pattern to every token, even though denoising difficulty varies substantially across video regions and evolves throughout the generation process. We introduce HetA-DiT, a heterogeneous attention mechanism that adaptively allocates computation according to token difficulty. A lightweight uncertainty branch predicts a token-wise estimate of denoising difficulty, which is used to route uncertain tokens through dense global attention while processing more reliable tokens with efficient local attention. The resulting routing is content- and timestep-adaptive, retains global context where it matters most, and provides a single parameter for controlling the quality-efficiency trade-off. HetA-DiT is compatible with few-step distribution-matching distillation and introduces no additional Transformer evaluation at inference time by reusing uncertainty estimates from the preceding denoising step. We evaluate the method on DMD-distilled Wan2.2-5B and Wan2.1-1.3B models. Across VBench, VBench-2.0, and human preference evaluation, HetA-DiT maintains competitive generation quality while routing only approximately 20% of tokens through dense attention.

1 Introduction

Diffusion Transformers (DiTs) have become the dominant backbone for high-quality video generation, powering recent open systems such as Wan [1], HunyuanVideo [2], CogVideoX [3], LTX-Video [4], and Open-Sora Plan [5]. By representing a video as a long sequence of latent spatio-temporal tokens, DiTs flexibly model appearance, motion, and temporal consistency in a single architecture. This flexibility, however, comes at a steep computational price: self-attention scales quadratically with the number of tokens, and video sequences are typically an order of magnitude longer than image sequences. As a result, a single denoising step is dominated by attention cost. The community has responded with a growing set of efficiency techniques, but essentially all of them make attention cheaper uniformly, treating every token as equally important to compute.

A key observation behind our work is that this uniformity is at odds with the structure of video content: not all spatio-temporal tokens are equally hard to denoise. Large regions such as static backgrounds, sky, or smoothly varying textures can be predicted reliably from local context very early in denoising. Other regions—moving objects, occlusions, object boundaries, faces, hands, and fine semantic details—remain ambiguous much longer and genuinely benefit from richer global context. Equally important, which tokens are hard is not fixed: it changes across denoising steps, across prompts, and across frames as motion and occlusion evolve. Any static sparsity pattern is therefore fundamentally mismatched to the underlying problem. Figure 1 illustrates this behavior.

Beyond making attention uniformly cheaper, a much less explored direction is to allocate compute non-uniformly across the tokens themselves. The few existing efforts in this direction leave a clear gap: token

Qualcomm AI Research is an initiative of Qualcomm Technologies, Inc.

Figure

Figure 1: Spend compute where it counts. Not all video tokens are equally hard to denoise; fine structures demand global context, while smooth regions are handled by cheap local attention. Our heterogeneous attention method incorporates this via an adaptive uncertainty-based token router (TR) that dispatches each token to local or dense attention.

caching [6, 7] makes hard binary cache-or-compute decisions and relies on many-step redundancy that vanishes under step distillation; MoE DiTs [8, 1] route only the FFN sub-layer, leaving the attention bottleneck untouched; and training-free adaptive sparsification [9, 10, 11] avoids tuning at the cost of measurable quality loss. We occupy the design point none of these cover: soft, attention-level, DMD-compatible token routing, obtained at a small tuning cost (~12 GPU-days, four to five orders of magnitude below pretraining).

We propose a heterogeneous attention mechanism that performs non-uniform token processing. We augment the denoiser with a lightweight uncertainty prediction branch that produces a per-token scalar, trained with an uncertainty-aware reconstruction loss so that high values mark tokens whose clean-latent prediction is unreliable. After training, the branch is frozen and used only to produce a stable routing signal. At inference, an adaptive per-sample, per-timestep threshold sends high-uncertainty tokens to dense self-attention and reliable tokens to local self-attention, with a single hyperparameter trading efficiency for quality. Three properties distinguish this design: (i) routing is content- and timestep-adaptive, so dense compute follows difficult regions across frames and denoising steps; (ii) the mechanism is drop-in on any transformer-based video diffusion backbone; and (iii) it is explicitly compatible with step distillation and is demonstrated on DMD-distilled Wan models.

Applied to DMD-distilled Wan2.2-5B and Wan2.1-1.3B [1] at 704p and 480p resolution respectively, our routing keeps only ~20% of tokens on dense attention while matching the base models on VBench [12] and VBench-2.0 [13], and strictly outperforms random and fixed-pattern routing at matched sparsity.

Our main contributions are the following:

• We identify a gap in efficient video generation: existing efficiency methods either allocate a uniform compute budget to every spatio-temporal token regardless of its denoising difficulty, make hard binary compute-or-cache decisions, and/or are incompatible with the low-step, step-distilled regime that dominates modern deployment.

• We propose a heterogeneous attention mechanism that fills this gap by allocating compute per token. A lightweight branch predicts a per-token uncertainty score; an adaptive per-sample, per-timestep threshold then routes reliable tokens to cheap local attention and uncertain tokens to dense global attention. The mechanism exposes a single quality/efficiency knob and remains effective under step distillation.

• We validate our method on two popular open-source video diffusion models (Wan2.2-5B and Wan2.1-1.3B) across VBench, VBench-2.0, and a human preference study, and use ablations to isolate the contribution of each component.

References (48)