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 条
  • [31] Step-wise addition of disulfide bridge in firefly luciferase controls color shift through a flexible loop: a thermodynamic perspective
    Nazari, Mahboobeh
    Hosseinkhani, Saman
    Hassani, Leila
    PHOTOCHEMICAL & PHOTOBIOLOGICAL SCIENCES, 2013, 12 (02) : 298 - 308
  • [32] Enhancing ectoine production by recombinant Escherichia coli through step-wise fermentation optimization strategy based on kinetic analysis
    Dong, Yingsheng
    Zhang, Hao
    Wang, XinYi
    Ma, JunJie
    Lei, Peng
    Xu, Hong
    Li, Sha
    BIOPROCESS AND BIOSYSTEMS ENGINEERING, 2021, 44 (07) : 1557 - 1566
  • [33] Recovery of pure PET from wool/PET/elastane textile waste through step-wise enzymatic and chemical processing
    Boschmeier, Emanuel
    Mehanni, Daniella
    Sedlmayr, Viktor Laurin
    Vetyukov, Yury
    Mihalyi, Sophia
    Quartinello, Felice
    Guebitz, Georg M.
    Bartl, Andreas
    WASTE MANAGEMENT & RESEARCH, 2024,
  • [34] Enantioselective Construction of Polycyclic Chromanes through Organocatalytic Sequential Quintuple Reaction via One-Pot Step-Wise Procedure
    Wang, Jie
    Qin, Hang
    Song, Ya-Li
    Cao, Fei
    You, Zhi-Hao
    CHINESE JOURNAL OF CHEMISTRY, 2024, 42 (18) : 2197 - 2202
  • [35] Illustration of Step-Wise Latent Class Modeling With Covariates and Taxometric Analysis in Research Probing Children's Mental Models in Learning Sciences
    Stamovlasis, Dimitrios
    Papageorgiou, George
    Tsitsipis, Georgios
    Tsikalas, Themistoklis
    Vaiopoulou, Julie
    FRONTIERS IN PSYCHOLOGY, 2018, 9
  • [36] Step-wise evolution of azole resistance through copy number variation followed by KSR1 loss of heterozygosity in Candida albicans
    Vande Zande, Petra
    Gautier, Cecile
    Kawar, Nora
    Maufrais, Corinne
    Metzner, Katura
    Wash, Elizabeth
    Beach, Annette K.
    Bracken, Ryan
    Maciel, Eli Isael
    de Sa, Nivea Pereira
    Fernandes, Caroline Mota
    Solis, Norma V.
    Del Poeta, Maurizio
    Filler, Scott G.
    Berman, Judith
    Ene, Iuliana V.
    Selmecki, Anna
    PLOS PATHOGENS, 2024, 20 (08)
  • [37] Picture fuzzy complex proportional assessment approach with step-wise weight assessment ratio analysis and criteria importance through intercriteria correlation
    Razzaq, Ayesha
    Khan, Zareen A.
    Naeem, Khalid
    Riaz, Muhammad
    ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2025, 139
  • [38] Synthesis of the trisaccharide repeating unit of Stenotrophomonas maltophilia O6 antigen through step-wise and one-pot approaches
    Halder, Tanmoy
    Yadav, Sunil K.
    Yadav, Somnath
    CARBOHYDRATE RESEARCH, 2022, 521
  • [39] From minimum-viable-products to full models: a step-wise development of diagnostic forward models in support of design, analysis and modelling on the ST40 tokamak
    Sertoli, Marco
    Alieva, A.
    Buxton, P. F.
    Dnestrovskii, A.
    Gemmell, M.
    Lowe, H.
    O'Gorman, T.
    Osin, D.
    Sladkomedova, A.
    Varje, J.
    Willett, H. V.
    Wood, J.
    Lomanowski, Bart A.
    Delabie, E.
    Marchuk, O.
    Litherland-Smith, E.
    Collie, K.
    Gadgil, S.
    PLASMA PHYSICS AND CONTROLLED FUSION, 2024, 66 (09)
  • [40] Study on bulk preparation and properties of glycidyl azide polymer with hydroxyl-terminated polyether elastomers obtained through step-wise curing process
    Li, Yajin
    Ma, Song
    Deng, Jingke
    Luo, Yunjun
    COLLOID AND POLYMER SCIENCE, 2017, 295 (04) : 637 - 646