GANs Settle Scores!

Siddarth Asokan, Nishanth Shetty, Aadithya Srikanth, Chandra Sekhar SeelamantulaarXiv 2023 · DOI

Abstract

This paper establishes a theoretical bridge between Generative Adversarial Networks (GANs) and Diffusion Models by framing Integral Probability Metric (IPM) GAN optimization as a form of "smoothed score-matching." Leveraging this link, the authors introduce a closed-form discriminator guidance (DG*) that utilizes kernel-based estimates to accelerate sampling and enhance image quality without additional neural network training. Our approach, combined with a wavelet-based noise-estimation strategy (WANDA), demonstrates superior performance on high-resolution benchmarks like CelebA-HQ and FFHQ, providing a unified framework for two dominant generative paradigms.

Introduction

While Diffusion Models have become the gold standard for high-quality image generation, they are often hindered by computational inefficiency and a reliance on external guidance—such as classifiers or discriminators—to achieve peak performance. Previous attempts to integrate GAN discriminators into diffusion frameworks were largely empirical, lacking a rigorous mathematical foundation. Furthermore, training separate neural network discriminators for guidance introduces significant complexity and training instability.

This research addresses these challenges by providing a unified theoretical framework that explains the relationship between GANs and score-matching. By introducing a kernel-based, closed-form guidance method, the authors offer a more stable and efficient alternative to traditional neural-network-based approaches, effectively bridging the gap between adversarial and score-based generative modeling.

Methodology

The core contribution of this work is the proof, via variational calculus, that the optimal generator in an IPM-GAN satisfies a condition equivalent to the score-matching condition used in diffusion models, albeit "smoothed" by a kernel. This theoretical insight leads to several technical innovations:

  • DG* (Closed-form Discriminator Guidance): Instead of training a deep learning discriminator, the authors employ a kernel-based estimate using Polyharmonic Splines (PHS). This allows for the calculation of the gradient between current generated samples and a batch of real data in closed form.
  • The "Push-Pull" Framework: The data distribution creates an attractive "pull," while the kernel-based discriminator creates a repulsive "push." This repulsion prevents particles from stagnating, effectively accelerating the sampling process toward the target distribution.
  • WANDA (Wavelet-based Noise-estimation for DG*-guided Acceleration): This specialized sampling strategy utilizes Haar wavelets to estimate noise levels, applying guidance primarily during the early "exploratory" phase of generation before switching to standard diffusion for fine-tuning.
  • Second-Order Acceleration: The authors mathematically link the guidance term to the Polyak heavy-ball momentum method, providing a theoretical justification for the observed speed-up in convergence.

Experimental Evaluation

The proposed method was evaluated across a diverse range of benchmarks, including synthetic 2D shapes, MNIST, SVHN, Ukiyo-E, CIFAR-10, ImageNet-64, and LSUN-Churches. High-resolution performance was specifically tested on CelebA-HQ and FFHQ (256x256 faces).

High-quality face generation results on CelebA-HQ and FFHQ using DG* guidance.

Key results include:

  • Metric Improvements: On CelebA-HQ and FFHQ, the LDM+DG* method outperformed baseline Latent Diffusion Models. Specifically, on CelebA-HQ, CLIP-FID improved from 7.17 to 6.48.
  • Sampling Efficiency: The discriminator-guided Langevin sampler achieved realistic results in as few as 300 steps, compared to the 800+ steps often required by baseline models in pixel space.
  • Versatility: The DG* method is "plug-and-play," successfully enhancing various architectures (DDIM, LDM, NCSN) and solvers (DPM-Solver) without requiring retraining of the underlying diffusion model.

Discussion and Conclusion

The discovery that IPM-GANs act as score matchers unifies two popular generative paradigms and highlights the importance of "repulsion" in sampling. Unlike standard score-matching, which only pulls samples toward high-density regions, the kernel-based discriminator pushes samples away from their current locations, preventing vanishing gradients and accelerating convergence. Furthermore, the mathematical equivalence between discriminator guidance and momentum explains why these models reach high-quality results in fewer iterations.

Despite these successes, limitations remain. Calculating kernel gradients in high-dimensional pixel space is computationally expensive, a challenge currently mitigated by using Latent Diffusion (LDM). Additionally, while the "push-pull" logic excels at capturing structure, complex multi-modal color distributions (as seen in ImageNet-64) may require further refinement. Future work will focus on bridging the mathematical gap between Wasserstein-2 metrics used in convergence analysis and the KL-divergence typically used in diffusion models.

Summary updated

BibTeX
@misc{asokan2023gans,
  author = {Siddarth Asokan and Nishanth Shetty and Aadithya Srikanth and Chandra Sekhar Seelamantula},
  title = {{GANs Settle Scores!}},
  year = {2023},
  eprint = {2306.01654},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.01654},
}
Figure