Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Hongjie, Liu, Difan, Kang, Yan, Li, Yijun, Lin, Zhe, Jha, Niraj K., Liu, Yuchen
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2405.05252
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909195807227904
author Wang, Hongjie
Liu, Difan
Kang, Yan
Li, Yijun
Lin, Zhe
Jha, Niraj K.
Liu, Yuchen
author_facet Wang, Hongjie
Liu, Difan
Kang, Yan
Li, Yijun
Lin, Zhe
Jha, Niraj K.
Liu, Yuchen
contents Diffusion Models (DMs) have exhibited superior performance in generating high-quality and diverse images. However, this exceptional performance comes at the cost of expensive architectural design, particularly due to the attention module heavily used in leading models. Existing works mainly adopt a retraining process to enhance DM efficiency. This is computationally expensive and not very scalable. To this end, we introduce the Attention-driven Training-free Efficient Diffusion Model (AT-EDM) framework that leverages attention maps to perform run-time pruning of redundant tokens, without the need for any retraining. Specifically, for single-denoising-step pruning, we develop a novel ranking algorithm, Generalized Weighted Page Rank (G-WPR), to identify redundant tokens, and a similarity-based recovery method to restore tokens for the convolution operation. In addition, we propose a Denoising-Steps-Aware Pruning (DSAP) approach to adjust the pruning budget across different denoising timesteps for better generation quality. Extensive evaluations show that AT-EDM performs favorably against prior art in terms of efficiency (e.g., 38.8% FLOPs saving and up to 1.53x speed-up over Stable Diffusion XL) while maintaining nearly the same FID and CLIP scores as the full model. Project webpage: https://atedm.github.io.
format Preprint
id arxiv_https___arxiv_org_abs_2405_05252
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Attention-Driven Training-Free Efficiency Enhancement of Diffusion Models
Wang, Hongjie
Liu, Difan
Kang, Yan
Li, Yijun
Lin, Zhe
Jha, Niraj K.
Liu, Yuchen
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Image and Video Processing
Signal Processing
Diffusion Models (DMs) have exhibited superior performance in generating high-quality and diverse images. However, this exceptional performance comes at the cost of expensive architectural design, particularly due to the attention module heavily used in leading models. Existing works mainly adopt a retraining process to enhance DM efficiency. This is computationally expensive and not very scalable. To this end, we introduce the Attention-driven Training-free Efficient Diffusion Model (AT-EDM) framework that leverages attention maps to perform run-time pruning of redundant tokens, without the need for any retraining. Specifically, for single-denoising-step pruning, we develop a novel ranking algorithm, Generalized Weighted Page Rank (G-WPR), to identify redundant tokens, and a similarity-based recovery method to restore tokens for the convolution operation. In addition, we propose a Denoising-Steps-Aware Pruning (DSAP) approach to adjust the pruning budget across different denoising timesteps for better generation quality. Extensive evaluations show that AT-EDM performs favorably against prior art in terms of efficiency (e.g., 38.8% FLOPs saving and up to 1.53x speed-up over Stable Diffusion XL) while maintaining nearly the same FID and CLIP scores as the full model. Project webpage: https://atedm.github.io.
title Attention-Driven Training-Free Efficiency Enhancement of Diffusion Models
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Image and Video Processing
Signal Processing
url https://arxiv.org/abs/2405.05252