NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Image-to-image translation for cross-domain disentanglement

Abel Gonzalez-Garcia, Joost van de Weijer, Yoshua Bengio

TL;DR

This paper introduces cross-domain disentanglement, a method to split image representations into three distinct parts: a "shared" component common to both domains and "exclusive" components unique to each. By using a novel cross-domain autoencoder and gradient reversal layers, the model achieves high-quality, multi-modal image translation and enables tasks like cross-domain retrieval and visual analogies without requiring explicit labels.

What Problem Does This Paper Address?

Image-to-image (I2I) translation—mapping an image from one domain (e.g., a sketch) to another (e.g., a photo)—has seen massive success with GANs. However, two major hurdles remain:

  1. Lack of Control: Most models learn a "black box" representation where style and content are tangled together.
  2. Deterministic Outputs: Many early models (like pix2pix) produce only one output for a given input, failing to capture the inherent diversity of the target domain (e.g., one sketch could correspond to many different colored shoes).

While "disentanglement" (separating factors like lighting from shape) has been studied within a single domain, this paper tackles cross-domain disentanglement. The goal is to isolate what is truly shared between two domains (the "concept") from what is specific to each (the "style" or "attribute").

Conceptual overview of cross-domain disentanglement showing shared and exclusive components across two domains.

Methods

The authors propose a bidirectional architecture based on an encoder-decoder framework. The "secret sauce" lies in how they structure the latent space $R$:

  • The Split: $R$ is partitioned into a Shared part ($S$) and an Exclusive part ($E$). For a pair of domains $\mathcal{X}$ and $\mathcal{Y}$, the model learns $S$ (common to both), $E^\mathcal{X}$ (unique to $\mathcal{X}$), and $E^\mathcal{Y}$ (unique to $\mathcal{Y}$).
  • Cross-Domain Autoencoders: This is the core novelty. To force the shared parts to be truly interchangeable, the model tries to reconstruct an image from domain $\mathcal{X}$ using its own exclusive features ($E^\mathcal{X}$) combined with the shared features ($S^\mathcal{Y}$) extracted from its counterpart in domain $\mathcal{Y}$.
  • Gradient Reversal Layer (GRL): To ensure the exclusive part $E^\mathcal{X}$ doesn't "leak" information about domain $\mathcal{Y}$, they use a GRL. It acts as an adversarial filter, preventing the encoder from hiding domain-shared info in the exclusive branch.
  • Loss Functions: The model uses a combination of WGAN-GP for realistic generation, L1 reconstruction losses, and a latent reconstruction loss to prevent "mode collapse" (ensuring different random noises lead to different output images).
The proposed architecture featuring image translators and cross-domain autoencoders with gradient reversal layers.

Datasets

The researchers evaluated their model on a mix of synthetic and realistic datasets:

  • MNIST Variations: Created specifically for this task—MNIST-CD (colored digits on black backgrounds) and MNIST-CB (white digits on colored backgrounds).
  • 3D CAD Models: 3D Cars and 3D Chairs rendered from multiple viewpoints. This tests the model's ability to handle significant structural changes (e.g., frontal vs. profile views).
  • Realistic I2I Datasets: Facades (architectural labels $\leftrightarrow$ photos) and Maps (satellite imagery $\leftrightarrow$ map tiles).

Key Insights and Ideas

  • Alignment through Swapping: The "aha moment" is that you don't need labels to align domains if you have paired data. By forcing the decoder to use the other domain's shared representation to reconstruct the original image, the model naturally learns that $S^\mathcal{X}$ and $S^\mathcal{Y}$ must represent the same underlying concept.
  • Beyond Spatial Correspondence: Unlike many I2I methods that rely on skip-connections (which force the input and output to look spatially similar), this model removes them. This allows it to translate between domains with massive geometric differences, like a car seen from the front versus the side.
  • Visual Analogies: Because the representation is disentangled, you can perform "representation arithmetic." You can take the "digit shape" from Image A and the "color style" from Image B to create a brand new Image C.

Key Results

  • Multi-modal Generation: The model successfully generates diverse outputs (e.g., the same car model in various colors or the same building label with different textures).
  • Superior Retrieval: In cross-domain retrieval (finding the satellite image that matches a specific map), the model significantly outperformed BicycleGAN. On the Facades dataset, it achieved 97% accuracy (Recall@1) compared to BicycleGAN's 45%.
  • Quantitative Quality: Using the LPIPS metric (which measures perceptual similarity), the model consistently beat baselines on the 3D car and chair datasets, proving it generates more realistic and diverse samples when structural changes are involved.

Limitations and Future Work

  • Paired Data Requirement: The current formulation relies on paired images (e.g., a photo and its corresponding map). Extending this to unpaired data remains a significant challenge for future research.
  • GRL Sensitivity: The authors noted that while the Gradient Reversal Layer is helpful for "purifying" exclusive features, its impact varies depending on the complexity of the dataset and the size of the latent vector.
  • Complexity: The training involves balancing multiple loss functions and bidirectional paths, which can be computationally intensive and sensitive to hyperparameter tuning.

Summary updated

BibTeX
@inproceedings{gonzalezgarcia2018image,
  author = {Abel Gonzalez-Garcia and Joost van de Weijer and Yoshua Bengio},
  title = {{Image-to-image translation for cross-domain disentanglement}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=B1ZBlvbd-H},
}
Figure