arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.19681cs.CV
收藏

扩散模型的简单快速蒸馏

Simple and Fast Distillation of Diffusion Models

Zhejiang University(浙江大学);University at Buffalo, State University of New York(纽约州立大学布法罗分校)

Zhenyu Zhou, Defang Chen, Can Wang, Chun Chen, Siwei Lyu

AI总结:

本文提出简单快速蒸馏方法SFD,通过简化现有扩散模型蒸馏范式并优化关键因素,大幅缩短微调时间,在少步图像生成中兼顾采样质量与效率。

摘要:

基于扩散的生成模型已在各类任务中展现出强大性能,但这是以较慢的采样速度为代价的。为了同时实现高效和高质量的合成,近年来发展了多种基于蒸馏的加速采样方法。然而,这些方法通常需要耗时的微调以及精心设计,才能在特定的函数评估次数(NFE)下取得令人满意的性能,这使得它们难以在实际中应用。为了解决这一问题,我们提出了扩散模型的简单快速蒸馏(Simple and Fast Distillation,SFD),它简化了现有方法所使用的范式,并将其微调时间大幅缩短至原来的千分之一(最高可达1000倍)。我们从一个朴素的基于蒸馏的采样方法出发,通过识别并解决几个影响合成效率和质量的小而关键的因素,将其性能提升到当前最优水平。我们的方法还可以利用单个蒸馏模型实现可变NFE的采样。大量实验表明,SFD在少步图像生成任务中在样本质量和微调成本之间取得了良好的平衡。例如,SFD在CIFAR-10上仅使用单个NVIDIA A100 GPU微调0.64小时,即达到4.53的FID(NFE=2)。我们的代码可在 https://github.com/zju-pi/diff-sampler 获取。

英文摘要:

Diffusion-based generative models have demonstrated their powerful performance across various tasks, but this comes at a cost of the slow sampling speed. To achieve both efficient and high-quality synthesis, various distillation-based accelerated sampling methods have been developed recently. However, they generally require time-consuming fine tuning with elaborate designs to achieve satisfactory performance in a specific number of function evaluation (NFE), making them difficult to employ in practice. To address this issue, we propose Simple and Fast Distillation (SFD) of diffusion models, which simplifies the paradigm used in existing methods and largely shortens their fine-tuning time up to 1000$\times$. We begin with a vanilla distillation-based sampling method and boost its performance to state of the art by identifying and addressing several small yet vital factors affecting the synthesis efficiency and quality. Our method can also achieve sampling with variable NFEs using a single distilled model. Extensive experiments demonstrate that SFD strikes a good balance between the sample quality and fine-tuning costs in few-step image generation task. For example, SFD achieves 4.53 FID (NFE=2) on CIFAR-10 with only 0.64 hours of fine-tuning on a single NVIDIA A100 GPU. Our code is available at https://github.com/zju-pi/diff-sampler.

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

↑