Emergence of Distortions in High-Dimensional Guided Diffusion Models

Enrico Ventura, Beatrice Achilli, Luca Ambrogioni, Carlo Lucibello

TL;DR

Classifier-free guidance (CFG) is the industry standard for controlling conditional diffusion models, but it suffers from a major drawback: it severely reduces sample diversity. By applying tools from statistical physics, this paper proves that these generative distortions are unavoidable in high dimensions when dealing with a large or continuous number of classes. To counteract this, the authors propose a novel guidance schedule incorporating a "negative-guidance window" that simultaneously enhances prompt alignment and restores sample diversity.

What Problem Does This Paper Address?

While unconditional diffusion models generate remarkably high-quality images, practical applications require targeted generation using text prompts or class labels. To make the output adhere strictly to these prompts, practitioners use Classifier-Free Guidance (CFG) to amplify the conditioning signal. However, increasing the guidance strength introduces a well-known pathology: the generated samples lose their diversity, often leading to visual over-saturation and repetitive layouts.

Recent studies suggested that this loss of diversity might simply be a low-dimensional artifact that disappears in high-dimensional spaces. This paper addresses this crucial open question: Do guidance-induced distortions truly vanish in high dimensions, or do they persist in realistic, complex data regimes?

Methods

The authors tackle this problem by analyzing analytically tractable synthetic data models through the lens of statistical mechanics. Their approach includes:

  • Gaussian Mixture & Continuous Class Models: They evaluate high-dimensional settings where exact score functions can be calculated, focusing on how distortions depend on data dimensionality ($d$) and the number of classes ($M$).
  • Random Energy Model (REM) Mapping: For discrete mixtures, they map the guided diffusion potential to a Random Energy Model to study its thermodynamic phases and identify the "speciation transition"—the exact time during backward diffusion when the model locks onto a specific class.
  • Dynamic Mean-Field Theory: They use mean-field approximations to track the SDE trajectories and derive exact mathematical estimators for distortion in the mean ($\delta_\mu$) and variance ($\delta_{\sigma^2}$).
  • Negative-Guidance Scheduling: Armed with the insight that positive guidance shrinks variance while negative guidance expands it, they introduce a time-dependent schedule ($w(t) = w_0 + \omega \cdot t$) that deliberately dips into negative guidance values during the generation process.

Datasets

To validate their theoretical assumptions and new guidance schedule, the authors utilized:

  • MS COCO Dataset: 30,000 images and their corresponding CLIP text captions were used to empirically verify the "Common Principal Components Assumption" (CPCA), proving that image and text caption covariance matrices share similar eigenbases in real-world latent spaces.
  • Stable Diffusion v1.5: Used to generate synthetic image datasets (50 prompts $\times$ 20 samples per setting) to evaluate the practical impact of different CFG schedules using CLIP and DINOv2 feature extractors.

Key Insights and Ideas

  • The Exponential Threshold: In high-dimensional spaces, distortions do not depend on dimensionality alone, but on class density. If the number of classes scales sub-exponentially with the dimension, distortions naturally vanish. However, if the number of classes scales exponentially ($M = e^{\beta d}$), distortions persist asymptotically.
  • Continuous Classes Always Distort: In the limit of infinite continuous classes (which mirrors real-world text-to-image prompting), generative distortions are completely unavoidable regardless of dimensionality due to the overlapping supports of the conditional distributions.
  • The Power of Negative Guidance: While positive guidance ($w > 0$) improves class alignment at the cost of variance shrinkage, negative guidance ($w < 0$) acts as a repulsive force that expands variance. Alternating between the two allows independent control over class separation and sample diversity.

Key Results

  • Theory Matches Simulation: Numerical simulations of high-dimensional Gaussian mixtures perfectly matched the predictions of the authors' dynamic mean-field theory, confirming the existence of the predicted phase transitions.
Figure 2: Comparison of the mean-field prediction (full lines) with numerical simulations of CFG (circles) for a mixture of an exponential number of Gaussians as data distribution. The plots show the behavior of distortion estimators δµ and δσ2, errors are standard deviations of the mean. Theory matches qualitatively and also quantitatively the numerics at increasing d.
  • Quantifying Stable Diffusion Distortions: Empirical tests on Stable Diffusion v1.5 confirmed that standard constant CFG causes a monotonic reduction in feature variance, participation ratio, and pairwise $L_2$ distance, visually manifesting as repetitive image structures.
Figure 3: (a) Measures of distortion from a guided Stable Diffusion (v1.5) model, in feature space, as a function of the guidance level w, averaged over 50 prompts × 20 samples, error bars are standard deviations of the mean. Blue circles refer to CLIP feature extractor, yellow ones to DINOv2. (b) Samples generated from the prompt a fantasy landscape with castles and dragons, vibrant colors, digital art. Rows refer to different random seeds, columns to guidance levels.
  • Breaking the Diversity Trade-Off: The proposed negative-guidance window schedule (specifically utilizing a 50–70% window width) successfully broke the standard trade-off, demonstrating a net gain in sample diversity while maintaining strong prompt alignment.

Limitations and Future Work

The primary limitation is that the exact analytical framework relies on simplified Gaussian data distributions and the Common Principal Components Assumption, which may not fully capture the highly non-Gaussian, intricate manifolds of real-world data.

For future work, the authors suggest extending this mean-field framework to more general, non-Gaussian target distributions. Additionally, they note that their empirical evaluation of the negative-guidance window was a proof-of-concept; a systematic study to optimize and fine-tune these negative guidance schedules across various model architectures remains an open direction.

Summary updated

BibTeX
@inproceedings{ventura2026emergence,
  author = {Enrico Ventura and Beatrice Achilli and Luca Ambrogioni and Carlo Lucibello},
  title = {{Emergence of Distortions in High-Dimensional Guided Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TxAk7QpMRk},
}
Figure