Re-ttention: Ultra Sparse Visual Generation via Attention Statistical Reshape

Rui-Chen Chen, Keith G. Mills, Li-Yao Jiang, Chao Gao, Di Niu
5/1/2025
12 citations
diffusion-flowtransformer-attention

Official code: cccrrrccc/Re-ttention (7 stars, Python, MIT, last commit 2025-12-24).

Abstract

Diffusion Transformers (DiT) have become the de-facto model for generating high-quality visual content like videos and images. A huge bottleneck is the attention mechanism where complexity scales quadratically with resolution and video length.

Show full abstract

One logical way to lessen this burden is sparse attention, where only a subset of tokens or patches are included in the calculation. However, existing techniques fail to preserve visual quality at extremely high sparsity levels and might even incur non-negligible compute overheads. To address this concern, we propose Re-ttention, which implements very high sparse attention for visual generation models by leveraging the temporal redundancy of Diffusion Models to overcome the probabilistic normalization shift within the attention mechanism. Specifically, Re-ttention reshapes attention scores based on the prior softmax distribution history in order to preserve the visual quality of the full quadratic attention at very high sparsity levels. Experimental results on T2V/T2I models such as CogVideoX and the PixArt DiTs demonstrate that Re-ttention requires as few as 3.1% of the tokens during inference, outperforming contemporary methods like FastDiTAttn, Sparse VideoGen and MInference.

View on arXivView PDF

Code Implementations(1)

MIT
70PythonMay 28, 202511 months agoMIT

Similar Papers

Cite this paper

@article{chen2025rettention,
  title  = {Re-ttention: Ultra Sparse Visual Generation via Attention Statistical Reshape},
  author = {Rui-Chen Chen and Keith G. Mills and Li-Yao Jiang and Chao Gao and Di Niu},
  year   = {2025},
  eprint = {2505.22918},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.22918},
  url    = {https://doi.org/10.48550/arXiv.2505.22918},
  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/2505.22918.svg)](https://codeofpaper.com/paper/2505.22918)

Discussion