TLDR: This paper introduces two main contributions to enhance classifier-guided diffusion models: a differentiable Smooth Expected Calibration Error (Smooth ECE) loss for better classifier calibration with minimal fine-tuning, and a suite of enhanced sampling guidance methods. These sampling methods, including entropy-regularized, tilted, and f-divergence-regularized (Reverse KL, Forward KL, Jensen-Shannon), operate on off-the-shelf classifiers without requiring retraining. The Jensen-Shannon divergence guidance achieved the best Fréchet Inception Distance (FID) of 2.13 on ImageNet, demonstrating superior balance between image quality, precision, and diversity, offering a practical solution for improving conditional generation.
Diffusion models have become incredibly powerful tools for generating high-quality and diverse images. These models work by gradually reversing a noising process, essentially learning to turn random noise into a coherent image. When combined with classifiers, they can generate images that fit specific conditions, like creating a picture of a cat or a car based on a label.
However, a common challenge with these classifier-guided diffusion models is that the classifiers can become overly confident too early in the image generation process. This premature confidence can cause the guidance signal to fade, leading to less effective generation, especially in the initial denoising steps.
A new research paper, “Enhancing Diffusion Model Guidance through Calibration and Regularization”, introduces two key advancements to tackle this problem. The first contribution focuses on improving the classifier itself, while the second offers smarter ways to guide the image generation process without needing to retrain the entire model.
Calibrating Classifiers for Better Guidance
The first innovation is a new way to fine-tune classifiers using a differentiable Smooth Expected Calibration Error (Smooth ECE) loss. In simple terms, calibration means how well a model’s predicted probabilities match the actual likelihood of an event. If a classifier says it’s 90% sure an image is a dog, it should be correct about 90% of the time. Poorly calibrated classifiers can be overconfident, which is exactly what causes issues in diffusion models.
By introducing this Smooth ECE loss, the researchers found that they could significantly improve classifier calibration with only minimal fine-tuning. This led to a noticeable improvement in image quality, specifically about a 3% reduction in Fréchet Inception Distance (FID) scores, a common metric for evaluating generative models. This method also helped generate images that were more consistent with their target classes.
Smarter Sampling Guidance Methods
The second set of contributions involves enhanced sampling guidance methods that can be applied directly to existing, pre-trained classifiers and diffusion models, avoiding the need for costly retraining. These methods aim to maintain diversity and prevent the guidance signal from vanishing too soon.
One approach is **entropy-regularized sampling**. Entropy, in this context, relates to the uncertainty or diversity of predictions. By adding an entropy regularization term, the model is encouraged to maintain a certain level of uncertainty during early sampling steps, preventing it from becoming overconfident too quickly. This promotes diversity in the generated images while still keeping them relevant to the target class.
Another powerful set of methods falls under **divergence-regularized sampling**. This involves using different mathematical concepts called “f-divergences” to guide the sampling process. The paper explores three specific types:
- **Reverse KL Divergence:** This method is “mode-covering,” meaning it ensures the generated images explore all viable variations within a target class, preventing the model from getting stuck on just a few examples. It helps maintain diversity.
- **Forward KL Divergence:** In contrast, this is “mode-seeking,” prioritizing precision and generating images that are very close to the target class, potentially at the cost of some diversity.
- **Jensen-Shannon Divergence:** This method strikes a balance between mode-seeking and mode-covering. It offers a symmetric approach that penalizes both under-coverage and over-extension, proving to be empirically optimal for balancing fidelity to the target class with maintaining sample diversity.
Finally, **tilted sampling** leverages information from multiple samples generated in a batch. By adjusting a parameter, this method can control whether the process prioritizes high-quality, common samples or encourages exploration of less common, outlier samples, offering a direct trade-off between quality and diversity.
Also Read:
- Understanding Generative Diffusion Models Through Partial Differential Equations
- Condition Preference Optimization: A New Approach for Precise Image Generation Control
Impressive Results Without Retraining
The experimental results on ImageNet demonstrate the effectiveness of these new methods. All three sampling strategies outperformed the baseline. Notably, the divergence-guided sampling, particularly with Jensen-Shannon divergence, achieved the lowest FID score of 2.13 with a ResNet-101 classifier. This is a significant improvement, establishing a new state-of-the-art result for classifier-guided diffusion models without requiring any retraining of the underlying diffusion or classifier models.
The consistent performance of Jensen-Shannon divergence highlights its ability to balance precision and recall, meaning it generates images that are both accurate to the target class and diverse. This work offers a practical and efficient solution for enhancing conditional image generation quality, making it a valuable “plug-and-play” improvement for systems where full model retraining is computationally prohibitive.


