Generative Adversarial Networks
local graph
Chapter 7 — Generative Adversarial Networks
Section titled “Chapter 7 — Generative Adversarial Networks”Chapter 7 Generative Adversarial Networks
7.1 Introduction
Once we discussed latent variable models, we claimed that they naturally define a generative process by first sampling latents and then generating observables . That is nice! However, the problem appears when we start thinking about training. To be more precise, the training objective is an issue. Why? Well, the probability theory tells us to get rid of all unobserved random variables by marginalizing them out. In the case of latent variable models, this is equivalent to calculating the (marginal) log-likelihood function in the following form:
As we mentioned already in the section about VAEs (see Sect. 4.3), the problematic part is calculating the integral because it is not analytically tractable unless all distributions are Gaussian and the dependency between and is linear. However, let us forget for a moment about all these issues and take a look at what we can do here. First, we can approximate the integral using Monte Carlo samples from the prior that yields
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2022 J. M. Tomczak, Deep Generative Modeling, https://doi.org/10.1007/978-3-030-93158-2_7
[!visual-conversion] Node/flow architecture diagram (prior → network → output-distribution symbol) — the curve and output blob are purely symbolic (not real data), so ASCII carries the relationship 1:1. Converted from Fig. 7.1, page 168.
_/\_ ,--. / \ [▮] --> NN_θ(z) --> [μ|σ²] --> ( () ) / \ `--' z ~ N(0, I) z ~ N(μ(z), σ²(z))Fig. 7.1 A schematic representation of a density net
where is the log-sum-exp function.
Assuming for a second that this is a good (i.e., a tight) approximation, we turn the problem of calculating the integral into a problem of sampling from the prior. For simplicity, we can assume a prior that is relatively easy to be sampled from, e.g., the standard Gaussian, . In other words, we need to model only, i.e., pick a parameterization for it. Guess what, we will use a neural network again! If we model images, then we can use the categorical distribution for the conditional likelihood and then a neural network parameterizes the probabilities. Or, if we use a Gaussian distribution like in the case of energy-based models or diffusion-based deep generative models, then could be Gaussian as well and the neural network outputs the variance and/or the mean. Since the log-sum-exp function is differentiable (and the application of the log-sum-exp trick makes it even numerically stable), there is no problem learning this model end-to-end! This approach is a precursor of many deep generative models and was dubbed density networks [1]; see Fig. 7.1 for a schematic representation of density networks.
Density networks are important and, unfortunately, underappreciated deep generative models. It is worth knowing them at least for three reasons. First, understanding how they work helps a lot to comprehend other latent variable models and how to improve them. Second, they serve as a great starting point for understanding the difference between prescribed models and implicit models. Third, they allow us to formulate a non-linear latent variable model and train it using backpropagation (or a gradient descent, in general).
Alright, so now you may have some questions because we made a few assumptions on the way that might have been pretty confusing. The main assumptions made here are the following:
- We need to specify the prior distribution , e.g., the standard Gaussian.
- We need to specify the form of the conditional likelihood . Typically, people use the Gaussian distribution or a mixture of Gaussians. Hence, density nets are the prescribed models because we need to analytically formulate all distributions in advance.
As a result, we get the following:
- The objective function is the (approximated) log-likelihood function.
- We can optimize the objective using gradient-based optimization methods and the autograd tools.
- We can parameterize the conditional likelihood using deep neural networks.
However, we pay a great price for all the goodies coming from the formulation of the density networks:
- There is no analytical solution (except the case equivalent to the probabilistic PCA).
- We get an approximation of the log-likelihood function.
- We need a lot of samples from the prior to get a reliable approximation of the log-likelihood function.
- It suffers from the curse of dimensionality.
As you can see, the issue with dimensionality is especially limiting. What can we do with a model if it cannot be efficient for higher-dimensional problems? All interesting applications like image or audio analysis/synthesis are gone! So what can we do then? One possible direction is to stick to the prescribed models and apply variational inference (see Sect. 4.3). However, the other direction is to abandon the likelihood-based approach. I know, it sounds ridiculous, but it is possible and, unfortunately, works pretty well in practice.
7.2 Implicit Modeling with Generative Adversarial Networks (GANs)
Getting Rid of Kullback–Leibler
Let us think again what density networks tell us. First of all, they define a nice generative process: First sample latents and then generate observables. Clear! Then, for training, they use the (marginal) log-likelihood function. In other words, the log-likelihood function assesses the difference between a training datum and a generated object. To be even more precise, we first pick the specific probability distribution for the conditional likelihood that defines how to calculate the difference between the training point and the generated observables.
One may ask here whether there is a different fashion of calculating the difference between real data and generated objects. If we recall our considerations about hierarchical VAEs (see Sect. 4.5.2), learning of the likelihood-based models is equivalent to optimizing the Kullback–Leibler (KL) divergence between the empirical distribution and the model, . The KL-based approach requires a well-behaved distribution because of the logarithms. Moreover, we can think of it as a local way of comparing the empirical distribution (i.e., given data) and the generated data (i.e., data generated by our prescribed model). By local, we mean considering one point at a time and then summing all individual errors instead of comparing samples (i.e., collections of individuals) that we can refer to as a global comparison. However, we do not need to stick to the KL divergence! Instead, we can use other metrics that look at a set of points (i.e., distributions represented by a set of points) like integral probability metrics [2] (e.g., the Maximum Mean Discrepancy [MMD] [3]) or use other divergences [4].
Still, all of the mentioned metrics rely on defining explicitly how we measure the error. The question is whether we can parameterize our loss function and learn it alongside our model. Since we talk all the time about neural networks, can we go even further and utilize a neural network to calculate differences?
Getting Rid of Prescribed Distributions
Alright, we agreed on the fact that the KL divergence is only one of many possible loss functions. Moreover, we asked ourselves whether we can use a learnable loss function. However, there is also one question floating in the air, namely, do we need to use the prescribed models in the first place? The reasoning is the following. Since we know that density networks take noise and turn them into distribution in the observable space, do we really need to output a full distribution? What if we return a single point? In other words, what if we define the conditional likelihood as Dirac’s delta:
This is equivalent to saying that instead of a Gaussian (i.e., a mean and a variance), outputs the mean only. Interestingly, if we consider the marginal distribution over ‘s, we get nicely behaved distribution. To see that, let us first calculate the marginal distribution:
Then, let us understand what is going on! The marginal distribution is an infinite mixture of delta peaks. In other words, we take a single and plot a peak (or a point in 2D, it is easier to imagine) in the observable space. We proceed to infinity and once we do that, the observable space will be covered by more and more points and some regions will be denser than the others. This kind of modeling a distribution is also known as implicit modeling.
So where is the problem then? Well, the problem in the prescribed modeling setting is that the term is ill-defined and cannot be used in many probability measures, including the KL-term, because we cannot calculate the loss function. Therefore, we can ask ourselves whether we can define our own loss function, perhaps? And, even more, parameterize it with neural networks! You must admit it sounds appealing! So how to accomplish that?
Adversarial Loss
Let us start with the following story. There is a con artist (a fraud) and a friend of the fraud (an expert) who knows a little about art. Moreover, there is a real artist who has passed away (e.g., Pablo Picasso). The fraud tries to mimic the style of Pablo Picasso as well as possible. The friend expert browses for paintings of Picasso and compares them to the paintings provided by the fraud. Hence, the fraud tries to fool his friend, while the expert tries to distinguish real paintings of Picasso from fakes. Over time, the fraud becomes better and better and the expert also learns how to decide whether a given painting is a fake. Eventually, and unfortunately to the world of art, work of the fraud may become indistinguishable from Picasso and the expert may be completely uncertain about the paintings and whether they are fakes.
Now, let us formalize this wicked game. We call the expert a discriminator that takes an object and returns a probability whether it is real (i.e., coming from the empirical distribution), . We refer to the fraud as a generator that takes noise and turns it into an object , . All ‘s coming from the empirical distribution are called real and all ‘s generated by are dubbed fake. Then, we construct the objective function as follows:
- We have two sources of data: and .
- The discriminator solves the classification task by assigning 0 to all fake datapoints and 1 to all real datapoints.
- Since the discriminator can be seen as a classifier, we can use the binary cross-entropy loss function in the following form:
The left part corresponds to the real data source, and the right part contains the fake data source.
- We try to maximize with respect to (i.e., the discriminator). In plain words, we want the discriminator to be as good as possible.
- The generator tries to fool the discriminator and, thus, it tries to minimize with respect to (i.e., the generator).
Eventually, we face the following learning objective:
We refer to as the adversarial loss since there are two actors trying to achieve two opposite goals.
GANs
Let us put everything together:
- We have a generator that turns noise into fake data.
- We have a discriminator that classifies given input as either fake or real.
- We parameterize the generator and the discriminator using deep neural networks.
[!visual-conversion] Node/flow architecture diagram (generator + discriminator, with symbolic scatter dots standing in for “a distribution,” not real data) — labels and relationships transcribe 1:1 to ASCII. Converted from Fig. 7.2, page 172.
_/\_ . p_θ(x) / \ . . / \ [▮] --> G_β(z) --> [▮] --> . . \ z ~ N(0,I) \ (or) --> D_α(x) --> [▮] --> fake or real . p_data(x) / . . / . .Fig. 7.2 A schematic representation of GANs. Please note the part of the generator and its resemblance to density networks
- We learn the neural networks using the adversarial loss (i.e., we optimize the min–max problem).
The resulting class of models is called Generative Adversarial Networks (GANs) [5]. In Fig. 7.2, we present the idea of GANs and how they are connected to density networks. Notice that the generator part constitutes an implicit distribution, i.e., a distribution from an unknown family of distributions, and its analytical form is unknown as well; however, we can sample from it.
7.3 Implementing GANs
Section titled “7.3 Implementing GANs”Believe me or not, but we have all components to implement GANs. Let us look into all of them step-by-step. In fact, the easiest way to understand them is to implement them.
Generator
Section titled “Generator”The first part is the generator, , which is simply a deep neural network. The code for a class of the generator is presented below. Notice that we distinguish between a function for generating, namely, transforming to , and sampling that first samples and then calls generate.
class Generator(nn.Module): def __init__(self, generator_net, z_size): super(Generator, self).__init__()
# We need to init the generator neural net. self.generator_net = generator_net # We also need to know the size of the latents. self.z_size = z_size
def generate(self, z): # Generating for given z is equivalent to applying the neural net. return self.generator_net(z)
def sample(self, batch_size=16): # For sampling, we need to sample first latents. z = torch.randn(batch_size, self.z_size) return self.generate(z)
def forward(self, z=None): if z is None: return self.sample() else: return self.generate(z)Listing 7.1 A Generator class
Discriminator
The second component is the discriminator. Here, the code is even simpler because it consists of a single neural network. The code for a class of the discriminator is provided below:
class Discriminator(nn.Module): def __init__(self, discriminator_net): super(Discriminator, self).__init__() # We need to init the discriminator neural net. self.discriminator_net = discriminator_net
def forward(self, x): # The forward pass is just about applying the neural net. return self.discriminator_net(x)Listing 7.2 A Discriminator class
GAN
Now, we are ready to combine these two components. In our implementation, a GAN outputs the adversarial loss either for the generator or for the discriminator. Maybe the code below is overkill; however, it is better to write a few more lines and properly understand what is going on than applying some unclear tricks.
class GAN(nn.Module): def __init__(self, generator, discriminator, EPS=1.e-5): super(GAN, self).__init__()
print('GAN by JT.')
# To put everything together, we need the generator and # the discriminator. NOTE: Both are instances of classes! self.generator = generatorself.discriminator = discriminator
# For numerical issue, we introduce a small epsilon.self.EPS = EPS
def forward(self, x_real, reduction='avg', mode='discriminator'): # The forward pass calculates the adversarial loss. # More specifically, either its part for the generator or # the part for the discriminator. if mode == 'generator': # For the generator, we first sample FAKE data. x_fake_gen = self.generator.sample(x_real.shape[0])
# Then, we calculate outputs of the discriminator for # the FAKE data. # NOTE: We clamp here for the numerical stability # later on. d_fake = torch.clamp(self.discriminator(x_fake_gen), self.EPS, 1. - self.EPS)
# The loss for the generator is log(1 - D(G(z))). loss = torch.log(1. - d_fake)
elif mode == 'discriminator': # For the discriminator, we first sample FAKE data. x_fake_gen = self.generator.sample(x_real.shape[0])
# Then, we calculate outputs of the discriminator for # the FAKE data. # NOTE: We clamp for the numerical stability later on d_fake = torch.clamp(self.discriminator(x_fake_gen), self.EPS, 1. - self.EPS)
# Moreover, we calculate outputs of the discriminator # for the REAL data. # NOTE: We clamp for... the numerical stability ( # again). d_real = torch.clamp(self.discriminator(x_real), self .EPS, 1. - self.EPS)
# The final loss for the discriminator is log(1 - D(G # (z))) + log D(x). # NOTE: We take the minus sign because we MAXIMIZE # the adversarial loss wrt # discriminator, so we MINIMIZE the negative # adversarial loss wrt discriminator. loss = -(torch.log(d_real) + torch.log(1. - d_fake))
if reduction == 'sum': return loss.sum() else: return loss.mean()def sample(self, batch_size=64): return self.generator.sample(batch_size=batch_size)Listing 7.3 A GAN class
Examples of architectures for a generator and a discriminator are presented in the code below:
# First, we initialize the generator and the discriminator# -generatorgenerator_net = nn.Sequential(nn.Linear(L, M), nn.ReLU(), nn.Linear(M, D), nn.Tanh())
generator = Generator(generator_net, z_size=L)
# -discriminatordiscriminator_net = nn.Sequential(nn.Linear(D, M), nn.ReLU(), nn.Linear(M, 1), nn.Sigmoid())
discriminator = Discriminator(discriminator_net)
# Eventually, we initialize the full modelmodel = GAN(generator=generator, discriminator=discriminator)Listing 7.4 Examples of architectures
Training
One might think that the training procedure for GANs is more complicated than for any of the likelihood-based models. However, it is not the case. The only difference is that we need two optimizers instead of one. An example of a code with a training loop is presented below:
# We use two optimizers:# optimizer_dis - an optimizer that takes the parameters of the discriminator# optimizer_gen - an optimizer that takes the parameters of the generatorfor indx_batch, batch in enumerate(training_loader):
# -Discriminator # Notice that we call our model with the 'discriminator' mode loss_dis = model.forward(batch, mode='discriminator')
optimizer_dis.zero_grad() optimizer_gen.zero_grad() loss_dis.backward(retain_graph=True) optimizer_dis.step()
# -Generator # Notice that we call our model with the 'generator' mode. loss_gen = model.forward(batch, mode='generator') optimizer_dis.zero_grad() optimizer_gen.zero_grad() loss_gen.backward(retain_graph=True) optimizer_gen.step()Listing 7.5 A training loop
Results and Comments
In the experiments, we normalized images and scaled them to as we did for EBMs. The full code (with auxiliary functions) that you can play with is available here: https://github.com/jmtomczak/intro_dgm. After running it, you can expect similar results to those in Fig. 7.3.
In the previous chapters, we did not comment on the results. However, we make an exception here. Please note, my curious reader, that now we do not have a nicely converging objective. On the contrary, the adversarial loss or its generating part is jumping all over the place. That is a known fact following from the min–max optimization problem. Moreover, the loss is learnable now so it is troublesome to say where the optimal solution is since we update the loss function as well.
[!visual-conversion] Real generated-digit image grids plus real training curves — photographic/ data content. Cropped from page 176. source_page: pages/page-176.png | visual_type: image grid + training curves
Fig. 7.3 Examples of results after running the code for GANs. (a) Real images. (b) Fake images. (c) The validation curve for the discriminator. (d) The validation curve for the generator 7.4 There Are Many GANs Out There!
[!visual-conversion] Real generated-digit image grids — photographic content. Cropped from page 177. source_page: pages/page-177.png | visual_type: image grid
Fig. 7.4 Generated images after (a) 10 epochs of training and (b) 50 epochs of training
Another important piece of information is that training GANs is indeed a pain. First, it is hard to decipher and properly understand the values of the adversarial loss. Second, learning is rather slow and requires many iterations (by many I mean hundreds if not thousands). If you look into generations in the first few epochs (e.g., see Fig. 7.4), you may be discouraged because a model may seem to overfit. That is the problem, we must be really patient to see whether we are on the good track. Moreover, you may also need to pay special attention to hyperparameters, e.g., learning rates. It requires a bit of experience or simply time to play around with learning rate values in your problem.
Once you get through learning GANs, the reward is truly amazing. In the presented problem, with extremely simple neural nets, we are able to synthesize digits of high quality. That’s the biggest advantage of GANs!
7.4 There Are Many GANs Out There!
Since the publication of the seminal paper on GANs [5] (however, the idea of the adversarial problem could be traced back to [6]), there was a flood of GAN-based ideas and papers. I would not even dare to mention a small fraction of them. The field of implicit modeling with GANs is growing constantly. I will try to point to a few important papers:
-
Conditional GANs: An important extension of GANs is allowing them to generate data conditionally [7].
-
GANs with encoders: An interesting question is whether we can extend conditional GANs to a framework with encoders. It turns out that it is possible; see BiGAN [8] and ALI [9] for details.
-
StyleGAN and CycleGAN: The flexibility of GANs could be utilized in formulating specialized image synthesizers. For instance, StyleGAN is formulated in such a way to transfer style between images [10], while CycleGAN tries to “translate” one image into another, e.g., a horse into a zebra [11].
- Wasserstein GANs: In [12] it was claimed that the adversarial loss could be formulated differently using the Wasserstein distance (a.k.a. the earth-mover distance), that is:
where must be a 1-Lipschitz function. The simpler way to achieve that is by clipping the weight of the discriminator to some small value . Alternatively, spectral normalization could be applied [13] by using the power iteration method. Overall, constraining the discriminator to be a 1-Lipshitz function stabilizes training; however, it is still hard to comprehend the learning process.
-
f-GANs: The Wasserstein GAN indicated that we can look elsewhere for alternative formulations of the adversarial loss. In [14], it is advocated to use f-divergences for that.
-
Generative Moment Matching Networks [15, 16]: As mentioned earlier, we could use other metrics instead of the likelihood function. We can fix the discriminator and define it as the Maximum Mean Discrepancy with a given kernel function. The resulting problem is simpler because we do not train the discriminator and, thus, we get rid of the cumbersome min–max optimization. However, the final quality of synthesized images is typically poorer.
-
Density difference vs. Density ratio: An interesting perspective is presented in [17, 18] where we can see various GANs either as a difference of densities or as a ratio of densities. I refer to the original papers for further details.
-
Hierarchical implicit models: The idea of defining implicit models could be extended to hierarchical models [19].
-
GANs and EBMs: If you recall the EBMs, you may notice that there is a clear connection between the adversarial loss and the logarithm of the Boltzmann distribution. In [20, 21] it was noticed that introducing a variational distribution over observables, , leads to the following objective:
where is the energy function and is the entropy. The problem again boils down to the min–max optimization problem, namely, minimizing with respect to the energy function and maximizing with respect to the variational distribution. The second difference between the adversarial loss and the variational lower bound here is the entropy term that is typically intractable.
-
What GAN to use?: That is the question! Interestingly, it seems that training GANs greatly depends on the initialization and the neural nets rather than the adversarial loss or other tricks. You can read more about it in [22].
-
Training instabilities: The main problem of GANs is unstable learning and a phenomenon called mode collapse, namely, a GAN samples beautiful images but only from some regions of the observable space. This problem has been studied for a long time by many (e.g., [23–25]); however, it still remains an open question.
References
-
David JC MacKay and Mark N Gibbs. Density networks. Statistics and neural networks: advances at the interface, pages 129–145, 1999.
-
Bharath K Sriperumbudur, Kenji Fukumizu, Arthur Gretton, Bernhard Schölkopf, and Gert RG Lanckriet. On integral probability metrics, -divergences and binary classification. arXiv preprint arXiv:0901.2698, 2009.
-
Arthur Gretton, Karsten Borgwardt, Malte Rasch, Bernhard Schölkopf, and Alex Smola. A kernel method for the two-sample-problem. Advances in Neural Information Processing Systems, 19:513–520, 2006.
-
Tim Van Erven and Peter Harremos. Rényi divergence and Kullback-Leibler divergence. IEEE Transactions on Information Theory, 60(7):3797–3820, 2014.
-
Ian J Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial networks. arXiv preprint arXiv:1406.2661, 2014.
-
Jürgen Schmidhuber. Making the world differentiable: On using fully recurrent self-supervised neural networks for dynamic reinforcement learning and planning in non-stationary environments. Institut für Informatik, Technische Universität München. Technical Report FKI-126, 90, 1990.
-
Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. arXiv preprint arXiv:1411.1784, 2014.
-
Jeff Donahue, Philipp Krähenbühl, and Trevor Darrell. Adversarial feature learning. arXiv preprint arXiv:1605.09782, 2016.
-
Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Olivier Mastropietro, Alex Lamb, Martin Arjovsky, and Aaron Courville. Adversarially learned inference. arXiv preprint arXiv:1606.00704, 2016.
-
Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4401–4410, 2019.
-
Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pages 2223–2232, 2017.
-
Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein generative adversarial networks. In International conference on machine learning, pages 214–223. PMLR, 2017.
-
Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. arXiv preprint arXiv:1802.05957, 2018.
-
Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-GAN: Training generative neural samplers using variational divergence minimization. In Advances in Neural Information Processing Systems, pages 271–279, 2016.
-
Gintare Karolina Dziugaite, Daniel M Roy, and Zoubin Ghahramani. Training generative neural networks via maximum mean discrepancy optimization. In Proceedings of the Thirty-First Conference on Uncertainty in Artificial Intelligence, pages 258—267, 2015.
-
Yujia Li, Kevin Sversky, and Rich Zemel. Generative moment matching networks. In International Conference on Machine Learning, pages 1718—1727. PMLR, 2015.
-
Ferenc Huszár. Variational inference using implicit distributions. arXiv preprint arXiv:1702.08235, 2017.
-
Shakir Mohamed and Balaji Lakshminarayanan. Learning in implicit generative models. arXiv preprint arXiv:1610.03483, 2016.
-
Dustin Tran, Rajesh Ranganath, and David M Blei. Hierarchical implicit models and likelihood-free variational inference. Advances in Neural Information Processing Systems, 2017:5524--5534, 2017.
-
Taesup Kim and Yoshua Bengio. Deep directed generative models with energy-based probability estimation. arXiv preprint arXiv:1606.03439, 2016.
-
Shuangfei Zhai, Yu Cheng, Rogerio Feris, and Zhongfei Zhang. Generative adversarial networks as variational training of energy based models. arXiv preprint arXiv:1611.01799, 2016.
-
Mario Lucic, Karol Kurach, Marcin Michalski, Sylvain Gelly, and Olivier Bousquet. Are GANs created equal? A large-scale study. Advances in Neural Information Processing Systems, 31, 2018.
-
Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. Advances in neural information processing systems, 29:2234--2242, 2016.
-
Lars Mescheder, Andreas Geiger, and Sebastian Nowozin. Which training methods for GANs do actually converge? In International Conference on Machine Learning, pages 3481—3490. PMLR, 2018.
-
Augustus Odena, Christopher Olah, and Jonathon Shlens. Conditional image synthesis with auxiliary classifier GANs. In International conference on machine learning, pages 2642—2651. PMLR, 2017.
-
Adji B Dieng, Francisco JR Ruiz, David M Blei, and Michalis K Titsias. Prescribed generative adversarial networks. arXiv preprint arXiv:1910.04302, 2019.
-
Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. InfoGAN: Interpretable representation learning by information maximizing generative adversarial nets. In Proceedings of the 30th International Conference on Neural Information Processing Systems, pages 2180—2188, 2016.