Abstract
Classifier-Free Guidance (CFG) is a cornerstone of modern generative AI, yet its theoretical foundations have long suggested a fundamental flaw: in low-dimensional models, CFG significantly distorts the target distribution, leading to "mean overshoot" and "variance shrinkage." This paper resolves this paradox by demonstrating a blessing of dimensionality. We prove that these distortions vanish at a rate of $O(1/\sqrt{d})$ as the data dimension $d$ increases. Leveraging this high-dimensional perspective, we introduce Power-law CFG, a non-linear generalization that preserves sample diversity and improves robustness compared to standard linear guidance.
The Paradox of CFG
In the landscape of diffusion and flow-based models, CFG is the primary mechanism for aligning generated content with conditional prompts. By extrapolating between a conditional score $S_t(x, c)$ and an unconditional score $S_t(x)$, CFG allows users to trade off diversity for fidelity. However, classical analysis in low dimensions suggests that CFG does not actually sample from the conditional distribution $p(x|c)$. Instead, it samples from a "sharpened" version that is shifted toward the class boundaries.
This creates a theoretical gap: if CFG is mathematically "broken," why does it produce such high-quality results for high-dimensional images?
The Blessing of Dimensionality
Our research bridges this gap by analyzing CFG in high-dimensional Gaussian Mixture Models (GMMs). We identify two distinct dynamical regimes during the generation process:
- Regime I (Symmetry Breaking): Early in the sampling process (before a critical "speciation time" $t_s$), the model decides which class to generate. Here, CFG acts as a catalyst, accelerating the transition into the correct class manifold.
- Regime II (Refinement): After $t_s$, the class is fixed, and the model fills in fine-grained details.
Crucially, we prove that in high dimensions, the difference between conditional and unconditional scores naturally decays in Regime II. This means CFG is "self-extinguishing"—it effectively turns itself off once the class selection is complete. As shown in the figure below, the significant distribution shifts seen in 2D toy models almost entirely disappear when the dimensionality reaches levels typical of real-world image data ($d=200$ or higher).
Power-law CFG: A Robust Generalization
Building on our high-dimensional theory, we propose a generalized non-linear guidance form called Power-law CFG. Standard CFG is linear, which can lead to "oversaturation" or mode collapse if the guidance scale $\omega$ is set too high. Power-law CFG introduces a non-linearity parameter $\alpha$:
$$S_t^{PL} = S_t(x, c) + \omega (S_t(x, c) - S_t(x)) \|S_t(x, c) - S_t(x)\|^\alpha$$
By setting $\alpha > 0$, we can dampen the guidance "push" during the critical early stages of generation. This prevents the model from over-committing to a single mode, thereby preserving the natural diversity of the dataset while maintaining high alignment with the prompt.
Experimental Results
We validated our findings across architectures including DiT, EDM2, and MMDiT on benchmarks like ImageNet-1K and CC12M. Power-law CFG consistently outperformed standard CFG in both fidelity (FID) and diversity (Recall).
On the EDM2-S model, Power-law CFG improved Recall from 0.582 to 0.631 compared to the standard baseline. Furthermore, the method proved significantly more robust; while standard CFG quality often degrades at high $\omega$ scales, Power-law CFG remains stable, allowing for stronger prompt adherence without destroying image quality.
Conclusion
By shifting the theoretical focus from low-dimensional toy models to high-dimensional manifolds, we show that CFG is far more mathematically sound than previously thought. The introduction of Power-law CFG provides a practical, "plug-and-play" improvement for state-of-the-art generative pipelines, offering a superior Pareto frontier for the diversity-fidelity trade-off.
Summary updated