SlimFlow: 使用修正流训练更小的单步扩散模型
SlimFlow: Training Smaller One-Step Diffusion Models with Rectified Flow
AI总结:
本文提出SlimFlow框架,通过退火重流和流引导蒸馏联合压缩推理步数与模型尺寸,训练出参数量15.7M、FID 5.02的单步扩散模型,在CIFAR10上超越先前最先进模型,并在ImageNet和FFHQ上达到与大型模型相当的性能。
摘要:
扩散模型在高质量生成方面表现出色,但由于迭代采样导致推理速度缓慢。尽管近期方法已成功将扩散模型转化为单步生成器,但它们忽视了模型尺寸的缩减,限制了其在计算受限场景中的适用性。本文旨在基于强大的修正流框架,通过探索推理步骤和模型尺寸的联合压缩,开发小型、高效的单步扩散模型。修正流框架通过重流和蒸馏两种操作训练单步生成模型。与原始框架相比,压缩模型尺寸带来了两个新挑战:(1)重流过程中大教师模型与小学生在初始化上的不匹配;(2)朴素蒸馏在小规模学生模型上的性能不足。为克服这些问题,我们提出了退火重流和流引导蒸馏,二者共同构成我们的SlimFlow框架。借助我们的新颖框架,我们训练了一个FID为5.02、参数量为15.7M的单步扩散模型,在CIFAR10上优于先前最先进的单步扩散模型(FID=6.47,19.4M参数)。在ImageNet 64×64和FFHQ 64×64上,我们的方法生成了与更大模型相当的小型单步扩散模型,展示了我们的方法在创建紧凑、高效的单步扩散模型方面的有效性。
英文摘要:
Diffusion models excel in high-quality generation but suffer from slow inference due to iterative sampling. While recent methods have successfully transformed diffusion models into one-step generators, they neglect model size reduction, limiting their applicability in compute-constrained scenarios. This paper aims to develop small, efficient one-step diffusion models based on the powerful rectified flow framework, by exploring joint compression of inference steps and model size. The rectified flow framework trains one-step generative models using two operations, reflow and distillation. Compared with the original framework, squeezing the model size brings two new challenges: (1) the initialization mismatch between large teachers and small students during reflow; (2) the underperformance of naive distillation on small student models. To overcome these issues, we propose Annealing Reflow and Flow-Guided Distillation, which together comprise our SlimFlow framework. With our novel framework, we train a one-step diffusion model with an FID of 5.02 and 15.7M parameters, outperforming the previous state-of-the-art one-step diffusion model (FID=6.47, 19.4M parameters) on CIFAR10. On ImageNet 64$\times$64 and FFHQ 64$\times$64, our method yields small one-step diffusion models that are comparable to larger models, showcasing the effectiveness of our method in creating compact, efficient one-step diffusion models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。