# Multimodal Unsupervised Image-to-Image Translation

MUNIT splits images into content and style codes to produce diverse translations

Xun Huang, Ming-Yu Liu, Serge Belongie, Jan Kautz · arXiv · 2018-4-12

- **Problem** Unsupervised translators map each source image to one output, so they miss the many plausible target-domain looks a single input can have. Adding noise to the generator does not fix this in practice, because the network learns to ignore it.
- **Method** MUNIT pairs an input's content code with a random target-domain style code.
- **Results** On edges to shoes, MUNIT reaches an LPIPS diversity of 0.109, against 0.011 for UNIT and 0.010 for CycleGAN, without paired training data.

## Why one output per input falls short

Translation between two domains is ill-posed when no paired examples are available, so the setting needs extra constraints to pick a mapping. Many existing unsupervised methods model the cross-domain mapping as either deterministic or unimodal, which means one input yields one output. Such a model cannot cover the full set of outputs that a single input could plausibly produce, which matters for cases like a winter scene that could take on many summer appearances through weather, timing and lighting.

Injecting noise into the generator does not solve this in practice, because the network tends to learn to ignore the noise. Methods that generate several outputs per input either yield only a discrete set of outputs or rely on paired supervision, and the continuous multimodal model BicycleGAN needs paired training data.

## Splitting the latent space into shared content and domain-specific style

The core idea is to represent each image with two codes: a content code that is domain-invariant and a style code that holds domain-specific properties. Translation keeps the content code of the input and replaces its style with a random style code from the target domain, so the content code carries what should survive translation and the style code carries the variation the input does not determine.

The model assumes that the content part of the latent space is shared by both domains while the style part is specific to each domain. This is a weaker assumption than the fully shared latent space of UNIT, and the authors argue it fits cross-domain mappings that are many-to-many better.

The encoders and decoders are deterministic, yet the conditional distribution of translated images is continuous, because the output depends on the sampled style code. In this view the content is the underlying spatial structure and the style is how that structure is rendered, and the two domains share the same content distribution while their style distributions differ.

## How one translation is computed

To translate an image from the first domain, its content code is extracted with the content encoder, a style code is drawn from a Gaussian prior, and the second domain's decoder combines the two into the output image. The output is written as \\(x\_{1\\to 2}=G\_2(c\_1,s\_2)\\), with \\(c\_1=E\_{c\_1}(x\_1)\\) and \\(s\_2\\sim N(0,I)\\). Although the prior is unimodal, the output distribution can be multimodal because the decoder is nonlinear.

For example-guided translation, the style code is instead extracted from a reference image in the target domain, so the output keeps the input's content and takes the reference's style. The content encoder uses strided convolutions and residual blocks, with Instance Normalization after each convolution. The style encoder uses strided convolutions, global average pooling and a fully connected layer, and omits Instance Normalization, because that normalization removes the feature mean and variance that carry style information.

The decoder reconstructs or generates an image from a content code and a style code: residual blocks process the content, and upsampling and convolutional layers produce the image. Its residual blocks use Adaptive Instance Normalization, whose scale and shift are generated by a multilayer perceptron from the style code, as \\(\\mathrm{AdaIN}(z,\\gamma,\\beta)=\\gamma\\frac{z-\\mu(z)}{\\sigma(z)}+\\beta\\), where \\(\\mu\\) and \\(\\sigma\\) are channel-wise statistics.

These affine parameters come from a network trained with the model, not from statistics of a pretrained network.

## Reconstruction and adversarial objectives

The image reconstruction term encodes a sampled image and decodes it again, and the L1 norm of the difference is minimized, \\(L^{x\_1}\_{recon}=\\mathbb{E}\_{x\_1}\[\\\|G\_1(E\_{c\_1}(x\_1),E\_{s\_1}(x\_1))-x\_1\\\|\_1\]\\). The L1 choice is made because it encourages sharp output images.

Latent reconstruction runs the other way: a content code and a style code sampled at translation time are decoded into an image and then re-encoded, and each code should come back unchanged. The style reconstruction term encourages different style codes to produce different outputs, and the content reconstruction term keeps the semantic content of the input in the translated image.

Adversarial training uses a discriminator for each domain to separate translated images from real images in that domain, and the generator is trained to fool it. The full objective is a min-max over the encoders, decoders and discriminators, where the adversarial terms are combined with weighted image, content and style reconstruction terms through weights \\(\\lambda\_x\\), \\(\\lambda\_c\\) and \\(\\lambda\_s\\).

## What the propositions establish at optimality

Proposition 1 states that the total loss is minimized when the encoder-decoder pairs are inverses of each other, \\(E\_1^\*=(G\_1^\*)^{-1}\\) and \\(E\_2^\*=(G\_2^\*)^{-1}\\), and the translated distributions match the data distributions. The style codes therefore match their Gaussian priors, and the content distribution at generation time equals the encoded content distribution of the other domain, which the authors read as domain-invariant content.

No term in the loss matches the latent distributions directly, so this matching is an implicit consequence of the other terms.

Proposition 3 states that at optimality the joint distribution of an image and its translation matches the joint distribution of a translation and the other image, \\(p(x\_1,x\_{1\\to2})=p(x\_{2\\to1},x\_2)\\). Joint distribution matching is usually obtained from cycle consistency, which the authors argue is too strong for multimodal translation, since a cycle-consistent model would collapse to a deterministic function.

Proposition 4 defines a deterministic mapping \\(F\_{1\\to2}\\) between joint image-style spaces, with points \\(h\_1=(x\_1,s\_2)\\) and \\(h\_2=(x\_2,s\_1)\\), and states that at optimality \\(F\_{1\\to2}\\) is the inverse of \\(F\_{2\\to1}\\). This is a weaker, style-augmented form of cycle consistency: translating to the target domain and back with the original style recovers the input, and the proposed reconstruction loss implies it.

## Domain-invariant perceptual loss

A perceptual loss compares VGG features of the output and a reference image, which works with paired data but has no target-domain reference in the unsupervised setting. The authors use the input image as the reference, after making the VGG features less domain-specific.

Before the distance is computed, Instance Normalization without affine parameters is applied to the VGG features, which removes each feature map's mean and variance, since these carry much domain-specific information. The authors report, in an appendix experiment, that this makes the feature distance more domain-invariant. The loss is used only on the high-resolution datasets with at least 512 by 512 pixels, where the authors found it speeds up training.

## How diversity and quality are measured

Human preference is collected on Amazon Mechanical Turk, where workers choose which of two translations looks more accurate, given an input and two outputs from different methods. Each comparison uses 500 questions, and each question is answered by 5 workers.

Diversity is the average LPIPS distance between randomly sampled outputs for the same input, using 100 input images with 19 output pairs per input, which gives 1900 pairs in total. The features come from an ImageNet-pretrained AlexNet.

The Conditional Inception Score applies a mode classifier to outputs of one input image, and rewards outputs that cover several modes while each output belongs to one specific mode, \\(\\mathrm{CIS}=\\mathbb{E}\_{x\_1}\[\\mathbb{E}\_{x\_{1\\to2}}\[KL(p(y\_2\|x\_{1\\to2})\\\|p(y\_2\|x\_1))\]\]\\). The unconditional Inception Score uses the overall class probability \\(p(y\_2)\\) in place of \\(p(y\_2\|x\_1)\\), so it measures diversity over all outputs, while the Conditional Inception Score measures diversity within the outputs of one input.

The classifier is an Inception-v3 fine-tuned on each dataset, and both scores use 100 input images with 100 samples per input. A model that always outputs one image per input gets a zero Conditional Inception Score, although it may still score high on the unconditional Inception Score.

## Edges to shoes and handbags comparison

UNIT, CycleGAN and CycleGAN with noise are trained without pair information, and BicycleGAN is included as a supervised reference. In the quality column each value is the percentage of comparisons in which a method is preferred over MUNIT, so MUNIT's own 50.0% is a reference point rather than a measured score.

On edges to shoes, MUNIT reaches an LPIPS diversity of 0.109, against 0.011 for UNIT and 0.010 for CycleGAN, while BicycleGAN reaches 0.104 with 56.7% quality. On edges to handbags, MUNIT's diversity is 0.175, against 0.023 for UNIT and 0.012 for CycleGAN. Real data has diversity 0.293 on shoes and 0.371 on handbags, which places MUNIT's diversity below real data but well above the unsupervised baselines.

Removing the image reconstruction term drops quality to 6.0% on shoes and 29.0% on handbags, while its diversity rises to 0.213 on shoes. Removing the content reconstruction term gives 20.7% quality and 0.172 diversity on shoes, and 9.3% quality on handbags. Removing the style reconstruction term gives 28.6% quality and 0.070 diversity on shoes, and the qualitative results show partial mode collapse, with several outputs nearly identical.

## Animal image translation results

The evaluation covers six bidirectional translation tasks, and the table reports both scores for each task and their average.

Averaged over the six tasks, MUNIT reaches a Conditional Inception Score of 1.039, against 0.076 for CycleGAN, 0.068 for CycleGAN with noise and 0.115 for UNIT. Its average Inception Score is 1.050, against 0.813, 0.762 and 0.826 for the same three baselines. The per-task Conditional Inception Score is highest for house cats to dogs at 1.231, and the baselines have low Conditional Inception Scores on every task.

The authors attribute the low baseline Conditional Inception Scores to a failure to produce multimodal outputs from a given input. They also treat the higher Inception Score as evidence that MUNIT's images are of higher quality, since the Inception Score has been reported to track image quality. Qualitatively, one input yields outputs across several fine-grained target categories, and the pose of the animal is largely kept while its shape changes substantially.

## Street scene and Yosemite examples

From a Cityscape image, MUNIT generates SYNTHIA images with varied renderings such as rainy, snowy and sunset conditions, and from a SYNTHIA image it generates Cityscape images with different lighting, shadow and road textures. Summer and winter translations in both directions show different amounts of snow and of leaves, respectively.

The Yosemite dataset has 3253 summer photos and 2385 winter photos, downsampled so that the shortest side is 1024 pixels. Summer-to-winter and winter-to-summer examples are shown at this resolution, and the translated outputs change lighting. These street scene and Yosemite results are example images, and no table metric is reported for them in the text.

## Example-guided translation compared with style transfer

Given a content image and a reference style image, the output keeps the content of the first and the style of the second, and the authors show examples that recombine the content of one image with the style of another. The comparison covers Gatys et al., Chen et al., AdaIN and WCT, and it is a visual comparison. The authors judge MUNIT's outputs as more faithful and realistic, and attribute this to MUNIT learning the target-domain image distribution through GANs.

## Limitations

The quantitative results cover edges to shoes and handbags, where the reference is MUNIT's own output, and the animal dataset, where scores are averaged over six tasks. Street scene and Yosemite results are qualitative, and the main text does not report a numerical score for them.

The Conditional Inception Score needs ground-truth mode labels to train its classifier, while the translation model itself is trained without mode information. BicycleGAN is trained with paired supervision, so it is an upper reference rather than an unsupervised competitor.

Explicit enforcement of style-augmented cycle consistency is written as a possible loss, but the main text reports no experiment that trains with it. The domain-invariant perceptual loss is used only on the high-resolution datasets, so its effect on the smaller datasets is not part of the reported results.

## Paper info

- **Authors**: Xun Huang, Ming-Yu Liu, Serge Belongie, Jan Kautz
- **Venue**: arXiv · Preprint
- **First published**: 2018-4-12
- **Added**: 2026-11-12
- **Updated**: 2018-8-14
- **Version**: v2
- **arXiv**: 1804.04732
- **Category**: cs.CV · cs.LG · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1804.04732v2) · [PDF ↗](https://arxiv.org/pdf/1804.04732v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Xun Huang, Ming-Yu Liu, Serge Belongie, Jan Kautz (2018). Multimodal Unsupervised Image-to-Image Translation. arXiv:1804.04732v2. https://arxiv.org/abs/1804.04732v2

**BibTeX**

```
@misc{huang2018multimodal,
  title = {{Multimodal Unsupervised Image-to-Image Translation}},
  author = {Xun Huang and Ming-Yu Liu and Serge Belongie and Jan Kautz},
  year = {2018},
  eprint = {1804.04732},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.04732v2}
}
```

## Other paper commentary

- [ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks](https://refivu.com/en/papers/b77fbb3e-836f-44e3-bbac-9ff51edf4034-vilbert-pretraining-task-agnostic-visiolinguistic.md)
- [Attention Mechanisms in Computer Vision: A Survey](https://refivu.com/en/papers/d03d817b-607b-4760-8cb5-139501ae5964-attention-mechanisms-in-computer-vision-a-survey.md)
- [Frustum PointNets for 3D Object Detection from RGB-D Data](https://refivu.com/en/papers/3af69443-6a48-4c1c-81f3-e2c87f8df280-frustum-pointnets-for-3d-object-detection-from-rgb.md)
- [LLaVA-OneVision: Easy Visual Task Transfer](https://refivu.com/en/papers/65c8f703-40f9-4b42-9b35-ea00d5929366-llava-onevision-easy-visual-task-transfer.md)
- [Zero-Reference Deep Curve Estimation for Low-Light Image Enhancement](https://refivu.com/en/papers/674a173b-b03f-4f14-89ec-10bec15a7629-zero-reference-deep-curve-estimation-for-low-light.md)
- [BEiT: BERT Pre-Training of Image Transformers](https://refivu.com/en/papers/de9cda9f-90f4-48cc-9bb3-e6f03f9683c7-beit-bert-pre-training-of-image-transformers.md)
- [Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery](https://refivu.com/en/papers/62959e97-b421-4e00-897e-8709c817c9fb-unsupervised-anomaly-detection-with-generative-adversarial.md)
- [A Survey of Motion Planning and Control Techniques for Self-driving Urban Vehicles](https://refivu.com/en/papers/24bd6bbc-d317-4d2c-a94f-ea5736e3e9a2-a-survey-of-motion-planning-and-control-techniques.md)
- [Fine-Tuning Language Models from Human Preferences](https://refivu.com/en/papers/34e4ce82-039f-4763-a09e-5d0786987b71-fine-tuning-language-models-from-human-preferences.md)
- [RT-1: Robotics Transformer for Real-World Control at Scale](https://refivu.com/en/papers/d447dd76-427e-4b3d-bfd8-faa140c2da78-rt-1-robotics-transformer-for-real-world-control.md)
- [Paying More Attention to Attention: Improving the Performance of Convolutional Neural Networks via Attention Transfer](https://refivu.com/en/papers/9fd3c7c3-a01f-4f1c-84a7-72570c46bdd4-paying-more-attention-to-attention-improving-the-performance.md)
- [Channel Pruning for Accelerating Very Deep Neural Networks](https://refivu.com/en/papers/e9bb1323-d15c-464e-b220-b00a94be3b6d-channel-pruning-for-accelerating-very-deep-neural-networks.md)

## Terms in this paper

- [inception score](https://refivu.com/en/terms/25dbfbd4fd96-inception-score)
- [CycleGAN](https://refivu.com/en/terms/aa174ef15835-cyclegan)
- [Instance Normalization](https://refivu.com/en/terms/a80f303a09b9-instance-normalization)
- [image-to-image translation](https://refivu.com/en/terms/7343a28bca2c-image-to-image-translation)
- [style transfer](https://refivu.com/en/terms/00f82d672737-style-transfer)
- [Synthia](https://refivu.com/en/terms/a10cbd630fcc-synthia)
- [cycle consistency](https://refivu.com/en/terms/f7abc9c127af-cycle-consistency)
- [LSGAN](https://refivu.com/en/terms/2e53eb9af9ae-lsgan)
- [multi-scale discriminators](https://refivu.com/en/terms/1d293d11b1da-multi-scale-discriminators)
- [style encoder](https://refivu.com/en/terms/dc12337ccb3d-style-encoder)
- [UNIT](https://refivu.com/en/terms/e752e0fe9684-unit)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/f66e468d-e3a2-4e1b-8490-2978cf3d55ff-multimodal-unsupervised-image-to-image-translation)
