Semi-Implicit Generative Model

Mingzhang Yin, Mingyuan ZhouarXiv 2019

Abstract

To combine explicit and implicit generative models, we introduce semi-implicit generator (SIG) as a flexible hierarchical model that can be trained in the maximum likelihood framework. Both theoretically and experimentally, we demonstrate that SIG can generate high quality samples especially when dealing with multi-modality. By introducing SIG as an unbiased regularizer to the generative adversarial network (GAN), we show the interplay between maximum likelihood and adversarial learning can stabilize the adversarial training, resist the notorious mode collapsing problem of GANs, and improve the diversity of generated random samples.

Introduction

In generative modeling, researchers typically face a trade-off between explicit and implicit frameworks. Explicit models, such as Variational Auto-Encoders (VAEs) or PixelRNNs, utilize a tractable probability density function. This allows for stable training via direct likelihood maximization, but often results in "blurry" outputs that fail to capture the high-frequency details of complex data.

Conversely, implicit models like Generative Adversarial Networks (GANs) do not provide a density function; instead, they learn a stochastic procedure to transform noise into data. While GANs produce sharp, high-quality samples, they are notoriously unstable and prone to "mode collapse"—a failure state where the generator produces only a limited subset of the data distribution to fool the discriminator, effectively ignoring the diversity of the training set. This paper introduces the Semi-Implicit Generative Model (SIG) to bridge this gap, combining the flexibility of implicit sampling with the stability of likelihood-based optimization.

Methodology: The Semi-Implicit Generator

The Semi-Implicit Generator (SIG) is a two-stage hierarchical model designed to maintain a flexible generative process while remaining compatible with maximum likelihood estimation. The process is defined as follows:

  1. Latent Parameter Sampling: A local parameter $\theta$ is sampled from an implicit distribution $p_\phi(\theta)$ by passing random noise $z$ through a neural network: $\theta = g_\phi(z)$.
  2. Data Generation: The actual data $x$ is sampled from an explicit distribution conditioned on that parameter: $x \sim p(x|\theta)$.
Comparison of explicit, implicit, and SIG models on ring and multi-modal synthetic distributions.

Because $p_\phi(\theta)$ is implicit, the marginal distribution $P_{model}(x)$ is also implicit. To optimize this without a tractable density, the authors derive a Monte-Carlo estimator for the cross-entropy. They prove that this estimator provides an upper bound on the true cross-entropy, enabling stable optimization. Furthermore, the authors propose GAN-SI, which integrates the SIG objective as a regularizer within the standard GAN loss. This hybrid approach allows the model to interpolate between adversarial learning for sharpness and maximum likelihood for diversity.

Experimental Evaluation

The model was evaluated across several benchmarks designed to test mode-capturing capabilities and image quality:

  • Synthetic Data: A 5x5 grid of 25 Gaussians and a ring-shaped distribution.
  • MNIST & Stacked MNIST: The latter involves stacking three digits into RGB channels to create 1,000 distinct modes, providing a rigorous test for mode collapse.
  • Natural Images: CelebA (high-resolution faces) and CIFAR-10 were used to evaluate scaling and Inception Scores.

Key Results and Insights

Resistance to Mode Collapse

A primary contribution of SIG is its theoretical and empirical resistance to mode collapse. Theorem 1 in the paper demonstrates that the SIG objective naturally penalizes the model for missing modes. Unlike a standard GAN, where a discriminator might eventually ignore certain regions of the data space, the SIG objective forces the generator to spread its probability mass across all observed data points.

Performance on a 5x5 Gaussian grid: SIG captures all modes, while standard GANs suffer from mode collapse.

On the 25-Gaussian mixture, SIG successfully captured all 25 modes with 91% high-quality samples, whereas a standard GAN captured only 4 modes on average. In the 1,000-mode Stacked MNIST test, the regularized DCGAN-SI captured up to 969 modes, a massive improvement over the standard DCGAN, which captured as few as 21 in some configurations.

The Mode Averaging Trade-off

While SIG excels at diversity, the authors noted that on highly complex datasets like CelebA, it can lead to "mode averaging," resulting in slightly blurrier images compared to pure GANs. This justifies the use of SIG as a regularizer: the GAN component provides high-frequency detail, while the SIG component ensures the model maintains the full breadth of the data distribution. This synergy improved the Inception Score on CIFAR-10 from 6.16 (standard DCGAN) to 6.85 (DCGAN-SI).

Conclusion and Future Work

The Semi-Implicit Generative Model provides a robust framework for stabilizing generative training and ensuring sample diversity. While highly effective, the model faces scalability challenges; as data complexity increases, the number of Monte-Carlo samples required for accurate estimation grows, increasing computational overhead. Future research may focus on adaptive sampling techniques or more efficient scaling methods to apply the SIG regularizer to even larger, more complex data manifolds.

Summary updated

BibTeX
@misc{yin2019semi,
  author = {Mingzhang Yin and Mingyuan Zhou},
  title = {{Semi-Implicit Generative Model}},
  year = {2019},
  eprint = {1905.12659},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.12659},
}
Figure