Training-free sparse attention based on cumulative energy filtering

Chunlu Li, Yixuan Pan, Bai Du, Zhenyuan Chen, Yanzhao Li +3 more
6/15/2026
cs.CV

No confident code implementation found for this paper.

Abstract

Sparse attention accelerates Diffusion Transformers (DiTs) for video generation by computing only the important tokens while skipping the rest. The token selection strategy is key to balancing sparsity and accuracy. We formulate the token filtering process as a dual-goal optimization problem: maximizing sparsity and minimizing accuracy degradation. Existing algorithms cannot fulfill both objectives simultaneously. For example, Top-p only considers the accuracy constraint, while Top-k maintains a fixed computational budget but loosens the accuracy constraint. This paper demonstrates that maintaining a fixed recall rate is sufficient for ensuring accuracy, whereas a fixed threshold is suboptimal for reducing computational cost. Therefore, we propose a dynamic thresholding scheme to improve sparsity while maintaining the same level of accuracy. Furthermore, our algorithm is deeply integrated with Flash Attention (FA), eliminating the need for any additional masking computation overhead. Experimental results on Wan 2.2 validate that, compared to the BLASST algorithm which is also integrated with FA, our dynamic thresholding strategy enhances sparsity from 61.42\% to 82\% with a VBench metric drop of less than 5\%. This results in an approximate 15\% in attention computation and a $1.61\times$ increase in computational efficiency, which is 1.18x higher than that of BLASST.

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{li2026trainingfree,
  title  = {Training-free sparse attention based on cumulative energy filtering},
  author = {Chunlu Li and Yixuan Pan and Bai Du and Zhenyuan Chen and Yanzhao Li and Hui Dong and Hui Wang and Zhiqiang Zou},
  year   = {2026},
  eprint = {2606.16317},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.16317v1}
}

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

Discussion