arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.09000cs.LGcs.AIcs.CV
收藏

Classifier-Free Guidance 是一种 Predictor-Corrector

Classifier-Free Guidance is a Predictor-Corrector

Apple(苹果公司)

Arwen Bradley, Preetum Nakkiran

AI总结:

本文澄清了分类器自由引导(CFG)的理论基础,证明其并非生成gamma次幂分布,而是一种交替进行去噪与锐化的预测器-校正器方法(PCG),并在SDE极限下等价于DDIM预测器与Langevin动学校正器的结合,从而将CFG嵌入有原则的采样方法设计空间中。

摘要:

我们研究了 classifier-free guidance (CFG) 的理论基础。CFG 是文本到图像扩散模型条件采样的主流方法,但与扩散的其他方面不同,它的理论基础依然薄弱。在本文中,我们通过证明 CFG 与 DDPM (Ho et al., 2020) 和 DDIM (Song et al., 2021) 的交互方式不同,且两个带有 CFG 的采样器都不生成 gamma 次幂分布 $p(x|c)^γp(x)^{1-γ}$,从而反驳了常见的误解。接着,我们澄清了 CFG 的行为,表明它是一种交替进行去噪和锐化的 predictor-corrector 方法,我们称之为 predictor-corrector guidance (PCG)。我们证明,在 SDE 极限下,CFG 实际上等价于将用于条件分布的 DDIM 预测器与用于 gamma 次幂分布(具有精心选择的 gamma)的 Langevin 动学校正器相结合。因此,我们的工作通过将 CFG 嵌入到有原则的采样方法的更广泛设计空间中,提供了一个从理论上理解 CFG 的视角。

英文摘要:

We investigate the theoretical foundations of classifier-free guidance (CFG). CFG is the dominant method of conditional sampling for text-to-image diffusion models, yet unlike other aspects of diffusion, it remains on shaky theoretical footing. In this paper, we disprove common misconceptions, by showing that CFG interacts differently with DDPM (Ho et al., 2020) and DDIM (Song et al., 2021), and neither sampler with CFG generates the gamma-powered distribution $p(x|c)^γp(x)^{1-γ}$. Then, we clarify the behavior of CFG by showing that it is a kind of predictor-corrector method (Song et al., 2020) that alternates between denoising and sharpening, which we call predictor-corrector guidance (PCG). We prove that in the SDE limit, CFG is actually equivalent to combining a DDIM predictor for the conditional distribution together with a Langevin dynamics corrector for a gamma-powered distribution (with a carefully chosen gamma). Our work thus provides a lens to theoretically understand CFG by embedding it in a broader design space of principled sampling methods.

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

↑