Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Pu, Yifan, Xia, Zhuofan, Guo, Jiayi, Han, Dongchen, Li, Qixiu, Li, Duo, Yuan, Yuhui, Li, Ji, Han, Yizeng, Song, Shiji, Huang, Gao, Li, Xiu
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910563045474304
author Pu, Yifan
Xia, Zhuofan
Guo, Jiayi
Han, Dongchen
Li, Qixiu
Li, Duo
Yuan, Yuhui
Li, Ji
Han, Yizeng
Song, Shiji
Huang, Gao
Li, Xiu
author_facet Pu, Yifan
Xia, Zhuofan
Guo, Jiayi
Han, Dongchen
Li, Qixiu
Li, Duo
Yuan, Yuhui
Li, Ji
Han, Yizeng
Song, Shiji
Huang, Gao
Li, Xiu
contents This paper identifies significant redundancy in the query-key interactions within self-attention mechanisms of diffusion transformer models, particularly during the early stages of denoising diffusion steps. In response to this observation, we present a novel diffusion transformer framework incorporating an additional set of mediator tokens to engage with queries and keys separately. By modulating the number of mediator tokens during the denoising generation phases, our model initiates the denoising process with a precise, non-ambiguous stage and gradually transitions to a phase enriched with detail. Concurrently, integrating mediator tokens simplifies the attention module's complexity to a linear scale, enhancing the efficiency of global attention processes. Additionally, we propose a time-step dynamic mediator token adjustment mechanism that further decreases the required computational FLOPs for generation, simultaneously facilitating the generation of high-quality images within the constraints of varied inference budgets. Extensive experiments demonstrate that the proposed method can improve the generated image quality while also reducing the inference cost of diffusion transformers. When integrated with the recent work SiT, our method achieves a state-of-the-art FID score of 2.01. The source code is available at https://github.com/LeapLabTHU/Attention-Mediators.
format Preprint
id arxiv_https___arxiv_org_abs_2408_05710
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators
Pu, Yifan
Xia, Zhuofan
Guo, Jiayi
Han, Dongchen
Li, Qixiu
Li, Duo
Yuan, Yuhui
Li, Ji
Han, Yizeng
Song, Shiji
Huang, Gao
Li, Xiu
Computer Vision and Pattern Recognition
This paper identifies significant redundancy in the query-key interactions within self-attention mechanisms of diffusion transformer models, particularly during the early stages of denoising diffusion steps. In response to this observation, we present a novel diffusion transformer framework incorporating an additional set of mediator tokens to engage with queries and keys separately. By modulating the number of mediator tokens during the denoising generation phases, our model initiates the denoising process with a precise, non-ambiguous stage and gradually transitions to a phase enriched with detail. Concurrently, integrating mediator tokens simplifies the attention module's complexity to a linear scale, enhancing the efficiency of global attention processes. Additionally, we propose a time-step dynamic mediator token adjustment mechanism that further decreases the required computational FLOPs for generation, simultaneously facilitating the generation of high-quality images within the constraints of varied inference budgets. Extensive experiments demonstrate that the proposed method can improve the generated image quality while also reducing the inference cost of diffusion transformers. When integrated with the recent work SiT, our method achieves a state-of-the-art FID score of 2.01. The source code is available at https://github.com/LeapLabTHU/Attention-Mediators.
title Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2408.05710