paper-with-me

Papers

DiTFastAttn: Attention Compression for Diffusion Transformer Models

2024-06-12 · Zhihang Yuan, Hanling Zhang, Pu Lu, Xuefei Ning, Linfeng Zhang, Tianchen Zhao, Shengen Yan, Guohao Dai, Yu Wang

Diffusion Transformers (DiT) excel at image and video generation but face computational challenges due to the quadratic complexity of self-attention operators. We propose DiTFastAttn, a post-training compression method to alleviate the computational bottleneck of DiT. We identify three key redundancies in the attention computation during DiT inference: (1) spatial redundancy, where many attention heads focus on local information; (2) temporal redundancy, with high similarity between the attention outputs of neighboring steps; (3) conditional redundancy, where conditional and unconditional inferences exhibit significant similarity. We propose three techniques to reduce these redundancies: (1) Window Attention with Residual Sharing to reduce spatial redundancy; (2) Attention Sharing across Timesteps to exploit the similarity between steps; (3) Attention Sharing across CFG to skip redundant computations during conditional generation. We apply DiTFastAttn to DiT, PixArt-Sigma for image generation tasks, and OpenSora for video generation tasks. Our results show that for image generation, our method reduces up to 76% of the attention FLOPs and achieves up to 1.8x end-to-end speedup at high-resolution (2k x 2k) generation.

📄 PDF Abstract BibTeX arXiv:2406.08552

Code (0)

등록된 구현이 없습니다.

Tasks

2kImage GenerationVideo Generation

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

DiTFastAttnV2: Head-wise Attention Compression for Multi-Modality Diffusion Transformers

2025-03-28 · Hanling Zhang, Rundong Su, Zhihang Yuan, Pengtao Chen 외

Text-to-image generation models, especially Multimodal Diffusion Transformers (MMDiT), have shown remarkable progress in generating high-quality images. However, these models often face significant computational bottlene…

2kImage GenerationText to Image GenerationText-to-Image Generation

CoD-Lite: Real-Time Diffusion-Based Generative Image Compression

2026-04-14 · Zhaoyang Jia, Naifu Xue, Zihan Zheng, Jiahao Li 외 arxiv

Recent advanced diffusion methods typically derive strong generative priors by scaling diffusion transformers. However, scaling fails to generalize when adapted for real-time compression scenarios that demand lightweight…

Image Compression

COMCAT: Towards Efficient Compression and Customization of Attention-Based Vision Models

2023-05-26 · Jinqi Xiao, Miao Yin, Yu Gong, Xiao Zang 외

Attention-based vision models, such as Vision Transformer (ViT) and its variants, have shown promising performance in various computer vision tasks. However, these emerging architectures suffer from large model sizes and…

Model Compression

QuantSparse: Comprehensively Compressing Video Diffusion Transformer with Model Quantization and Attention Sparsification

2025-09-28 · Weilun Feng, Chuanguang Yang, Haotong Qin, Mingqiang Wu 외 arxiv

Diffusion transformers exhibit remarkable video generation capability, yet their prohibitive computational and memory costs hinder practical deployment. Model quantization and attention sparsification are two promising d…

Video Generation

E-MMDiT: Revisiting Multimodal Diffusion Transformer Design for Fast Image Synthesis under Limited Resources

2025-10-31 · Tong Shen, Jingai Yu, Dong Zhou, Dong Li 외 arxiv

Diffusion models have shown strong capabilities in generating high-quality images from text prompts. However, these models often require large-scale training data and significant computational resources to train, or suff…