Understanding Mode Collapse in Diffusion Models under Classifier-Free Guidance

Daniel Pfrommer, Chenyang Yuan, Frank Permenter, Ali JadbabaiearXiv 2026

TL;DR

Classifier-Free Guidance (CFG) is the secret sauce that makes modern image generators produce crisp, prompt-adherent pictures, yet cranking it up too high famously destroys diversity ("mode collapse"). By flipping a standard mathematical assumption about how diffusion models represent data, the authors derive the first exact, closed-form equations for nonlinear guided flows. Their math reveals that CFG simultaneously stretches class-specific features outward while pulling samples inward toward a single "prototypical" image—though, surprisingly, this collapse hits a mathematical floor and never becomes total.

What Problem Does This Paper Address?

Diffusion models generate data by learning a velocity field (a flow) that smoothly transforms pure random noise into structured images. To make the model listen to a prompt, practitioners use Classifier-Free Guidance (CFG). At inference time, CFG linearly combines the flow of an unconditional model (generating anything) and a conditional model (generating a specific prompt), extrapolating in the direction of the prompt using a guidance scale $\gamma > 1$.

While CFG is practically indispensable, it breaks the underlying transport equations that diffusion theory relies on. Previous attempts to solve what CFG actually does to the output probability distribution had to assume that all data distributions were simple single Gaussians—resulting in purely linear flows that fail to capture multi-modal real-world prompts (e.g., a "red or pink flower" or a "horse facing left or right"). Furthermore, classic toy models assumed the unconditional model is a rich mixture of all classes while the conditional model isolates one simple mode. Anyone who has actually sampled unconditionally from Stable Diffusion knows the opposite is true: unconditional samples are mushy and low-fidelity, meaning the unconditional model is actually less expressive than the conditional one.

Figure 2: Empirical evidence suggests that the conditional (γ = 1) generation exhibits more distinctly class-specific samples of higher complexity relative to unconditional generation (γ = 0). We visualize t-SNE embeddings of DINO-V2 features of ImageNet samples using conditional vs. unconditional diffusion models for 10 different classes. Conditional samples are generated using class conditioning whereas unconditional samples are generated using rejection sampling with a ResNet-based classifier. See Figure 12 for more comparisons with different classes.

Methods

To capture this mismatch in expressiveness, the authors invert the classic toy setup:

  • Conditional distribution ($\gamma = 1$): Modeled as a multi-modal Gaussian mixture whose component means sit on a shared-radius ellipsoid ("common-radius Gaussian mixture"). This makes the underlying conditional flow genuinely nonlinear.
  • Unconditional distribution ($\gamma = 0$): Modeled as a single, coarse Gaussian sitting at the center of that ellipsoid.
Figure 1: Top: A standard model for classifier-free guidance [Ho and Salimans, 2022], where the conditional distribution is a single component of the full unconditional mixture distribution. Bottom: Our model, where each conditional distribution is a Gaussian mixture (pictured here with three components per condition) and the unconditional is a single Gaussian approximating the marginalized mixture. Our model admits an analytical closed-form solution, capturing the feature-magnification and modality collapse effects outlined in Theorem 3.4.

Because the flows of a common-radius mixture have a neat mathematical symmetry—they are closed under scaling—multiplying the flow by $\gamma$ looks just like a scaled-up mixture, except it assumes you started from scaled-up initial noise $\mathcal{N}(0, \gamma\Sigma)$. Since real samplers always start from standard unscaled noise $\mathcal{N}(0, \Sigma)$, the authors solve the continuity equation with this boundary mismatch to find the exact reweighting factor $W_{\gamma, t}(x)$ applied to the final distribution.

Datasets

  • ImageNet: Used to train custom class-conditional Diffusion Transformer (DiT) models (in both SD-VAE and FLUX.2-VAE latent spaces) and to evaluate ResNet-classified unconditional generations.
  • Custom Text Prompts & Synthetic Mixtures: 1D/2D synthetic Gaussian mixtures for exact verification, alongside curated text prompts (e.g., "golden retriever", "a fox running through the snow") evaluated on pretrained Stable Diffusion 1.5 and FLUX-Klein-9B models. No new dataset benchmarks are introduced.

Key Insights and Ideas

  • CFG is a Tug-of-War: Increasing guidance $\gamma > 1$ triggers two competing effects: (1) Component-Specific Magnification, which pushes cluster means outward from the unconditional center by a factor of $\gamma$, exaggerating prompt features; and (2) Inward Reweighting, which suppresses the outer tails and skews every cluster back toward a single focal point.
  • The "Zero-Noise" Attractor: What is that focal point? It is $y_{\gamma,0}(0)$—the exact deterministic sample you would get if you initialized the guided ODE with zero initial noise ($x_1 = 0$). High guidance actively concentrates probability mass around this specific "prototypical" trajectory.
Figure 3: Guided flow map trajectories for a group of initial points while varying classifier-free guidance scales, derived from our analytical model in Section 3. Increasing guidance scale concentrates the guided distribution (shown as shaded density) towards the zero-noise sample yγ,0(0).
  • Mode Collapse is Bounded: Naively, you might expect $\gamma \to \infty$ to collapse all samples into a single point. Using local sensitivity analysis, the authors prove that the concentration factor has a $\gamma$-independent lower bound on its effective variance ($\hat{\sigma} \ge 1$). Diversity shrinks, and distributions become skewed Gaussians, but distinct modes aren't completely annihilated.
  • Better Unconditional Models Might Hurt CFG: Because CFG's magic relies on the unconditional model acting as a coarse, blurry baseline, making unconditional models sharper and more expressive could paradoxically reduce the effectiveness of classifier-free guidance.

Key Results

  • Exact Skew & Shift in Latent Space: Evaluating SD 1.5, FLUX-Klein-9B, and ImageNet DiTs across $\gamma \in [0, 12]$ (using K-means in latent space with $K \in \{1, \dots, 16\}$), projecting clusters along the unconditional-to-cluster axis shows clear outward shifts as $\gamma$ rises, while random orthogonal directions show zero net shift. Within clusters, distributions become measurably left-skewed (inward-tilted) at high $\gamma$, matching the 1D closed-form curves.
  • Predicting Which Mode Wins: For prompts that split ~50/50 between two modes at $\gamma = 1$ (like a side-view car facing left vs. right, scored across 512 seeds by a vision-language model), increasing $\gamma$ to 12 steadily drives the population toward whichever orientation the zero-noise sample exhibits (often shifting to ~75–90%), while still leaving a surviving minority in the opposite mode. (To avoid out-of-distribution artifacts when visualizing $x_1=0$ directly, the authors zero out the lowest 75% of 2D DCT spatial frequencies in $x_1 \sim \mathcal{N}(0, I)$).

Limitations and Future Work

The detailed breakdown of mathematical limitations is deferred to the paper's appendix (Section B, not included in the main body), though the text notes two clear constraints: the analytical tractability relies on the idealized assumption that conditional modes share an identical covariance $\Sigma$ and sit at an equal Mahalanobis radius $R$ from the unconditional mean, and the analysis is restricted to deterministic ODE (noiseless DDIM/Euler) sampling rather than stochastic SDE samplers. Looking ahead, the authors suggest that understanding how nonlinear flows compose could inspire new inference schemes offering much finer, independent control over feature magnification versus mode concentration.

Summary updated

Abstract

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.
BibTeX
@misc{pfrommer2026understanding,
  author = {Daniel Pfrommer and Chenyang Yuan and Frank Permenter and Ali Jadbabaie},
  title = {{Understanding Mode Collapse in Diffusion Models under Classifier-Free Guidance}},
  year = {2026},
  eprint = {2611.33719},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33719},
}
Figure