# Unsupervised Image-to-Image Translation Networks

Unsupervised translation networks learn image mappings from unpaired image collections

Liu, Ming-Yu, Breuel, Thomas, Kautz, Jan · arXiv · 2017-3-2

- **Problem** Unpaired image sets only fix two marginal distributions, so infinitely many joint distributions fit and translation is underdetermined. Without extra assumptions, nothing identifies which image pairs correspond.
- **Method** UNIT adds a shared-latent space assumption to Coupled GANs. It ties the high-level encoder layers and the first generator layers across domains, and each domain is trained as a VAE-GAN.
- **Results** On the map dataset, the full model reaches 0.600 average pixel accuracy, above 0.568 without weight sharing. On SVHN to MNIST adaptation it reaches 0.9053 accuracy.

## Why unpaired samples leave the mapping underdetermined

Supervised translation learns from pairs of corresponding images, whereas the unsupervised setting provides only two independent image collections, one per domain. Each collection gives a marginal distribution, but translation requires the joint distribution over corresponding pairs, which the unpaired data never shows directly. Infinitely many joint distributions are compatible with the same two marginals, so the marginal samples alone carry no information about which pairing is correct.

To make the problem solvable, the paper adds a structural assumption: a corresponding pair of images can be mapped to one shared latent code, from which both images can be recovered. Under this assumption the translation from the first domain to the second is a composition of an encoder and a generator, \\(F^\*\_{1\\to2}(x\_1)=G^\*\_2(E^\*\_1(x\_1))\\), and the reverse direction is defined analogously.

The same assumption implies cycle consistency, so translating an image and translating it back should reproduce the input, although the reverse implication does not hold.

## Two VAE-GANs tied by weight sharing

The UNIT framework has six subnetworks: an encoder and a generator for each domain, plus one adversarial discriminator per domain. The encoder and generator of one domain form a VAE for that domain, and the encoder outputs a mean vector that defines a Gaussian posterior with identity covariance over the latent code. Sampling is rewritten with the reparameterization trick, so the noise is an auxiliary Gaussian variable added to the encoder mean and gradients can pass through the encoder.

The shared-latent assumption is turned into a weight-sharing constraint: the last high-level layers of the two encoders are tied, and the first layers of the two generators are tied. Weight sharing alone does not make corresponding images map to the same code, because no paired data exists to enforce it, and the same code could decode into unrelated images in the two domains.

Adversarial training is meant to close that gap, so that a pair of corresponding images is mapped to a common code and a code decodes into a corresponding pair.

Two image translation streams run in opposite directions, one from \\(X\_1\\) to \\(X\_2\\) and one from \\(X\_2\\) to \\(X\_1\\), and both are trained jointly with the reconstruction streams of the two VAEs. Each discriminator is trained on real images of its domain against generated images, but only the images produced through the translation stream receive adversarial training, because the reconstruction stream is already supervised.

The cycle-consistency term adds a third stream, the cycle-reconstruction stream, which is used as an additional regularizer on the ill-posed problem.

## Objective and alternating updates

The overall problem is a min-max problem: the encoders and generators minimize the VAE, GAN and cycle-consistency losses for both directions, while the discriminators maximize their GAN terms. Each VAE loss has a KL term that pulls the posterior toward the zero-mean Gaussian prior and a reconstruction term, written as \\(\\mathcal{L}\_{VAE\_1}=\\lambda\_1 KL(q\_1(z\_1\|x\_1)\|\|p\_\\eta(z))-\\lambda\_2 E\_{z\_1\\sim q\_1(z\_1\|x\_1)}\[\\log p\_{G\_1}(x\_1\|z\_1)\]\\), with the negative log-likelihood carrying the minus sign.

The generators are modeled with Laplacian likelihoods, so minimizing the negative log-likelihood reduces to minimizing an absolute distance between the image and its reconstruction.

The GAN terms are conditional adversarial objectives: the discriminator for one domain is scored on real images against images produced by the generator from codes encoded in the other domain, weighted by \\(\\lambda\_0\\). The cycle-consistency losses have the same VAE-like form, with two KL terms and a reconstruction term that asks a twice-translated image to match its input.

Training is organized as a two-player zero-sum game in which the encoders and generators form one team and the discriminators form the other. Each iteration first performs a gradient ascent step on the discriminators with the encoders and generators fixed, and then a gradient descent step on the encoders and generators with the discriminators fixed.

The authors trained with ADAM at a learning rate of 0.0001 and momentum values of 0.5 and 0.999, with each mini-batch holding one image from each domain. The default weights were \\(\\lambda\_0=10\\), \\(\\lambda\_1=\\lambda\_3=0.1\\) and \\(\\lambda\_2=\\lambda\_4=100\\), and the sensitivity study in the experiments is what supports these values. After training, translation uses the trained encoder of one domain followed by the generator of the other, \\(F\_{1\\to2}(x\_1)=G\_2(z\_1\\sim q\_1(z\_1\|x\_1))\\).

## Map dataset: a controlled comparison with pixel accuracy

The map dataset pairs satellite images with maps, which allows quantitative scoring even though training is unsupervised. A translated pixel counted as correct when its color was within 16 of the ground-truth color, and the score is the average pixel accuracy over test images. Only the satellite-to-map direction was scored, because the map-to-satellite direction is multimodal and no suitable metric was available.

The authors varied the number of shared layers from 1 to 4 and paired each setting with discriminators of different depths. The shallowest discriminator gave the worst accuracy, and the number of shared layers had little effect, which the authors link to the residual blocks. The main experiments use one shared layer and five-layer discriminators.

Changing the weight on the negative log-likelihood terms made a larger weight give better accuracy, and KL weights of 0.1 gave consistently good results, which set the defaults.

Removing the weight-sharing constraint reduces the framework to a CycleGAN-style model, and it reached an average pixel accuracy of 0.569. Keeping weight sharing but removing cycle consistency gave 0.568, and the full model reached 0.600. The ablation averages five trials with different initializations, and the authors read the gain as evidence that more constraints help this ill-posed problem.

Cycle consistency and weight sharing therefore give comparable accuracy alone, and the combination gives the best result on this dataset.

## Street, animal and face translations

Street scene translation covers sunny to rainy, day to night, and summery to snowy, with both directions tested, and images are processed at 640×480. The training sets contain 86165 sunny or day images, 28915 rainy images, 36280 night images, 6838 summery images and 6044 snowy images. Translations that require adding detail, such as night to day, were usually harder than their reverse.

For synthetic and real street scenes, the SYNTHIA and Cityscapes pairing produced cartoon-like real images in one direction, and synthetic-to-real results were better for buildings, sky, road and cars than for humans. Dog breed translation uses head regions of five breeds from ImageNet, and cat species translation uses head regions of seven species, with head regions extracted by template matching.

Face attribute translation partitions CelebA by the presence or absence of an attribute, and the qualitative examples add blond hair, eyeglasses, goatee or smiling to input faces.

## Domain adaptation accuracy

For adaptation, the high-level layers of the two discriminators are tied, and a classifier trained on labeled source images is used to label the target domain. A feature-matching L1 term between the highest discriminator layers encourages both domains to be interpreted consistently.

On SVHN to MNIST, the framework reached 0.9053 accuracy, above the 0.8488 reported for the domain transformation network. On MNIST to USPS it reached 0.9597 and on USPS to MNIST it reached 0.9358, compared with 0.9565 and 0.9315 for Coupled GAN in the same table. The authors also report better MNIST and SVHN performance than Coupled GAN on the digit task, and they found that the cycle-consistency term was not necessary for this task.

## Limitations

The authors state two limitations: the translation model is unimodal because of the Gaussian latent space assumption, and training may be unstable because of the saddle point search. The map-to-satellite direction was not evaluated quantitatively, because that translation is multimodal and no suitable metric was constructed. The street, dog, cat and face results are shown as visual examples, and the paper gives no numeric score for them.

The quantitative evidence covers one paired-evaluation dataset for translation and three digit adaptation pairs, so the scope of the accuracy claims is limited to these settings.

## Paper info

- **Authors**: Liu, Ming-Yu, Breuel, Thomas, Kautz, Jan
- **Venue**: arXiv · Preprint
- **First published**: 2017-3-2
- **Added**: 2026-11-12
- **Updated**: 2018-7-23
- **Version**: v6
- **arXiv**: 1703.00848
- **Category**: cs.CV · cs.AI
- **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/1703.00848v6) · [PDF ↗](https://arxiv.org/pdf/1703.00848v6)

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

Liu, Ming-Yu, Breuel, Thomas, Kautz, Jan (2017). Unsupervised Image-to-Image Translation Networks. arXiv:1703.00848v6. https://arxiv.org/abs/1703.00848v6

**BibTeX**

```
@misc{mingyu2017unsupervised,
  title = {{Unsupervised Image-to-Image Translation Networks}},
  author = {Liu, Ming-Yu and Breuel, Thomas and Kautz, Jan},
  year = {2017},
  eprint = {1703.00848},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.00848v6}
}
```

## Other paper commentary

- [Methods of Hierarchical Clustering](https://refivu.com/en/papers/b67289cf-e579-4f78-a7ff-bdea1acaa376-methods-of-hierarchical-clustering.md)
- [TSM: Temporal Shift Module for Efficient Video Understanding](https://refivu.com/en/papers/e7e3764b-d00b-4555-9a23-62f113a3fdfe-tsm-temporal-shift-module-for-efficient-video-understanding.md)
- [Learning Deep CNN Denoiser Prior for Image Restoration](https://refivu.com/en/papers/e6af5c0e-57ae-4b96-acf1-3a40058beb53-learning-deep-cnn-denoiser-prior-for-image-restoration.md)
- [Self-critical Sequence Training for Image Captioning](https://refivu.com/en/papers/04b028af-36f0-4ffd-b470-072e66a024c9-self-critical-sequence-training-for-image-captioning.md)
- [Bilinear CNNs for Fine-grained Visual Recognition](https://refivu.com/en/papers/6ca2f2f1-4711-4b74-898b-dcb3662ffa1f-bilinear-cnns-for-fine-grained-visual-recognition.md)
- [Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision](https://refivu.com/en/papers/fe9f3871-e0e0-4933-a807-febf612d4db8-scaling-up-visual-and-vision-language-representation.md)
- [Designing Network Design Spaces](https://refivu.com/en/papers/37f6e2ac-519b-4565-a6cb-673b7ed0265a-designing-network-design-spaces.md)
- [Towards Principled Methods for Training Generative Adversarial Networks](https://refivu.com/en/papers/b0f4dfa6-159a-4785-ba9c-7a882bcab62f-towards-principled-methods-for-training-generative.md)
- [The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables](https://refivu.com/en/papers/a2b9da66-2864-4212-85c2-c935a02c48cf-the-concrete-distribution-a-continuous-relaxation-of.md)
- [Personalized Top-N Sequential Recommendation via Convolutional Sequence Embedding](https://refivu.com/en/papers/7c1f4e3a-96df-4fe9-a8b5-6c36b294a565-personalized-top-n-sequential-recommendation-via.md)
- [Deep metric learning using Triplet network](https://refivu.com/en/papers/f6dd7198-0b7a-4f6a-a88a-eb7bbe1ff7ee-deep-metric-learning-using-triplet-network.md)
- [Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting](https://refivu.com/en/papers/d52df827-0d8c-42c3-97e1-3063d2cc1256-autoformer-decomposition-transformers-with-auto-correlation.md)

## Terms in this paper

- [MNIST](https://refivu.com/en/terms/28b9bb66d1c6-mnist)
- [ADAM](https://refivu.com/en/terms/0e9ad0199e08-adam)
- [Generative adversarial networks](https://refivu.com/en/terms/889f2a50b737-generative-adversarial-networks)
- [SVHN](https://refivu.com/en/terms/c24d35c2e4d0-svhn)
- [CycleGAN](https://refivu.com/en/terms/aa174ef15835-cyclegan)
- [domain adaptation](https://refivu.com/en/terms/dfc6e2afbc1f-domain-adaptation)
- [reparameterization trick](https://refivu.com/en/terms/67c18035066e-reparameterization-trick)
- [USPS](https://refivu.com/en/terms/e96c044d254d-usps)
- [variational autoencoders](https://refivu.com/en/terms/4e570b65e841-variational-autoencoders)
- [CelebA dataset](https://refivu.com/en/terms/cc223388a1c7-celeba-dataset)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/23eee1aa-7651-4535-93bf-d37262ee5dff-unsupervised-image-to-image-translation-networks)
