arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.02696cs.CVcs.AIcs.LGcs.NEstat.ML
收藏

分析与改进扩散模型的训练动力学

Analyzing and Improving the Training Dynamics of Diffusion Models

NVIDIA(英伟达);Aalto University(阿尔托大学)

Tero Karras, Miika Aittala, Jaakko Lehtinen, Janne Hellsten, Timo Aila, Samuli Laine

AI总结:

本文识别并改进了 ADM 扩散模型架构中的训练不均匀和低效问题,通过重新设计网络层以保持激活、权重和更新的期望幅度,在同等复杂度下将 ImageNet-512 合成的 FID 记录提升至 1.81,并提出了一种事后设定 EMA 参数的方法。

摘要:

扩散模型目前凭借其向大型数据集无与伦比的扩展能力,主导着数据驱动图像合成领域。在本文中,我们识别并纠正了流行的 ADM 扩散模型架构中导致训练不均匀和低效的若干原因,且未改变其高层结构。观察到在训练过程中网络激活值和权重出现不受控的幅度变化与失衡,我们重新设计了网络层,以在期望上保持激活、权重和更新的幅度。我们发现系统性地应用这一理念消除了所观察到的漂移和失衡,在同等计算复杂度下产生了相当好的网络。我们的修改将 ImageNet-512 合成中先前 2.41 的 FID 记录提升至 1.81,这是使用快速确定性采样实现的。作为一项独立贡献,我们提出了一种事后设定指数移动平均(EMA)参数的方法,即在完成训练运行之后进行设定。这允许在不进行多次训练运行成本的情况下精确调整 EMA 长度,并揭示了其与网络架构、训练时间和引导之间令人惊讶的相互作用。

英文摘要:

Diffusion models currently dominate the field of data-driven image synthesis with their unparalleled scaling to large datasets. In this paper, we identify and rectify several causes for uneven and ineffective training in the popular ADM diffusion model architecture, without altering its high-level structure. Observing uncontrolled magnitude changes and imbalances in both the network activations and weights over the course of training, we redesign the network layers to preserve activation, weight, and update magnitudes on expectation. We find that systematic application of this philosophy eliminates the observed drifts and imbalances, resulting in considerably better networks at equal computational complexity. Our modifications improve the previous record FID of 2.41 in ImageNet-512 synthesis to 1.81, achieved using fast deterministic sampling. As an independent contribution, we present a method for setting the exponential moving average (EMA) parameters post-hoc, i.e., after completing the training run. This allows precise tuning of EMA length without the cost of performing several training runs, and reveals its surprising interactions with network architecture, training time, and guidance.

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

↑