Paper commentary
Learning to Discover Cross-Domain Relations with Generative Adversarial Networks
DiscoGAN learns cross-domain relations from unpaired images without pairing
- Problem Learning relations between image domains without pairs fails because one-way GAN mappings can collapse several modes onto one.
- Method DiscoGAN trains two generator pairs together, one per direction, without any paired data. Each direction gets a GAN loss and a reconstruction loss, so a round trip returns the input.
- Results In the toy experiment DiscoGAN generates samples in all ten B modes, while the standard GAN and the GAN with a reconstruction loss do not cover all of them.
Learning relations without pairs
The study asks whether a model can learn how two image domains relate without ever seeing matched image pairs. Framed as conditional generation, the task becomes producing an image in one domain from an image in the other. Most generative training of this kind depends on explicitly paired data, which is scarce and costly to label. Pairing also breaks down when a counterpart image is missing in one domain or when several candidates fit equally well.
The authors drop pairing altogether and treat relation discovery as generating an image in one domain from an unpaired image in the other. The model needs neither pair labels nor pre-training, which is the main departure from earlier approaches.
What a valid relation requires
A relation is written as a function \(G_{AB}\) that carries elements of domain A into domain B, with \(G_{BA}\) defined in the same way for the reverse direction. Left unconstrained, these two functions can be defined arbitrarily, so the model imposes a one-to-one correspondence, meaning \(G_{AB}\) is the inverse of \(G_{BA}\). The outputs of each generator must also stay inside the other domain.
Requiring the exact identity \(G_{BA}\circ G_{AB}(x_A)=x_A\) is hard to optimize, so the model uses a soft penalty on the round-trip distance \(d(G_{BA}\circ G_{AB}(x_A),x_A)\), where L1, L2 or Huber loss can serve as d. The same penalty is applied in the other direction, comparing \(G_{AB}\circ G_{BA}(x_B)\) with \(x_B\). Forcing \(G_{AB}\) to output true domain B images is also hard to enforce directly, so it is relaxed into an adversarial term \(-\mathbb{E}_{x_A\sim P_A}[\log D_B(G_{AB}(x_A))]\), with the symmetric term \(-\mathbb{E}_{x_B\sim P_B}[\log D_A(G_{BA}(x_B))]\) for the other direction.
Generator and discriminator layers
Each generator takes a 64×64×3 image, passes it through an encoder and a decoder, and returns an image of the same size in the target domain. The encoder stacks convolution layers with 4×4 filters, each followed by a leaky ReLU. The decoder stacks deconvolution layers with 4×4 filters followed by a ReLU, and the total depth is four or five layers depending on the domain.
The discriminator follows the encoder's structure, adds one more 4×4 convolution layer, and ends in a sigmoid that outputs a single value between 0 and 1. Batch Normalization is applied to every convolution and deconvolution layer except the first and the last.
Why a one-way GAN collapses modes
The starting point is a standard GAN, modified to read an image from domain A instead of random noise. Adding a second generator from B back to A and a reconstruction term gives the GAN with a reconstruction loss. The forward pass is \(x_{AB}=G_{AB}(x_A)\) and then \(x_{ABA}=G_{BA}(x_{AB})\), and the reconstruction term compares \(x_{ABA}\) with \(x_A\).
The generator \(G_{AB}\) is trained on its GAN loss plus this reconstruction term, while the discriminator \(D_B\) uses the standard GAN discriminator loss.
Both terms constrain \(G_{AB}\) in only one direction, so the learned map can be an injection rather than a bijection. Mode collapse, where several modes of A land on one mode of B, is the failure this setup does not rule out; Figure 3 gives the one-dimensional picture. Figure 3c shows that adding the reconstruction term can still leave two A modes sharing one B mode, and the reconstruction then oscillates between two states without resolving the collapse.
Coupling two GANs into a bijection
DiscoGAN couples two copies of the one-way model, one for each direction, and trains them together. Images from both domains are reconstructed, so each domain receives its own reconstruction loss. The two generator pairs share parameters, and each translated image is scored by the discriminator of its target domain.
The total generator loss is the sum of the GAN and reconstruction losses of both directions, written as \(L_G=L_{GAB}+L_{GBA}\), and the discriminator loss is \(L_D=L_{DA}+L_{DB}\). Because each direction carries both a GAN loss and a reconstruction loss, the authors argue that the coupled model reaches a bijective mapping and therefore a one-to-one correspondence, which they call a cross-domain relation.
At run time, an image from one domain goes through its matching generator to produce the counterpart in the other domain, with no pairing step.
Training settings for real images
A weight decay regularization coefficient of 10−4 and a minibatch of 200 are used, with inputs and translated images at 64×64×3. The text gives these as single values and reports no search over them. Training ran on a single machine with an Nvidia Titan X Pascal GPU and an Intel Xeon E5-1620 CPU.
Toy domains: where mode collapse shows
The toy experiment uses synthetic two-dimensional Gaussian mixture samples for domains A and B. Five A modes must be translated into the ten B modes spread around an arc of a circle. The generator has three linear layers, each followed by a ReLU, and the discriminator has five linear layers with a sigmoid output. Training ran for 50,000 iterations, and the simple domains often converged earlier.
The standard GAN maps several A modes onto the same B mode, so translated points of different colors cluster together, and it keeps oscillating around the B modes. Adding a reconstruction loss makes collapse less prevalent, but a few B modes still receive points of several colors. Both of these variants fail to cover all B modes, since their mappings are injective rather than bijective.
DiscoGAN places translated samples in distinct, non-overlapping regions and generates samples in all ten B modes. The B-domain discriminator is described as fooled by translated samples placed around the B modes. The authors qualify these findings as limited by the simplicity of the experiment.
Car and face azimuth translation
The Car dataset contains rendered 3D car models at azimuth angles spaced 15 degrees apart. The train set is split into two groups used as domains A and B, and a regressor trained on the train set predicts the azimuth of both inputs and translated test images. Input azimuths range from -75 to 75 degrees.
For the standard GAN and the GAN with a reconstruction loss, most translations fall into a few azimuth clusters, which the authors read as mode collapse. With DiscoGAN, predicted input and output azimuths are strongly correlated; the reconstruction variant keeps the input azimuth range, while the standard GAN and DiscoGAN produce the opposite range.
The reversed angles around 0 degrees mean that the translated car images are mirror images of the inputs. RMSE against ground truth is shown in each plot, but the text gives no RMSE values.
The Face dataset varies in azimuth rotation from -90 to +90 degrees. DiscoGAN outputs span the opposite rotation range, from +90 to -90 degrees, while the standard GAN and the reconstruction variant vary less in rotation and are described as suffering from mode collapse. The face comparison is judged from the outputs shown in Figure 6, and the text gives no metric for faces.
Attribute conversion on CelebA
Gender is changed while the facial features stay well preserved. Background is mostly preserved and the images look natural, although the background changes in some cases such as Figure 7c. Sequential translations change gender and then hair color, and repeated gender transforms are also shown. These are visual results, and the text reports no metric for them.
Transfers between unrelated object classes
The chair, car and face datasets all vary along azimuth, so chair to car and car to face translations test whether rotation carries across visually different classes. The translated images match the rotation of the input while keeping the visual features of the target domain. Figure 8 shows these examples, and its caption notes that the model pairs images with similar orientation.
Edges-to-photos is a one-to-many problem, since an edge image can be colored in many ways. DiscoGAN generates colorized handbag and shoe images from sketches, and sketches of handbags from colored handbag images.
The handbag and shoe experiment assumes no specific relation between the two sets. DiscoGAN picks up a shared fashion style, with translated items showing similar colors, patterns and level of fashion formality.
Limits of the evidence
The toy experiment is simple, and the authors treat its results as supportive rather than conclusive. The real-image results appear as example outputs and azimuth correlation plots, and the text gives no benchmark table or RMSE values. The bijective property is argued from the coupled loss design, and the text gives no separate test of invertibility.
Some face outputs change the background, as in Figure 7c. The chair to car and edges-to-photos results are examples without numeric scores.
Paper info
- Authors
- Taeksoo Kim, Moonsu Cha, Hyunsoo Kim, Jung Kwon Lee, Jiwon Kim
- Venue
- arXiv · Preprint
- First published
- 2017-3-15
- Added
- 2026-11-13
- Updated
- 2017-5-15
- Version
- v2
- arXiv
- 1703.05192
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
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
Taeksoo Kim, Moonsu Cha, Hyunsoo Kim, Jung Kwon Lee, Jiwon Kim (2017). Learning to Discover Cross-Domain Relations with Generative Adversarial Networks. arXiv:1703.05192v2. https://arxiv.org/abs/1703.05192v2
BibTeX
@misc{kim2017learning,
title = {{Learning to Discover Cross-Domain Relations with Generative Adversarial Networks}},
author = {Taeksoo Kim and Moonsu Cha and Hyunsoo Kim and Jung Kwon Lee and Jiwon Kim},
year = {2017},
eprint = {1703.05192},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1703.05192v2}
}