FPSAttention: Training-Aware FP8 and Sparsity Co-Design for Fast Video Diffusion

Akide Liu, Ze-Yu Zhang, Zhe-Xin Li, Xuehai Bai, Yizeng Han +10 more
6/1/2025
diffusion-flowtransformer-attention

No confident code implementation found for this paper.

Abstract

Diffusion generative models have become the standard for producing high-quality, coherent video content, yet their slow inference speeds and high computational demands hinder practical deployment. Although both quantization and sparsity can independently accelerate inference while maintaining generation quality, naively combining these techniques in existing training-free approaches leads to significant performance degradation due to the lack of joint optimization.

Show full abstract

We introduce FPSAttention, a novel training-aware co-design of FP8 quantization and sparsity for video generation, with a focus on the 3D bi-directional attention mechanism. Our approach features three key innovations: 1) A unified 3D tile-wise granularity that simultaneously supports both quantization and sparsity; 2) A denoising step-aware strategy that adapts to the noise schedule, addressing the strong correlation between quantization/sparsity errors and denoising steps; 3) A native, hardware-friendly kernel that leverages FlashAttention and is implemented with optimized Hopper architecture features for highly efficient execution. Trained on Wan2.1's 1.3B and 14B models and evaluated on the VBench benchmark, FPSAttention achieves a 7.09x kernel speedup for attention operations and a 4.96x end-to-end speedup for video generation compared to the BF16 baseline at 720p resolution-without sacrificing generation quality.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025fpsattention,
  title  = {FPSAttention: Training-Aware FP8 and Sparsity Co-Design for Fast Video Diffusion},
  author = {Akide Liu and Ze-Yu Zhang and Zhe-Xin Li and Xuehai Bai and Yizeng Han and Jia-Sheng Tang and Yuanjie Xing and Jichao Wu and Mingyang Yang and Weihua Chen and Jia-Hao He and Yuan-Yu He and Fan Wang and G. Haffari and Bo-Han Zhuang},
  year   = {2025},
  eprint = {2506.04648},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2506.04648},
  url    = {https://doi.org/10.48550/arXiv.2506.04648},
  journal = {Neural Information Processing Systems}
}

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/2506.04648.svg)](https://codeofpaper.com/paper/2506.04648)

Discussion