Classifier-Free Guidance
A conditional generation technique used in diffusion models that strengthens conditional control without requiring a separate classifier network. During training, conditioning information is randomly dropped; during inference, the model blends conditional and unconditional predictions to steer generation toward the desired condition.
Core Facts
Timeline (last 90 days)
The singular point corresponds to the conditional sample starting from zero noise, and as guidance strength increases the distribution mass concentrates exponentially toward this point, suppressing other modes and directly causing mode collapse.
Mode collapse manifests as a sharp drop in the diversity of generated samples as guidance strength increases, gradually converging to a few or even a single mode.
The flow induced by this Gaussian mixture distribution is closed under scaling transformations, enabling the authors to derive an analytical closed-form solution for the guided distribution at all noise scales and guidance strengths, which is the first exact analytical expression for CFG.
The analytical solution shows that the effect of CFG can be decomposed into two parts: a shift along the direction of the mean axis and a persistent bias toward and concentration at a singular point.
Theoretical understanding of CFG lags behind practice, and the core difficulty is that solving the transport equation for arbitrary normalizing flows is extremely difficult, making the effects of CFG hard to characterize in analytical form.
Classifier-Free Guidance (CFG) is one of the most mainstream guidance techniques in diffusion models and flow matching models, discarding conditions with a certain probability during training and, during sampling, subtracting the unconditional prediction from the conditional one via a formula and amplifying the guidance strength.
Classifier-free guidance (CFG) originally came from diffusion generative models; the approach is to compute both conditional and unconditional predictions during sampling, then use a weight w to amplify the difference between them, with the formula ε = ε_uncond + w·(ε_cond − ε_uncond).
Guided diffusion applies gradients at each step of the reverse denoising process; common guidance approaches include classifier guidance and classifier-free guidance.
All Facts (8)
Classifier-Free Guidance (CFG) is one of the most mainstream guidance techniques in diffusion models and flow matching models, discarding conditions with a certain probability during training and, during sampling, subtracting the unconditional prediction from the conditional one via a formula and amplifying the guidance strength.
75%UnverifiedClassifier-free guidance (CFG) originally came from diffusion generative models; the approach is to compute both conditional and unconditional predictions during sampling, then use a weight w to amplify the difference between them, with the formula ε = ε_uncond + w·(ε_cond − ε_uncond).
70%UnverifiedMode collapse manifests as a sharp drop in the diversity of generated samples as guidance strength increases, gradually converging to a few or even a single mode.
50%UnverifiedThe flow induced by this Gaussian mixture distribution is closed under scaling transformations, enabling the authors to derive an analytical closed-form solution for the guided distribution at all noise scales and guidance strengths, which is the first exact analytical expression for CFG.
50%UnverifiedThe analytical solution shows that the effect of CFG can be decomposed into two parts: a shift along the direction of the mean axis and a persistent bias toward and concentration at a singular point.
50%UnverifiedThe singular point corresponds to the conditional sample starting from zero noise, and as guidance strength increases the distribution mass concentrates exponentially toward this point, suppressing other modes and directly causing mode collapse.
50%UnverifiedTheoretical understanding of CFG lags behind practice, and the core difficulty is that solving the transport equation for arbitrary normalizing flows is extremely difficult, making the effects of CFG hard to characterize in analytical form.
50%UnverifiedGuided diffusion applies gradients at each step of the reverse denoising process; common guidance approaches include classifier guidance and classifier-free guidance.
50%