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.
Neural CDEs as Correctors for Learned Time Series Models
Department of Mechanical Engineering(机械工程系);Iowa State University(爱荷华州立大学);Sibley School of Mechanical and Aerospace Engineering(机械与航空航天工程学院);Cornell University(康奈尔大学)
Department of Statistics, University of Oxford(1 统计系,牛津大学);Inria, CNRS, École Normale Supérieure, PSL Research University(2 Inria,法国国家科学研究中心,巴黎高等师范学院,PSL研究大学);Department of Mathematical Sciences, University of Copenhagen(3 数学科学系,哥本哈根大学)
Feynman-Kac Correctors in Diffusion: Annealing, Guidance, and Product of Experts
University of Toronto(多伦多大学);Vector Institute(向量研究所);McGill University(麦吉尔大学);Mila - Quebec AI Institute(魁北克AI研究所);Imperial College London(伦敦帝国学院);Google DeepMind(谷歌DeepMind);Duke University(杜克大学)