Conditional Generative Moment-Matching Networks

Yong Ren, Jialian Li, Yucen Luo, Jun Zhu

Introduction

Deep Generative Models (DGMs) have revolutionized our ability to model complex data distributions. However, a persistent challenge lies in balancing training stability with model flexibility. Generative Adversarial Networks (GANs), while powerful, often suffer from unstable training dynamics due to their adversarial min-max objective. This paper presents Conditional Generative Moment-Matching Networks (CGMMN), a framework that leverages the stability of kernel-based moment matching to learn conditional distributions $p(y|x)$.

The Conditional Maximum Mean Discrepancy (CMMD)

The primary contribution of this work is the Conditional Maximum Mean Discrepancy (CMMD) criterion. Traditional Generative Moment-Matching Networks (GMMNs) use Maximum Mean Discrepancy (MMD) to match the moments of a model's distribution to the empirical data distribution. MMD effectively represents distributions as points in a Reproducing Kernel Hilbert Space (RKHS).

CGMMN extends this to conditional settings. While standard MMD treats all samples with uniform weights, the CMMD objective applies non-uniform weights based on the conditioning variables $x$. This allows the model to capture the dependency of $y$ on $x$ without requiring an explicit density function or an adversarial discriminator.

Model Architecture

The CGMMN architecture is straightforward and avoids the complexities of adversarial training. It consists of a deep neural network (MLP or CNN) that maps a conditioning variable $x$ and a source of latent noise $h$ to a target sample $y$.

The CGMMN architecture takes a conditioning variable $x$ and random noise $h$ as inputs, passing them through multiple ReLU layers to produce an output $y$.

Training is performed using standard stochastic gradient descent (SGD) to minimize the CMMD. To address the $O(N^3)$ complexity of kernel methods, the authors utilize a mini-batch approach, making the training scalable to larger datasets.

Experimental Results

The authors demonstrate the efficacy of CGMMN across various tasks, including classification, image generation, and knowledge distillation.

Image Classification and Generation

On the MNIST dataset, CGMMN achieved a classification error rate of 0.47%, matching the performance of state-of-the-art models like Maxout Networks. Beyond classification, the model excels at conditional generation.

Conditional generation of MNIST digits. The model learns to produce diverse samples for each digit class.

In more complex scenarios, such as the SVHN dataset, CGMMN achieved a 3.13% error rate. For face generation using the Extended Yale Face Dataset, the model produced high-quality, diverse images for specific identities. Latent space interpolation confirmed that the model learned a continuous manifold rather than simply memorizing training examples.

Bayesian Knowledge Distillation

A unique application explored is "Bayesian Dark Knowledge" distillation. CGMMN was used to "distill" a complex Bayesian teacher model into a fast, feed-forward student network. On the Boston Housing dataset, the CGMMN student achieved an RMSE of 2.580, nearly identical to the teacher's 2.574, demonstrating its ability to capture complex predictive distributions.

Conclusion

Conditional Generative Moment-Matching Networks provide a stable and effective alternative to GANs for conditional modeling. By optimizing the CMMD criterion, CGMMN avoids adversarial training while maintaining high performance across classification and generation tasks. Future work may involve exploring more sophisticated network architectures and automated kernel selection to further enhance the model's scalability and performance.

Summary updated

BibTeX
@inproceedings{ren2016conditional,
  author = {Yong Ren and Jialian Li and Yucen Luo and Jun Zhu},
  title = {{Conditional Generative Moment-Matching Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=S1ZbK8bd-S},
}
Figure