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

关于引导扩散模型蒸馏的研究

On Distillation of Guided Diffusion Models

Stanford University(斯坦福大学);Stability AI;LMU Munich(慕尼黑大学);Google Research(谷歌研究院)

Chenlin Meng, Robin Rombach, Ruiqi Gao, Diederik P. Kingma, Stefano Ermon, Jonathan Ho, Tim Salimans

AI总结:

本文提出一种蒸馏无分类器引导扩散模型的方法,通过先学习匹配条件与无条件模型组合输出的单一模型,再逐步蒸馏为少步采样模型,在保持图像质量的同时将采样速度提升最高256倍,并验证了其在文本引导编辑和修复任务中的有效性。

摘要:

无分类器引导的扩散模型最近被证明在高分辨率图像生成方面非常有效,并已广泛应用于大规模扩散框架中,包括 DALLE-2、Stable Diffusion 和 Imagen。然而,无分类器引导扩散模型的一个缺点是它们在推理时计算开销很大,因为需要评估两个扩散模型——一个类别条件模型和一个无条件模型——数十到数百次。为了解决这一局限性,我们提出了一种将无分类器引导扩散模型蒸馏为采样速度更快的模型的方法:给定一个预训练的无分类器引导模型,我们首先学习一个单一模型来匹配条件模型和无条件模型组合后的输出,然后逐步将该模型蒸馏为所需采样步骤少得多的扩散模型。对于在像素空间上训练的标准扩散模型,我们的方法在 ImageNet 64x64 和 CIFAR-10 上仅需 4 个采样步骤即可生成在视觉上与原模型相当的图像,取得与原模型相当的 FID/IS 分数,同时采样速度提升高达 256 倍。对于在潜在空间上训练的扩散模型(如 Stable Diffusion),我们的方法仅需 1 到 4 个去噪步骤即可生成高保真图像,在 ImageNet 256x256 和 LAION 数据集上相比现有方法推理加速至少 10 倍。我们进一步证明了该方法在文本引导图像编辑和图像修复上的有效性,蒸馏后的模型仅需 2 到 4 个去噪步骤即可生成高质量结果。

英文摘要:

Classifier-free guided diffusion models have recently been shown to be highly effective at high-resolution image generation, and they have been widely used in large-scale diffusion frameworks including DALLE-2, Stable Diffusion and Imagen. However, a downside of classifier-free guided diffusion models is that they are computationally expensive at inference time since they require evaluating two diffusion models, a class-conditional model and an unconditional model, tens to hundreds of times. To deal with this limitation, we propose an approach to distilling classifier-free guided diffusion models into models that are fast to sample from: Given a pre-trained classifier-free guided model, we first learn a single model to match the output of the combined conditional and unconditional models, and then we progressively distill that model to a diffusion model that requires much fewer sampling steps. For standard diffusion models trained on the pixel-space, our approach is able to generate images visually comparable to that of the original model using as few as 4 sampling steps on ImageNet 64x64 and CIFAR-10, achieving FID/IS scores comparable to that of the original model while being up to 256 times faster to sample from. For diffusion models trained on the latent-space (e.g., Stable Diffusion), our approach is able to generate high-fidelity images using as few as 1 to 4 denoising steps, accelerating inference by at least 10-fold compared to existing methods on ImageNet 256x256 and LAION datasets. We further demonstrate the effectiveness of our approach on text-guided image editing and inpainting, where our distilled model is able to generate high-quality results using as few as 2-4 denoising steps.

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

↑