Emergence of Distortions in High-Dimensional Guided Diffusion Models
Enrico Ventura, Beatrice Achilli, Luca Ambrogioni, Carlo Lucibello
TL;DR
The paper investigates distortions introduced by classifier-free guidance (CFG) in high-dimensional diffusion models, formalizing distortion as the mismatch between CFG-induced and true conditional distributions. It develops a theoretical framework combining exact Gaussian targets, dynamical mean-field theory, and random energy model (REM) analysis to predict when CFG distorts the target distribution, showing distortions persist when the number of classes grows exponentially with dimension and vanish in the sub-exponential regime. Vanilla CFG is shown to expand the conditional mean and shrink the variance, reducing sample diversity, and a negative-guidance window scheduling is proposed to recover diversity while preserving class separability. The work integrates real-data experiments with Gaussian-mixture analyses and provides phase-diagram guidance for CFG scheduling, offering a principled path to mitigate diversity loss in high-dimensional conditional generation.
Abstract
Classifier-free guidance (CFG) is the de facto standard for conditional sampling in diffusion models, yet it often leads to a loss of diversity in generated samples. We formalize this phenomenon as generative distortion, defined as the mismatch between the CFG-induced sampling distribution and the true conditional distribution. Considering Gaussian mixtures and their exact scores, and leveraging tools from statistical physics, we characterize the onset of distortion in a high-dimensional regime as a function of the number of classes. Our analysis reveals that distortions emerge through a phase transition in the effective potential governing the guided dynamics. In particular, our dynamical mean-field analysis shows that distortion persists when the number of modes grows exponentially with dimension, but vanishes in the sub-exponential regime. Consistent with prior finite-dimensional results, we further demonstrate that vanilla CFG shifts the mean and shrinks the variance of the conditional distribution. We show that standard CFG schedules are fundamentally incapable of preventing variance shrinkage. Finally, we propose a theoretically motivated guidance schedule featuring a negative-guidance window, which mitigates loss of diversity while preserving class separability.
