Introduction
Image-to-image (I2I) translation aims to map images from a source domain to a target domain while preserving the underlying structure or "content." In many real-world scenarios, paired training data (e.g., the exact same scene as both a photo and a sketch) is unavailable. This necessitates unpaired translation techniques. This paper introduces CUT (Contrastive Unpaired Translation), a framework that shifts the paradigm from reconstruction-based constraints to mutual information maximization via contrastive learning.
The Challenge of Cycle-Consistency
For years, the gold standard for unpaired I2I has been CycleGAN, which relies on a "cycle-consistency" loss. This principle assumes that if an image is translated to the target domain and then back to the source, the result should match the original input. While effective, cycle-consistency imposes a strict bijective (one-to-one) mapping. This can be overly restrictive, especially when domains have different levels of information (e.g., translating a zebra in tall grass back to a horse might require the model to "hide" the grass information). Furthermore, CycleGAN requires training two separate generator-discriminator pairs, leading to high computational costs.
Methodology: Contrastive Unpaired Translation
The authors propose a "one-sided" approach that eliminates the need for a reverse generator. Instead, they maintain content through a Patchwise Contrastive Loss (PatchNCE).
The core idea is to maximize the mutual information between corresponding patches in the input and output images. Specifically, a patch in the output (e.g., a zebra's head) is encouraged to be similar to its corresponding patch in the input (the horse's head) while being dissimilar to other "negative" patches sampled from the same input image. This use of internal negatives forces the network to learn local structural correspondences without needing external datasets for contrast.
The framework applies this loss across multiple layers of the encoder, capturing both low-level features (edges, colors) and high-level semantic parts. Two variants are introduced: CUT, which includes an identity loss for stability, and FastCUT, a lighter version optimized for speed.
Experiments and Benchmarks
The method was evaluated across diverse datasets, including:
- Horse → Zebra: A standard benchmark for domain adaptation.
- Cat → Dog: Testing the ability to handle significant shape variations using the AFHQ dataset.
- Cityscapes: Translating semantic labels to realistic street scenes.
- SinCUT: A single-image translation setting where the model learns from only one reference image.
Results and Efficiency
CUT achieves state-of-the-art performance, outperforming CycleGAN and other one-sided baselines in both visual quality and quantitative metrics.
On the Cityscapes benchmark, CUT reached a mAP of 24.7, significantly higher than CycleGAN’s 20.4, demonstrating superior preservation of semantic structure. Beyond quality, CUT is highly efficient: it is approximately 40% faster to train and requires 31% less GPU memory than CycleGAN due to its single-generator architecture.
Limitations
Despite its success, CUT is not immune to common GAN issues. It can occasionally "hallucinate" features (e.g., adding a tongue to a dog when the source cat had a closed mouth) or struggle with highly unusual poses that are underrepresented in the target domain.
Conclusion
By replacing cycle-consistency with patchwise contrastive learning, CUT provides a faster, more memory-efficient, and higher-quality solution for unpaired image-to-image translation. Its ability to work with internal statistics even allows for effective single-image translation, opening new doors for content-aware style transfer.
Summary updated