Papers

解析 Diffusion 模型 Classifier-Free Guidance 下的模式坍缩

Understanding Mode Collapse in Diffusion Models under Classifier-Free Guidance

Why we picked it

搞生成模型的人应该看看这篇,CFG 用了这么久但理论上一直说不清。论文给出了闭式解析解,解释了为什么高 guidance 会让生成结果扎堆、多样性下降,还用真实的大规模图像模型验证了结论,调 guidance 参数时心里更有数。

一篇新论文指出,classifier-free guidance(CFG)在扩散与流模型中的作用机制此前缺乏理论解释,其根源在于条件分布与无条件分布在表征能力上的不匹配:条件分布复杂度和保真度更高。

Body

作者构建了一个解析模型:条件分布是均值位于椭球上的高斯混合分布,无条件分布是近似该混合的单一高斯。由于该混合在缩放下封闭,团队推导出在所有噪声尺度和所有 guidance 等级下引导分布的闭式解析解。

解析解表明 CFG 会带来两种效应:一是沿均值轴方向的整体偏移,二是朝某个对应零噪声起始条件样本的奇异点的持续偏斜与聚集,这正是模式坍缩的表现。作者在预训练的大规模图像扩散模型上验证了这些理论预测。

Original · arXiv cs.LG

Understanding Mode Collapse in Diffusion Models under Classifier-Free Guidance

The use of classifier-free guidance in diffusion and flow models has proven critical to their empirical success, as it allows for the controllable generation of lower-temperature and higher-fidelity samples. Despite its widespread use, classifier-free guidance remains both empirically and theoretically poorly understood, owing to the difficulty of solving the associated transport equations for arbitrary normalizing flows. In this paper, we observe that the effects of classifier-free guidance arise from a mismatch between the representation capabilities of the conditional and unconditional distributions, wherein the conditional distribution exhibits higher complexity and fidelity. We propose an analytical model to capture this observation: the conditional distribution is a Gaussian mixture whose means lie on an ellipsoid, and the unconditional distribution is a single Gaussian approximating the mixture. The flows arising from this mixture are closed under scaling, enabling us to derive analytic closed-form solutions for the guided distribution at all noise scales and guidance levels. Our analytic solution shows that classifier-free guidance induces (a) a shift along a mean-axis direction and (b) a persistent skew toward, and concentration around, a singular point corresponding to the conditional sample starting from zero noise. We validate our theoretical predictions on pretrained, large-scale image diffusion models.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Key entities and technical topics under continuous tracking include Classifier-Free Guidance, diffusion.

Source attribution: curated from arXiv cs.LG (@Daniel Pfrommer, Chenyang Yuan, Frank Permenter, Ali Jadbabaie).