PFDiff:结合过去与未来分数的扩散模型免训练加速
PFDiff: Training-Free Acceleration of Diffusion Models Combining Past and Future Scores
AI总结:
本文提出免训练时间步跳过方法 PFDiff,通过过去分数替换构建“跳板”并结合 Nesterov 式前瞻更新,在低 NFE 下校正离散化误差并显著提升 DPM 采样质量。
摘要:
扩散概率模型(DPMs)在图像生成中展现出显著潜力,但其采样效率因需要大量去噪步骤而受到阻碍。大多数现有解决方案通过提出快速 ODE 求解器来加速采样过程。然而,当函数评估次数(NFE)较少时,ODE 求解器不可避免的离散化误差会被显著放大。在本文中,我们提出 PFDiff,这是一种新颖的免训练且正交的时间步跳过策略,使现有快速 ODE 求解器能够以更少的 NFE 运行。具体而言,PFDiff 首先利用来自过去时间步的分数替换来预测一个“跳板”。随后,它使用该“跳板”以及受 Nesterov 动量启发的前瞻更新来快速更新当前中间状态。该方法有效减少了不必要的 NFE,同时校正了一阶 ODE 求解器固有的离散化误差。实验结果表明,PFDiff 在各种预训练 DPM 上具有灵活的适用性,尤其在条件 DPM 中表现出色,并超越了此前最先进的免训练方法。例如,以 DDIM 为基线,在带分类器引导的 ImageNet 64x64 上,我们取得了 16.46 FID(4 NFE),而 DDIM 为 138.81 FID;在引导尺度为 7.5 的 Stable Diffusion 上取得了 13.06 FID(10 NFE)。代码位于 https://github.com/onefly123/PFDiff。
英文摘要:
Diffusion Probabilistic Models (DPMs) have shown remarkable potential in image generation, but their sampling efficiency is hindered by the need for numerous denoising steps. Most existing solutions accelerate the sampling process by proposing fast ODE solvers. However, the inevitable discretization errors of the ODE solvers are significantly magnified when the number of function evaluations (NFE) is fewer. In this work, we propose PFDiff, a novel training-free and orthogonal timestep-skipping strategy, which enables existing fast ODE solvers to operate with fewer NFE. Specifically, PFDiff initially utilizes score replacement from past time steps to predict a ``springboard". Subsequently, it employs this ``springboard" along with foresight updates inspired by Nesterov momentum to rapidly update current intermediate states. This approach effectively reduces unnecessary NFE while correcting for discretization errors inherent in first-order ODE solvers. Experimental results demonstrate that PFDiff exhibits flexible applicability across various pre-trained DPMs, particularly excelling in conditional DPMs and surpassing previous state-of-the-art training-free methods. For instance, using DDIM as a baseline, we achieved 16.46 FID (4 NFE) compared to 138.81 FID with DDIM on ImageNet 64x64 with classifier guidance, and 13.06 FID (10 NFE) on Stable Diffusion with 7.5 guidance scale. Code is available at \url{https://github.com/onefly123/PFDiff}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。