Diffusion probabilistic models (DPMs) have demonstrated a very promising ability in high-resolution image synthesis. However, sampling from a pre-trained DPM usually requires hundreds of model evaluations, which is computationally expensive. Despite recent progress in designing high-order solvers for DPMs, there still exists room for further speedup, especially in extremely few steps (e.g., 5~10 steps). Inspired by the predictor-corrector for ODE solvers, we develop a unified corrector (UniC) that can be applied after any existing DPM sampler to increase the order of accuracy without extra model evaluations, and derive a unified predictor (UniP) that supports arbitrary order as a byproduct. Combining UniP and UniC, we propose a unified predictor-corrector framework called UniPC for the fast sampling of DPMs, which has a unified analytical form for any order and can significantly improve the sampling quality over previous methods. We evaluate our methods through extensive experiments including both unconditional and conditional sampling using pixel-space and latent-space DPMs. Our UniPC can achieve 3.87 FID on CIFAR10 (unconditional) and 7.51 FID on ImageNet 256$\times$256 (conditional) with only 10 function evaluations. Code is available at https://github.com/wl-zhao/UniPC
翻译:在高分辨率图像合成中,扩散概率模型(DPMs)显示了非常有希望的能力。然而,从经过事先训练的DPM取样通常需要数百个模型评估,而这种评估在计算上成本很高。尽管最近在设计DPMS高分解器方面有所进展,但仍有进一步加速的空间,特别是在极小的步骤(例如5~10步)中,在ODE解答器预测者-纠正器的启发下,我们开发了一个统一的校正器(UniC),可以在任何现有的DPM取样器之后应用,提高准确性,而不进行额外的模型评估,并产生一个统一的预测器(UniP),作为副产品支持任意秩序。合并UniP和UniC,我们提议了一个统一的预测器-校正框架,称为UniPC,用于快速采样DPMS(UPMs),它具有统一的分析形式,能够大大改善以前方法的质量。我们通过广泛的实验,包括使用平流空间和潜空DPM(M)进行无条件和有条件的取样。我们的UniPC能够实现3.87FID-FID on CIFAR_10号机机机机机号(ASyal 10)。我们只能在25IRA/UDIRA 10号机机机机机/UDIRA/UDAR25S)上只机机10号上只能机号上,只有751机号机号机号功能。