基于扩散的生成模型已在各类任务中展现出强大性能,但这是以较慢的采样速度为代价的。为了同时实现高效和高质量的合成,近年来发展了多种基于蒸馏的加速采样方法。然而,这些方法通常需要耗时的微调以及精心设计,才能在特定的函数评估次数(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.
Teacher-Feature Drifting: One-Step Diffusion Distillation with Pretrained Diffusion Representations
JD Explore Academy(京东探索研究院);Peking University(北京大学);Tsinghua University(清华大学);The Hong Kong University of Science and Technology(香港科技大学);Beijing Institute of Technology(北京理工大学)
D$^4$M: Dataset Distillation via Disentangled Diffusion Model
School of Computer Science and Technology, UCAS(中国科学院大学计算机科学与技术学院);Research Center on Fictitious Economy and Data Science, CAS(中国科学院虚拟经济与数据科学研究中心);Sino-Danish College, UCAS(中国科学院大学中丹学院);Department of Computer Science, NCSU(北卡罗来纳州立大学计算机科学系);School of Economics and Management, UCAS(中国科学院大学经济与管理学院);Institute of Computing Technology, CAS(中国科学院计算技术研究所)
Efficient Diffusion Distillation via Embedding Loss
School of Big Data and Artificial Intelligence(大数据与人工智能学院);Guangdong University of Finance and Economics(广东金融学院);School of Computer Science(计算机科学学院);Shandong University(山东大学)
Generative Dataset Distillation using Min-Max Diffusion Model
School of Electrical and Electronic Engineering(电气与电子工程学院);School of Mechanical and Aerospace Engineering(机械与航空航天工程学院);Nanyang Technological University(南洋理工大学)
Adversarial Distribution Matching for Diffusion Distillation Towards Efficient Image and Video Synthesis
Sun Yat-Sen University(中山大学);ByteDance Seed Vision(字节跳动种子视觉);Guangdong Provincial Key Laboratory of Information Security Technology(广东省信息安全技术重点实验室);Key Laboratory of Machine Intelligence and Advanced Computing, Ministry of Education, China(教育部机器智能与高级计算重点实验室);Pazhou Lab (HuangPu), Guangzhou, China(琶洲实验室(黄埔),广州,中国)
Korea Advanced Institute of Science and Technology (KAIST)(韩国科学技术院);Bio and Brain Engineering(生物与脑工程系);Kim Jaechul Graduate School of AI(金在哲人工智能研究生院);Brain and Cognitive Sciences(脑与认知科学系)
FocusOPD: Structure-Guided On-Policy Distillation for Diffusion Models
University of Science and Technology of China(中国科学技术大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Huawei Noah’s Ark Lab(华为诺亚方舟实验室)
Bridging Diffusion Pruning and Step Distillation with Teacher-Aligned Repair
School of Big Data and Artificial Intelligence(大数据与人工智能学院);Guangdong University of Finance and Economics(广东财经大学);School of Computer Science(计算机科学学院);Shandong University(山东大学);GDUFE-UCM Joint Institute(广东财经大学-UCM联合学院)
Adversarial Concept Distillation for One-Step Diffusion Personalization
Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳));Computer Vision Center(计算机视觉中心);Universitat Autònoma de Barcelona(巴塞罗那自治大学);VCIP, CS, Nankai University(南开大学计算机学院视觉计算与智能感知实验室);Program of Computer Science, City University of Hong Kong (Dongguan)(香港城市大学(东莞)计算机科学项目);City University of Hong Kong(香港城市大学)