PISA: Piecewise Sparse Attention Is Wiser for Efficient Diffusion Transformers

Haopeng Li, Shitong Shao, Wenliang Zhong, Zikai Zhou, Lichen Bai, Hui Xiong, Zeke Xie · DOI

Abstract

Diffusion Transformers (DiTs) are fundamental for video and image generation, but their efficiency is bottlenecked by the quadratic complexity of attention. While block sparse attention accelerates computation by attending only to critical key-value blocks, it suffers from degradation at high sparsity by discarding context. In this work, we discover that attention scores of non-critical blocks exhibit distributional stability, allowing them to be approximated accurately and efficiently rather than discarded. Motivated by this insight, we propose PISA, a training-free Piecewise Sparse Attention that covers the full attention span with sub-quadratic complexity. Unlike the conventional "keep-or-drop" paradigm, PISA introduces an "exact-or-approximate" strategy: it maintains exact computation for critical blocks while efficiently approximating the remainder through block-wise Taylor expansion. Experimental results demonstrate that PISA achieves 1.91× and 2.57× speedups on Wan2.1-14B and Hunyuan-Video, respectively, while maintaining the highest quality among sparse attention methods.

Introduction

Diffusion Transformers (DiTs) have become the backbone of high-fidelity image and video generation, powering models like Sora, FLUX, and Wan2.1. However, as resolutions increase and video durations lengthen, the quadratic complexity of self-attention becomes a massive efficiency bottleneck. Existing sparse attention methods attempt to mitigate this by calculating only the most important attention scores and discarding the rest. While fast, this "hard truncation" often leads to visual artifacts, such as flickering in videos or loss of fine-grained textures in images, because the model loses the global context provided by the discarded blocks.

The PISA Approach

PISA (Piecewise Sparse Attention) reimagines sparse attention by treating it as a piecewise process rather than a binary choice. The core innovation is the exact-or-approximate strategy.

Exact-or-Approximate Strategy

Instead of discarding non-critical blocks, PISA calculates "critical" blocks exactly and uses a block-wise Taylor expansion to approximate the rest. This ensures the model retains a view of the entire context, albeit at a lower computational resolution for less relevant data.

Hybrid-Order Approximation and Hardware Efficiency

To ensure hardware efficiency, PISA employs a hybrid scheme. It uses a zeroth-order approximation (simple mean) for individual blocks combined with a Global First-Order Correction to capture gradients across the entire sequence. This design avoids the memory-bound overhead typically associated with complex Taylor expansions on GPUs. Furthermore, PISA integrates these approximations directly into the online softmax process, preserving the model's intrinsic distribution.

Covariance-Aware Block Selection

Rather than relying solely on attention scores, PISA uses a routing strategy based on block "smoothness" (covariance). Highly heterogeneous blocks are calculated exactly, while stable, homogeneous blocks are delegated to the approximation path.

Experimental Evaluation

The researchers evaluated PISA across several state-of-the-art models, including Wan2.1 (1.3B and 14B), Hunyuan-Video (13B), and FLUX.1-dev. Performance was measured using VBench for video quality, FID for image quality, and similarity metrics like LPIPS to compare sparse outputs against full dense attention "ground truth."

Key Results

PISA consistently outperforms existing sparse attention methods in both speed and visual fidelity.

Figure 3: Comparison of visual quality and LPIPS metrics between Dense Attention, PISA (Ours), and SpargeAttn. PISA maintains significantly higher fidelity (lower LPIPS) even at higher sparsity levels (85% vs 80%).
  • Significant Speedups: PISA achieved a 2.14× speedup on Wan2.1-14B and a 2.57× speedup on Hunyuan-Video. Even on image models like FLUX.1-dev, it provided a 1.2× acceleration without compromising quality.
  • Superior Fidelity: As shown in the comparison metrics, PISA achieves a much lower LPIPS score (0.129) compared to SpargeAttn (0.373) at similar or higher sparsity levels. This translates to fewer artifacts and better preservation of structural details.
  • Robustness: PISA remains faster than FlashAttention-3 even at high densities (up to 70%), making it a versatile tool for various computational budgets.

Conclusion and Limitations

PISA offers a powerful, training-free solution for scaling Diffusion Transformers. By approximating rather than discarding non-critical information, it bridges the gap between computational efficiency and generative quality. Current limitations include a "warmup" requirement where initial layers must remain dense to establish global structure, and the use of fixed block sizes. Future work may explore dynamic block sizes or fine-tuning to push sparsity ratios beyond 90%.

Summary updated

BibTeX
@inproceedings{li2026pisa,
  author = {Haopeng Li and Shitong Shao and Wenliang Zhong and Zikai Zhou and Lichen Bai and Hui Xiong and Zeke Xie},
  title = {{PISA: Piecewise Sparse Attention Is Wiser for Efficient Diffusion Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=eBE11Hq3CA},
}
Figure