Skip to main content
QUICK REVIEW

[Paper Review] Generative Semantic Manipulation with Contrasting GAN

Xiaodan Liang, Hao Zhang|arXiv (Cornell University)|Aug 1, 2017
Generative Adversarial Networks and Image SynthesisComputer Science27 citations
TL;DR

This paper proposes a contrastive GAN (contrast-GAN) for generative semantic manipulation, enabling large-scale semantic changes like cat → dog or motor → bicycle while preserving object shape and viewpoint. By optimizing for relative feature distances—making generated images closer to real target-class images than to input images—the model achieves superior visual fidelity and semantic accuracy over prior GANs on ImageNet and MSCOCO datasets.

ABSTRACT

Generative Adversarial Networks (GANs) have recently achieved significant improvement on paired/unpaired image-to-image translation, such as photo$ ightarrow$ sketch and artist painting style transfer. However, existing models can only be capable of transferring the low-level information (e.g. color or texture changes), but fail to edit high-level semantic meanings (e.g., geometric structure or content) of objects. On the other hand, while some researches can synthesize compelling real-world images given a class label or caption, they cannot condition on arbitrary shapes or structures, which largely limits their application scenarios and interpretive capability of model results. In this work, we focus on a more challenging semantic manipulation task, which aims to modify the semantic meaning of an object while preserving its own characteristics (e.g. viewpoints and shapes), such as cow$ ightarrow$sheep, motor$ ightarrow$ bicycle, cat$ ightarrow$dog. To tackle such large semantic changes, we introduce a contrasting GAN (contrast-GAN) with a novel adversarial contrasting objective. Instead of directly making the synthesized samples close to target data as previous GANs did, our adversarial contrasting objective optimizes over the distance comparisons between samples, that is, enforcing the manipulated data be semantically closer to the real data with target category than the input data. Equipped with the new contrasting objective, a novel mask-conditional contrast-GAN architecture is proposed to enable disentangle image background with object semantic changes. Experiments on several semantic manipulation tasks on ImageNet and MSCOCO dataset show considerable performance gain by our contrast-GAN over other conditional GANs. Quantitative results further demonstrate the superiority of our model on generating manipulated results with high visual fidelity and reasonable object semantics.

Motivation & Objective

  • To enable controllable image generation that performs large semantic changes (e.g., cat → dog) while preserving object geometry and viewpoint.
  • To overcome the limitation of existing GANs that only modify low-level features like color or texture.
  • To develop a conditional image synthesis method that uses complex, structured conditions (e.g., object masks) rather than fixed labels or captions.
  • To disentangle background from object-level semantic manipulation using a mask-conditional architecture.
  • To improve interpretability and control in unsupervised image generation by learning through comparative feature distances.

Proposed method

  • Proposes a novel adversarial contrasting objective that compares distances between generated samples, input images, and real target-class images in feature space.
  • Uses a conditional generator shared across all semantic classes, conditioned on target category and object masks to enable localized manipulation.
  • Employs multiple semantic-aware discriminators to enforce that generated images are semantically closer to real target-class images than to input images.
  • Introduces a global discriminator $D_I$ to validate overall image realism and complement the contrastive loss.
  • Combines the contrastive loss with LSGAN and cycle-consistency losses to stabilize training and improve visual quality.
  • Uses a mask-conditional architecture to isolate and manipulate specific object instances while preserving background and spatial context.

Experimental results

Research questions

  • RQ1Can a GAN-based model perform large-scale semantic manipulation (e.g., cat → dog) while preserving object shape and viewpoint?
  • RQ2Does an adversarial contrasting objective—comparing relative feature distances—improve semantic manipulation over standard GAN objectives?
  • RQ3Can a single shared generator conditioned on class labels and object masks outperform separate generators per class?
  • RQ4How does the proposed method compare to cycle-GAN and other GANs in unpaired image-to-image translation and semantic manipulation tasks?
  • RQ5To what extent can mask-conditional conditioning disentangle background from object-level semantic changes?

Key findings

  • The contrast-GAN model significantly outperforms baseline GANs, including CycleGAN and other conditional GANs, on semantic manipulation tasks such as cat ↔ dog and bicycle ↔ motorcycle on MSCOCO.
  • On the AMT perceptual realism benchmark, the model achieves substantially higher scores than baselines, especially on tasks requiring large semantic changes.
  • Ablation studies confirm that all three components—contrastive loss, LSGAN loss, and cycle-consistency loss—are essential for optimal performance.
  • The shared generator with mask conditioning achieves comparable or better results than separate generators per class, reducing model size while improving robustness.
  • The model with the auxiliary global discriminator $D_I$ further improves visual fidelity, demonstrating its complementary role in realism assessment.
  • Qualitative results show the model makes minimal yet effective changes to object structure and texture, successfully transforming semantic identity while preserving original viewpoint and background interaction.

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.