NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MEGAN: Mixture of Experts of Generative Adversarial Networks for Multimodal Image Generation

David Keetae Park, Seungjoo Yoo, Hyojin Bahng, Jaegul Choo, Noseong Park

Abstract

Generative Adversarial Networks (GANs) often struggle to capture the full diversity of multimodal datasets, frequently resulting in mode collapse or poor image quality. We present MEGAN (Mixture of Experts GAN), a novel architecture that utilizes multiple generator networks that implicitly specialize in distinct subsets of the data. By integrating a gating network with the Straight-Through Gumbel-Softmax (STGS) technique, MEGAN enables differentiable discrete selection of expert generators. Our results on CIFAR-10, CelebA, and LSUN datasets demonstrate that MEGAN produces high-quality, diverse images without the need for pre-clustering or manual labels.

Introduction

Standard GANs typically employ a single generator to map a latent space to the data distribution. However, when the target distribution is multimodal—containing distinct categories like different object classes or facial attributes—a single generator often fails to capture all modes effectively. This leads to "mode collapse," where the model ignores certain data regions, or produces "average" samples that lack sharp, specific details.

MEGAN addresses this by adopting a Mixture of Experts (MoE) framework. Instead of a monolithic generator, the system consists of multiple "expert" generators that partition the feature space among themselves, allowing for more precise modeling of complex data distributions.

Comparison of feature space coverage between a single generator and the specialized multi-generator approach in MEGAN.

Methods

The MEGAN architecture consists of three primary components: a set of $n$ generators, a gating network, and a single discriminator.

Multi-Generator Architecture

MEGAN employs $n$ generators ($G_1, \dots, G_n$) that share a common latent noise input $z$. This shared input ensures that the selection process is based on the intended content rather than separate input distributions, forcing the generators to compete for specific niches in the data.

Gating Network and STGS

The gating network acts as the system's manager, determining which generator should produce the output for a given latent vector $z$. It utilizes internal feature maps from the generators to make this selection. To maintain end-to-end differentiability despite the discrete choice of a single generator, MEGAN uses the Straight-Through Gumbel-Softmax (STGS) trick. This allows gradients to flow through the discrete selection process during backpropagation, enabling the entire system to be trained via standard adversarial loss.

The MEGAN architecture, showing (a) the main network flow with multiple generators and the discriminator, and (b) the internal structure of the gating network using STGS.

Load-Balancing Regularization

To ensure all generators are utilized and prevent a single "super-generator" from dominating the training process, a load-balancing loss term is added to the objective function. This encourages the gating network to distribute the workload across the entire ensemble of experts, promoting specialization.

Results and Discussion

MEGAN was evaluated on several standard benchmarks, demonstrating superior performance in both image quality and diversity.

  • CIFAR-10: MEGAN achieved an Inception Score (IS) of 8.33, outperforming several contemporary unsupervised baselines like WGAN-GP and SplittingGAN.
  • CelebA Diversity: The model showed significant improvements in diversity, reaching a Multi-scale Structural Similarity (MS-SSIM) score of 0.2470. Since lower MS-SSIM scores indicate higher diversity, MEGAN significantly outperformed BEGAN (0.4636) and DRAGAN (0.3711).
  • Implicit Specialization: Qualitative analysis reveals that generators naturally "carve out" territories, specializing in specific attributes (e.g., background color or hair type) without any explicit supervision or manual labels.

Conclusion

MEGAN successfully applies the Mixture of Experts paradigm to GANs, providing a robust solution for multimodal image generation. While it introduces higher computational overhead due to the multiple generators and requires careful tuning of the load-balancing hyperparameter, its ability to achieve implicit specialization and high diversity marks a significant advancement in unsupervised generative modeling. Future research will focus on scaling this approach to higher-resolution image synthesis and optimizing the parameter count of the expert ensemble.

Summary updated

BibTeX
@inproceedings{park2018megan,
  author = {David Keetae Park and Seungjoo Yoo and Hyojin Bahng and Jaegul Choo and Noseong Park},
  title = {{MEGAN: Mixture of Experts of Generative Adversarial Networks for Multimodal Image Generation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/122},
}
Figure