Learning a Multimodal Prior Distribution for Generative Adversarial Nets

Thomas Goerttler, Marius KloftLWDA 2019

Introduction

Generative Adversarial Networks (GANs) have revolutionized synthetic data generation, yet they remain notoriously difficult to train. A primary challenge is mode collapse, where the generator produces a limited variety of outputs, failing to capture the full diversity of the target distribution. This paper identifies a fundamental cause: the topological mismatch between continuous latent priors (e.g., Gaussian or Uniform) and the often discontinuous, multimodal nature of real-world data.

Reshaping the Latent Prior

To address this mismatch, the authors propose dynamically reshaping the prior distribution during training. Instead of a static input, the generator receives noise samples filtered or weighted by the discriminator's current assessment. This allows the latent space to develop "islands" or modes that correspond more naturally to the clusters found in real data.

Masking and Weighting Strategies

The researchers introduce two primary techniques to "learn" a better prior by leveraging the discriminator's feedback:

  1. Masking: The latent space is restricted to regions that yield high discriminator scores. By only sampling from the top $r$ fraction (the masking rate) of the prior, the generator focuses on the most promising areas.
  2. Weighting: A softer approach where samples are assigned weights based on their likelihood of fooling the discriminator. The generator then resamples from its batch according to these weights.
Visualizing the transformation of a uniform prior into weighted and masked distributions.

As shown in the figure above, these methods transform a standard uniform distribution (a, b) into more complex, multimodal shapes (c-f). This fragmentation allows the generator to map disconnected regions of the latent space to disconnected modes in the output space without the need for continuous "stretching."

Experimental Results

The proposed methods were evaluated across synthetic and real-world datasets, demonstrating significant improvements in stability and diversity:

  • 8-Gaussian Mixture: On this classic benchmark, the Weighted GAN captured all eight modes perfectly, significantly outperforming the standard GAN. The Earth Mover’s Distance (EMD)—a measure of distributional similarity—dropped from 0.3195 to 0.0891.
  • MNIST: While standard GANs often collapsed to a single digit (typically "1"), the masked and weighted variants maintained high diversity, generating a balanced distribution of digits 0 through 9.
  • CelebA: The approach demonstrated robustness even with weakened network architectures. While a standard GAN failed to produce recognizable faces under reduced layer depth, the modified priors still yielded high-quality results.

Conclusion

By leveraging the discriminator as a guide to reshape the latent prior, this method provides a principled way to handle multimodal data distributions. While it introduces some computational overhead due to the need for pre-sampling and scoring large batches, the gains in stability and generative "fairness" represent a significant step forward in making GANs more reliable for complex, real-world datasets.

Summary updated

BibTeX
@inproceedings{goerttler2019learning,
  author = {Thomas Goerttler and Marius Kloft},
  title = {{Learning a Multimodal Prior Distribution for Generative Adversarial Nets}},
  booktitle = {LWDA},
  year = {2019},
  url = {https://openreview.net/forum?id=ZoipkTnZyZ},
}
Figure