AdaDiff: Accelerating Diffusion Models Through Step-Wise Adaptive Computation

被引:0
|
作者
Tang, Shengkun
Wang, Yaqing [1 ]
Ding, Caiwen [2 ]
Liang, Yi [1 ]
Li, Yao [3 ]
Xu, Dongkuan [4 ]
机构
[1] Google, Menlo Pk, CA USA
[2] Univ Connecticut, Mansfield, PA USA
[3] UNC Chapel Hill, Chapel Hill, NC USA
[4] North Carolina State Univ, Raleigh, NC USA
来源
关键词
D O I
10.1007/978-3-031-72986-7_5
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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. Comprehensive experiments including class-conditional, unconditional, and text-guided image generation across multiple datasets demonstrate superior performance and efficiency of AdaDiff relative to current early exiting techniques in diffusion models. Notably, we observe enhanced performance on FID, with an acceleration ratio reductio'n of around 45%. Another exciting observation is that adaptive computation can synergize with other efficiency-enhancing methods such as reducing sampling steps to accelerate inference.
引用
收藏
页码:73 / 90
页数:18
相关论文
共 50 条
  • [21] Step-wise induction, amplification and inversion of molecular chirality through the coordination of chiral diamines with Zn(II) bisporphyrin
    Ikbal, Sk Asif
    Brahma, Sanfaori
    Rath, Sankar Prasad
    CHEMICAL COMMUNICATIONS, 2015, 51 (05) : 895 - 898
  • [22] Guided evolution of in silico microbial populations in complex environments accelerates evolutionary rates through a step-wise adaptation
    Vadim Mozhayskiy
    Ilias Tagkopoulos
    BMC Bioinformatics, 13
  • [23] Guided evolution of in silico microbial populations in complex environments accelerates evolutionary rates through a step-wise adaptation
    Mozhayskiy, Vadim
    Tagkopoulos, Ilias
    BMC Bioinformatics, 2012, 13
  • [24] Guided evolution of in silico microbial populations in complex environments accelerates evolutionary rates through a step-wise adaptation
    Mozhayskiy, Vadim
    Tagkopoulos, Ilias
    BMC BIOINFORMATICS, 2012, 13
  • [25] Step-wise optimum adaptive variable-structure load-frequency control design using simulated annealing
    Bensenouci, Ahmed
    Ghany, A. M. Abdel
    2007 IEEE INTERNATIONAL SYMPOSIUM ON INDUSTRIAL ELECTRONICS, PROCEEDINGS, VOLS 1-8, 2007, : 318 - 323
  • [26] Heuristics and metaheuristics for accelerating the computation of simultaneous equations models through a Steiner tree
    Lopez-Espin, Jose J.
    Vidal, Antonio M.
    Gimenez, Domingo
    JOURNAL OF COMPUTATIONAL AND APPLIED MATHEMATICS, 2014, 255 : 605 - 615
  • [27] Two Models for Delivery of Women's Continence Care: The Step-Wise Continence Team Versus the Traditional Medical Model
    Farrell, Scott A.
    Scott, Tracy A.
    Farrell, Karen D.
    Irving, Linda
    Foren, Joan
    Twohig, Jane
    JOURNAL OF OBSTETRICS AND GYNAECOLOGY CANADA, 2009, 31 (03) : 247 - 253
  • [28] Enhancing ectoine production by recombinant Escherichia coli through step-wise fermentation optimization strategy based on kinetic analysis
    Yingsheng Dong
    Hao Zhang
    XinYi Wang
    JunJie Ma
    Peng Lei
    Hong Xu
    Sha Li
    Bioprocess and Biosystems Engineering, 2021, 44 : 1557 - 1566
  • [29] Gas production behavior from hydrate-bearing fine natural sediments through optimized step-wise depressurization
    Zhao, Jiafei
    Liu, Yulong
    Guo, Xianwei
    Wei, Rupeng
    Yu, Tianbo
    Xu, Lei
    Sun, Lingjie
    Yang, Lei
    APPLIED ENERGY, 2020, 260
  • [30] Step-wise addition of disulfide bridge in firefly luciferase controls color shift through a flexible loop: a thermodynamic perspective
    Mahboobeh Nazari
    Saman Hosseinkhani
    Leila Hassani
    Photochemical & Photobiological Sciences, 2013, 12 : 298 - 308