Unifying GANs and Score-Based Diffusion as Generative Particle Models

Jean-Yves Franceschi, Mike Gartrell, Ludovic Dos Santos, Thibaut Issenhuth, Emmanuel de Bezenac, Mickael Chen, Alain Rakotomamonjy

In the deep generative modeling landscape, Generative Adversarial Networks (GANs) and score-based diffusion models are typically viewed as fundamentally opposed paradigms. Diffusion models displace particle distributions (like pixels) using differential equations; they are generator-free, boast stable training, but suffer from slow sampling. GANs, on the other hand, rely on a pushforward generator network trained adversarially; they offer lightning-fast sampling but are notoriously unstable and prone to mode collapse.

This theoretical divide limits cross-pollination between the two highly successful approaches. This paper tackles this gap by introducing a unified mathematical framework that bridges GANs and score-based diffusion models, treating them both as generative particle models. By showing that a generator network is simply an optional mathematical smoothing operator on a particle flow, the authors successfully mix and match components to create entirely new types of generative architectures.

A Unified Framework: Generative Particle Models

The authors frame both paradigms under the umbrella of "Generative Particle Models" (PMs).

  • Particle Models (PMs): Models like diffusion and Wasserstein gradient flows move independent particles (e.g., images) along a gradient vector field toward the data distribution. There is no generator; particles move freely in the data space.
  • Interacting Particle Models (Int-PMs): The authors show mathematically that adding a generator network transforms a PM into an Int-PM. The generator acts as a spatial preconditioning operator (via its Neural Tangent Kernel), causing particles to interact and smooth the gradient field during training. GANs fit perfectly into this category.
Theoretical framework classifying generative models based on the presence of a generator and the type of flow used.

Because the generator is revealed to be just an optional addition to a particle flow, the authors decouple the generator from the flow to create two novel hybrid models:

  1. Score GANs: A generator network is trained using the gradient flow of a score-based diffusion model instead of a discriminator. It uses score matching to update the generator, removing adversarial training entirely.
  2. Discriminator Flows: The generator is removed from a GAN. Instead, a time-dependent discriminator is trained, and samples are generated by directly pushing noise particles through a differential equation guided by the discriminator's gradients.

Key Insights

This unification yields several surprising insights into the behavior of generative models:

  • Mode collapse is a generator problem: Surprisingly, the Score GAN (which has no discriminator and uses stable score-matching) still exhibits mode collapse. This suggests that mode collapse in GANs is fundamentally tied to the use of a low-dimensional generator bottleneck, rather than just the min-max adversarial training dynamics.
  • Discriminators learn faster paths than diffusion: Diffusion models follow a fixed, predefined Gaussian noise schedule. In contrast, Discriminator Flows learn their own path to the data distribution. As a result, particles form recognizable images much earlier in the generation process compared to standard diffusion models.

Key Results

The authors successfully proved the viability of their framework on standard datasets, including MNIST (32x32) and CelebA (64x64). Both Score GANs and Discriminator Flows can generate coherent images, confirming that generators and flows can indeed be decoupled.

Qualitative comparison of generated samples on MNIST and CelebA across baseline and proposed hybrid models.

Quantitative Performance: On MNIST, Discriminator Flows achieved a Fréchet Inception Distance (FID) of 4, which is highly competitive with the EDM diffusion baseline (FID 3) and standard GAN (FID 3). The Score GAN achieved an FID of 15. On the more complex CelebA dataset, the hybrid models lagged behind the highly optimized baselines (Discriminator Flow: 41, Score GAN: 35, vs. EDM: 10, GAN: 19).

Qualitative Efficiency: Discriminator Flows demonstrated the ability to generate well-formed images in fewer steps than standard diffusion models, hinting at potential future speedups for generator-free sampling.

Limitations and Future Work

While the proposed hybrid models serve as strong proofs of concept, they currently lack the years of architectural tuning, regularization tricks, and hyperparameter optimization that allow standard GANs and diffusion models to achieve state-of-the-art FID scores. Furthermore, Discriminator Flows are computationally expensive to train because they require simulating the full differential equation at every training step, while Score GANs require pretraining a score network.

Future directions include exploring second-order differential equations, improving the time discretization for Discriminator Flows to accelerate them, and potentially utilizing Score GANs as a distillation method for fast diffusion sampling.

Summary updated

BibTeX
@inproceedings{franceschi2023unifying,
  author = {Jean-Yves Franceschi and Mike Gartrell and Ludovic Dos Santos and Thibaut Issenhuth and Emmanuel de Bezenac and Mickael Chen and Alain Rakotomamonjy},
  title = {{Unifying GANs and Score-Based Diffusion as Generative Particle Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=HMhEFKDQ6J},
}
Figure