Latent Dirichlet Allocation in Generative Adversarial Networks

Lili Pan, Shen Cheng, Jian Liu, Yazhou Ren, Zenglin XuarXiv 2018

Abstract

LDAGAN integrates the structured topic modeling of Latent Dirichlet Allocation (LDA) into the Generative Adversarial Network (GAN) framework. By utilizing a Dirichlet prior to manage a mixture of generators, the model effectively captures the multimodal nature of complex datasets. This approach significantly mitigates "mode collapse" and enhances the diversity and interpretability of generated images.

Introduction

Generative Adversarial Networks (GANs) have revolutionized image synthesis but continue to struggle with multimodality. Real-world datasets, such as ImageNet, are composed of numerous distinct modes (e.g., different animal species or vehicle types). Standard GANs, which typically employ a single generator to map noise to these complex distributions, often suffer from mode collapse—where the generator produces only a limited subset of data—or mode dropping, where entire categories are ignored.

LDAGAN addresses these issues by treating image generation as a hierarchical process inspired by LDA, a classic technique for discovering latent topics in text. By introducing a principled mixture-of-generators approach, LDAGAN provides a mathematically sound framework for modeling diverse data distributions.

Methodology

The core of LDAGAN is a three-level hierarchical generative process, as illustrated in the plate notation below.

Figure 1: Graphical model representation of LDAGAN showing the hierarchical generation process from Dirichlet prior to image output.

The process follows these steps:

  1. Sample a Mode Distribution: For each sample, a distribution $\pi$ is drawn from a Dirichlet prior $\alpha$. This $\pi$ defines the mixture of modes for that specific instance.
  2. Select a Mode: A specific generative mode $z$ is sampled from the distribution $\pi$.
  3. Generate the Image: The final image $x$ is produced by a specific generator $G_k$ (corresponding to mode $z$) using input noise $z'$.

To ensure efficiency and stability, the authors implemented several key innovations:

  • Variational EM (VEM) Algorithm: A derived VEM algorithm allows for parameter estimation within the adversarial framework, bypassing the lack of an explicit likelihood function in GANs.
  • Shared Discriminator: A single shared discriminator maintains balance across all generators during training.
  • Parameter Sharing: To minimize overhead, the $K$ generators share most parameters, differing only in their initial layers. This encourages specialization while maintaining a manageable parameter count.

Experimental Results

LDAGAN was evaluated on standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet (rescaled to $32 \times 32$). The model demonstrated state-of-the-art performance across both quantitative and qualitative metrics.

Figure 3: Qualitative results on CIFAR-10, CIFAR-100, and ImageNet. Each row corresponds to a specific generator mode, demonstrating semantic consistency.

Quantitative Performance: On the ImageNet dataset, LDAGAN achieved a Fréchet Inception Distance (FID) of 28.9, a leading result for standard CNN architectures at the time of publication. In terms of Inception Score (IS), LDAGAN consistently outperformed baselines like MGAN and Graphical GAN (GMGAN). For instance, on CIFAR-10, it reached an IS of 8.77 using a ResNet architecture.

Qualitative Insights: As shown in Figure 3, LDAGAN successfully discovers underlying data structures without explicit supervision. Images generated by the same mode (rows in the grid) exhibit high semantic similarity—for example, one generator might specialize in "ships" while another focuses on "dogs." This confirms that the model effectively partitions the data modes.

Discussion and Conclusion

By applying the principles of LDA to the GAN framework, LDAGAN provides a robust solution to the problem of mode collapse. The use of a Dirichlet prior offers a mathematically grounded way to handle multimodality, leading to more diverse and interpretable generative models.

While the hierarchical nature and VEM algorithm increase training complexity, the benefits in stability and output quality are significant. Future work may involve scaling this approach to higher resolutions ($1024 \times 1024$) and exploring its application in other structured latent space tasks beyond image generation.

Summary updated

Abstract

We study the problem of multimodal generative modelling of images based on generative adversarial networks (GANs). Despite the success of existing methods, they often ignore the underlying structure of vision data or its multimodal generation characteristics. To address this problem, we introduce the Dirichlet prior for multimodal image generation, which leads to a new Latent Dirichlet Allocation based GAN (LDAGAN). In detail, for the generative process modelling, LDAGAN defines a generative mode for each sample, determining which generative sub-process it belongs to. For the adversarial training, LDAGAN derives a variational expectation-maximization (VEM) algorithm to estimate model parameters. Experimental results on real-world datasets have demonstrated the outstanding performance of LDAGAN over other existing GANs.
BibTeX
@misc{pan2018latent,
  author = {Lili Pan and Shen Cheng and Jian Liu and Yazhou Ren and Zenglin Xu},
  title = {{Latent Dirichlet Allocation in Generative Adversarial Networks}},
  year = {2018},
  eprint = {1812.06571},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.06571},
}
Figure