Immiscible Diffusion:通过噪声分配加速扩散模型训练
Immiscible Diffusion: Accelerating Diffusion Training with Noise Assignment
AI总结:
针对扩散模型因噪声-数据映射随机混合导致训练缓慢的问题,提出Immiscible Diffusion方法,通过先分配目标噪声再扩散的策略,仅需一行代码即可在多数据集、多模型及不同训练场景下实现最高3倍训练加速,同时提升生成保真度。
摘要:
本文指出,次优的噪声-数据映射是导致扩散模型训练缓慢的原因。在扩散模型训练过程中,现有方法会将每张图像在整个噪声空间中进行扩散,导致噪声层的每个位置都混合了所有图像的信息。我们强调,这种随机混合的噪声-数据映射会增加扩散模型中去噪函数的优化难度。受物理学中不混溶现象的启发,我们提出了Immiscible Diffusion(不混溶扩散),这是一种简单有效的方法,用于改善噪声-数据映射的随机混合问题。在物理学中,混溶性会根据不同的分子间作用力发生变化,因此不混溶性意味着不同分子源的混合是可区分的。受这一概念启发,我们提出了“先分配后扩散”的训练策略以实现不混溶扩散。举例来说,在将图像数据扩散为噪声之前,我们通过最小化小批次内图像-噪声对的总距离,为图像数据分配扩散目标噪声。这种分配的作用类似于外力,能够将各图像的可扩散区域相互推开,从而缓解扩散训练固有的优化难题。我们的方法极为简单,仅需一行代码即可限制每张图像的可扩散区域,同时还能保留噪声的高斯分布。通过这种方式,每张图像会优先被投影到附近的噪声区域。实验表明,在CIFAR数据集上的无条件Consistency Models(一致性模型)、CelebA和ImageNet数据集上的DDIM与Stable Diffusion,以及类别条件训练和微调任务中,我们的方法最多可实现3倍的训练加速。此外,我们还进行了全面分析,阐明了该方法如何在提升生成保真度的同时提高扩散模型的训练速度。代码可在https://yhli123.github.io/immiscible-diffusion 获取。
英文摘要:
In this paper, we point out that suboptimal noise-data mapping leads to slow training of diffusion models. During diffusion training, current methods diffuse each image across the entire noise space, resulting in a mixture of all images at every point in the noise layer. We emphasize that this random mixture of noise-data mapping complicates the optimization of the denoising function in diffusion models. Drawing inspiration from the immiscibility phenomenon in physics, we propose Immiscible Diffusion, a simple and effective method to improve the random mixture of noise-data mapping. In physics, miscibility can vary according to various intermolecular forces. Thus, immiscibility means that the mixing of molecular sources is distinguishable. Inspired by this concept, we propose an assignment-then-diffusion training strategy to achieve Immiscible Diffusion. As one example, prior to diffusing the image data into noise, we assign diffusion target noise for the image data by minimizing the total image-noise pair distance in a mini-batch. The assignment functions analogously to external forces to expel the diffuse-able areas of images, thus mitigating the inherent difficulties in diffusion training. Our approach is remarkably simple, requiring only one line of code to restrict the diffuse-able area for each image while preserving the Gaussian distribution of noise. In this way, each image is preferably projected to nearby noise. Experiments demonstrate that our method can achieve up to 3x faster training for unconditional Consistency Models on the CIFAR dataset, as well as for DDIM and Stable Diffusion on CelebA and ImageNet dataset, and in class-conditional training and fine-tuning. In addition, we conducted a thorough analysis that sheds light on how it improves diffusion training speed while improving fidelity. The code is available at https://yhli123.github.io/immiscible-diffusion
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。