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

Introduction

Generative Adversarial Networks (GANs) have revolutionized image synthesis, yet they often struggle when faced with multimodal datasets. These datasets contain distinct clusters—such as different object classes in CIFAR-10 or varying facial attributes in CelebA. A single generator attempting to capture the entire distribution often suffers from "mode collapse" or produces blurry, "averaged" results that fail to represent any single mode accurately. MEGAN (Mixture of Experts GAN) addresses this by introducing a multi-generator architecture where individual networks specialize in specific data clusters.

The MEGAN Architecture

The core of MEGAN is a Mixture of Experts (MoE) framework consisting of three primary components:

  1. Multiple Generators ($G_1, \dots, G_n$): Instead of a monolithic network, MEGAN employs a set of $n$ generators that each produce an image and intermediate feature vectors.
  2. Gating Network: Acting as a manager, this network takes a latent vector $z$ and determines which generator is best suited for that specific input.
  3. Straight-Through Gumbel-Softmax (STGS): To make the discrete choice of a generator differentiable, MEGAN utilizes the STGS trick. This allows for end-to-end training by providing a differentiable path for gradients during the backward pass while maintaining "hard" categorical choices during the forward pass.

Implicit Specialization and Load Balancing

A key insight of MEGAN is that generators do not require explicit labels to specialize. Through the gating mechanism, they naturally "carve out" niches within the shared latent space. For instance, in facial datasets, one generator might focus on dark-haired faces while another handles blonde hair. Using t-SNE plots, the authors confirmed that different generators occupy distinct, non-overlapping regions of the feature space.

To ensure all generators are utilized, the authors introduced Load-Balancing Regularization ($\mathcal{L}_{LB}$). Without this, gating networks tend to converge prematurely on a few "winner" generators, leaving others untrained. This loss term encourages the gating network to select all generators with roughly equal frequency across mini-batches, giving "slower" generators time to learn unique features.

Experimental Results

The authors evaluated MEGAN on several standard benchmarks, demonstrating its ability to produce high-quality, diverse images:

  • CIFAR-10: Achieved an Inception Score (IS) of 8.33, a highly competitive result for unsupervised models at the time of publication.
  • CelebA: Attained a Multi-scale Structural Similarity (MS-SSIM) score of 0.2470. Lower scores in this metric indicate higher diversity; MEGAN outperformed several baselines like BEGAN and DRAGAN in producing a diverse range of faces.
  • Qualitative Quality: Visual inspection confirmed that MEGAN produces sharper images with fewer artifacts compared to single-generator baselines, as each generator only needs to master a subset of the data's total complexity.

Conclusion and Limitations

While MEGAN offers significant improvements in image quality and diversity, it introduces higher computational overhead due to the increased parameter count and memory requirements. Additionally, the model is sensitive to the load-balancing hyperparameter ($\lambda$). Despite these challenges, MEGAN proves that a "divide and conquer" approach via specialized generators is a powerful strategy for modeling complex, multimodal distributions.

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