$Δ$-DiT: A Training-Free Acceleration Method Tailored for Diffusion Transformers

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chen, Pengtao, Shen, Mingzhu, Ye, Peng, Cao, Jianjian, Tu, Chongjun, Bouganis, Christos-Savvas, Zhao, Yiren, Chen, Tao
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913375245565952
author Chen, Pengtao
Shen, Mingzhu
Ye, Peng
Cao, Jianjian
Tu, Chongjun
Bouganis, Christos-Savvas
Zhao, Yiren
Chen, Tao
author_facet Chen, Pengtao
Shen, Mingzhu
Ye, Peng
Cao, Jianjian
Tu, Chongjun
Bouganis, Christos-Savvas
Zhao, Yiren
Chen, Tao
contents Diffusion models are widely recognized for generating high-quality and diverse images, but their poor real-time performance has led to numerous acceleration works, primarily focusing on UNet-based structures. With the more successful results achieved by diffusion transformers (DiT), there is still a lack of exploration regarding the impact of DiT structure on generation, as well as the absence of an acceleration framework tailored to the DiT architecture. To tackle these challenges, we conduct an investigation into the correlation between DiT blocks and image generation. Our findings reveal that the front blocks of DiT are associated with the outline of the generated images, while the rear blocks are linked to the details. Based on this insight, we propose an overall training-free inference acceleration framework $Δ$-DiT: using a designed cache mechanism to accelerate the rear DiT blocks in the early sampling stages and the front DiT blocks in the later stages. Specifically, a DiT-specific cache mechanism called $Δ$-Cache is proposed, which considers the inputs of the previous sampling image and reduces the bias in the inference. Extensive experiments on PIXART-$α$ and DiT-XL demonstrate that the $Δ$-DiT can achieve a $1.6\times$ speedup on the 20-step generation and even improves performance in most cases. In the scenario of 4-step consistent model generation and the more challenging $1.12\times$ acceleration, our method significantly outperforms existing methods. Our code will be publicly available.
format Preprint
id arxiv_https___arxiv_org_abs_2406_01125
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle $Δ$-DiT: A Training-Free Acceleration Method Tailored for Diffusion Transformers
Chen, Pengtao
Shen, Mingzhu
Ye, Peng
Cao, Jianjian
Tu, Chongjun
Bouganis, Christos-Savvas
Zhao, Yiren
Chen, Tao
Computer Vision and Pattern Recognition
Diffusion models are widely recognized for generating high-quality and diverse images, but their poor real-time performance has led to numerous acceleration works, primarily focusing on UNet-based structures. With the more successful results achieved by diffusion transformers (DiT), there is still a lack of exploration regarding the impact of DiT structure on generation, as well as the absence of an acceleration framework tailored to the DiT architecture. To tackle these challenges, we conduct an investigation into the correlation between DiT blocks and image generation. Our findings reveal that the front blocks of DiT are associated with the outline of the generated images, while the rear blocks are linked to the details. Based on this insight, we propose an overall training-free inference acceleration framework $Δ$-DiT: using a designed cache mechanism to accelerate the rear DiT blocks in the early sampling stages and the front DiT blocks in the later stages. Specifically, a DiT-specific cache mechanism called $Δ$-Cache is proposed, which considers the inputs of the previous sampling image and reduces the bias in the inference. Extensive experiments on PIXART-$α$ and DiT-XL demonstrate that the $Δ$-DiT can achieve a $1.6\times$ speedup on the 20-step generation and even improves performance in most cases. In the scenario of 4-step consistent model generation and the more challenging $1.12\times$ acceleration, our method significantly outperforms existing methods. Our code will be publicly available.
title $Δ$-DiT: A Training-Free Acceleration Method Tailored for Diffusion Transformers
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2406.01125