Separating Content and Style for Unsupervised Image-to-Image Translation

Yunfei Liu, Haofei Wang, Yang Yue, Feng Lu

TL;DR

SCS-UIT is a novel unsupervised image-to-image translation framework that separates content and style within a single, unified encoder by leveraging their correlation to domain-invariant high-level vision tasks. This approach not only outperforms state-of-the-art methods in image quality and diversity but also unlocks the ability to interpret and interactively edit specific semantic regions directly within the latent feature space.

What Problem Does This Paper Address?

Unsupervised image-to-image translation (UIT) aims to map images from a source domain to a target domain without paired training data—for example, converting a photo of a cat into a human face while preserving the original pose and expression.

Existing state-of-the-art methods typically disentangle domain-invariant "content" (like geometry and layout) from domain-specific "style" (like texture and color) using separate, independent encoders. However, because these architectures learn the codes blindly, it is incredibly difficult to interpret what individual feature channels actually represent. This lack of interpretability makes it nearly impossible to precisely manipulate or edit specific semantic areas (such as changing a window to a cabinet or adjusting the thickness of a digit) during the translation process.

Methods

The authors introduce the Separating Content and Style for Unsupervised Image-to-Image Translation (SCS-UIT) framework. Instead of using separate networks, it extracts both attributes within a single encoder using three key components:

  1. Domain-Invariant High-Level Vision (DI-HV) Task: The framework utilizes a task common to both domains (e.g., digit classification for digits, facial parsing for faces, or scene segmentation for landscapes) to serve as an anchor for what defines "content."
  2. Squeeze-Selection-and-Excitation (SSE) Module: Inspired by SE-Networks, this module calculates a correlation score for each feature channel relative to the DI-HV task. Channels with high correlation scores are dynamically selected as the content code, while the remaining channels are treated as the style code.
  3. Normalized Adaptive Instance Normalization (NAIN): Standard AdaIN blocks often introduce undesirable "water-drop" artifacts due to extreme parameter biases. NAIN introduces a sigmoid-based normalization layer to constrain these intermediate variables, significantly improving generation quality.
Input Image ➔ [ Unified Encoder ] ➔ Feature Map ➔ [ SSE Module ] ➔ High Correlation ➔ Content Code
                                                                 ➔ Low Correlation  ➔ Style Code

Datasets

The framework was validated across several distinct translation tasks:

  • Cat $\leftrightarrow$ Human: 6,000 images total, using pseudo-semantic masks derived from facial landmarks as the DI-HV task.
  • Man $\leftrightarrow$ Woman: 10,000 images sampled from the CelebA dataset.
  • Colored-MNIST: An extension of the MNIST digit dataset featuring colored backgrounds and foregrounds.
  • CG $\leftrightarrow$ Real: A dataset translating between synthetic indoor images and real indoor scenes, utilizing semantic scene parsing via HRNet.
  • Cat $\leftrightarrow$ Dog & Summer $\leftrightarrow$ Winter: Used as additional benchmarks to demonstrate generalization.

Key Insights and Ideas

  • Unified Feature Space: Content and style do not require isolated architectural pathways. They can coexist in a single feature space and be separated dynamically based on how much a channel contributes to a domain-agnostic task.
  • "Free" Interpretability: Because content channels are explicitly tied to semantic tasks, individual channels naturally align with physical objects or regions (e.g., specific channels correspond directly to "windows" or "eyebrows").
  • Interactive Latent Editing: By calculating the Intersection over Union (IoU) between feature channels and semantic masks, users can pinpoint exactly which channels control which objects. This allows for direct feature-space manipulation, such as swapping objects or erasing unwanted generation artifacts.

Key Results

  • Quantitative Performance: SCS-UIT achieved the lowest average Fréchet Inception Distance (FID = 61.27, indicating highest visual quality) and the highest average Learned Perceptual Image Patch Similarity (LPIPS = 0.441, indicating highest diversity) compared to five leading baselines (DCLGAN, DSMAP, MUNIT, DRIT, and DMIT).
  • Ablation Studies: Removing the SSE module caused the FID score on the Cat $\rightarrow$ Human task to spike drastically from 72.53 to 121.31, proving that correlation-based channel selection is critical to the model's success.
  • Successful Semantic Manipulation: The authors successfully demonstrated interactive editing on the CG $\leftrightarrow$ Real dataset—such as turning windows into cabinets or adding windows to blank walls—simply by modifying the discovered content units.

Limitations and Future Work

The primary limitation of SCS-UIT is its dependency on a reliable Domain-Invariant High-Level Vision (DI-HV) task. The framework requires either ground-truth semantic labels or high-quality pseudo-labels generated by an external model (like HRNet or a landmark detector). If an accurate task model or dataset annotations are unavailable for a specific domain pair, the feature separation mechanism cannot be effectively trained.

The authors suggest that exploring completely self-supervised or unsupervised methods to define these anchor tasks is a promising direction for future work.

Summary updated

BibTeX
@misc{liu2021separating,
  author = {Yunfei Liu and Haofei Wang and Yang Yue and Feng Lu},
  title = {{Separating Content and Style for Unsupervised Image-to-Image Translation}},
  year = {2021},
  eprint = {2110.14404},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.14404},
}
Figure