Refining Generative Process with Discriminator Guidance in Score-based Diffusion Models

Dongjun Kim, Yeongmin Kim, Se Jung Kwon, Wanmo Kang, Il-chul Moon

Diffusion models have revolutionized generative AI, setting new standards for image synthesis. However, their core component—the score model, which is trained to estimate the gradient of the data distribution—often suffers from inaccuracies or "blind spots" in high-dimensional spaces.

Traditionally, improving a pre-trained diffusion model requires computationally grueling retraining on more data, which risks "memorization" (where the model simply regurgitates training images). Alternatively, Classifier Guidance (CG) can push the model toward specific classes, but it frequently triggers "mode collapse," sacrificing image diversity for quality.

To address these limitations, researchers have introduced Discriminator Guidance (DG), a plug-and-play method designed to refine pre-trained diffusion models without the massive cost of retraining the entire diffusion backbone or the instability associated with Generative Adversarial Networks (GANs).

The Discriminator Guidance Methodology

The core premise of Discriminator Guidance is that the gap between a pre-trained model's estimated score and the true data score can be accurately estimated by a time-dependent discriminator.

Unlike GANs, which force a generator and discriminator into a volatile, simultaneous "cat-and-mouse" training loop, DG decouples this process:

  1. Post-hoc Training: The discriminator is trained after the score model is already fixed. This makes the training process exceptionally stable and fast to converge.
  2. The Correction Term: A discriminator $d_\phi(x_t, t)$ is trained to distinguish between real images and images generated by the pre-trained model at various noise levels ($t$).
  3. Adjusted Score: During the sampling phase, the original score ($s_\theta$) is augmented with a "correction term" ($c_\phi$) derived from the discriminator's gradient. This term effectively nudges the denoising path toward more realistic data regions.
Comparison of the denoising processes with and without Discriminator Guidance.

This approach can also be seamlessly combined with Classifier Guidance. In this synergistic setup, the classifier provides class-specific direction, while the discriminator ensures overall realism and intra-class diversity.

Key Insights and Performance

The most elegant mathematical insight of this paper is that the gradient of an optimal discriminator is equivalent to the difference between the model's score and the true data score. The discriminator acts not just as a judge, but as a guide providing missing distributional information.

By acting as a "sweet spot" controller, DG allows researchers to tune the guidance scale to maximize both quality (FID) and diversity (Recall), overcoming the typical trade-offs seen in Classifier Guidance.

Evaluated across standard benchmarks like CIFAR-10, CelebA/FFHQ, and ImageNet, the results are striking:

  • State-of-the-Art on ImageNet: On the highly competitive ImageNet 256x256 dataset, DG achieved an FID of 1.83, significantly outperforming the previous state-of-the-art (ADM-G at 4.59). This result is remarkably close to the validation data's own statistics (FID 1.68).
  • Exceptional Efficiency: Training the discriminator is incredibly cheap. For CIFAR-10, while the base score model took 480 GPU hours to train, the discriminator required only 10 minutes.
  • Visual Realism: Qualitatively, DG-guided samples exhibit better global structure and fewer artifacts compared to vanilla diffusion or classifier-guided models.

Limitations and Future Directions

While highly effective, Discriminator Guidance does introduce some computational overhead. Like all guidance methods, DG requires an extra neural network pass (the discriminator) at each denoising step, which increases overall sampling time. Additionally, the authors note that when the number of function evaluations (NFE) is very low (e.g., fewer than 25 steps), discretization errors begin to dominate, diminishing the benefits of the DG correction term.

Future work may explore applying DG to other domains, such as Image-to-Image translation, and investigating more stable ways to simultaneously train score and discriminator networks.

Summary updated

BibTeX
@inproceedings{kim2023refining,
  author = {Dongjun Kim and Yeongmin Kim and Se Jung Kwon and Wanmo Kang and Il-chul Moon},
  title = {{Refining Generative Process with Discriminator Guidance in Score-based Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=K1OvMEYEI4},
}
Figure