Skip to main content
QUICK REVIEW

[Paper Review] Dual Contrastive Learning for Unsupervised Image-to-Image Translation

Junlin Han, Mehrdad Shoeiby|arXiv (Cornell University)|Apr 15, 2021
Cancer-related molecular mechanisms researchBiochemistry, Genetics and Molecular Biology38 references15 citations
TL;DR

This paper proposes DCLGAN, a dual contrastive learning framework for unsupervised image-to-image translation that uses separate encoders and projection heads for source and target domains to improve feature alignment and stability. By maximizing mutual information between patch-level features while avoiding cycle-consistency constraints, DCLGAN achieves state-of-the-art performance and significantly reduces mode collapse, especially in tasks like photo-to-label translation, closing the gap with supervised methods on benchmarks like Cityscapes.

ABSTRACT

Unsupervised image-to-image translation tasks aim to find a mapping between a source domain X and a target domain Y from unpaired training data. Contrastive learning for Unpaired image-to-image Translation (CUT) yields state-of-the-art results in modeling unsupervised image-to-image translation by maximizing mutual information between input and output patches using only one encoder for both domains. In this paper, we propose a novel method based on contrastive learning and a dual learning setting (exploiting two encoders) to infer an efficient mapping between unpaired data. Additionally, while CUT suffers from mode collapse, a variant of our method efficiently addresses this issue. We further demonstrate the advantage of our approach through extensive ablation studies demonstrating superior performance comparing to recent approaches in multiple challenging image translation tasks. Lastly, we demonstrate that the gap between unsupervised methods and supervised methods can be efficiently closed.

Motivation & Objective

  • To address the limitations of existing unsupervised image-to-image translation methods, particularly mode collapse and instability in geometry-aware translation.
  • To improve contrastive learning in unpaired image translation by using separate encoders and projection heads for source and target domains.
  • To eliminate reliance on cycle-consistency loss, which restricts geometric flexibility and can degrade performance in structure-agnostic tasks.
  • To develop a variant, SimDCL, that effectively mitigates mode collapse in multi-modal translation tasks such as photo-to-label translation.
  • To close the performance gap between unsupervised and supervised image translation methods through improved contrastive representation learning.

Proposed method

  • DCLGAN employs two distinct encoders and projection heads—one for the source domain and one for the target domain—to learn domain-specific embeddings and improve feature alignment.
  • The method uses a patch-based, multi-layer PatchNCE loss to maximize mutual information between corresponding patches in input and output images, using separate projections for each domain.
  • It leverages a dual learning setting, where both domains are processed simultaneously, enhancing training stability and enabling better feature learning across domains.
  • The approach omits RGB pixel features in the PatchNCE loss, as they represent the smallest patch size and introduce misleading signals, leading to improved convergence.
  • External negatives are explored by concatenating feature stacks from the same domain, though this slightly degrades visual quality due to feature merging.
  • A variant, SimDCL, is introduced to address mode collapse by modifying the contrastive objective to encourage diversity in generated outputs.

Experimental results

Research questions

  • RQ1Can a dual contrastive learning framework with separate encoders outperform single-encoder methods like CUT in unpaired image-to-image translation?
  • RQ2Does removing the cycle-consistency loss improve performance in tasks requiring geometric changes, such as cat-to-dog or dog-to-cat translation?
  • RQ3Can the use of separate embeddings for source and target domains mitigate mode collapse in multi-modal translation tasks like photo-to-label translation?
  • RQ4How does omitting RGB pixels from the PatchNCE loss affect convergence and performance in contrastive learning for image translation?
  • RQ5To what extent can contrastive learning close the performance gap between unsupervised and supervised image-to-image translation methods?

Key findings

  • DCLGAN achieves state-of-the-art performance on multiple image translation benchmarks, including Horse→Zebra, Zebra→Horse, and Cityscapes, outperforming CUT and CycleGAN.
  • Removing RGB pixels from the PatchNCE loss improves convergence and performance, as including them (as in CUT) leads to degraded results across all tasks.
  • Using a single encoder and shared projection head (as in CUT) results in worse performance, confirming that separate embeddings are essential for capturing domain-specific variability.
  • Adding cycle-consistency loss to DCLGAN degrades performance, especially in geometry-sensitive tasks, with FID scores of 71.1 and 35.5 for Cat→Dog and Dog→Cat, respectively, worse than DCLGAN’s original results.
  • The dual learning setting significantly stabilizes training and improves feature learning, as removing it leads to inferior performance.
  • SimDCL effectively mitigates mode collapse, generating diverse and realistic outputs across different inputs in photo-to-label translation, unlike CUT and DCLGAN, which produce nearly identical outputs.

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.