MC-GAN: Multi-conditional Generative Adversarial Network for Image Synthesis

Hyojin Park, Young Joon Yoo, Nojun Kwak

Abstract

MC-GAN (Multi-conditional Generative Adversarial Network) introduces a novel approach to image synthesis by placing a text-described object into a specific location within an existing background. By utilizing a specialized "synthesis block," the model learns to disentangle foreground and background information, allowing it to generate realistic objects that blend seamlessly into a provided base image without distorting the original environment. We evaluate the model on fine-grained datasets, demonstrating superior background preservation and semantic awareness in object placement.

1. Introduction

While text-to-image synthesis has seen massive leaps, most models focus on generating an entire scene from scratch. This often results in the background being treated as an afterthought or generated randomly. Conversely, "style transfer" methods can modify existing images but usually require a similar object to already exist in the base image. MC-GAN addresses a specific gap: how to insert a completely new object into a specific spot on a given background based only on a text description.

Comparison of MC-GAN with prior work (Reed et al. and Dong et al.), highlighting the ability to insert objects into specific background locations.

2. Methodology

The core innovation of the paper is the Multi-conditional GAN (MC-GAN) architecture, which processes three distinct inputs: a base background image, a text description, and a target location (bounding box).

2.1 The Synthesis Block

The "secret sauce" of MC-GAN is the Synthesis Block. Standard GANs often struggle to keep the background intact while drawing something new over it. The Synthesis Block acts as a pixel-wise gating function that manages:

  1. Foreground (FG) Features: Derived from the text embedding and noise.
  2. Background (BG) Features: Extracted from the base image.
  3. The Switch: The block generates a "switch" map (using a sigmoid function) that decides, pixel-by-pixel, how much of the background should be retained versus how much should be suppressed to make room for the new foreground object.

2.2 Training and Loss Functions

The generator produces both the final image and a segmentation mask. To ensure the background stays consistent, the authors use a background reconstruction loss ($L_1$ loss), which penalizes the model if it changes pixels outside the generated object's mask. The discriminator is also "multi-conditional," evaluating tuples of (image, mask, text) to ensure the object matches the description and the mask is plausible.

3. Experiments and Results

The model was evaluated on the Caltech-200 Bird Dataset and the Oxford-102 Flower Dataset. For the flower dataset, the authors augmented the data with additional background images to provide more varied "base images" for synthesis.

3.1 Key Insights

  • Disentanglement via Gating: The synthesis block's ability to "switch off" background pixels is crucial. It prevents the "ghosting" effect where the background bleeds through the generated object.
  • Semantic Awareness: The model doesn't just paste a bird; it attempts to understand the scene. In some results, if a bird is placed in "empty air," the generator actually synthesizes a small branch for the bird to sit on to make the image more natural.
  • Mask-Text Correlation: By forcing the discriminator to look at the image, the mask, and the text simultaneously, the model learns a tighter relationship between the shape of the object (the mask) and its attributes (the text).

3.2 Performance

MC-GAN significantly outperformed baselines in background preservation, keeping complex backgrounds (like dense foliage or water) identical to the source image while rendering high-quality objects at 128 × 128 resolution. The authors also demonstrated smooth interpolation between text embeddings, allowing the model to transition object features (like color) without losing background stability. A two-stage "MC-StackGAN" version was also explored, producing even more stable objects at the cost of slight background transformation.

4. Conclusion and Future Work

MC-GAN provides a robust framework for conditional image editing through effective feature disentanglement. While currently limited by resolution (128x128) and object diversity (primarily birds and flowers), it sets a foundation for more complex spatial reasoning and physical consistency in image synthesis, such as handling complex lighting and shadows cast by new objects onto the background.

Summary updated

BibTeX
@inproceedings{park2018mc,
  author = {Hyojin Park and Young Joon Yoo and Nojun Kwak},
  title = {{MC-GAN: Multi-conditional Generative Adversarial Network for Image Synthesis}},
  booktitle = {BMVC},
  year = {2018},
  url = {https://openreview.net/forum?id=Fthq3uzCoxg},
}
Figure