arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2309.17074cs.CV
收藏

AdaDiff:通过逐步自适应计算加速扩散模型

AdaDiff: Accelerating Diffusion Models through Step-Wise Adaptive Computation

MBZUAI(穆罕默德·本·扎耶德人工智能大学);Google(谷歌公司);University of Minnesota, Twin Cities(明尼苏达大学双城分校);UNC at Chapel Hill(北卡罗来纳大学教堂山分校);North Carolina State University(北卡罗来纳州立大学)

Shengkun Tang, Yaqing Wang, Caiwen Ding, Yi Liang, Yao Li, Dongkuan Xu

AI总结:

针对扩散模型多步生成计算效率低的问题,提出自适应框架AdaDiff,通过时间步感知不确定性估计模块动态分配每步计算资源,并结合不确定性感知分层损失缩小性能差距,提升生成效率。

摘要:

扩散模型在生成多样化且高保真的图像方面取得了巨大成功,但其固有的生成速度缓慢阻碍了它们的广泛应用,尤其是在实时场景中。生成缓慢源于需要进行多步网络推理。虽然某些预测得益于每次采样迭代中模型的完整计算,但并非每次迭代都需要相同的计算量,这可能导致计算效率低下。与处理单步生成问题的典型自适应计算挑战不同,多步生成的扩散过程需要根据对每一步对最终图像输出重要性的持续评估,动态调整其计算资源分配,这带来了一系列独特的挑战。在本研究中,我们提出了AdaDiff,这是一种自适应框架,可在每个采样步骤中动态分配计算资源,以提高扩散模型的生成效率。为了评估计算量变化对图像质量的影响,我们提出了一个时间步感知的不确定性估计模块(UEM)。UEM集成在每个中间层中,用于评估预测不确定性。这种不确定性测量可作为确定是否终止推理过程的指标。此外,我们还引入了一种不确定性感知的分层损失,旨在缩小完整模型与其自适应对应模型之间的性能差距。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑