Skip to main content
QUICK REVIEW

[Paper Review] Mask Based Unsupervised Content Transfer

Ron Mokady, Sagie Benaim|arXiv (Cornell University)|Jun 15, 2019
Generative Adversarial Networks and Image SynthesisComputer Science48 references5 citations
TL;DR

This paper proposes a mask-based unsupervised content transfer method that disentangles domain-invariant and domain-specific content using a novel attention mechanism guided by a generated mask, enabling high-quality, localized content transfer without reconstructing entire images. The method achieves state-of-the-art results in content transfer quality and diversity, while also enabling weakly supervised semantic segmentation of transferred content using only class-level annotations.

ABSTRACT

We consider the problem of translating, in an unsupervised manner, between two domains where one contains some additional information compared to the other. The proposed method disentangles the common and separate parts of these domains and, through the generation of a mask, focuses the attention of the underlying network to the desired augmentation alone, without wastefully reconstructing the entire target. This enables state-of-the-art quality and variety of content translation, as demonstrated through extensive quantitative and qualitative evaluation. Our method is also capable of adding the separate content of different guide images and domains as well as remove existing separate content. Furthermore, our method enables weakly-supervised semantic segmentation of the separate part of each domain, where only class labels are provided. Our code is publicly available at https://github.com/rmokady/mbu-content-tansfer.

Motivation & Objective

  • To address unsupervised content transfer between unpaired domains where one contains additional attributes (e.g., glasses) not present in the other.
  • To improve generation quality by focusing network attention only on the relevant region of the target image, avoiding wasteful reconstruction of irrelevant details.
  • To enable flexible content manipulation, including adding, removing, or swapping attributes across images.
  • To perform weakly supervised semantic segmentation of transferred content using only class-level labels.
  • To achieve disentanglement of content and style without requiring paired training data or explicit segmentation annotations.

Proposed method

  • The method uses a disentangled autoencoder-like architecture to separate domain-invariant content (shared across domains) from domain-specific content (unique to each domain).
  • A mask generation network identifies the spatial region in the target image where domain-specific content should be added, enabling localized attention and reducing reconstruction burden.
  • The network is trained with a combination of cycle consistency, reconstruction losses for both domains, and a novel disentanglement loss ($\mathcal{L}_{DC}$) to ensure semantic separation.
  • A self-regularizing loss ($\mathcal{L}^{A}_{Recon2}$) is applied to the target domain to encourage the mask to capture only relevant content, improving mask sparsity and accuracy.
  • The method leverages a latent space that is semantically aware of domain-specific content, allowing for precise localization and high-fidelity transfer.
  • The mask output is used both for content transfer and for weakly supervised semantic segmentation, with no need for bounding boxes or pixel-level annotations.

Experimental results

Research questions

  • RQ1Can we achieve high-quality, diverse content transfer between unpaired domains without reconstructing the entire target image?
  • RQ2Can we localize content transfer to specific regions using an attention mask, improving generation quality and efficiency?
  • RQ3Can the generated mask serve as a weakly supervised semantic segmentation map using only class-level annotations?
  • RQ4Can the method perform both content addition and removal, enabling flexible attribute swapping between images?
  • RQ5How do different loss components affect mask quality, disentanglement, and transfer performance?

Key findings

  • The method achieves state-of-the-art performance in content transfer quality and diversity, outperforming prior unsupervised methods on both quantitative metrics and qualitative evaluation.
  • The Intersection over Union (IoU) for semantic segmentation of transferred content (e.g., glasses, facial hair) exceeds that of prior weakly supervised methods, with a mean IoU of 0.881 for glasses and 0.885 for facial hair.
  • Ablation studies show that removing the $\mathcal{L}^{A}_{Recon2}$ loss leads to a 9.7% drop in classifier accuracy, indicating its critical role in mask localization and disentanglement.
  • Without the $\mathcal{L}_{Cycle}$ loss, the mask covers 29% of the face on average, but classifier accuracy drops to 67.1%, showing that cycle consistency helps maintain semantic correctness.
  • The method successfully transfers content even to images outside the training domain, demonstrating strong generalization and robustness.
  • The generated mask is sufficiently accurate for weakly supervised semantic segmentation, achieving high IoU without any ground-truth segmentation supervision.

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.