Attention Surgery: An Efficient Recipe to Linearize Your Video Diffusion Transformer

*CVPR 2026*

Qualcomm AI Research

*Sample qualitative generated videos from our hybrid attention models distilled from Wan2.1 1.3B.

Abstract

Transformer-based video diffusion models (VDMs) deliver state-of-the-art video generation quality but are constrained by the quadratic cost of self-attention, making long sequences and high resolutions computationally expensive. While linear attention offers sub-quadratic complexity, previous approaches have failed to match the expressiveness of softmax attention unless retrained at significant computational cost. We introduce Attention Surgery, an efficient framework that enables linear or hybrid attention in pretrained VDMs, eliminating the need for training from scratch. Inspired by recent advances in language models, our method combines a novel hybrid attention mechanism—mixing softmax and linear tokens—with a lightweight distillation and fine-tuning pipeline requiring only a few GPU-days. Additionally, we incorporate a cost-aware block-rate strategy to balance expressiveness and efficiency across layers. Applied to Wan2.1 1.3B, a state-of-the-art efficient transformer VDM and evaluated on VBench, VBench-2.0 and a human preference study, Attention Surgery achieves competitive results. Furthermore, measurements of on-mobile latency, memory usage, and FLOPs demonstrate notable improvements in scaling behavior for longer videos.

Method

Linear attention · no distillation
Linear attention · no distillation, frame 1 Linear attention · no distillation, frame 2 Linear attention · no distillation, frame 3 Linear attention · no distillation, frame 4 Linear attention · no distillation, frame 5
Linear attention · with distillation
Linear attention · with distillation, frame 1 Linear attention · with distillation, frame 2 Linear attention · with distillation, frame 3 Linear attention · with distillation, frame 4 Linear attention · with distillation, frame 5
Hybrid attention · with distillation
Hybrid attention · with distillation, frame 1 Hybrid attention · with distillation, frame 2 Hybrid attention · with distillation, frame 3 Hybrid attention · with distillation, frame 4 Hybrid attention · with distillation, frame 5
Wan2.1 Original
Wan2.1 Original, frame 1 Wan2.1 Original, frame 2 Wan2.1 Original, frame 3 Wan2.1 Original, frame 4 Wan2.1 Original, frame 5
Impact of attention distillation and hybrid attention. Prompt: “An astronaut flying in space, Van Gogh style.”

We propose an efficient attention surgery strategy — eliminating the need for extensive retraining from scratch — coupled with a novel efficient hybrid attention architecture inspired by recent developments in language modeling. Intuitively, if a small subset of tokens retains full softmax attention while the rest use linear attention, the model can preserve global structure and fine-grained dependencies where needed, while scaling efficiently elsewhere.

Our approach significantly narrows the quality gap between linearized and full softmax attention while achieving higher efficiency than the original softmax attention models. Importantly, it can be realized with modest compute — requiring less than 0.4k GPU hours for the overall surgery — making it practical for a wide range of research and industrial settings. We validate our method on Wan2.1, a state-of-the-art video diffusion model, demonstrating that our contributions are successfully applicable to transformer-based diffusion models.

Major contributions:

  • We introduce attention surgery, an efficient recipe that enables achieving competitive linear/hybrid models within only a few GPU days training on modestly-sized training datasets, liberalizing the process of such significant architectural operations.
  • We propose a novel hybrid attention formulation with components carefully designed taking the intrinsics of videos into consideration.
  • We propose a novel block-rate optimization strategy that adjusts the attention configuration of each block based on its transformation complexity, achieving the best accuracy–efficiency trade-off within a given compute budget.

Results

320 × 480

320 × 480: VBench score ↑ versus Total DiT FLOPs (%) ↓ Results from the final CVPR 2026 paper. Each point includes its configuration and coordinates. 75 76 77 78 79 80 81 82 83 70 75 80 85 90 95 100 Total DiT FLOPs (%) ↓ VBench score ↑ 20 blocks, rate 2: 87.02% DiT FLOPs, VBench 81.25 20 blocks, rate 4: 78.76% DiT FLOPs, VBench 80.88 20 blocks, rate 8: 75.22% DiT FLOPs, VBench 80.03 25 blocks, rate 2: 83.48% DiT FLOPs, VBench 81.09 25 blocks, rate 4: 73.45% DiT FLOPs, VBench 79.89 25 blocks, rate 8: 68.73% DiT FLOPs, VBench 78.02 15 blocks, rate 2: 89.97% DiT FLOPs, VBench 81.44 15 blocks, rate 4: 84.07% DiT FLOPs, VBench 80.98 15 blocks, rate 8: 81.12% DiT FLOPs, VBench 80.14 15 blocks, linear: 78.17% DiT FLOPs, VBench 78.94 Wan2.1 Original: 100.00% DiT FLOPs, VBench 81.50
15 blocks 20 blocks 25 blocks Wan2.1 Original
Rate 2 Rate 4 Rate 8 Linear

480 × 832

480 × 832: VBench score ↑ versus Total DiT FLOPs (%) ↓ Results from the final CVPR 2026 paper. Each point includes its configuration and coordinates. 75 76 77 78 79 80 81 82 83 60 65 70 75 80 85 90 95 100 Total DiT FLOPs (%) ↓ VBench score ↑ 15 blocks, rate 2: 84.04% DiT FLOPs, VBench 82.55 15 blocks, rate 4: 74.92% DiT FLOPs, VBench 81.98 15 blocks, rate 8: 70.36% DiT FLOPs, VBench 82.05 20 blocks, rate 8: 61.24% DiT FLOPs, VBench 79.42 20 blocks, rate 4: 66.56% DiT FLOPs, VBench 81.13 Wan2.1 Original: 100.00% DiT FLOPs, VBench 82.43
15 blocks 20 blocks Wan2.1 Original
Rate 2 Rate 4 Rate 8
Total DiT FLOPs, relative to the original Wan2.1 1.3B model, versus VBench score for different hybrid configurations at 320 × 480 and 480 × 832 resolutions.

Models with 2B–5B parameters Total ↑ Quality ↑ Semantic ↑
Open-Sora Plan V1.3 [29] 77.23 80.14 65.62
CogVideoX 5B [45] 81.91 83.05 77.33
CogVideoX1.5 5B [45] 82.01 82.72 79.17
Models up to 2B parameters
Efficient VDiT [11] 76.14 — —
Open-Sora V1.2 [53] 79.76 81.35 73.39
LTX-Video [14] 80.00 82.30 70.79
SnapGenV [42] 81.14 83.47 71.84
Hummingbird 16frame [18] 81.35 83.73 71.84
Mobile Video DiT - Mobile [41] 81.45 83.12 74.76
Mobile Video DiT - Server [41] 83.09 84.65 76.86
CogVideoX 2B [45] 81.55 82.48 77.81
PyramidalFlow [19] 81.72 84.74 69.62
M4V 81.91 83.36 76.10
STA [51] 83.00 85.37 73.52
VSA [50] 82.77 83.60 79.47
SANA-Video [7] 83.71 84.35 81.35
Wan2.1 1.3B [36] 83.31 85.23 75.65
Wan2.1 1.3B* [36] 83.10 85.10 75.12
+ Attention Surgery (15×R2) 83.21 85.19 75.25
Comparisons with state-of-the-art efficient video diffusion models on VBench. Wan2.1 1.3B* is our reproduction using the same evaluation pipeline as our variants; other baseline metrics are reported results.

Explore more efficient video generation/editing projects from our team at Qualcomm AI Research

BibTeX

@InProceedings{Ghafoorian_2026_CVPR,
    author    = {Ghafoorian, Mohsen and Korzhenkov, Denis and Habibian, Amirhossein},
    title     = {Attention Surgery: An Efficient Recipe to Linearize Your Video Diffusion Transformer},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2026},
    pages     = {32915-32925}
}