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 条
  • [41] CONFORMATION-DIRECTED STEP-WISE PROCESSING OF POLYPEPTIDE PRECURSORS - INTERDOMAIN PROCESSING OF INTERMEDIATE FRAGMENTS SHOWN THROUGH TRYPSIN-SEPHAROSE CHROMATOGRAPHY
    CHAUVER, J
    ROUILLE, Y
    MICHEL, G
    LEVY, B
    CHAUVET, MT
    ACHER, R
    JOURNAL OF PROTEIN CHEMISTRY, 1988, 7 (03): : 211 - 212
  • [42] Study on bulk preparation and properties of glycidyl azide polymer with hydroxyl-terminated polyether elastomers obtained through step-wise curing process
    Yajin Li
    Song Ma
    Jingke Deng
    Yunjun Luo
    Colloid and Polymer Science, 2017, 295 : 637 - 646
  • [43] Efficient computation of the Grunwald-Letnikov fractional diffusion derivative using adaptive time step memory
    MacDonald, Christopher L.
    Bhattacharya, Nirupama
    Sprouse, Brian P.
    Silva, Gabriel A.
    JOURNAL OF COMPUTATIONAL PHYSICS, 2015, 297 : 221 - 236
  • [44] A COMPARISON OF ALL-SUBSET COX AND ACCELERATED FAILURE TIME MODELS WITH COX STEP-WISE REGRESSION FOR NODE-POSITIVE BREAST-CANCER
    CHAPMAN, JAW
    TRUDEAU, ME
    PRITCHARD, KI
    SAWKA, CA
    MOBBS, BG
    HANNA, WM
    KAHN, H
    MCCREADY, DR
    LICKLEY, LA
    BREAST CANCER RESEARCH AND TREATMENT, 1992, 22 (03) : 263 - 272
  • [45] Optimized gas and water production from water-saturated hydrate-bearing sediment through step-wise depressurization combined with thermal stimulation
    Guo, Xianwei
    Xu, Lei
    Wang, Bin
    Sun, Lingjie
    Liu, Yulong
    Wei, Rupeng
    Yang, Lei
    Zhao, Jiafei
    APPLIED ENERGY, 2020, 276
  • [46] Come-Closer-Diffuse-Faster: Accelerating Conditional Diffusion Models for Inverse Problems through Stochastic Contraction
    Chung, Hyungjin
    Sim, Byeongsu
    Ye, Jong Chul
    2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2022, : 12403 - 12412
  • [47] A new hybrid model using step-wise weight assessment ratio analysis (SWAM) technique and adaptive neuro-fuzzy inference system (ANFIS) for regional landslide hazard assessment in Iran
    Dehnavi, Alireza
    Aghdam, Iman Nasiri
    Pradhan, Biswajeet
    Varzandeh, Mohammad Hossein Morshed
    CATENA, 2015, 135 : 122 - 148
  • [48] Enhancing the piezoelectric performance of composite PVDF flexible films through optimizing β phase content, investigating additive effects, step-wise polarization, and thermal pressing time for energy harvesting applications
    Oflaz, Kamil
    Ozaytekin, Ilkay
    Sadasivuni, Kishor Kumar
    JOURNAL OF APPLIED POLYMER SCIENCE, 2024, 141 (25)
  • [49] Control of spin coupling through a redox-active bridge in a dinickel(ii) porphyrin dimer: step-wise oxidations enable isolations of a chlorin-porphyrin heterodimer and a dication diradical with a singlet ground state
    Pandit, Younis Ahmad
    Usman, Mohammad
    Sarkar, Anindya
    Shah, Syed Jehanger
    Rath, Sankar Prasad
    Dalton Transactions, 2022, 52 (04) : 877 - 891
  • [50] Control of spin coupling through a redox-active bridge in a dinickel(ii) porphyrin dimer: step-wise oxidations enable isolations of a chlorin-porphyrin heterodimer and a dication diradical with a singlet ground state
    Pandit, Younis Ahmad
    Usman, Mohammad
    Sarkar, Anindya
    Shah, Syed Jehanger
    Rath, Sankar Prasad
    DALTON TRANSACTIONS, 2023, 52 (04) : 877 - 891