arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.08891cs.CV
收藏

常见扩散噪声调度与采样步数存在缺陷

Common Diffusion Noise Schedules and Sample Steps are Flawed

ByteDance Inc.(字节跳动有限公司)

Shanchuan Lin, Bingchen Liu, Jiashi Li, Xiao Yang

AI总结:

本文指出常见扩散噪声调度和采样器实现未强制零终端信噪比且未从最后时间步开始,导致训练与推理不一致并限制 Stable Diffusion 亮度生成,提出重缩放噪声调度、v 预测、修正采样起点和重缩放无分类器引导等修复方法。

摘要:

我们发现常见的扩散噪声调度并未强制最后一个时间步具有零信噪比(SNR),并且一些扩散采样器的实现并未从最后一个时间步开始。这类设计存在缺陷,未能反映模型在推理时接收到纯高斯噪声这一事实,从而造成训练与推理之间的不一致。我们表明,这种有缺陷的设计在现有实现中引发了实际问题。在 Stable Diffusion 中,它严重限制了模型只能生成中等亮度的图像,使其无法生成非常亮和非常暗的样本。我们提出几个简单的修复方法:(1)重新缩放噪声调度以强制实现零终端信噪比;(2)使用 v 预测训练模型;(3)修改采样器使其始终从最后一个时间步开始;(4)重新缩放无分类器引导以防止过度曝光。这些简单的更改确保扩散过程在训练和推理之间保持一致,并使模型能够生成更忠实于原始数据分布的样本。

英文摘要:

We discover that common diffusion noise schedules do not enforce the last timestep to have zero signal-to-noise ratio (SNR), and some implementations of diffusion samplers do not start from the last timestep. Such designs are flawed and do not reflect the fact that the model is given pure Gaussian noise at inference, creating a discrepancy between training and inference. We show that the flawed design causes real problems in existing implementations. In Stable Diffusion, it severely limits the model to only generate images with medium brightness and prevents it from generating very bright and dark samples. We propose a few simple fixes: (1) rescale the noise schedule to enforce zero terminal SNR; (2) train the model with v prediction; (3) change the sampler to always start from the last timestep; (4) rescale classifier-free guidance to prevent over-exposure. These simple changes ensure the diffusion process is congruent between training and inference and allow the model to generate samples more faithful to the original data distribution.

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

↑