Skip to main content
QUICK REVIEW

[Paper Review] Modular Generative Adversarial Networks

Bo Zhao, Bo Chang|arXiv (Cornell University)|Apr 10, 2018
Generative Adversarial Networks and Image SynthesisComputer Science24 references12 citations
TL;DR

This paper proposes ModularGAN, a novel modular generative adversarial network that uses reusable, composable modules—such as encoder, transformer, generator, reconstructor, and discriminator—to enable efficient multi-domain image-to-image translation. By training these modules jointly and composing them dynamically at test time, ModularGAN avoids training exponential pairwise models, achieves state-of-the-art performance on CelebA for facial attribute transfer, and maintains robustness through mask prediction and cyclic loss.

ABSTRACT

Existing methods for multi-domain image-to-image translation (or generation) attempt to directly map an input image (or a random vector) to an image in one of the output domains. However, most existing methods have limited scalability and robustness, since they require building independent models for each pair of domains in question. This leads to two significant shortcomings: (1) the need to train exponential number of pairwise models, and (2) the inability to leverage data from other domains when training a particular pairwise mapping. Inspired by recent work on module networks, this paper proposes ModularGAN for multi-domain image generation and image-to-image translation. ModularGAN consists of several reusable and composable modules that carry on different functions (e.g., encoding, decoding, transformations). These modules can be trained simultaneously, leveraging data from all domains, and then combined to construct specific GAN networks at test time, according to the specific image translation task. This leads to ModularGAN's superior flexibility of generating (or translating to) an image in any desired domain. Experimental results demonstrate that our model not only presents compelling perceptual results but also outperforms state-of-the-art methods on multi-domain facial attribute transfer.

Motivation & Objective

  • Address the scalability and data inefficiency of existing pairwise image translation models that require training separate models for each domain pair.
  • Overcome the limitations of single complex models by decomposing image generation into simpler, reusable functional modules.
  • Enable flexible, dynamic composition of modules at test time to generate images in any desired domain without retraining.
  • Leverage data from all domains during training to improve generalization and reduce reliance on scarce paired data for rare domain combinations.
  • Improve robustness and attribute fidelity in multi-attribute image translation through structured module design and auxiliary losses.

Proposed method

  • Design a modular GAN architecture composed of five core components: generator, encoder, transformer, reconstructor, and discriminator, each responsible for a distinct function in the image generation pipeline.
  • Train all modules end-to-end using a joint objective that includes adversarial loss, reconstruction loss, and attribute classification loss to ensure realistic and attribute-accurate outputs.
  • Introduce a mask prediction head within the transformer module to guide spatially localized feature transformations, improving control and disentanglement of attributes.
  • Apply a cyclic consistency loss during training to ensure that sequential transformations (e.g., A→B→C) preserve identity and reduce distribution shift.
  • Enable dynamic composition of transformer modules at inference time by stacking them in any order, allowing flexible generation of images in arbitrary target domains.
  • Use a shared ResNet-18 classifier to evaluate attribute accuracy on generated images, ensuring fidelity to target attributes like hair color, gender, and expression.

Experimental results

Research questions

  • RQ1Can a modular architecture composed of reusable, composable GAN modules outperform existing pairwise or single-model approaches in multi-domain image translation?
  • RQ2Does the use of mask prediction in the transformer module improve attribute disentanglement and generation quality compared to end-to-end feature transformation?
  • RQ3How does the cyclic consistency loss affect the performance of multi-attribute translation when multiple modules are composed sequentially?
  • RQ4Is the model robust to the order of module composition, enabling flexible and reliable generation across diverse domain combinations?
  • RQ5Can joint training across all domains improve generalization and reduce error rates on rare or complex attribute combinations?

Key findings

  • ModularGAN achieved the highest human preference score (48.70 out of 100) in Amazon Mechanical Turk evaluations for attribute transfer, significantly outperforming IcGAN, CycleGAN, and StarGAN.
  • On the CelebA dataset, ModularGAN achieved the lowest classification error for attribute prediction (2.61% for gender, 4.21% for smile, 3.86% for hair color), indicating high fidelity in generating desired attributes.
  • The ablation study showed that removing the mask prediction led to a 30.85% error rate on the HSG (hair, smile, gender) task, confirming its critical role in disentangled manipulation.
  • Without the cyclic loss, multi-attribute transfer performance dropped drastically (52.87% error on HSG), demonstrating its importance in maintaining consistency across composed transformations.
  • Randomizing the order of transformer modules had minimal impact on performance (6.23% error on HSG), confirming that the model is robust to module composition order.
  • ModularGAN achieved a 46.96% preference score on the HSG attribute transfer task, outperforming StarGAN (27.83%) and CycleGAN (9.57%), highlighting its superiority in complex, multi-attribute generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.