arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.17376cs.CVcs.AIcs.LG
收藏

利用优化时间步加速扩散采样

Accelerating Diffusion Sampling with Optimized Time Steps

Academy of Mathematics and Systems Science, Chinese Academy of Sciences(中国科学院数学与系统科学研究院);University of Electronic Science and Technology of China(电子科技大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Shuchen Xue, Zhaoqiang Liu, Fei Chen, Shifeng Zhang, Tianyang Hu, Enze Xie, Zhenguo Li

AI总结:

本文提出一种通用优化框架,为扩散概率模型的高阶数值ODE求解器设计非均匀时间步,通过约束信赖域方法高效求解,与UniPC结合后在CIFAR-10和ImageNet上显著提升FID分数。

摘要:

扩散概率模型(DPMs)在高分辨率图像合成中表现出卓越的性能,但由于通常需要大量采样步骤,其采样效率仍有待提高。近年来,针对DPMs的高阶数值ODE求解器取得了进展,使得以更少的采样步骤生成高质量图像成为可能。虽然这是一个重要的发展,但大多数采样方法仍采用均匀时间步,这在步骤数量较少时并非最优。为了解决这一问题,我们提出了一个通用框架,用于设计一个优化问题,为特定的DPMs数值ODE求解器寻找更合适的时间步。该优化问题旨在最小化ODE的真实解与数值求解器对应的近似解之间的距离。它可以通过约束信赖域方法高效求解,耗时不到15秒。我们在像素空间和潜在空间DPMs上进行了无条件和有条件采样的广泛实验,结果表明,当与最先进的采样方法UniPC结合时,与使用均匀时间步相比,我们优化的时间步在CIFAR-10和ImageNet等数据集上显著提升了图像生成性能(以FID分数衡量)。

英文摘要:

Diffusion probabilistic models (DPMs) have shown remarkable performance in high-resolution image synthesis, but their sampling efficiency is still to be desired due to the typically large number of sampling steps. Recent advancements in high-order numerical ODE solvers for DPMs have enabled the generation of high-quality images with much fewer sampling steps. While this is a significant development, most sampling methods still employ uniform time steps, which is not optimal when using a small number of steps. To address this issue, we propose a general framework for designing an optimization problem that seeks more appropriate time steps for a specific numerical ODE solver for DPMs. This optimization problem aims to minimize the distance between the ground-truth solution to the ODE and an approximate solution corresponding to the numerical solver. It can be efficiently solved using the constrained trust region method, taking less than $15$ seconds. Our extensive experiments on both unconditional and conditional sampling using pixel- and latent-space DPMs demonstrate that, when combined with the state-of-the-art sampling method UniPC, our optimized time steps significantly improve image generation performance in terms of FID scores for datasets such as CIFAR-10 and ImageNet, compared to using uniform time steps.

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

↑