SPADE: An Input-Adaptive Sparse Attention Engine for Fast Video Diffusion Models Inference

Shanghao Liu, Renze Chen, Size Zheng, Yuanqiang Liu, Yun +2 more
8/4/2026
3 citations
cs.CV
diffusion-flowtransformer-attention

Official code: 6somehow/DAC-SPADE (5 stars, Python, BSD-3-Clause, last commit 2026-08-13).

Abstract

Video diffusion transformers (vDiTs) generate high quality but pay quadratic self-attention cost, making inference prohibitive at video-token scales. The challenge is input-adaptive sparsity: selecting critical Q/K/V tokens with negligible overhead and executing them for end-to-end gains.

Show full abstract

We present SPADE, a training-free sparse-attention engine of three parts: (i) vDiT-SSR, a specification defining 3D blocking candidates and formalizing dynamic masks via Summarizer/Estimator expressions; (ii) runtime scheme generation using SICS and a head-wise policy; and (iii) an executor with low-overhead index search, flash block-sparse attention, and kernel grouping. Across Hunyuan-Video and Wan 2.1/2.2 for text-to-video and image-to-video generation, SPADE raises sparsity and speed while preserving quality, accelerating attention by 2.26x-3.40x and end-to-end inference by 1.49x-1.80x. Our code is open-sourced at https://github.com/6somehow/DAC-SPADE.

View on arXivView PDF

Code Implementations(1)

6somehow/DAC-SPADEOfficial100%
BSD-3-Clause
51Python, C++Apr 12, 20263 months agoBSD-3-Clause

Similar Papers

Cite this paper

@article{liu2026spade,
  title  = {SPADE: An Input-Adaptive Sparse Attention Engine for Fast Video Diffusion Models Inference},
  author = {Shanghao Liu and Renze Chen and Size Zheng and Yuanqiang Liu and Yun and Liang and Hailong Yang},
  year   = {2026},
  eprint = {2608.03335},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.03335v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.03335.svg)](https://codeofpaper.com/paper/2608.03335)

Discussion