DRIT++: Diverse Image-to-Image Translation via Disentangled Representations

Hsin-Ying Lee, Hung-Yu Tseng, Qi Mao, Jia-Bin Huang, Yu-Ding Lu, Maneesh Singh, Ming-Hsuan Yang · DOI

TL;DR

This paper introduces DRIT++, a novel approach for image-to-image translation that tackles the challenges of unpaired training data and generating diverse outputs. By disentangling image representations into a shared "content" space and domain-specific "attribute" spaces, DRIT++ can create multiple realistic translations from a single input, even without perfectly matched training examples.

What Problem Does This Paper Address?

Image-to-image (I2I) translation, the task of converting an image from one domain to another (e.g., turning a summer scene into a winter one), is a fundamental problem in computer vision with applications ranging from style transfer to image editing. However, two major hurdles have limited its effectiveness:

  1. Lack of Aligned Training Data: Many real-world I2I tasks don't have perfectly paired datasets. For instance, finding identical scenes captured on a sunny day and a snowy day is nearly impossible. Existing methods often rely on such paired data.
  2. Multimodality of Outputs: A single input image can often be translated into multiple plausible outputs. For example, a photograph of a cat could be translated into various dog breeds, not just one. Previous methods struggled to capture this diversity, often producing only a single, sometimes repetitive, output.

DRIT++ aims to overcome these limitations by enabling diverse and realistic I2I translation using unpaired data.

Methods

DRIT++ builds upon the idea of disentangled representations, a technique that separates different underlying factors of variation in data. The core of DRIT++ lies in its novel architecture and training strategy:

  • Disentangled Representation: Images are encoded into two distinct latent spaces:
  • Domain-Invariant Content Space (C): This space captures the shared, fundamental information across different domains (e.g., the structure of a landscape, the pose of an animal).
  • Domain-Specific Attribute Space (A): This space captures the unique characteristics of each domain (e.g., the season, the style of art, the breed of a dog).
  • Content Adversarial Loss: To ensure the content space truly captures domain-invariant features, a content discriminator is used. This discriminator tries to distinguish between content representations from different domains. By training the encoders to fool this discriminator, the content representations become domain-agnostic.
  • Cross-Cycle Consistency Loss: To handle unpaired data, DRIT++ introduces a novel cross-cycle consistency loss. This loss ensures that if an image is translated from domain X to domain Y and then back to domain X, the reconstructed image is similar to the original. This is achieved by swapping attribute vectors during the translation process, forcing the model to learn a robust mapping.
  • Mode Seeking Regularization: To further enhance the diversity of generated outputs and combat "mode collapse" (where the generator produces limited variations), a mode seeking regularization technique is employed. This encourages the generator to produce distinct outputs for different latent attribute vectors.
  • Multi-Domain Extension: The framework is extended to handle translation among multiple domains simultaneously, using a single generator and attribute encoders for all domains, guided by domain codes.

Datasets

The paper evaluates DRIT++ on several datasets, including:

  • Yosemite: Used for summer-to-winter scene translation.
  • Pets (Cat and Dog): Cropped from Google Images for cat-to-dog translation.
  • Artworks (Monet): Used for photo-to-Monet style translation.
  • Photo-to-Portrait: Cropped from subsets of the WikiArt dataset and CelebA dataset.
  • GTA5 → Cityscape: Used for high-resolution translation tasks.

Key Insights and Ideas

  • Disentanglement is Key for Diversity: The core insight is that by separating content from domain-specific attributes, the model gains the flexibility to combine content with various attributes, leading to diverse outputs.
  • Content Discriminator for Robustness: The content discriminator is crucial for ensuring that the "content" truly represents shared information, preventing domain-specific cues from leaking into it and thus improving translation quality.
  • Cross-Cycle Consistency for Unpaired Data: The proposed cross-cycle consistency loss, by cleverly swapping attribute vectors, provides a powerful mechanism to train I2I models without requiring perfectly aligned pairs.
  • Generalization to Multi-Domain: The framework's ability to extend to multi-domain translation with a single generator is a significant step towards more flexible and unified I2I models.

Key Results

  • Qualitative: DRIT++ generates diverse and realistic images across various tasks, including style transfer (photo to Monet), seasonal changes (winter to summer), and domain adaptation (photo to portrait, cat to dog). The generated images exhibit fewer artifacts compared to baseline methods.
  • Quantitative:
    • Realism: DRIT++ achieves competitive or superior Fréchet Inception Distance (FID) scores compared to state-of-the-art methods on several datasets, indicating high realism.
  • Diversity: The model demonstrates better diversity as measured by LPIPS, JSD, and NDB metrics, especially when compared to methods that struggle with multimodality. For instance, on the cat-to-dog translation, DRIT++ achieves a significantly lower FID (17.253) than CycleGAN (54.008).
  • User Study: A user study indicated that subjects preferred DRIT++'s synthesized images for realism.

Limitations and Future Work

  • Attribute Space Exploitation: The paper notes that with limited training data, the attribute space might not be fully exploited, potentially leading to issues when sampled attribute vectors fall into under-sampled regions.
  • Domain Characteristic Differences: The model can struggle when domain characteristics differ significantly, as seen in a failure case for human figure translation to a Monet style, likely due to a lack of relevant training data.
  • High-Resolution Challenges: While addressed with a multi-scale architecture, high-resolution translation still requires significant memory and computational resources.

Future work could focus on more effectively exploiting the attribute space, improving robustness to vastly different domain characteristics, and further optimizing for high-resolution translation.

Summary updated

BibTeX
@article{lee2020drit,
  author = {Hsin-Ying Lee and Hung-Yu Tseng and Qi Mao and Jia-Bin Huang and Yu-Ding Lu and Maneesh Singh and Ming-Hsuan Yang},
  title = {{DRIT++: Diverse Image-to-Image Translation via Disentangled Representations}},
  journal = {Int. J. Comput. Vis.},
  year = {2020},
  doi = {10.1007/s11263-019-01284-z},
}
Figure