arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.04191cs.CVcs.AI
收藏

通过一对多知识蒸馏加速扩散模型

Accelerating Diffusion Models with One-to-Many Knowledge Distillation

Shanghai Jiao Tong University(上海交通大学);Tsinghua University(清华大学)

Linfeng Zhang, Kaisheng Ma

AI总结:

针对扩散模型每步计算成本高的问题,提出一对多知识蒸馏方法,将单教师模型的不同时间步知识蒸馏到多个学生模型,可结合现有方法实现显著加速。

摘要:

扩散模型已在图像生成领域取得显著进展,但与此前的生成模型相比,扩散模型存在极高的计算开销,无法实现实时生成。现有方法主要通过改进采样技术或步骤蒸馏来减少采样步数,从而加速扩散模型,但针对降低每一时间步计算成本的研究仍相对不足。观察到扩散模型在不同时间步下呈现不同的输入分布与特征分布这一特性,我们提出一对多知识蒸馏(one-to-many knowledge distillation, O2MKD)方法,将单个教师扩散模型的知识蒸馏到多个学生扩散模型中,每个学生扩散模型被训练用于学习教师模型在一段连续时间步子集上的知识。在搭载DDPM的CIFAR10、LSUN Church、CelebA-HQ数据集以及搭载Stable Diffusion的COCO30K数据集上的实验表明,O2MKD可应用于现有的知识蒸馏与快速采样方法,实现显著的加速效果。代码将在Github发布。

英文摘要:

Significant advancements in image generation have been made with diffusion models. Nevertheless, when contrasted with previous generative models, diffusion models face substantial computational overhead, leading to failure in real-time generation. Recent approaches have aimed to accelerate diffusion models by reducing the number of sampling steps through improved sampling techniques or step distillation. However, the methods to diminish the computational cost for each timestep remain a relatively unexplored area. Observing the fact that diffusion models exhibit varying input distributions and feature distributions at different timesteps, we introduce one-to-many knowledge distillation (O2MKD), which distills a single teacher diffusion model into multiple student diffusion models, where each student diffusion model is trained to learn the teacher's knowledge for a subset of continuous timesteps. Experiments on CIFAR10, LSUN Church, CelebA-HQ with DDPM and COCO30K with Stable Diffusion show that O2MKD can be applied to previous knowledge distillation and fast sampling methods to achieve significant acceleration. Codes will be released in Github.

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

↑