Conditional Image-to-Image Translation

Jianxin Lin, Yingce Xia, Tao Qin, Zhibo Chen, Tie-Yan Liu

Abstract

Existing unsupervised image-to-image translation models, while successful, often produce deterministic results that lack fine-grained user control. This paper introduces "conditional image-to-image translation" and a novel architecture, the conditional dual-GAN (cd-GAN). By disentangling images into domain-independent structural features and domain-specific style features, cd-GAN allows users to dictate the target style using a reference image. Our approach utilizes a multi-level dual-learning reconstruction loss to achieve high-fidelity translation and feature recombination using only unpaired data.

Introduction

Unsupervised image-to-image translation has advanced significantly with models like CycleGAN and DualGAN, enabling transformations such as turning sketches into photos or changing facial gender. However, these models typically offer a one-to-one mapping; the network unilaterally decides the resulting style, such as hair color or makeup. This lack of controllability limits their utility in creative workflows where a specific output style is desired.

The concept of conditional image-to-image translation: (a) transferring facial styles between genders and (b) applying specific textures from reference bags to edge maps.

The authors frame this challenge as a feature disentanglement problem. Every image is composed of domain-independent features (the underlying structure, like the position of facial organs or the silhouette of a bag) and domain-specific features (the style, such as skin tone, hair color, or leather texture). The goal is to translate the structural features of a source image while explicitly injecting the style features from a user-provided "conditional" target image.

Methodology: The cd-GAN Framework

To achieve controllable translation without paired training data, the authors propose the conditional dual-GAN (cd-GAN). This encoder-decoder framework is built upon the principles of GANs and dual learning (cycle consistency).

Feature Disentanglement and Recombination

The architecture employs specialized encoders to split an input image into two distinct latent representations: domain-independent features ($x^i$) and domain-specific features ($x^s$). To translate an image from Domain A to Domain B, the decoder takes the structural features of the source ($x^i_A$) and combines them with the style features of the conditional target ($x^s_B$).

The cd-GAN architecture illustrating the generation and reconstruction phases with multi-level dual learning losses.

Multi-level Dual Learning Loss

The core innovation of cd-GAN is its reconstruction loss. While standard dual learning ensures that a full cycle (A → B → A) reconstructs the original image, cd-GAN enforces consistency at three distinct levels:

  1. Image level: The final reconstructed image must match the original input.
  2. Domain-independent level: The structural features extracted during the cycle must remain consistent.
  3. Domain-specific level: The style features extracted during the cycle must match the original style.

By forcing the network to reconstruct both the image and its separated latent components, the model naturally learns to isolate structure from style without requiring explicit human labels.

Experiments and Results

The model was evaluated on three unpaired datasets: CelebA (symmetric gender translation), Edges-to-Shoes, and Edges-to-Handbags (asymmetric translation from outlines to textures).

Key Insights

  • Disentanglement via Reconstruction: The three-part loss successfully forces the network to identify which features are structural (surviving the translation cycle) and which are stylistic (swapped during the conditional step).
  • Symmetric vs. Asymmetric Adaptability: The framework handles both tasks elegantly. In asymmetric tasks like Edges-to-Bags, where the source domain (edges) has no style, the architecture simply omits the unnecessary style reconstruction loss for that domain.
  • Latent Skip Connections: Ablation studies confirmed that directly passing extracted style features to the decoder is vital for maintaining accurate color schemes and high-fidelity textures.

Performance

Qualitatively, cd-GAN successfully transfers specific attributes like red lipstick or unique bag textures from conditional images to the output. In a user study involving 17 subjects, cd-GAN was overwhelmingly preferred for its ability to match conditional styles, receiving over 400 votes compared to fewer than 100 for competing baselines like DualGAN.

Conclusion

cd-GAN provides a robust solution for controllable image-to-image translation. By disentangling latent features through a multi-level reconstruction loss, it allows for the precise injection of style from reference images. While some artifacts remain in complex facial translations, the model demonstrates a significant step forward in making generative models more interactive and useful for specific design tasks. Future work will explore extending these conditional capabilities to video and text-to-image domains.

Summary updated

BibTeX
@inproceedings{lin2018conditional,
  author = {Jianxin Lin and Yingce Xia and Tao Qin and Zhibo Chen and Tie-Yan Liu},
  title = {{Conditional Image-to-Image Translation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00579},
}
Figure