TL;DR
McGan introduces a new family of Generative Adversarial Networks (GANs) designed to stabilize training by matching the statistics—specifically the mean and covariance—of real and generated data in a learned feature space. By moving beyond simple mean-matching (which the authors demonstrate is the underlying mechanism of Wasserstein GANs), McGan significantly reduces "mode collapse" and provides a loss metric that strongly correlates with generated image quality.
The Challenge of GAN Training
Training GANs is notoriously difficult. The original formulation frequently suffers from vanishing gradients (where the generator stops learning because the discriminator becomes too strong) and mode collapse (where the generator produces only a limited variety of outputs, failing to capture the true diversity of the real data).
While the Wasserstein GAN (WGAN) resolved many stability issues by utilizing the Earth Mover distance, it fundamentally focuses on matching the "average" location of data points in a feature space. The authors of McGan argue that matching only these first-order statistics (the mean) is insufficient for capturing the complex, multi-modal nature of real-world data distributions. If a model only matches the mean of two distinct clusters, the generator might simply place all its generated points in the empty space directly between them, entirely missing the actual data modes.
Methodology: Integral Probability Metrics
The paper frames GAN training through the lens of Integral Probability Metrics (IPM). An IPM measures the distance between two distributions by finding a "critic" function that maximizes the difference in their expected values.
The authors introduce two primary variants within this framework:
- Mean Matching ($IPM_{\mu,q}$): This approach matches the first-order statistics. A significant theoretical contribution of this paper is proving that the popular Wasserstein GAN is actually a special case of this framework—specifically, an $\ell_1$ mean-matching GAN.
- Covariance Matching ($IPM_{\Sigma}$): This represents the core innovation of McGan. It matches second-order statistics (variances and correlations). To make this computationally feasible for high-dimensional data, the authors avoid building full covariance matrices. Instead, they employ the Ky Fan k-norm, which focuses only on the top $k$ directions where the covariances of the real and fake data differ the most.
By combining these two approaches, the "McGan" objective forces the generator to produce data that exhibits both the same average features and the same patterns of variation as the real data.
Key Insights & The Geometry of Mode Collapse
One of the most compelling arguments in the paper is its geometric explanation of mode collapse.
As illustrated in the 2D toy example above, mean matching (left) often assigns high critic values to the empty space between two real data modes. This encourages the generator to produce samples in that unrealistic middle ground. Covariance matching (right), however, creates "critic directions" that specifically target the individual modes, forcing the generator to spread out its samples and accurately capture the multi-modal distribution.
Additional Theoretical Insights: * Unifying WGAN and MMD: The authors provide a theoretical bridge between WGANs and Maximum Mean Discrepancy (MMD) methods, demonstrating that they are essentially different flavors of the same overarching IPM approach. * Primal vs. Dual Formulations: The paper derives both primal and dual versions of their loss functions. They discover that the primal formulation is more computationally efficient for stochastic gradient descent because the expectation appears linearly in the cost function.
Experimental Results
The authors evaluated McGan on standard computer vision benchmarks, including LFW ($64 \times 64$ faces), LSUN Bedrooms ($64 \times 64$ indoor scenes), and CIFAR-10 ($32 \times 32$ images).
- Training Stability: Similar to WGAN, the McGan loss function drops steadily during training and correlates well with the visual quality of the images. This provides a reliable "progress bar" for GAN training, which is often missing in standard formulations.
- Quantitative Performance: On CIFAR-10, the Covariance Matching GAN achieved an Inception Score of 7.29 (conditional), significantly outperforming their baseline WGAN implementation (3.24) and competing strongly with other state-of-the-art methods of the time.
- Qualitative Diversity: The generated images for LFW and LSUN exhibited high diversity and fewer artifacts compared to simple mean-matching approaches. This suggests that matching second-order statistics is crucial for accurately capturing "texture" and "style" in image generation.
Limitations and Future Directions
While McGan offers significant improvements, the authors note a few limitations:
- Weight Clipping: To ensure the IPM remains bounded, the model relies on weight clipping (restricting weights to a narrow range like $[-0.01, 0.01]$). The authors acknowledge this can artificially limit the "capacity" of the critic and suggest exploring $\ell_2$ weight penalties as a more flexible alternative.
- Computational Overhead: Matching covariances is inherently more computationally expensive than matching means. While the Ky Fan k-norm trick mitigates this, there remains a trade-off between the number of components ($k$) analyzed and overall training speed.
- Advanced Geometries: For future work, the authors suggest exploring "geodesic distances" between covariances on the manifold of symmetric positive definite matrices, which could provide an even more natural and effective metric for distribution matching.
Summary updated