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

迈向扩散模型的更快训练:一种一致性现象的启发

Towards Faster Training of Diffusion Models: An Inspiration of A Consistency Phenomenon

HKUST(GZ)(香港科技大学(广州));The University of Sydney(悉尼大学);Xiamen University(厦门大学)

Tianshuo Xu, Peng Mi, Ruilin Wang, Yingcong Chen

AI总结:

该研究发现扩散模型存在一致性现象,据此提出基于课程学习的时间步调度和动量衰减两种策略,可显著加速扩散模型训练并提升生成图像质量。

摘要:

扩散模型(DMs)是一种强大的生成框架,近年来受到了广泛关注。然而,扩散模型训练的高计算成本限制了其实际应用。在本文中,我们从扩散模型的一种一致性现象展开研究:我们观察到,给定相同的噪声输入,具有不同初始化、甚至不同架构的扩散模型可以产生非常相似的输出,这在其他生成模型中是罕见的。我们将这一现象归因于两个因素:(1)当噪声预测扩散模型接近时间步上限(输入变为纯噪声)时,扩散模型的学习难度更低,而输出的结构信息通常正是在这一阶段生成的;(2)扩散模型的损失景观高度平滑,这意味着模型倾向于收敛到相似的局部极小值,并表现出相似的行为模式。这一发现不仅揭示了扩散模型的稳定性,还启发我们设计了两种策略来加速扩散模型的训练。首先,我们提出了一种基于课程学习的时间步调度策略,该策略利用噪声率作为学习难度的显式指标,逐步降低较容易时间步的训练频率,从而提高训练效率。其次,我们提出了一种动量衰减策略,即在优化过程中降低动量系数,因为由于损失景观的平滑性,较大的动量可能会阻碍收敛速度并导致振荡。我们在多种模型上验证了所提策略的有效性,结果表明它们能够显著缩短训练时间并提升生成图像的质量。

英文摘要:

Diffusion models (DMs) are a powerful generative framework that have attracted significant attention in recent years. However, the high computational cost of training DMs limits their practical applications. In this paper, we start with a consistency phenomenon of DMs: we observe that DMs with different initializations or even different architectures can produce very similar outputs given the same noise inputs, which is rare in other generative models. We attribute this phenomenon to two factors: (1) the learning difficulty of DMs is lower when the noise-prediction diffusion model approaches the upper bound of the timestep (the input becomes pure noise), where the structural information of the output is usually generated; and (2) the loss landscape of DMs is highly smooth, which implies that the model tends to converge to similar local minima and exhibit similar behavior patterns. This finding not only reveals the stability of DMs, but also inspires us to devise two strategies to accelerate the training of DMs. First, we propose a curriculum learning based timestep schedule, which leverages the noise rate as an explicit indicator of the learning difficulty and gradually reduces the training frequency of easier timesteps, thus improving the training efficiency. Second, we propose a momentum decay strategy, which reduces the momentum coefficient during the optimization process, as the large momentum may hinder the convergence speed and cause oscillations due to the smoothness of the loss landscape. We demonstrate the effectiveness of our proposed strategies on various models and show that they can significantly reduce the training time and improve the quality of the generated images.

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

↑