atlas

Research map / Architectures and efficiency / Attention and transformers

DiTFastAttn: Attention Compression for Diffusion Transformer Models

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign · 11 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Post-training, training-free compression of diffusion transformer attention via window attention with residual sharing, attention sharing across timesteps, and attention sharing across CFG, with a greedy per-layer per-step plan search.

Problem

Self-attention in diffusion transformers (DiT) has quadratic cost in token length, making high-resolution image and video generation with many denoising steps and CFG expensive, and retraining-based efficient attention designs are costly.

Approach

Identifies three redundancies in DiT attention at inference (spatial locality, similarity of attention outputs across neighboring timesteps, and similarity between conditional and unconditional CFG branches) and exploits them with three training-free techniques: window attention plus cached full-minus-window residual reuse, step-wise attention output reuse, and CFG-wise attention output reuse, sel

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply DiTFastAttn at D6DiT-XL-2 · ImageNet, 512x512IS: 408.16 -> 352.20Hurt
Apply DiTFastAttn at D6DiT-XL-2 · ImageNet, 512x512Attn FLOPs: 100% -> 34%Helped
Apply DiTFastAttn at D6PixArt-Sigma-XL · MS-COCO, 1024x1024FID: 55.65 -> 52.73Helped
Apply DiTFastAttn at D6PixArt-Sigma-XL · MS-COCO, 1024x1024CLIP: 31.27 -> 31.18Hurt
Apply DiTFastAttn at D6PixArt-Sigma-XL · MS-COCO, 2048x2048Attn FLOPs: 100% -> 24%Helped
Apply DiTFastAttn at D6PixArt-Sigma-XL · MS-COCO, 2048x2048Latency: 39.86 -> 22.27Helped
Use ASC only (ablation)DiT-XL-2 · 512x512Attn FLOPs: 50%Helped
Use WA-RS only (ablation)DiT-XL-2 · 512x512Attn FLOPs: 77%Helped
Use WA-RS with ASC (ablation)DiT-XL-2 · 512x512Attn FLOPs: 38%Helped
Use AST only (ablation)DiT-XL-2 · 512x512Attn FLOPs: 0%Helped
Add residual sharing to window attention (ablation)DiTFastAttn · DiT-XL-2-512generation qualityHelped
Increase the denoising steps (ablation)DiTFastAttn · DiT-XL-2-512computation compression at maintained qualityHelped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet MS-COCO 2014

Benchmarks: ImageNet MS-COCO 2014

Metrics: FID IS CLIP score attention FLOPs latency

Baselines: Window Attention without residual sharing ASC only AST only WA-RS only WA-RS + ASC

Builds on: FlashAttention-2 DPM-Solver PixArt-Sigma DeepCache PSViT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy