Classifier-Free Guidance (CFG) has become the industry standard for steering diffusion models like DALL-E 3 and Stable Diffusion to follow complex prompts. However, researchers from Ecole Polytechnique and KTH have identified a significant theoretical gap in standard CFG that leads to a "diversity tax"—a phenomenon where increasing guidance to improve prompt alignment causes mode collapse and "over-baked" images.
The Theoretical Gap: A Missing Repulsive Force
The authors demonstrate that the standard linear combination used in CFG does not correspond to a mathematically valid diffusion process. Specifically, the score function used for sampling lacks a crucial term: the gradient of a Rényi divergence.
This missing term acts as a "repulsive force" that prevents samples from collapsing into a single, average interpretation of a prompt. Without it, the model gravitates toward low-diversity, repetitive outputs as the guidance scale $w$ increases. The researchers show that CFG is not a true Denoising Diffusion Model (DDM) because a linear combination of two valid denoisers does not necessarily result in a third valid denoiser.
The CFGIG Algorithm: Iterative Refinement
To address this without requiring model retraining, the researchers propose Classifier-Free Gibbs-Like Guidance (CFGIG). This algorithm approximates the ideal diverse distribution through an iterative refinement process.
The core idea is to perform a "noise-then-denoise" loop at a low noise regime where the missing Rényi term is negligible. The process works as follows:
- Generate an initial diverse sample $X_0^{(0)}$ with low or no guidance.
- Add a small, fixed amount of noise back into the image.
- Denoise the image using standard CFG.
- Repeat this refinement for $R$ iterations.
By repeating this step, the algorithm can use standard CFG denoisers to approximate the "ideal" diverse distribution that the theoretical model requires.
Key Results and Performance
CFGIG consistently outperformed standard CFG and other recent variants (like CFG++ and Limited Interval CFG) across nearly all metrics:
- Perceptual Quality: On ImageNet-512, CFGIG achieved significantly better FD-DINOv2 scores than standard CFG (e.g., 42.87 vs 56.82 for the EDM2-XXL model).
- Diversity: CFGIG showed much higher Recall and Coverage, proving it successfully avoids the mode collapse typical of high-guidance CFG.
- Audio Generation: In text-to-audio tasks using the AudioCaps dataset, it achieved the best balance between FAD (Fréchet Audio Distance) and Inception Score, indicating clearer and more prompt-aligned audio.
Conclusion
CFGIG restores the mathematical integrity of guided diffusion by recovering the diversity lost in standard CFG. By viewing high-quality generation as an iterative refinement of a diverse "rough draft," this method achieves state-of-the-art results without the need for expensive retraining. While the method introduces new hyperparameters like the noise level $\sigma_*$ and the number of repetitions $R$, it offers a robust path forward for high-fidelity, diverse generative modeling.
Summary updated