Saved in:
Bibliographic Details
Main Authors: Zhao, Wangbo, Han, Yizeng, Tang, Jiasheng, Wang, Kai, Song, Yibing, Huang, Gao, Wang, Fan, You, Yang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.03456
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916427558027264
author Zhao, Wangbo
Han, Yizeng
Tang, Jiasheng
Wang, Kai
Song, Yibing
Huang, Gao
Wang, Fan
You, Yang
author_facet Zhao, Wangbo
Han, Yizeng
Tang, Jiasheng
Wang, Kai
Song, Yibing
Huang, Gao
Wang, Fan
You, Yang
contents Diffusion Transformer (DiT), an emerging diffusion model for image generation, has demonstrated superior performance but suffers from substantial computational costs. Our investigations reveal that these costs stem from the static inference paradigm, which inevitably introduces redundant computation in certain diffusion timesteps and spatial regions. To address this inefficiency, we propose Dynamic Diffusion Transformer (DyDiT), an architecture that dynamically adjusts its computation along both timestep and spatial dimensions during generation. Specifically, we introduce a Timestep-wise Dynamic Width (TDW) approach that adapts model width conditioned on the generation timesteps. In addition, we design a Spatial-wise Dynamic Token (SDT) strategy to avoid redundant computation at unnecessary spatial locations. Extensive experiments on various datasets and different-sized models verify the superiority of DyDiT. Notably, with <3% additional fine-tuning iterations, our method reduces the FLOPs of DiT-XL by 51%, accelerates generation by 1.73, and achieves a competitive FID score of 2.07 on ImageNet. The code is publicly available at https://github.com/NUS-HPC-AI-Lab/ Dynamic-Diffusion-Transformer.
format Preprint
id arxiv_https___arxiv_org_abs_2410_03456
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Dynamic Diffusion Transformer
Zhao, Wangbo
Han, Yizeng
Tang, Jiasheng
Wang, Kai
Song, Yibing
Huang, Gao
Wang, Fan
You, Yang
Computer Vision and Pattern Recognition
Diffusion Transformer (DiT), an emerging diffusion model for image generation, has demonstrated superior performance but suffers from substantial computational costs. Our investigations reveal that these costs stem from the static inference paradigm, which inevitably introduces redundant computation in certain diffusion timesteps and spatial regions. To address this inefficiency, we propose Dynamic Diffusion Transformer (DyDiT), an architecture that dynamically adjusts its computation along both timestep and spatial dimensions during generation. Specifically, we introduce a Timestep-wise Dynamic Width (TDW) approach that adapts model width conditioned on the generation timesteps. In addition, we design a Spatial-wise Dynamic Token (SDT) strategy to avoid redundant computation at unnecessary spatial locations. Extensive experiments on various datasets and different-sized models verify the superiority of DyDiT. Notably, with <3% additional fine-tuning iterations, our method reduces the FLOPs of DiT-XL by 51%, accelerates generation by 1.73, and achieves a competitive FID score of 2.07 on ImageNet. The code is publicly available at https://github.com/NUS-HPC-AI-Lab/ Dynamic-Diffusion-Transformer.
title Dynamic Diffusion Transformer
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.03456