On GANs and GMMs

Eitan Richardson, Yair Weiss

Generative Adversarial Networks (GANs) have revolutionized generative modeling by producing stunningly realistic, high-resolution images. However, despite their visual prowess, GANs harbor two significant flaws. First, they frequently suffer from "mode collapse," a phenomenon where the model learns to produce a few high-quality types of images while completely ignoring other variations present in the training set. Second, evaluating GANs is notoriously difficult; common metrics like the Inception Score (IS) or Fréchet Inception Distance (FID) rely on deep networks pre-trained on ImageNet, which can be problematic when evaluating models trained on distinct domains like faces or handwritten digits.

In this paper, the authors revisit a classic statistical model—the Gaussian Mixture Model (GMM)—to see how it compares to deep learning giants when scaled to full-sized images. They demonstrate that a scalable GMM can capture the data distribution more faithfully than GANs while enabling efficient inference and outlier detection.

Overcoming Evaluation and Scaling Hurdles

To fairly compare these models, the authors introduce two key methodological contributions: a new evaluation metric and a scalable training approach for GMMs.

The NDB Metric (Number of Statistically-Different Bins)

To measure mode collapse without relying on a pre-trained neural network, the authors propose the NDB metric. The process involves clustering the training data into $K$ "bins" (Voronoi cells) using K-means. Generated samples are then sorted into these same bins. By applying a simple statistical z-test, researchers can check if the proportion of generated samples in each bin matches the training data. If a bin is significantly under-represented, it serves as a clear indicator of mode collapse.

Scaling GMMs with Mixture of Factor Analyzers

Standard GMMs fail on full-resolution images because their covariance matrices become intractably large (e.g., a $64 \times 64$ color image requires over 75 million free parameters for a single covariance matrix). To resolve this, the authors utilize a Mixture of Factor Analyzers (MFA).

MFA models each Gaussian component using a low-rank approximation. This structural change ensures that computational complexity grows linearly with the number of pixels rather than quadratically. By leveraging the Woodbury matrix identity to avoid inverting massive matrices, the authors successfully trained these models on GPUs using standard Stochastic Gradient Descent (SGD).

Key Findings and the Sharpness Trade-off

The models were evaluated across three standard benchmarks: CelebA (celebrity faces), MNIST (handwritten digits), and SVHN (street view house numbers).

Superior Distribution Coverage: Even though GMM samples visually appear "softer" or "blurrier" than GAN samples, they are vastly superior at covering the entire dataset. On the CelebA dataset ($K=100$), the MFA model achieved an NDB/K score of 0.21, significantly outperforming WGAN-GP (0.42) and DCGAN (0.68). A lower score indicates that the model's generated distribution more closely matches the true training set.

Generated CelebA faces demonstrating the sharpness trade-off. MFA samples often appear softer but capture rare modes that GANs frequently ignore.

Built-in Interpretability and Inference: Unlike the opaque latent spaces of GANs, MFA components are inherently interpretable. A single component might represent a specific sub-population, such as "faces with glasses," with latent vectors controlling meaningful variations like lighting. Furthermore, because MFA is an explicit probability model, it allows for closed-form calculations of image likelihood. This enables "free" outlier detection and image inpainting without the need for complex optimization or retraining.

Limitations and Future Directions

The primary limitation of the MFA approach is sharpness. Standard GMMs struggle to generate the crisp, high-frequency edges that make GAN images look photorealistic. While the authors experimented with pairing GMMs with a detail-enhancing conditional GAN (pix2pix) to add high-frequency details, these hybrid methods risk re-introducing the very mode collapse problems the GMM was meant to solve.

Ultimately, this research highlights that while GANs win on visual sharpness, classic statistical models like GMMs still hold significant advantages in distribution coverage and interpretability. Future work will likely focus on developing sophisticated statistical models that maintain the explicit nature of GMMs while possessing the expressive power to generate sharper textures natively.

Summary updated

BibTeX
@inproceedings{richardson2018gans,
  author = {Eitan Richardson and Yair Weiss},
  title = {{On GANs and GMMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=rybUeKZd-S},
}
Figure