PISA: Piecewise Sparse Attention Is Wiser for Efficient Diffusion Transformers
Haopeng Li, Shitong Shao, Wenliang Zhong, Zikai Zhou, Lichen Bai, Hui Xiong, Zeke Xie
原文摘要
Diffusion Transformers are fundamental for visual generation, but their efficiency is bottlenecked by the quadratic complexity of self-attention. While block-sparse attention accelerates computation by attending only to critical key-value blocks, it suffers from quality degradation at high sparsity due to discarding substantial context. In this work, we discover that attention scores of non-critical blocks exhibit distributional stability, allowing their contributions to be accurately and efficiently recovered rather than dropped. Motivated by this insight, we propose PISA, a training-free Piecewise Sparse Attention that covers the full attention span via lightweight compensation for skipped non-critical blocks. Unlike the conventional "keep-or-drop" paradigm that directly drops non-critical blocks, PISA establishes the "exact-or-approximate" paradigm: it preserves exact computation for critical blocks while approximating the remainder through block-wise Taylor expansion around block centroids. This design allows PISA to serve as a faithful proxy to full attention, achieving 1.91$\times$ and 2.57$\times$ speedups on Wan2.1 and Hunyuan-Video, and 1.2-1.6$\times$ acceleration on FLUX without compromising quality. Code is available at: https://github.com/xie-lab-ml/piecewise-sparse-attention.
cs.CV