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

Analyzing and Improving the Training Dynamics of Diffusion Models

泰罗·卡拉斯 Tero Karras · · 2023-12-05 · arXiv:2312.02696 ↗ · 被引 431

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

扩散模型目前主导了数据驱动图像合成领域,因其无与伦比的扩展到大数据集的能力。在本文中,我们识别并纠正了流行的 ADM 扩散模型架构中导致训练不均匀和低效的几个原因,同时不改变其高层结构。观察到在训练过程中,网络激活和权重存在不受控制的幅度变化和不平衡,我们重新设计了网络层,以在期望上保持激活、权重和更新的幅度。我们发现,系统性地应用这一理念消除了观察到的漂移和不平衡,从而在相同的计算复杂度下得到了显著更好的网络。我们的改进将 ImageNet-512 合成中的先前记录 FID 从 2.41 提升到 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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 18)

阅读逐段中英对照全文 →