AdaDiff: Accelerating Diffusion Models through Step-Wise Adaptive Computation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tang, Shengkun, Wang, Yaqing, Ding, Caiwen, Liang, Yi, Li, Yao, Xu, Dongkuan
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929460654112768
author Tang, Shengkun
Wang, Yaqing
Ding, Caiwen
Liang, Yi
Li, Yao
Xu, Dongkuan
author_facet Tang, Shengkun
Wang, Yaqing
Ding, Caiwen
Liang, Yi
Li, Yao
Xu, Dongkuan
contents Diffusion models achieve great success in generating diverse and high-fidelity images, yet their widespread application, especially in real-time scenarios, is hampered by their inherently slow generation speed. The slow generation stems from the necessity of multi-step network inference. While some certain predictions benefit from the full computation of the model in each sampling iteration, not every iteration requires the same amount of computation, potentially leading to inefficient computation. Unlike typical adaptive computation challenges that deal with single-step generation problems, diffusion processes with a multi-step generation need to dynamically adjust their computational resource allocation based on the ongoing assessment of each step's importance to the final image output, presenting a unique set of challenges. In this work, we propose AdaDiff, an adaptive framework that dynamically allocates computation resources in each sampling step to improve the generation efficiency of diffusion models. To assess the effects of changes in computational effort on image quality, we present a timestep-aware uncertainty estimation module (UEM). Integrated at each intermediate layer, the UEM evaluates the predictive uncertainty. This uncertainty measurement serves as an indicator for determining whether to terminate the inference process. Additionally, we introduce an uncertainty-aware layer-wise loss aimed at bridging the performance gap between full models and their adaptive counterparts.
format Preprint
id arxiv_https___arxiv_org_abs_2309_17074
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle AdaDiff: Accelerating Diffusion Models through Step-Wise Adaptive Computation
Tang, Shengkun
Wang, Yaqing
Ding, Caiwen
Liang, Yi
Li, Yao
Xu, Dongkuan
Computer Vision and Pattern Recognition
Diffusion models achieve great success in generating diverse and high-fidelity images, yet their widespread application, especially in real-time scenarios, is hampered by their inherently slow generation speed. The slow generation stems from the necessity of multi-step network inference. While some certain predictions benefit from the full computation of the model in each sampling iteration, not every iteration requires the same amount of computation, potentially leading to inefficient computation. Unlike typical adaptive computation challenges that deal with single-step generation problems, diffusion processes with a multi-step generation need to dynamically adjust their computational resource allocation based on the ongoing assessment of each step's importance to the final image output, presenting a unique set of challenges. In this work, we propose AdaDiff, an adaptive framework that dynamically allocates computation resources in each sampling step to improve the generation efficiency of diffusion models. To assess the effects of changes in computational effort on image quality, we present a timestep-aware uncertainty estimation module (UEM). Integrated at each intermediate layer, the UEM evaluates the predictive uncertainty. This uncertainty measurement serves as an indicator for determining whether to terminate the inference process. Additionally, we introduce an uncertainty-aware layer-wise loss aimed at bridging the performance gap between full models and their adaptive counterparts.
title AdaDiff: Accelerating Diffusion Models through Step-Wise Adaptive Computation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2309.17074