PISA:面向高效扩散Transformer的分段稀疏注意力
PISA: Piecewise Sparse Attention Is Wiser for Efficient Diffusion Transformers
PISA是一种无需训练的稀疏注意力方法,对关键块保留精确计算,对非关键块通过块质心泰勒展开做轻量补偿,而非直接丢弃。在Wan2.1和Hunyuan-Video上分别实现1.91倍和2.57倍加速,FLUX上加速1.2-1.6倍且不损失质量。
arXiv:2602.01077v5 Announce Type: replace Abstract: 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org