Skip to main content
QUICK REVIEW

[论文解读] Improved Noise Schedule for Diffusion Training

Tiankai Hang, Shuyang Gu|arXiv (Cornell University)|Jul 3, 2024
Neural Networks and ApplicationsComputer Science被引用 3
一句话总结

本文提出了一种新型去噪扩散模型噪声调度,通过将采样概率集中在 log SNR = 0 附近,显著提升了训练效率,相当于对中等噪声水平进行重要性采样。实验结果表明,基于拉普拉斯分布的噪声调度在计算资源受限条件下优于标准余弦调度及其他调度方式,在 ImageNet-256 上实现了 25.9% 的 FID 改进(8.04 vs. 10.83)。

ABSTRACT

Diffusion models have emerged as the de facto choice for generating high-quality visual signals across various domains. However, training a single model to predict noise across various levels poses significant challenges, necessitating numerous iterations and incurring significant computational costs. Various approaches, such as loss weighting strategy design and architectural refinements, have been introduced to expedite convergence and improve model performance. In this study, we propose a novel approach to design the noise schedule for enhancing the training of diffusion models. Our key insight is that the importance sampling of the logarithm of the Signal-to-Noise ratio ($\log ext{SNR}$), theoretically equivalent to a modified noise schedule, is particularly beneficial for training efficiency when increasing the sample frequency around $\log ext{SNR}=0$. This strategic sampling allows the model to focus on the critical transition point between signal dominance and noise dominance, potentially leading to more robust and accurate predictions.We empirically demonstrate the superiority of our noise schedule over the standard cosine schedule.Furthermore, we highlight the advantages of our noise schedule design on the ImageNet benchmark, showing that the designed schedule consistently benefits different prediction targets. Our findings contribute to the ongoing efforts to optimize diffusion models, potentially paving the way for more efficient and effective training paradigms in the field of generative AI.

研究动机与目标

  • 为解决去噪扩散模型训练过程中计算成本高且收敛缓慢的问题,尤其是在计算资源受限的情况下。
  • 通过超越损失加权和网络结构修改的思路,重新思考噪声调度以提升训练效率。
  • 探究是否将训练迭代集中在中等噪声水平(log SNR ≈ 0)可获得优于均匀采样或其它采样策略的性能。
  • 通过实证验证,一种优先对 log SNR = 0 附近进行重要性采样的噪声调度,在多种架构和预测目标下均表现更优。

提出的方法

  • 该方法通过在 log SNR = 0 处集中概率密度函数来重新定义噪声调度,等价于对噪声强度进行重要性采样。
  • 所提出的调度在理论上等价于通过对信噪比的对数(log SNR)进行重要性采样来调整损失加权。
  • 实验识别出位置 μ = 0、尺度 γ = 0.5 的拉普拉斯分布为最有效的噪声调度,优于余弦、柯西分布及经过平移/缩放的变体。
  • 引入了“余弦缩放”调度作为余弦调度的改进版本,其中缩放因子 s > 1 可增加 log SNR = 0 附近的采样密度,当 s = 2 时取得最优结果。
  • 采用 FID 指标在 ImageNet-256 和 ImageNet-512 上对不同预测目标和无分类器引导(CFG)设置下的方法进行评估。
  • 在固定 500K 次迭代的训练预算下进行验证,确保不同调度之间的公平比较。

实验结果

研究问题

  • RQ1是否将训练迭代集中在中等噪声水平(log SNR ≈ 0)可获得优于均匀采样或标准余弦采样的生成性能?
  • RQ2在相同计算预算下,是否重新设计的优先聚焦于 log SNR = 0 的噪声调度可优于损失加权策略?
  • RQ3在多种架构和分辨率设置下,拉普拉斯、柯西和余弦缩放等不同概率分布的 FID 表现如何比较?
  • RQ4所提出的噪声调度带来的性能提升是否在不同预测目标和推理设置(如不同 CFG 值)下保持一致?

主要发现

  • 采用 μ = 0 且 γ = 0.5 的拉普拉斯噪声调度在 ImageNet-256 和 ImageNet-512 基准测试中表现最佳,优于标准余弦调度及其他分布。
  • 在 ImageNet-256 上,CFG=2.0 条件下,s = 2 的余弦缩放调度使 FID-10k 提升 25.9%(8.04 vs. 10.83),优于基线余弦调度。
  • 在 log SNR = 0 附近集中概率质量的噪声调度,无论预测目标或 CFG 设置如何,其生成结果的 FID 值始终低于偏向高噪声或低噪声水平的调度。
  • 在计算资源受限条件下,所提调度优于 Min-SNR 和 eDiff-I 等损失重加权策略,表明调度设计比损失重加权更具优势。
  • 性能提升在不同架构和分辨率下均具鲁棒性,在 256×256 和 512×512 图像尺寸下均观察到一致的性能改进。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。