Generative adversarial network
Machine learning and data mining |
---|
A generative adversarial network (GAN) is a class of machine learning frameworks and a prominent framework for approaching generative AI.[1][2] The concept was initially developed by Ian Goodfellow and his colleagues in June 2014.[3] In a GAN, two neural networks contest with each other in the form of a zero-sum game, where one agent's gain is another agent's loss.
Given a training set, this technique learns to generate new data with the same statistics as the training set. For example, a GAN trained on photographs can generate new photographs that look at least superficially authentic to human observers, having many realistic characteristics. Though originally proposed as a form of generative model for unsupervised learning, GANs have also proved useful for semi-supervised learning,[4] fully supervised learning,[5] and reinforcement learning.[6]
The core idea of a GAN is based on the "indirect" training through the discriminator, another neural network that can tell how "realistic" the input seems, which itself is also being updated dynamically.[7] This means that the generator is not trained to minimize the distance to a specific image, but rather to fool the discriminator. This enables the model to learn in an unsupervised manner.
GANs are similar to mimicry in evolutionary biology, with an evolutionary arms race between both networks.
Definition
Mathematical
The original GAN is defined as the following game:[3]
Each probability space [math]\displaystyle{ (\Omega, \mu_{\text{ref}}) }[/math] defines a GAN game.
There are 2 players: generator and discriminator.
The generator's strategy set is [math]\displaystyle{ \mathcal P(\Omega) }[/math], the set of all probability measures [math]\displaystyle{ \mu_G }[/math] on [math]\displaystyle{ \Omega }[/math].
The discriminator's strategy set is the set of Markov kernels [math]\displaystyle{ \mu_D: \Omega \to \mathcal P[0, 1] }[/math], where [math]\displaystyle{ \mathcal P[0, 1] }[/math] is the set of probability measures on [math]\displaystyle{ [0, 1] }[/math].
The GAN game is a zero-sum game, with objective function[math]\displaystyle{ L(\mu_G, \mu_D) := \mathbb{E}_{x\sim \mu_{\text{ref}}, y\sim \mu_D(x)}[\ln y] + \mathbb{E}_{x\sim \mu_G, y\sim \mu_D(x)}[\ln (1-y)]. }[/math] The generator aims to minimize the objective, and the discriminator aims to maximize the objective.
The generator's task is to approach [math]\displaystyle{ \mu_G \approx \mu_{\text{ref}} }[/math], that is, to match its own output distribution as closely as possible to the reference distribution. The discriminator's task is to output a value close to 1 when the input appears to be from the reference distribution, and to output a value close to 0 when the input looks like it came from the generator distribution.
In practice
The generative network generates candidates while the discriminative network evaluates them.[3] The contest operates in terms of data distributions. Typically, the generative network learns to map from a latent space to a data distribution of interest, while the discriminative network distinguishes candidates produced by the generator from the true data distribution. The generative network's training objective is to increase the error rate of the discriminative network (i.e., "fool" the discriminator network by producing novel candidates that the discriminator thinks are not synthesized (are part of the true data distribution)).[3][8]
A known dataset serves as the initial training data for the discriminator. Training involves presenting it with samples from the training dataset until it achieves acceptable accuracy. The generator is trained based on whether it succeeds in fooling the discriminator. Typically, the generator is seeded with randomized input that is sampled from a predefined latent space (e.g. a multivariate normal distribution). Thereafter, candidates synthesized by the generator are evaluated by the discriminator. Independent backpropagation procedures are applied to both networks so that the generator produces better samples, while the discriminator becomes more skilled at flagging synthetic samples.[9] When used for image generation, the generator is typically a deconvolutional neural network, and the discriminator is a convolutional neural network.
Relation to other statistical machine learning methods
GANs are implicit generative models,[10] which means that they do not explicitly model the likelihood function nor provide a means for finding the latent variable corresponding to a given sample, unlike alternatives such as flow-based generative model.
Compared to fully visible belief networks such as WaveNet and PixelRNN and autoregressive models in general, GANs can generate one complete sample in one pass, rather than multiple passes through the network.
Compared to Boltzmann machines and nonlinear ICA, there is no restriction on the type of function used by the network.
Since neural networks are universal approximators, GANs are asymptotically consistent. Variational autoencoders might be universal approximators, but it is not proven as of 2017.[11]
Mathematical properties
Measure-theoretic considerations
This section provides some of the mathematical theory behind these methods.
In modern probability theory based on measure theory, a probability space also needs to be equipped with a σ-algebra. As a result, a more rigorous definition of the GAN game would make the following changes:
Each probability space [math]\displaystyle{ (\Omega, \mathcal B, \mu_{\text{ref}}) }[/math] defines a GAN game.
The generator's strategy set is [math]\displaystyle{ \mathcal P(\Omega, \mathcal B) }[/math], the set of all probability measures [math]\displaystyle{ \mu_G }[/math] on the measure-space [math]\displaystyle{ (\Omega, \mathcal B) }[/math].
The discriminator's strategy set is the set of Markov kernels [math]\displaystyle{ \mu_D: (\Omega, \mathcal B) \to \mathcal P([0, 1], \mathcal B([0, 1])) }[/math], where [math]\displaystyle{ \mathcal B([0, 1]) }[/math] is the Borel σ-algebra on [math]\displaystyle{ [0, 1] }[/math].
Since issues of measurability never arise in practice, these will not concern us further.
Choice of the strategy set
In the most generic version of the GAN game described above, the strategy set for the discriminator contains all Markov kernels [math]\displaystyle{ \mu_D: \Omega \to {\mathcal {P}}[0,1] }[/math], and the strategy set for the generator contains arbitrary probability distributions [math]\displaystyle{ \mu_G }[/math] on [math]\displaystyle{ \Omega }[/math].
However, as shown below, the optimal discriminator strategy against any [math]\displaystyle{ \mu_G }[/math] is deterministic, so there is no loss of generality in restricting the discriminator's strategies to deterministic functions [math]\displaystyle{ D:\Omega \to [0, 1] }[/math]. In most applications, [math]\displaystyle{ D }[/math] is a deep neural network function.
As for the generator, while [math]\displaystyle{ \mu_G }[/math] could theoretically be any computable probability distribution, in practice, it is usually implemented as a pushforward: [math]\displaystyle{ \mu_G = \mu_Z \circ G^{-1} }[/math]. That is, start with a random variable [math]\displaystyle{ z \sim \mu_Z }[/math], where [math]\displaystyle{ \mu_Z }[/math] is a probability distribution that is easy to compute (such as the uniform distribution, or the Gaussian distribution), then define a function [math]\displaystyle{ G: \Omega_Z \to \Omega }[/math]. Then the distribution [math]\displaystyle{ \mu_G }[/math] is the distribution of [math]\displaystyle{ G(z) }[/math].
Consequently, the generator's strategy is usually defined as just [math]\displaystyle{ G }[/math], leaving [math]\displaystyle{ z \sim \mu_Z }[/math] implicit. In this formalism, the GAN game objective is[math]\displaystyle{ L(G, D) := \mathbb{E}_{x\sim \mu_{\text{ref}}}[\ln D(x)] + \mathbb{E}_{z\sim \mu_Z}[\ln (1-D(G(z)))]. }[/math]
Generative reparametrization
The GAN architecture has two main components. One is casting optimization into a game, of form [math]\displaystyle{ \min_G \max_D L(G, D) }[/math], which is different from the usual kind of optimization, of form [math]\displaystyle{ \min_\theta L(\theta) }[/math]. The other is the decomposition of [math]\displaystyle{ \mu_G }[/math] into [math]\displaystyle{ \mu_Z \circ G^{-1} }[/math], which can be understood as a reparametrization trick.
To see its significance, one must compare GAN with previous methods for learning generative models, which were plagued with "intractable probabilistic computations that arise in maximum likelihood estimation and related strategies".[3]
At the same time, Kingma and Welling[12] and Rezende et al.[13] developed the same idea of reparametrization into a general stochastic backpropagation method. Among its first applications was the variational autoencoder.
Move order and strategic equilibria
In the original paper, as well as most subsequent papers, it is usually assumed that the generator moves first, and the discriminator moves second, thus giving the following minimax game:[math]\displaystyle{ \min_{\mu_G}\max_{\mu_D} L(\mu_G, \mu_D) := \mathbb{E}_{x\sim \mu_{\text{ref}}, y\sim \mu_D(x)}[\ln y] + \mathbb{E}_{x\sim \mu_G, y\sim \mu_D(x)}[\ln (1-y)]. }[/math]
If both the generator's and the discriminator's strategy sets are spanned by a finite number of strategies, then by the minimax theorem,[math]\displaystyle{ \min_{\mu_G}\max_{\mu_D} L(\mu_G, \mu_D)= \max_{\mu_D}\min_{\mu_G} L(\mu_G, \mu_D) }[/math]that is, the move order does not matter.
However, since the strategy sets are both not finitely spanned, the minimax theorem does not apply, and the idea of an "equilibrium" becomes delicate. To wit, there are the following different concepts of equilibrium:
- Equilibrium when generator moves first, and discriminator moves second:[math]\displaystyle{ \hat \mu_G \in \arg\min_{\mu_G}\max_{\mu_D} L(\mu_G,\mu_D),\quad \hat \mu_D \in \arg\max_{\mu_D} L(\hat\mu_G, \mu_D), \quad }[/math]
- Equilibrium when discriminator moves first, and generator moves second:[math]\displaystyle{ \hat \mu_D \in \arg\max_{\mu_D}\min_{\mu_G} L(\mu_G, \mu_D), \quad \hat \mu_G \in \arg\min_{\mu_G} L(\mu_G,\hat \mu_D), }[/math]
- Nash equilibrium [math]\displaystyle{ (\hat \mu_D, \hat\mu_G) }[/math], which is stable under simultaneous move order:[math]\displaystyle{ \hat \mu_D \in \arg\max_{\mu_D} L(\hat\mu_G, \mu_D), \quad \hat \mu_G \in \arg\min_{\mu_G} L(\mu_G, \hat\mu_D) }[/math]
For general games, these equilibria do not have to agree, or even to exist. For the original GAN game, these equilibria all exist, and are all equal. However, for more general GAN games, these do not necessarily exist, or agree.[14]
Main theorems for GAN game
The original GAN paper proved the following two theorems:[3]
Theorem (the optimal discriminator computes the Jensen–Shannon divergence) — For any fixed generator strategy [math]\displaystyle{ \mu_G }[/math], let the optimal reply be [math]\displaystyle{ D^* = \arg\max_{D} L(\mu_G, D) }[/math], then
[math]\displaystyle{ \begin{align} D^*(x) &= \frac{d\mu_{\text{ref}}}{d(\mu_{\text{ref}} + \mu_G)}\\ L(\mu_G, D^*) &= 2D_{JS}(\mu_{\text{ref}}; \mu_G) - 2\ln 2 \end{align} }[/math]
where the derivative is the Radon–Nikodym derivative, and [math]\displaystyle{ D_{JS} }[/math] is the Jensen–Shannon divergence.
By Jensen's inequality,
[math]\displaystyle{ \mathbb{E}_{x\sim \mu_{\text{ref}}, y\sim \mu_D(x)}[\ln y] \leq \mathbb{E}_{x\sim \mu_{\text{ref}}}[\ln \mathbb{E}_{y\sim \mu_D(x)}[y]] }[/math] and similarly for the other term. Therefore, the optimal reply can be deterministic, i.e. [math]\displaystyle{ \mu_D(x) = \delta_{D(x)} }[/math] for some function [math]\displaystyle{ D: \Omega \to [0, 1] }[/math], in which case
[math]\displaystyle{ L(\mu_G, \mu_D) := \mathbb{E}_{x\sim \mu_{\text{ref}}}[\ln D(x)] + \mathbb{E}_{x\sim \mu_{G}}[\ln (1-D(x))]. }[/math]
To define suitable density functions, we define a base measure [math]\displaystyle{ \mu := \mu_{\text{ref}} + \mu_G }[/math], which allows us to take the Radon–Nikodym derivatives
[math]\displaystyle{ \rho_{\text{ref}} = \frac{d\mu_{\text{ref}}}{d\mu} \quad \rho_{G} = \frac{d\mu_{G}}{d\mu} }[/math] with [math]\displaystyle{ \rho_{\text{ref}} + \rho_G = 1 }[/math].
We then have
[math]\displaystyle{ L(\mu_G, \mu_D) := \int \mu(dx) \left[\rho_{\text{ref}}(x) \ln(D(x)) + \rho_G(x) \ln(1-D(x))\right]. }[/math]
The integrand is just the negative cross-entropy between two Bernoulli random variables with parameters [math]\displaystyle{ \rho_{\text{ref}}(x) }[/math] and [math]\displaystyle{ D(x) }[/math]. We can write this as [math]\displaystyle{ -H(\rho_{\text{ref}}(x))-D_{KL}(\rho_{\text{ref}}(x) \| D(x)) }[/math], where [math]\displaystyle{ H }[/math] is the binary entropy function, so
[math]\displaystyle{ L(\mu_G, \mu_D) = -\int \mu(dx) (H(\rho_{\text{ref}}(x)) + D_{KL}(\rho_{\text{ref}}(x) \| D(x))). }[/math]
This means that the optimal strategy for the discriminator is [math]\displaystyle{ D(x) = \rho_{\text{ref}}(x) }[/math], with [math]\displaystyle{ L(\mu_G, \mu_D^*) = -\int \mu(dx) H(\rho_{\text{ref}}(x)) = D_{JS}(\mu_{\text{ref}} \| \mu_G) -2 \ln 2 }[/math]
after routine calculation.
Interpretation: For any fixed generator strategy [math]\displaystyle{ \mu_G }[/math], the optimal discriminator keeps track of the likelihood ratio between the reference distribution and the generator distribution:[math]\displaystyle{ \frac{D(x)}{1-D(x)} = \frac{d\mu_{\text{ref}}}{d\mu_G}(x) = \frac{\mu_{\text{ref}}(dx)}{\mu_G(dx)}; \quad D(x) = \sigma(\ln\mu_{\text{ref}}(dx) - \ln\mu_{G}(dx)) }[/math]where [math]\displaystyle{ \sigma }[/math] is the logistic function. In particular, if the prior probability for an image [math]\displaystyle{ x }[/math] to come from the reference distribution is equal to [math]\displaystyle{ \frac 12 }[/math], then [math]\displaystyle{ D(x) }[/math] is just the posterior probability that [math]\displaystyle{ x }[/math] came from the reference distribution:[math]\displaystyle{ D(x) = Pr(x \text{ came from reference distribution} | x). }[/math]
Theorem (the unique equilibrium point) — For any GAN game, there exists a pair [math]\displaystyle{ (\hat\mu_D, \hat\mu_G) }[/math] that is both a sequential equilibrium and a Nash equilibrium:
[math]\displaystyle{ \begin{align} L(\hat\mu_G, \hat\mu_D) = \min_{\mu_G}\max_{\mu_D} L(\mu_G, \mu_D) =& \max_{\mu_D}\min_{\mu_G} L(\mu_G, \mu_D) = -2\ln 2\\ \hat \mu_D \in \arg\max_{\mu_D}\min_{\mu_G} L(\mu_G, \mu_D), &\quad \hat \mu_G \in \arg\min_{\mu_G}\max_{\mu_D} L(\mu_G, \mu_D)\\ \hat \mu_D \in \arg\max_{\mu_D} L(\hat\mu_G, \mu_D), &\quad \hat \mu_G \in \arg\min_{\mu_G} L(\mu_G, \hat\mu_D)\\ \forall x\in \Omega, \hat \mu_D(x) = \delta_{\frac 1 2}, &\quad\hat \mu_G = \mu_{\text{ref}} \end{align} }[/math]
That is, the generator perfectly mimics the reference, and the discriminator outputs [math]\displaystyle{ \frac 12 }[/math] deterministically on all inputs.
From the previous proposition,
[math]\displaystyle{ \arg\min_{\mu_G}\max_{\mu_D} L(\mu_G, \mu_D)= \mu_{\text{ref}}; \quad \min_{\mu_G}\max_{\mu_D} L(\mu_G, \mu_D) = -2\ln 2. }[/math]
For any fixed discriminator strategy [math]\displaystyle{ \mu_D }[/math], any [math]\displaystyle{ \mu_G }[/math] concentrated on the set
[math]\displaystyle{ \{ x | \mathbb{E}_{y\sim\mu_D(x)}[\ln(1-y)] = \inf_x \mathbb{E}_{y\sim \mu_D(x)}[\ln(1-y)] \} }[/math] is an optimal strategy for the generator. Thus,
[math]\displaystyle{ \arg\max_{\mu_D}\min_{\mu_G} L(\mu_G, \mu_D) = \arg\max_{\mu_D} \mathbb{E}_{x\sim \mu_{\text{ref}}, y\sim \mu_D(x)}[\ln y] + \inf_x \mathbb{E}_{y\sim \mu_D(x)}[\ln (1-y)]. }[/math]
By Jensen's inequality, the discriminator can only improve by adopting the deterministic strategy of always playing [math]\displaystyle{ D(x) = \mathbb{E}_{y\sim \mu_D(x)}[y] }[/math]. Therefore,
[math]\displaystyle{ \arg\max_{\mu_D}\min_{\mu_G} L(\mu_G, \mu_D) = \arg\max_{D} \mathbb{E}_{x\sim \mu_{\text{ref}}}[\ln D(x)] + \inf_x \ln (1-D(x)) }[/math]
By Jensen's inequality,
[math]\displaystyle{ \ln \mathbb{E}_{x\sim \mu_{\text{ref}}}[ D(x)] + \inf_x \ln (1-D(x)) = \ln \mathbb{E}_{x\sim \mu_{\text{ref}}}[ D(x)] + \ln (1-\sup_x D(x))=\ln [\mathbb{E}_{x\sim \mu_{\text{ref}}}[ D(x)] (1-\sup_x D(x))] \leq \ln [ \sup_x D(x)) (1-\sup_x D(x))] \leq \ln\frac 14, }[/math]
with equality if [math]\displaystyle{ D(x) = \frac 12 }[/math], so
[math]\displaystyle{ \forall x\in \Omega, \hat \mu_D(x) = \delta_{\frac 1 2}; \quad \max_{\mu_D}\min_{\mu_G} L(\mu_G, \mu_D) = -2\ln 2. }[/math]
Finally, to check that this is a Nash equilibrium, note that when [math]\displaystyle{ \mu_G = \mu_{\text{ref}} }[/math], we have
[math]\displaystyle{ L(\mu_G, \mu_D) := \mathbb{E}_{x\sim \mu_{\text{ref}}, y\sim \mu_D(x)}[\ln (y (1-y))] }[/math] which is always maximized by [math]\displaystyle{ y = \frac 12 }[/math].
When [math]\displaystyle{ \forall x\in \Omega, \mu_D(x) = \delta_{\frac 1 2} }[/math], any strategy is optimal for the generator.
Training and evaluating GAN
Training
Unstable convergence
While the GAN game has a unique global equilibrium point when both the generator and discriminator have access to their entire strategy sets, the equilibrium is no longer guaranteed when they have a restricted strategy set.[14]
In practice, the generator has access only to measures of form [math]\displaystyle{ \mu_Z \circ G_\theta^{-1} }[/math], where [math]\displaystyle{ G_\theta }[/math] is a function computed by a neural network with parameters [math]\displaystyle{ \theta }[/math], and [math]\displaystyle{ \mu_Z }[/math] is an easily sampled distribution, such as the uniform or normal distribution. Similarly, the discriminator has access only to functions of form [math]\displaystyle{ D_\zeta }[/math], a function computed by a neural network with parameters [math]\displaystyle{ \zeta }[/math]. These restricted strategy sets take up a vanishingly small proportion of their entire strategy sets.[15]
Further, even if an equilibrium still exists, it can only be found by searching in the high-dimensional space of all possible neural network functions. The standard strategy of using gradient descent to find the equilibrium often does not work for GAN, and often the game "collapses" into one of several failure modes. To improve the convergence stability, some training strategies start with an easier task, such as generating low-resolution images[16] or simple images (one object with uniform background),[17] and gradually increase the difficulty of the task during training. This essentially translates to applying a curriculum learning scheme.[18]
Mode collapse
GANs often suffer from mode collapse where they fail to generalize properly, missing entire modes from the input data. For example, a GAN trained on the MNIST dataset containing many samples of each digit might only generate pictures of digit 0. This was named in the first paper as the "Helvetica scenario".
One way this can happen is if the generator learns too fast compared to the discriminator. If the discriminator [math]\displaystyle{ D }[/math] is held constant, then the optimal generator would only output elements of [math]\displaystyle{ \arg\max_x D(x) }[/math].[19] So for example, if during GAN training for generating MNIST dataset, for a few epochs, the discriminator somehow prefers the digit 0 slightly more than other digits, the generator may seize the opportunity to generate only digit 0, then be unable to escape the local minimum after the discriminator improves.
Some researchers perceive the root problem to be a weak discriminative network that fails to notice the pattern of omission, while others assign blame to a bad choice of objective function. Many solutions have been proposed, but it is still an open problem.[20][21]
Even the state-of-the-art architecture, BigGAN (2019), could not avoid mode collapse. The authors resorted to "allowing collapse to occur at the later stages of training, by which time a model is sufficiently trained to achieve good results".[22]
Two time-scale update rule
The two time-scale update rule (TTUR) is proposed to make GAN convergence more stable by making the learning rate of the generator lower than that of the discriminator. The authors argued that the generator should move slower than the discriminator, so that it does not "drive the discriminator steadily into new regions without capturing its gathered information".
They proved that a general class of games that included the GAN game, when trained under TTUR, "converges under mild assumptions to a stationary local Nash equilibrium".[23]
They also proposed using the Adam stochastic optimization[24] to avoid mode collapse, as well as the Fréchet inception distance for evaluating GAN performances.
Vanishing gradient
Conversely, if the discriminator learns too fast compared to the generator, then the discriminator could almost perfectly distinguish [math]\displaystyle{ \mu_{G_\theta}, \mu_{\text{ref}} }[/math]. In such case, the generator [math]\displaystyle{ G_\theta }[/math] could be stuck with a very high loss no matter which direction it changes its [math]\displaystyle{ \theta }[/math], meaning that the gradient [math]\displaystyle{ \nabla_\theta L(G_\theta, D_\zeta) }[/math] would be close to zero. In such case, the generator cannot learn, a case of the vanishing gradient problem.[15]
Intuitively speaking, the discriminator is too good, and since the generator cannot take any small step (only small steps are considered in gradient descent) to improve its payoff, it does not even try.
One important method for solving this problem is the Wasserstein GAN.
Evaluation
GANs are usually evaluated by Inception score (IS), which measures how varied the generator's outputs are (as classified by an image classifier, usually Inception-v3), or Fréchet inception distance (FID), which measures how similar the generator's outputs are to a reference set (as classified by a learned image featurizer, such as Inception-v3 without its final layer). Many papers that propose new GAN architectures for image generation report how their architectures break the state of the art on FID or IS.
Another evaluation method is the Learned Perceptual Image Patch Similarity (LPIPS), which starts with a learned image featurizer [math]\displaystyle{ f_\theta: \text{Image} \to \R^n }[/math], and finetunes it by supervised learning on a set of [math]\displaystyle{ (x, x', \text{PerceptualDifference}(x, x')) }[/math], where [math]\displaystyle{ x }[/math] is an image, [math]\displaystyle{ x' }[/math] is a perturbed version of it, and [math]\displaystyle{ \text{PerceptualDifference}(x, x') }[/math] is how much they differ, as reported by human subjects. The model is finetuned so that it can approximate [math]\displaystyle{ \|f_\theta(x) - f_\theta(x')\| \approx \text{PerceptualDifference}(x, x') }[/math]. This finetuned model is then used to define [math]\displaystyle{ \text{LPIPS}(x, x') := \|f_\theta(x) - f_\theta(x')\| }[/math].[25]
Other evaluation methods are reviewed in.[26]
Variants
There is a veritable zoo of GAN variants.[27] Some of the most prominent are as follows:
Conditional GAN
Conditional GANs are similar to standard GANs except they allow the model to conditionally generate samples based on additional information. For example, if we want to generate a cat face given a dog picture, we could use a conditional GAN.
The generator in a GAN game generates [math]\displaystyle{ \mu_G }[/math], a probability distribution on the probability space [math]\displaystyle{ \Omega }[/math]. This leads to the idea of a conditional GAN, where instead of generating one probability distribution on [math]\displaystyle{ \Omega }[/math], the generator generates a different probability distribution [math]\displaystyle{ \mu_G(c) }[/math] on [math]\displaystyle{ \Omega }[/math], for each given class label [math]\displaystyle{ c }[/math].
For example, for generating images that look like ImageNet, the generator should be able to generate a picture of cat when given the class label "cat".
In the original paper,[3] the authors noted that GAN can be trivially extended to conditional GAN by providing the labels to both the generator and the discriminator.
Concretely, the conditional GAN game is just the GAN game with class labels provided:[math]\displaystyle{ L(\mu_G, D) := \mathbb{E}_{c \sim \mu_C, x\sim \mu_{\text{ref}}(c)}[\ln D(x, c)] + \mathbb{E}_{c \sim \mu_C, x\sim \mu_G(c)}[\ln (1-D(x, c))] }[/math]where [math]\displaystyle{ \mu_C }[/math] is a probability distribution over classes, [math]\displaystyle{ \mu_{\text{ref}}(c) }[/math] is the probability distribution of real images of class [math]\displaystyle{ c }[/math], and [math]\displaystyle{ \mu_G(c) }[/math] the probability distribution of images generated by the generator when given class label [math]\displaystyle{ c }[/math].
In 2017, a conditional GAN learned to generate 1000 image classes of ImageNet.[28]
GANs with alternative architectures
The GAN game is a general framework and can be run with any reasonable parametrization of the generator [math]\displaystyle{ G }[/math] and discriminator [math]\displaystyle{ D }[/math]. In the original paper, the authors demonstrated it using multilayer perceptron networks and convolutional neural networks. Many alternative architectures have been tried.
Deep convolutional GAN (DCGAN):[29] For both generator and discriminator, uses only deep networks consisting entirely of convolution-deconvolution layers, that is, fully convolutional networks.[30]
Self-attention GAN (SAGAN):[31] Starts with the DCGAN, then adds residually-connected standard self-attention modules to the generator and discriminator.
Variational autoencoder GAN (VAEGAN):[32] Uses a variational autoencoder (VAE) for the generator.
Transformer GAN (TransGAN):[33] Uses the pure transformer architecture for both the generator and discriminator, entirely devoid of convolution-deconvolution layers.
Flow-GAN:[34] Uses flow-based generative model for the generator, allowing efficient computation of the likelihood function.
GANs with alternative objectives
Many GAN variants are merely obtained by changing the loss functions for the generator and discriminator.
Original GAN:
We recast the original GAN objective into a form more convenient for comparison:[math]\displaystyle{ \begin{cases} \min_D L_D(D, \mu_G) = -\mathbb{E}_{x\sim \mu_{G}}[\ln D(x)] - \mathbb{E}_{x\sim \mu_{\text{ref}}}[\ln (1-D(x))]\\ \min_G L_G(D, \mu_G) = -\mathbb{E}_{x\sim \mu_G}[\ln (1-D(x))] \end{cases} }[/math]
Original GAN, non-saturating loss:
This objective for generator was recommended in the original paper for faster convergence.[3][math]\displaystyle{ L_G = \mathbb{E}_{x\sim \mu_G}[\ln D(x)] }[/math]The effect of using this objective is analyzed in Section 2.2.2 of Arjovsky et al.[35]
Original GAN, maximum likelihood:
[math]\displaystyle{ L_G = \mathbb{E}_{x\sim \mu_G}[(\exp \circ \sigma^{-1}\circ D) (x)] }[/math]where [math]\displaystyle{ \sigma }[/math] is the logistic function. When the discriminator is optimal, the generator gradient is the same as in maximum likelihood estimation, even though GAN cannot perform maximum likelihood estimation itself.[36][37]
Hinge loss GAN:[38][math]\displaystyle{ L_{D} = -\mathbb{E}_{x\sim{p}_{\text{ref}}}\left[\min\left(0, -1 + D\left(x\right)\right)\right] -\mathbb{E}_{x\sim\mu_G}\left[\min\left(0, -1 - D\left(x\right)\right)\right] }[/math][math]\displaystyle{ L_{G} = -\mathbb{E}_{x\sim \mu_G} [D\left(x\right)] }[/math]Least squares GAN:[39][math]\displaystyle{ L_D = \mathbb{E}_{x\sim \mu_{\text{ref}}}[(D(x)-b)^2] + \mathbb{E}_{x\sim \mu_G}[(D(x)-a)^2] }[/math][math]\displaystyle{ L_G = \mathbb{E}_{x\sim \mu_G}[(D(x)-c)^2] }[/math]where [math]\displaystyle{ a, b, c }[/math] are parameters to be chosen. The authors recommended [math]\displaystyle{ a = -1, b = 1, c = 0 }[/math].
Wasserstein GAN (WGAN)
The Wasserstein GAN modifies the GAN game at two points:
- The discriminator's strategy set is the set of measurable functions of type [math]\displaystyle{ D: \Omega \to \R }[/math] with bounded Lipschitz norm: [math]\displaystyle{ \|D\|_L \leq K }[/math], where [math]\displaystyle{ K }[/math] is a fixed positive constant.
- The objective is[math]\displaystyle{ L_{WGAN}(\mu_G, D) := \mathbb{E}_{x\sim \mu_G}[D(x)] -\mathbb E_{x\sim \mu_{\text{ref}}}[D(x)] }[/math]
One of its purposes is to solve the problem of mode collapse (see above).[15] The authors claim "In no experiment did we see evidence of mode collapse for the WGAN algorithm".
GANs with more than 2 players
Adversarial autoencoder
An adversarial autoencoder (AAE)[40] is more autoencoder than GAN. The idea is to start with a plain autoencoder, but train a discriminator to discriminate the latent vectors from a reference distribution (often the normal distribution).
InfoGAN
In conditional GAN, the generator receives both a noise vector [math]\displaystyle{ z }[/math] and a label [math]\displaystyle{ c }[/math], and produces an image [math]\displaystyle{ G(z, c) }[/math]. The discriminator receives image-label pairs [math]\displaystyle{ (x, c) }[/math], and computes [math]\displaystyle{ D(x, c) }[/math].
When the training dataset is unlabeled, conditional GAN does not work directly.
The idea of InfoGAN is to decree that every latent vector in the latent space can be decomposed as [math]\displaystyle{ (z, c) }[/math]: an incompressible noise part [math]\displaystyle{ z }[/math], and an informative label part [math]\displaystyle{ c }[/math], and encourage the generator to comply with the decree, by encouraging it to maximize [math]\displaystyle{ I(c, G(z, c)) }[/math], the mutual information between [math]\displaystyle{ c }[/math] and [math]\displaystyle{ G(z, c) }[/math], while making no demands on the mutual information [math]\displaystyle{ z }[/math] between [math]\displaystyle{ G(z, c) }[/math].
Unfortunately, [math]\displaystyle{ I(c, G(z, c)) }[/math] is intractable in general, The key idea of InfoGAN is Variational Mutual Information Maximization:[41] indirectly maximize it by maximizing a lower bound[math]\displaystyle{ {\hat {I}}(G,Q)=\mathbb {E} _{z\sim \mu _{Z},c\sim \mu _{C}}[\ln Q(c|G(z,c))]; \quad I(c, G(z, c)) \geq \sup_Q \hat I(G, Q) }[/math]where [math]\displaystyle{ Q }[/math] ranges over all Markov kernels of type [math]\displaystyle{ Q: \Omega_Y \to \mathcal P(\Omega_C) }[/math].
The InfoGAN game is defined as follows:[42]
Three probability spaces define an InfoGAN game:
- [math]\displaystyle{ (\Omega_X, \mu_{\text{ref}}) }[/math], the space of reference images.
- [math]\displaystyle{ (\Omega_Z, \mu_Z) }[/math], the fixed random noise generator.
- [math]\displaystyle{ (\Omega_C, \mu_C) }[/math], the fixed random information generator.
There are 3 players in 2 teams: generator, Q, and discriminator. The generator and Q are on one team, and the discriminator on the other team.
The objective function is[math]\displaystyle{ L(G, Q, D) = L_{GAN}(G, D) - \lambda \hat I(G, Q) }[/math]where [math]\displaystyle{ L_{GAN}(G, D) = \mathbb{E}_{x\sim \mu_{\text{ref}}, }[\ln D(x)] + \mathbb{E}_{z\sim \mu_Z}[\ln (1-D(G(z, c)))] }[/math] is the original GAN game objective, and [math]\displaystyle{ \hat I(G, Q) = \mathbb E_{z\sim\mu_Z, c\sim\mu_C}[\ln Q(c | G(z, c))] }[/math]
Generator-Q team aims to minimize the objective, and discriminator aims to maximize it:[math]\displaystyle{ \min_{G, Q} \max_D L(G, Q, D) }[/math]
Bidirectional GAN (BiGAN)
The standard GAN generator is a function of type [math]\displaystyle{ G: \Omega_Z\to \Omega_X }[/math], that is, it is a mapping from a latent space [math]\displaystyle{ \Omega_Z }[/math] to the image space [math]\displaystyle{ \Omega_X }[/math]. This can be understood as a "decoding" process, whereby every latent vector [math]\displaystyle{ z\in \Omega_Z }[/math] is a code for an image [math]\displaystyle{ x\in \Omega_X }[/math], and the generator performs the decoding. This naturally leads to the idea of training another network that performs "encoding", creating an autoencoder out of the encoder-generator pair.
Already in the original paper,[3] the authors noted that "Learned approximate inference can be performed by training an auxiliary network to predict [math]\displaystyle{ z }[/math] given [math]\displaystyle{ x }[/math]". The bidirectional GAN architecture performs exactly this.[43]
The BiGAN is defined as follows:
Two probability spaces define a BiGAN game:
- [math]\displaystyle{ (\Omega_X, \mu_{X}) }[/math], the space of reference images.
- [math]\displaystyle{ (\Omega_Z, \mu_Z) }[/math], the latent space.
There are 3 players in 2 teams: generator, encoder, and discriminator. The generator and encoder are on one team, and the discriminator on the other team.
The generator's strategies are functions [math]\displaystyle{ G:\Omega_Z \to \Omega_X }[/math], and the encoder's strategies are functions [math]\displaystyle{ E:\Omega_X \to \Omega_Z }[/math]. The discriminator's strategies are functions [math]\displaystyle{ D:\Omega_X \to [0, 1] }[/math].
The objective function is[math]\displaystyle{ L(G, E, D) = \mathbb E_{x\sim \mu_X}[\ln D(x, E(x))] + \mathbb E_{z\sim \mu_Z}[\ln (1-D(G(z), z))] }[/math]
Generator-encoder team aims to minimize the objective, and discriminator aims to maximize it:[math]\displaystyle{ \min_{G, E} \max_D L(G, E, D) }[/math]
In the paper, they gave a more abstract definition of the objective as:[math]\displaystyle{ L(G, E, D) = \mathbb E_{(x, z)\sim \mu_{E, X}}[\ln D(x, z)] + \mathbb E_{(x, z)\sim \mu_{G, Z}}[\ln (1-D(x, z))] }[/math]where [math]\displaystyle{ \mu_{E, X}(dx, dz) = \mu_X(dx) \cdot \delta_{E(x)}(dz) }[/math] is the probability distribution on [math]\displaystyle{ \Omega_X\times \Omega_Z }[/math] obtained by pushing [math]\displaystyle{ \mu X }[/math] forward via [math]\displaystyle{ x \mapsto (x, E(x)) }[/math], and [math]\displaystyle{ \mu_{G, Z}(dx, dz) = \delta_{G(z)}(dx)\cdot \mu_Z(dz) }[/math] is the probability distribution on [math]\displaystyle{ \Omega_X\times \Omega_Z }[/math] obtained by pushing [math]\displaystyle{ \mu_Z }[/math] forward via [math]\displaystyle{ z \mapsto (G(x), z) }[/math].
Applications of bidirectional models include semi-supervised learning,[44] interpretable machine learning,[45] and neural machine translation.[46]
CycleGAN
CycleGAN is an architecture for performing translations between two domains, such as between photos of horses and photos of zebras, or photos of night cities and photos of day cities.
The CycleGAN game is defined as follows:[47]
There are two probability spaces [math]\displaystyle{ (\Omega_X, \mu_X), (\Omega_Y, \mu_Y) }[/math], corresponding to the two domains needed for translations fore-and-back.
There are 4 players in 2 teams: generators [math]\displaystyle{ G_X: \Omega_X \to \Omega_Y, G_Y: \Omega_Y \to \Omega_X }[/math], and discriminators [math]\displaystyle{ D_X: \Omega_X\to [0, 1], D_Y:\Omega_Y\to [0, 1] }[/math].
The objective function is[math]\displaystyle{ L(G_X, G_Y, D_X, D_Y) = L_{GAN}(G_X, D_X) +L_{GAN}(G_Y, D_Y) + \lambda L_{cycle}(G_X, G_Y) }[/math]
where [math]\displaystyle{ \lambda }[/math] is a positive adjustable parameter, [math]\displaystyle{ L_{GAN} }[/math] is the GAN game objective, and [math]\displaystyle{ L_{cycle} }[/math] is the cycle consistency loss:[math]\displaystyle{ L_{cycle}(G_X, G_Y) = E_{x\sim \mu_X} \|G_X(G_Y(x)) - x\| + E_{y\sim \mu_Y} \|G_Y(G_X(y)) - y\| }[/math]The generators aim to minimize the objective, and the discriminators aim to maximize it:[math]\displaystyle{ \min_{G_X, G_Y} \max_{D_X, D_Y} L(G_X, G_Y, D_X, D_Y) }[/math]
Unlike previous work like pix2pix,[48] which requires paired training data, cycleGAN requires no paired data. For example, to train a pix2pix model to turn a summer scenery photo to winter scenery photo and back, the dataset must contain pairs of the same place in summer and winter, shot at the same angle; cycleGAN would only need a set of summer scenery photos, and an unrelated set of winter scenery photos.
GANs with particularly large or small scales
BigGAN
The BigGAN is essentially a self-attention GAN trained on a large scale (up to 80 million parameters) to generate large images of ImageNet (up to 512 x 512 resolution), with numerous engineering tricks to make it converge.[22][49]
Invertible data augmentation
When there is insufficient training data, the reference distribution [math]\displaystyle{ \mu_{\text{ref}} }[/math] cannot be well-approximated by the empirical distribution given by the training dataset. In such cases, data augmentation can be applied, to allow training GAN on smaller datasets. Naïve data augmentation, however, brings its problems.
Consider the original GAN game, slightly reformulated as follows:[math]\displaystyle{ \begin{cases} \min_D L_D(D, \mu_G) = -\mathbb{E}_{x\sim \mu_{\text{ref}}}[\ln D(x)] - \mathbb{E}_{x\sim \mu_G}[\ln (1-D(x))]\\ \min_G L_G(D, \mu_G) = -\mathbb{E}_{x\sim \mu_G}[\ln (1-D(x))] \end{cases} }[/math]Now we use data augmentation by randomly sampling semantic-preserving transforms [math]\displaystyle{ T: \Omega \to \Omega }[/math] and applying them to the dataset, to obtain the reformulated GAN game:[math]\displaystyle{ \begin{cases} \min_D L_D(D, \mu_G) = -\mathbb{E}_{x\sim \mu_{\text{ref}}, T\sim \mu_{trans}}[\ln D(T(x))] - \mathbb{E}_{x\sim \mu_G}[\ln (1-D(x))]\\ \min_G L_G(D, \mu_G) = -\mathbb{E}_{x\sim \mu_G}[\ln (1-D(x))] \end{cases} }[/math]This is equivalent to a GAN game with a different distribution [math]\displaystyle{ \mu_{\text{ref}}' }[/math], sampled by [math]\displaystyle{ T(x) }[/math], with [math]\displaystyle{ x\sim \mu_{\text{ref}}, T\sim \mu_{trans} }[/math]. For example, if [math]\displaystyle{ \mu_{\text{ref}} }[/math] is the distribution of images in ImageNet, and [math]\displaystyle{ \mu_{trans} }[/math] samples identity-transform with probability 0.5, and horizontal-reflection with probability 0.5, then [math]\displaystyle{ \mu_{\text{ref}}' }[/math] is the distribution of images in ImageNet and horizontally-reflected ImageNet, combined.
The result of such training would be a generator that mimics [math]\displaystyle{ \mu_{\text{ref}}' }[/math]. For example, it would generate images that look like they are randomly cropped, if the data augmentation uses random cropping.
The solution is to apply data augmentation to both generated and real images:[math]\displaystyle{ \begin{cases} \min_D L_D(D, \mu_G) = -\mathbb{E}_{x\sim \mu_{\text{ref}}, T\sim \mu_{trans}}[\ln D(T(x))] - \mathbb{E}_{x\sim \mu_G, T\sim \mu_{trans}}[\ln (1-D(T(x)))]\\ \min_G L_G(D, \mu_G) = -\mathbb{E}_{x\sim \mu_G, T\sim \mu_{trans}}[\ln (1-D(T(x)))] \end{cases} }[/math]The authors demonstrated high-quality generation using just 100-picture-large datasets.[50]
The StyleGAN-2-ADA paper points out a further point on data augmentation: it must be invertible.[51] Continue with the example of generating ImageNet pictures. If the data augmentation is "randomly rotate the picture by 0, 90, 180, 270 degrees with equal probability", then there is no way for the generator to know which is the true orientation: Consider two generators [math]\displaystyle{ G, G' }[/math], such that for any latent [math]\displaystyle{ z }[/math], the generated image [math]\displaystyle{ G(z) }[/math] is a 90-degree rotation of [math]\displaystyle{ G'(z) }[/math]. They would have exactly the same expected loss, and so neither is preferred over the other.
The solution is to only use invertible data augmentation: instead of "randomly rotate the picture by 0, 90, 180, 270 degrees with equal probability", use "randomly rotate the picture by 90, 180, 270 degrees with 0.1 probability, and keep the picture as it is with 0.7 probability". This way, the generator is still rewarded to keep images oriented the same way as un-augmented ImageNet pictures.
Abstractly, the effect of randomly sampling transformations [math]\displaystyle{ T: \Omega \to \Omega }[/math] from the distribution [math]\displaystyle{ \mu_{trans} }[/math] is to define a Markov kernel [math]\displaystyle{ K_{trans}: \Omega \to \mathcal P (\Omega) }[/math]. Then, the data-augmented GAN game pushes the generator to find some [math]\displaystyle{ \hat \mu_G\in \mathcal P(\Omega) }[/math], such that [math]\displaystyle{ K_{trans}*\mu_{\text{ref}} = K_{trans}*\hat\mu_{G} }[/math]where [math]\displaystyle{ * }[/math] is the Markov kernel convolution. A data-augmentation method is defined to be invertible if its Markov kernel [math]\displaystyle{ K_{trans} }[/math] satisfies[math]\displaystyle{ K_{trans}*\mu= K_{trans}*\mu' \implies \mu = \mu' \quad \forall \mu, \mu' \in \mathcal P(\Omega) }[/math]Immediately by definition, we see that composing multiple invertible data-augmentation methods results in yet another invertible method. Also by definition, if the data-augmentation method is invertible, then using it in a GAN game does not change the optimal strategy [math]\displaystyle{ \hat \mu_G }[/math] for the generator, which is still [math]\displaystyle{ \mu_{\text{ref}} }[/math].
There are two prototypical examples of invertible Markov kernels:
Discrete case: Invertible stochastic matrices, when [math]\displaystyle{ \Omega }[/math] is finite.
For example, if [math]\displaystyle{ \Omega = \{\uparrow, \downarrow, \leftarrow, \rightarrow\} }[/math] is the set of four images of an arrow, pointing in 4 directions, and the data augmentation is "randomly rotate the picture by 90, 180, 270 degrees with probability [math]\displaystyle{ p }[/math], and keep the picture as it is with probability [math]\displaystyle{ (1-3p) }[/math]", then the Markov kernel [math]\displaystyle{ K_{trans} }[/math] can be represented as a stochastic matrix:[math]\displaystyle{ [K_{trans}] = \begin{bmatrix} (1-3p) & p & p & p \\ p & (1-3p) & p & p \\ p & p & (1-3p) & p \\ p & p & p & (1-3p) \end{bmatrix} }[/math] and [math]\displaystyle{ K_{trans} }[/math] is an invertible kernel iff [math]\displaystyle{ [K_{trans}] }[/math] is an invertible matrix, that is, [math]\displaystyle{ p \neq 1/4 }[/math].
Continuous case: The gaussian kernel, when [math]\displaystyle{ \Omega = \R^n }[/math] for some [math]\displaystyle{ n \geq 1 }[/math].
For example, if [math]\displaystyle{ \Omega = \R^{256^2} }[/math] is the space of 256x256 images, and the data-augmentation method is "generate a gaussian noise [math]\displaystyle{ z\sim \mathcal N(0, I_{256^2}) }[/math], then add [math]\displaystyle{ \epsilon z }[/math] to the image", then [math]\displaystyle{ K_{trans} }[/math] is just convolution by the density function of [math]\displaystyle{ \mathcal N(0, \epsilon^2 I_{256^2}) }[/math]. This is invertible, because convolution by a gaussian is just convolution by the heat kernel, so given any [math]\displaystyle{ \mu\in\mathcal P(\R^n) }[/math], the convolved distribution [math]\displaystyle{ K_{trans} * \mu }[/math] can be obtained by heating up [math]\displaystyle{ \R^n }[/math] precisely according to [math]\displaystyle{ \mu }[/math], then wait for time [math]\displaystyle{ \epsilon^2/4 }[/math]. With that, we can recover [math]\displaystyle{ \mu }[/math] by running the heat equation backwards in time for [math]\displaystyle{ \epsilon^2/4 }[/math].
More examples of invertible data augmentations are found in the paper.[51]
SinGAN
SinGAN pushes data augmentation to the limit, by using only a single image as training data and performing data augmentation on it. The GAN architecture is adapted to this training method by using a multi-scale pipeline.
The generator [math]\displaystyle{ G }[/math] is decomposed into a pyramid of generators [math]\displaystyle{ G = G_1 \circ G_2 \circ \cdots \circ G_N }[/math], with the lowest one generating the image [math]\displaystyle{ G_N(z_N) }[/math] at the lowest resolution, then the generated image is scaled up to [math]\displaystyle{ r(G_N(z_N)) }[/math], and fed to the next level to generate an image [math]\displaystyle{ G_{N-1}(z_{N-1} + r(G_N(z_N))) }[/math] at a higher resolution, and so on. The discriminator is decomposed into a pyramid as well.[52]
StyleGAN series
The StyleGAN family is a series of architectures published by Nvidia's research division.
Progressive GAN
Progressive GAN[16] is a method for training GAN for large-scale image generation stably, by growing a GAN generator from small to large scale in a pyramidal fashion. Like SinGAN, it decomposes the generator as[math]\displaystyle{ G = G_1 \circ G_2 \circ \cdots \circ G_N }[/math], and the discriminator as [math]\displaystyle{ D = D_1 \circ D_2 \circ \cdots \circ D_N }[/math].
During training, at first only [math]\displaystyle{ G_N, D_N }[/math] are used in a GAN game to generate 4x4 images. Then [math]\displaystyle{ G_{N-1}, D_{N-1} }[/math] are added to reach the second stage of GAN game, to generate 8x8 images, and so on, until we reach a GAN game to generate 1024x1024 images.
To avoid shock between stages of the GAN game, each new layer is "blended in" (Figure 2 of the paper[16]). For example, this is how the second stage GAN game starts:
- Just before, the GAN game consists of the pair [math]\displaystyle{ G_N, D_N }[/math] generating and discriminating 4x4 images.
- Just after, the GAN game consists of the pair [math]\displaystyle{ ((1-\alpha) + \alpha\cdot G_{N-1})\circ u \circ G_N, D_N \circ d \circ ((1-\alpha) + \alpha\cdot D_{N-1}) }[/math] generating and discriminating 8x8 images. Here, the functions [math]\displaystyle{ u, d }[/math] are image up- and down-sampling functions, and [math]\displaystyle{ \alpha }[/math] is a blend-in factor (much like an alpha in image composing) that smoothly glides from 0 to 1.
StyleGAN-1
StyleGAN-1 is designed as a combination of Progressive GAN with neural style transfer.[53]
The key architectural choice of StyleGAN-1 is a progressive growth mechanism, similar to Progressive GAN. Each generated image starts as a constant [math]\displaystyle{ 4\times 4 \times 512 }[/math] array, and repeatedly passed through style blocks. Each style block applies a "style latent vector" via affine transform ("adaptive instance normalization"), similar to how neural style transfer uses Gramian matrix. It then adds noise, and normalize (subtract the mean, then divide by the variance).
At training time, usually only one style latent vector is used per image generated, but sometimes two ("mixing regularization") in order to encourage each style block to independently perform its stylization without expecting help from other style blocks (since they might receive an entirely different style latent vector).
After training, multiple style latent vectors can be fed into each style block. Those fed to the lower layers control the large-scale styles, and those fed to the higher layers control the fine-detail styles.
Style-mixing between two images [math]\displaystyle{ x, x' }[/math] can be performed as well. First, run a gradient descent to find [math]\displaystyle{ z, z' }[/math] such that [math]\displaystyle{ G(z)\approx x, G(z')\approx x' }[/math]. This is called "projecting an image back to style latent space". Then, [math]\displaystyle{ z }[/math] can be fed to the lower style blocks, and [math]\displaystyle{ z' }[/math] to the higher style blocks, to generate a composite image that has the large-scale style of [math]\displaystyle{ x }[/math], and the fine-detail style of [math]\displaystyle{ x' }[/math]. Multiple images can also be composed this way.
StyleGAN-2
StyleGAN-2 improves upon StyleGAN-1, by using the style latent vector to transform the convolution layer's weights instead, thus solving the "blob" problem.[54]
This was updated by the StyleGAN-2-ADA ("ADA" stands for "adaptive"),[51] which uses invertible data augmentation as described above. It also tunes the amount of data augmentation applied by starting at zero, and gradually increasing it until an "overfitting heuristic" reaches a target level, thus the name "adaptive".
StyleGAN-3
StyleGAN-3[55] improves upon StyleGAN-2 by solving the "texture sticking" problem, which can be seen in the official videos.[56] They analyzed the problem by the Nyquist–Shannon sampling theorem, and argued that the layers in the generator learned to exploit the high-frequency signal in the pixels they operate upon.
To solve this, they proposed imposing strict lowpass filters between each generator's layers, so that the generator is forced to operate on the pixels in a way faithful to the continuous signals they represent, rather than operate on them as merely discrete signals. They further imposed rotational and translational invariance by using more signal filters. The resulting StyleGAN-3 is able to solve the texture sticking problem, as well as generating images that rotate and translate smoothly.
Applications
GAN applications have increased rapidly.[57]
Fashion, art and advertising
GANs can be used to generate art; The Verge wrote in March 2019 that "The images created by GANs have become the defining look of contemporary AI art."[58] GANs can also be used to inpaint photographs[59] or create photos of imaginary fashion models, with no need to hire a model, photographer or makeup artist, or pay for a studio and transportation.[60] GANs have also been used for virtual shadow generation.[61]
Interactive Media
In 2020, Artbreeder was used to create the main antagonist in the sequel to the psychological web horror series Ben Drowned. The author would later go on to praise GAN applications for their ability to help generate assets for independent artists who are short on budget and manpower.[62][63]
Science
GANs can improve astronomical images[64] and simulate gravitational lensing for dark matter research.[65][66][67] They were used in 2019 to successfully model the distribution of dark matter in a particular direction in space and to predict the gravitational lensing that will occur.[68][69]
GANs have been proposed as a fast and accurate way of modeling high energy jet formation[70] and modeling showers through calorimeters of high-energy physics experiments.[71][72][73][74] GANs have also been trained to accurately approximate bottlenecks in computationally expensive simulations of particle physics experiments. Applications in the context of present and proposed CERN experiments have demonstrated the potential of these methods for accelerating simulation and/or improving simulation fidelity.[75][76]
Video games
In 2018, GANs reached the video game modding community, as a method of up-scaling low-resolution 2D textures in old video games by recreating them in 4k or higher resolutions via image training, and then down-sampling them to fit the game's native resolution (with results resembling the supersampling method of anti-aliasing).[77] With proper training, GANs provide a clearer and sharper 2D texture image magnitudes higher in quality than the original, while fully retaining the original's level of details, colors, etc. Known examples of extensive GAN usage include Final Fantasy VIII, Final Fantasy IX, Resident Evil REmake HD Remaster, and Max Payne.[citation needed]
AI-generated video
Artificial intelligence art for video uses AI to generate video from text as Text-to-Video model[78]
Audio synthesis
Concerns about malicious applications
thumb|Another example of a GAN generated portrait Concerns have been raised about the potential use of GAN-based human image synthesis for sinister purposes, e.g., to produce fake, possibly incriminating, photographs and videos.[79] GANs can be used to generate unique, realistic profile photos of people who do not exist, in order to automate creation of fake social media profiles.[80]
In 2019 the state of California considered[81] and passed on October 3, 2019, the bill AB-602, which bans the use of human image synthesis technologies to make fake pornography without the consent of the people depicted, and bill AB-730, which prohibits distribution of manipulated videos of a political candidate within 60 days of an election. Both bills were authored by Assembly member Marc Berman and signed by Governor Gavin Newsom. The laws went into effect in 2020.[82]
DARPA's Media Forensics program studies ways to counteract fake media, including fake media produced using GANs.[83]
Transfer learning
State-of-art transfer learning research use GANs to enforce the alignment of the latent feature space, such as in deep reinforcement learning.[84] This works by feeding the embeddings of the source and target task to the discriminator which tries to guess the context. The resulting loss is then (inversely) backpropagated through the encoder.
Miscellaneous applications
GAN can be used to detect glaucomatous images helping the early diagnosis which is essential to avoid partial or total loss of vision.[85]
GANs that produce photorealistic images can be used to visualize interior design, industrial design, shoes,[86] bags, and clothing items or items for computer games' scenes.[citation needed] Such networks were reported to be used by Facebook.[87]
GANs have been used to create forensic facial reconstructions of deceased historical figures.[88]
GANs can reconstruct 3D models of objects from images,[89] generate novel objects as 3D point clouds,[90] and model patterns of motion in video.[91]
GANs can be used to age face photographs to show how an individual's appearance might change with age.[92]
GANs can also be used to inpaint missing features in maps, transfer map styles in cartography[93] or augment street view imagery.[94]
Relevance feedback on GANs can be used to generate images and replace image search systems.[95]
A variation of the GANs is used in training a network to generate optimal control inputs to nonlinear dynamical systems. Where the discriminatory network is known as a critic that checks the optimality of the solution and the generative network is known as an Adaptive network that generates the optimal control. The critic and adaptive network train each other to approximate a nonlinear optimal control.[96]
GANs have been used to visualize the effect that climate change will have on specific houses.[97]
A GAN model called Speech2Face can reconstruct an image of a person's face after listening to their voice.[98]
In 2016 GANs were used to generate new molecules for a variety of protein targets implicated in cancer, inflammation, and fibrosis. In 2019 GAN-generated molecules were validated experimentally all the way into mice.[99][100]
Whereas the majority of GAN applications are in image processing, the work has also been done with time-series data. For example, recurrent GANs (R-GANs) have been used to generate energy data for machine learning.[101]
History
In 1991, Juergen Schmidhuber published generative and adversarial neural networks that contest with each other in the form of a zero-sum game, where one network's gain is the other network's loss.[102][103][104] The first network is a generative model with stochasticity that models a probability distribution over output patterns. The second network learns by gradient descent to predict the reactions of the environment to these patterns. This was called "artificial curiosity." For modern GANs (2014),[3] the environmental reaction is 1 or 0 depending on whether the first network's output is in a given set.[104]
Other people had similar ideas but did not develop them similarly. An idea involving adversarial networks was published in a 2010 blog post by Olli Niemitalo.[105] This idea was never implemented and did not involve stochasticity in the generator and thus was not a generative model. It is now known as a conditional GAN or cGAN.[106] An idea similar to GANs was used to model animal behavior by Li, Gauci and Gross in 2013.[107]
Another inspiration for GANs was noise-contrastive estimation,[108] which uses the same loss function as GANs and which Goodfellow studied during his PhD in 2010–2014.
Adversarial machine learning has other uses besides generative modeling and can be applied to models other than neural networks. In control theory, adversarial learning based on neural networks was used in 2006 to train robust controllers in a game theoretic sense, by alternating the iterations between a minimizer policy, the controller, and a maximizer policy, the disturbance.[109][110]
In 2017, a GAN was used for image enhancement focusing on realistic textures rather than pixel-accuracy, producing a higher image quality at high magnification.[111] In 2017, the first faces were generated.[112] These were exhibited in February 2018 at the Grand Palais.[113][114] Faces generated by StyleGAN[115] in 2019 drew comparisons with Deepfakes.[116][117][118]
Beginning in 2017, GAN technology began to make its presence felt in the fine arts arena with the appearance of a newly developed implementation which was said to have crossed the threshold of being able to generate unique and appealing abstract paintings, and thus dubbed a "CAN", for "creative adversarial network".[119] A GAN system was used to create the 2018 painting Edmond de Belamy, which sold for US$432,500.[120] An early 2019 article by members of the original CAN team discussed further progress with that system, and gave consideration as well to the overall prospects for an AI-enabled art.[121]
In May 2019, researchers at Samsung demonstrated a GAN-based system that produces videos of a person speaking, given only a single photo of that person.[122]
In August 2019, a large dataset consisting of 12,197 MIDI songs each with paired lyrics and melody alignment was created for neural melody generation from lyrics using conditional GAN-LSTM (refer to sources at GitHub AI Melody Generation from Lyrics).[123]
In May 2020, Nvidia researchers taught an AI system (termed "GameGAN") to recreate the game of Pac-Man simply by watching it being played.[124][125]
References
- ↑ "Generative AI and Future". November 15, 2022. https://pub.towardsai.net/generative-ai-and-future-c3b1695876f2.
- ↑ "CSDL | IEEE Computer Society". https://www.computer.org/csdl/magazine/co/2022/10/09903869/1H0G6xvtREk.
- ↑ 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 Goodfellow, Ian; Pouget-Abadie, Jean; Mirza, Mehdi; Xu, Bing; Warde-Farley, David; Ozair, Sherjil; Courville, Aaron; Bengio, Yoshua (2014). "Generative Adversarial Nets". Proceedings of the International Conference on Neural Information Processing Systems (NIPS 2014). pp. 2672–2680. https://papers.nips.cc/paper/5423-generative-adversarial-nets.pdf.
- ↑ Salimans, Tim; Goodfellow, Ian; Zaremba, Wojciech; Cheung, Vicki; Radford, Alec; Chen, Xi (2016). "Improved Techniques for Training GANs". arXiv:1606.03498 [cs.LG].
- ↑ Isola, Phillip; Zhu, Jun-Yan; Zhou, Tinghui; Efros, Alexei (2017). "Image-to-Image Translation with Conditional Adversarial Nets". Computer Vision and Pattern Recognition. https://phillipi.github.io/pix2pix/.
- ↑ Ho, Jonathon; Ermon, Stefano (2016). "Generative Adversarial Imitation Learning". Advances in Neural Information Processing Systems 29: 4565–4573. http://papers.nips.cc/paper/6391-generative-adversarial-imitation-learning.
- ↑ "Vanilla GAN (GANs in computer vision: Introduction to generative learning)". AI Summer. April 10, 2020. https://theaisummer.com/gan-computer-vision/#vanilla-gan-generative-adversarial-networks-2014.
- ↑ Luc, Pauline; Couprie, Camille; Chintala, Soumith; Verbeek, Jakob (2016-11-25). "Semantic Segmentation using Adversarial Networks". NIPS Workshop on Adversarial Training, Dec, Barcelona, Spain 2016.
- ↑ Andrej Karpathy; Pieter Abbeel; Greg Brockman; Peter Chen; Vicki Cheung; Rocky Duan; Ian Goodfellow; Durk Kingma et al., Generative Models, OpenAI, https://openai.com/blog/generative-models/, retrieved April 7, 2016
- ↑ Mohamed, Shakir; Lakshminarayanan, Balaji (2016). "Learning in Implicit Generative Models". arXiv:1610.03483 [stat.ML].
- ↑ 11.0 11.1 Goodfellow, Ian (2017-04-03). "NIPS 2016 Tutorial: Generative Adversarial Networks". arXiv:1701.00160 [cs.LG].
- ↑ Kingma, Diederik P.; Welling, Max (2014-05-01). "Auto-Encoding Variational Bayes". arXiv:1312.6114 [stat.ML].
- ↑ Rezende, Danilo Jimenez; Mohamed, Shakir; Wierstra, Daan (2014-06-18). "Stochastic Backpropagation and Approximate Inference in Deep Generative Models" (in en). International Conference on Machine Learning (PMLR): 1278–1286. https://proceedings.mlr.press/v32/rezende14.html.
- ↑ 14.0 14.1 Farnia, Farzan; Ozdaglar, Asuman (2020-11-21). "Do GANs always have Nash equilibria?" (in en). International Conference on Machine Learning (PMLR): 3029–3039. https://proceedings.mlr.press/v119/farnia20a.html.
- ↑ 15.0 15.1 15.2 Weng, Lilian (2019-04-18). "From GAN to WGAN". arXiv:1904.08994 [cs.LG].
- ↑ 16.0 16.1 16.2 Karras, Tero; Aila, Timo; Laine, Samuli; Lehtinen, Jaakko (2017-10-01). "Progressive Growing of GANs for Improved Quality, Stability, and Variation". arXiv:1710.10196 [cs.NE].
- ↑ Soviany, Petru; Ardei, Claudiu; Ionescu, Radu Tudor; Leordeanu, Marius (2019-10-22). "Image Difficulty Curriculum for Generative Adversarial Networks (CuGAN)". arXiv:1910.08967 [cs.LG].
- ↑ Hacohen, Guy; Weinshall, Daphna (2019-05-24). "On The Power of Curriculum Learning in Training Deep Networks" (in en). International Conference on Machine Learning (PMLR): 2535–2544. https://proceedings.mlr.press/v97/hacohen19a.html.
- ↑ "r/MachineLearning - Comment by u/ian_goodfellow on "[R [1701.07875] Wasserstein GAN"] (in en-US). January 30, 2017. https://www.reddit.com/r/MachineLearning/comments/5qxoaz/comment/dd4041v/?context=3.
- ↑ Lin, Zinan; Khetan, Ashish; Fanti, Giulia; Oh, Sewoong (December 2018). "PacGAN: the power of two samples in generative adversarial networks". 32nd International Conference on Neural Information Processing Systems. pp. 1505–1514. https://dl.acm.org/doi/10.5555/3326943.3327081.
- ↑ Mescheder, Lars; Geiger, Andreas; Nowozin, Sebastian (2018-07-31). "Which Training Methods for GANs do actually Converge?". arXiv:1801.04406 [cs.LG].
- ↑ 22.0 22.1 Brock, Andrew; Donahue, Jeff; Simonyan, Karen (2018-09-01). "Large Scale GAN Training for High Fidelity Natural Image Synthesis". International Conference on Learning Representations 2019. https://ui.adsabs.harvard.edu/abs/2018arXiv180911096B.
- ↑ Heusel, Martin; Ramsauer, Hubert; Unterthiner, Thomas; Nessler, Bernhard; Hochreiter, Sepp (2017). "GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium". Advances in Neural Information Processing Systems (Curran Associates, Inc.) 30. https://proceedings.neurips.cc/paper/2017/hash/8a1d694707eb0fefe65871369074926d-Abstract.html.
- ↑ Kingma, Diederik P.; Ba, Jimmy (2017-01-29). "Adam: A Method for Stochastic Optimization". arXiv:1412.6980 [cs.LG].
- ↑ Zhang, Richard; Isola, Phillip; Efros, Alexei A.; Shechtman, Eli; Wang, Oliver (2018). "The Unreasonable Effectiveness of Deep Features as a Perceptual Metric". pp. 586–595. arXiv:1801.03924 [cs.CV].
- ↑ Borji, Ali (2019-02-01). "Pros and cons of GAN evaluation measures" (in en). Computer Vision and Image Understanding 179: 41–65. doi:10.1016/j.cviu.2018.10.009. ISSN 1077-3142. https://www.sciencedirect.com/science/article/pii/S1077314218304272.
- ↑ Hindupur, Avinash (2022-07-15), The GAN Zoo, https://github.com/hindupuravinash/the-gan-zoo, retrieved 2022-07-15
- ↑ Odena, Augustus; Olah, Christopher; Shlens, Jonathon (2017-07-17). "Conditional Image Synthesis with Auxiliary Classifier GANs" (in en). International Conference on Machine Learning (PMLR): 2642–2651. https://proceedings.mlr.press/v70/odena17a.html.
- ↑ Radford, Alec; Metz, Luke; Chintala, Soumith (2016). "Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks". ICLR.
- ↑ Long, Jonathan; Shelhamer, Evan; Darrell, Trevor (2015). "Fully Convolutional Networks for Semantic Segmentation". CVF: 3431–3440. https://openaccess.thecvf.com/content_cvpr_2015/html/Long_Fully_Convolutional_Networks_2015_CVPR_paper.html.
- ↑ Zhang, Han; Goodfellow, Ian; Metaxas, Dimitris; Odena, Augustus (2019-05-24). "Self-Attention Generative Adversarial Networks" (in en). International Conference on Machine Learning (PMLR): 7354–7363. https://proceedings.mlr.press/v97/zhang19d.html.
- ↑ Larsen, Anders Boesen Lindbo; Sønderby, Søren Kaae; Larochelle, Hugo; Winther, Ole (2016-06-11). "Autoencoding beyond pixels using a learned similarity metric" (in en). International Conference on Machine Learning (PMLR): 1558–1566. https://proceedings.mlr.press/v48/larsen16.html.
- ↑ Jiang, Yifan; Chang, Shiyu; Wang, Zhangyang (2021-12-08). "TransGAN: Two Pure Transformers Can Make One Strong GAN, and That Can Scale Up". arXiv:2102.07074 [cs.CV].
- ↑ Grover, Aditya; Dhar, Manik; Ermon, Stefano (2017-05-01). "Flow-GAN: Combining Maximum Likelihood and Adversarial Learning in Generative Models". arXiv:1705.08868 [cs.LG].
- ↑ Arjovsky, Martin; Bottou, Léon (2017-01-01). "Towards Principled Methods for Training Generative Adversarial Networks". arXiv:1701.04862 [stat.ML].
- ↑ Goodfellow, Ian J. (2014-12-01). "On distinguishability criteria for estimating generative models". arXiv:1412.6515 [stat.ML].
- ↑ Goodfellow, Ian (2016-08-31). "Generative Adversarial Networks (GANs), Presentation at Berkeley Artificial Intelligence Lab". https://www.iangoodfellow.com/slides/2016-08-31-Berkeley.pdf.
- ↑ Lim, Jae Hyun; Ye, Jong Chul (2017-05-08). "Geometric GAN". arXiv:1705.02894 [stat.ML].
- ↑ Mao, Xudong; Li, Qing; Xie, Haoran; Lau, Raymond Y. K.; Wang, Zhen; Paul Smolley, Stephen (2017). Least Squares Generative Adversarial Networks. pp. 2794–2802. https://openaccess.thecvf.com/content_iccv_2017/html/Mao_Least_Squares_Generative_ICCV_2017_paper.html.
- ↑ Makhzani, Alireza; Shlens, Jonathon; Jaitly, Navdeep; Goodfellow, Ian; Frey, Brendan (2016). "Adversarial Autoencoders". arXiv:1511.05644 [cs.LG].
- ↑ Barber, David; Agakov, Felix (2003-12-09). "The IM algorithm: a variational approach to Information Maximization". Proceedings of the 16th International Conference on Neural Information Processing Systems. NIPS'03 (Cambridge, MA, USA: MIT Press): 201–208. https://dl.acm.org/doi/abs/10.5555/2981345.2981371.
- ↑ Chen, Xi; Duan, Yan; Houthooft, Rein; Schulman, John; Sutskever, Ilya; Abbeel, Pieter (2016). "InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets". Advances in Neural Information Processing Systems (Curran Associates, Inc.) 29. https://proceedings.neurips.cc/paper/2016/hash/7c9d0b1f96aebd7b5eca8c3edaa19ebb-Abstract.html.
- ↑ Donahue, Jeff; Krähenbühl, Philipp; Darrell, Trevor (2016). "Adversarial Feature Learning". arXiv:1605.09782 [cs.LG].
- ↑ Dumoulin, Vincent; Belghazi, Ishmael; Poole, Ben; Mastropietro, Olivier; Arjovsky, Alex; Courville, Aaron (2016). "Adversarially Learned Inference". arXiv:1606.00704 [stat.ML].
- ↑ Xi Chen; Yan Duan; Rein Houthooft; John Schulman; Ilya Sutskever; Pieter Abeel (2016). "InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets". arXiv:1606.03657 [cs.LG].
- ↑ "Bidirectional Generative Adversarial Networks for Neural Machine Translation". October 2018. pp. 190–199. https://www.aclweb.org/anthology/K18-1019.pdf.
- ↑ Zhu, Jun-Yan; Park, Taesung; Isola, Phillip; Efros, Alexei A. (2017). "Unpaired Image-To-Image Translation Using Cycle-Consistent Adversarial Networks". pp. 2223–2232. arXiv:1703.10593 [cs.CV].
- ↑ Isola, Phillip; Zhu, Jun-Yan; Zhou, Tinghui; Efros, Alexei A. (2017). "Image-To-Image Translation With Conditional Adversarial Networks". pp. 1125–1134. arXiv:1611.07004 [cs.CV].
- ↑ Brownlee, Jason (2019-08-22). "A Gentle Introduction to BigGAN the Big Generative Adversarial Network" (in en-US). https://machinelearningmastery.com/a-gentle-introduction-to-the-biggan/.
- ↑ Shengyu, Zhao; Zhijian, Liu; Ji, Lin; Jun-Yan, Zhu; Song, Han (2020). "Differentiable Augmentation for Data-Efficient GAN Training" (in en). Advances in Neural Information Processing Systems 33. https://proceedings.neurips.cc/paper/2020/hash/55479c55ebd1efd3ff125f1337100388-Abstract.html.
- ↑ 51.0 51.1 51.2 Tero, Karras; Miika, Aittala; Janne, Hellsten; Samuli, Laine; Jaakko, Lehtinen; Timo, Aila (2020). "Training Generative Adversarial Networks with Limited Data" (in en). Advances in Neural Information Processing Systems 33. https://proceedings.neurips.cc/paper/2020/hash/8d30aa96e72440759f74bd2306c1fa3d-Abstract.html.
- ↑ Shaham, Tamar Rott; Dekel, Tali; Michaeli, Tomer (October 2019). "SinGAN: Learning a Generative Model from a Single Natural Image". 2019 IEEE/CVF International Conference on Computer Vision (ICCV). IEEE. pp. 4569–4579. doi:10.1109/iccv.2019.00467. ISBN 978-1-7281-4803-8. http://dx.doi.org/10.1109/iccv.2019.00467.
- ↑ Karras, Tero; Laine, Samuli; Aila, Timo (June 2019). "A Style-Based Generator Architecture for Generative Adversarial Networks". 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE. pp. 4396–4405. doi:10.1109/cvpr.2019.00453. ISBN 978-1-7281-3293-8. http://dx.doi.org/10.1109/cvpr.2019.00453.
- ↑ Karras, Tero; Laine, Samuli; Aittala, Miika; Hellsten, Janne; Lehtinen, Jaakko; Aila, Timo (June 2020). "Analyzing and Improving the Image Quality of StyleGAN". 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE. pp. 8107–8116. doi:10.1109/cvpr42600.2020.00813. ISBN 978-1-7281-7168-5. http://dx.doi.org/10.1109/cvpr42600.2020.00813.
- ↑ Timo, Karras, Tero Aittala, Miika Laine, Samuli Härkönen, Erik Hellsten, Janne Lehtinen, Jaakko Aila (2021-06-23). Alias-Free Generative Adversarial Networks. OCLC 1269560084. http://worldcat.org/oclc/1269560084.
- ↑ Karras, Tero; Aittala, Miika; Laine, Samuli; Härkönen, Erik; Hellsten, Janne; Lehtinen, Jaakko; Aila, Timo. "Alias-Free Generative Adversarial Networks (StyleGAN3)". https://nvlabs.github.io/stylegan3.
- ↑ Caesar, Holger (2019-03-01), A list of papers on Generative Adversarial (Neural) Networks: nightrome/really-awesome-gan, https://github.com/nightrome/really-awesome-gan, retrieved 2019-03-02
- ↑ Vincent, James (5 March 2019). "A never-ending stream of AI art goes up for auction" (in en). The Verge. https://www.theverge.com/2019/3/5/18251267/ai-art-gans-mario-klingemann-auction-sothebys-technology.
- ↑ Yu, Jiahui, et al. "Generative image inpainting with contextual attention." Proceedings of the IEEE conference on computer vision and pattern recognition. 2018.
- ↑ Wong, Ceecee. "The Rise of AI Supermodels". https://www.cdotrends.com/story/14300/rise-ai-supermodels.
- ↑ Taif, K.; Ugail, H.; Mehmood, I. (2020). "Cast Shadow Generation Using Generative Adversarial Networks". Computational Science – ICCS 2020. Lecture Notes in Computer Science. 12141. pp. 481–495. doi:10.1007/978-3-030-50426-7_36. ISBN 978-3-030-50425-0.
- ↑ Allen, Eric Van (2020-07-08). "An Infamous Zelda Creepypasta Saga Is Using Artificial Intelligence to Craft Its Finale" (in en). https://www.usgamer.net/articles/ben-drowned-zelda-creepypasta-finale-artificial-intelligence.
- ↑ arcadeattack (2020-09-28). "Arcade Attack Podcast – September (4 of 4) 2020 - Alex Hall (Ben Drowned) - Interview" (in en-GB). https://www.arcadeattack.co.uk/podcast-september-4-2020/.
- ↑ Schawinski, Kevin; Zhang, Ce; Zhang, Hantian; Fowler, Lucas; Santhanam, Gokula Krishnan (2017-02-01). "Generative Adversarial Networks recover features in astrophysical images of galaxies beyond the deconvolution limit". Monthly Notices of the Royal Astronomical Society: Letters 467 (1): L110–L114. doi:10.1093/mnrasl/slx008. Bibcode: 2017MNRAS.467L.110S.
- ↑ Kincade, Kathy. "Researchers Train a Neural Network to Study Dark Matter". R&D Magazine. https://www.rdmag.com/news/2019/05/researchers-train-neural-network-study-dark-matter.
- ↑ Kincade, Kathy (May 16, 2019). "CosmoGAN: Training a neural network to study dark matter". Phys.org. https://phys.org/news/2019-05-cosmogan-neural-network-dark.html.
- ↑ "Training a neural network to study dark matter". May 16, 2019. https://www.sciencedaily.com/releases/2019/05/190516145206.htm.
- ↑ at 06:13, Katyanna Quach 20 May 2019. "Cosmoboffins use neural networks to build dark matter maps the easy way" (in en). https://www.theregister.co.uk/2019/05/20/neural_networks_dark_matter/.
- ↑ Mustafa, Mustafa; Bard, Deborah; Bhimji, Wahid; Lukić, Zarija; Al-Rfou, Rami; Kratochvil, Jan M. (2019-05-06). "CosmoGAN: creating high-fidelity weak lensing convergence maps using Generative Adversarial Networks". Computational Astrophysics and Cosmology 6 (1): 1. doi:10.1186/s40668-019-0029-9. ISSN 2197-7909. Bibcode: 2019ComAC...6....1M.
- ↑ Paganini, Michela; de Oliveira, Luke; Nachman, Benjamin (2017). "Learning Particle Physics by Example: Location-Aware Generative Adversarial Networks for Physics Synthesis". Computing and Software for Big Science 1: 4. doi:10.1007/s41781-017-0004-6. Bibcode: 2017arXiv170105927D.
- ↑ Paganini, Michela; de Oliveira, Luke; Nachman, Benjamin (2018). "Accelerating Science with Generative Adversarial Networks: An Application to 3D Particle Showers in Multi-Layer Calorimeters". Physical Review Letters 120 (4): 042003. doi:10.1103/PhysRevLett.120.042003. PMID 29437460. Bibcode: 2018PhRvL.120d2003P.
- ↑ Paganini, Michela; de Oliveira, Luke; Nachman, Benjamin (2018). "CaloGAN: Simulating 3D High Energy Particle Showers in Multi-Layer Electromagnetic Calorimeters with Generative Adversarial Networks". Phys. Rev. D 97 (1): 014021. doi:10.1103/PhysRevD.97.014021. Bibcode: 2018PhRvD..97a4021P.
- ↑ Erdmann, Martin; Glombitza, Jonas; Quast, Thorben (2019). "Precise Simulation of Electromagnetic Calorimeter Showers Using a Wasserstein Generative Adversarial Network". Computing and Software for Big Science 3: 4. doi:10.1007/s41781-018-0019-7.
- ↑ Musella, Pasquale; Pandolfi, Francesco (2018). "Fast and Accurate Simulation of Particle Detectors Using Generative Adversarial Networks". Computing and Software for Big Science 2: 8. doi:10.1007/s41781-018-0015-y. Bibcode: 2018arXiv180500850M.
- ↑ "Deep generative models for fast shower simulation in ATLAS". 2018. https://atlas.web.cern.ch/Atlas/GROUPS/PHYSICS/PUBNOTES/ATL-SOFT-PUB-2018-001/.
- ↑ SHiP, Collaboration (2019). "Fast simulation of muons produced at the SHiP experiment using Generative Adversarial Networks". Journal of Instrumentation 14 (11): P11028. doi:10.1088/1748-0221/14/11/P11028. Bibcode: 2019JInst..14P1028A.
- ↑ Tang, Xiaoou; Qiao, Yu; Loy, Chen Change; Dong, Chao; Liu, Yihao; Gu, Jinjin; Wu, Shixiang; Yu, Ke et al. (2018-09-01). "ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks" (in en). Bibcode: 2018arXiv180900219W.
- ↑ Narain, Rohit (2021-12-29). "Smart Video Generation from Text Using Deep Neural Networks" (in en-US). https://www.datatobiz.com/blog/smart-video-generation-from-text/.
- ↑ msmash (2019-02-14). "'This Person Does Not Exist' Website Uses AI To Create Realistic Yet Horrifying Faces". https://tech.slashdot.org/story/19/02/14/199200/this-person-does-not-exist-website-uses-ai-to-create-realistic-yet-horrifying-faces.
- ↑ Doyle, Michael (May 16, 2019). "John Beasley lives on Saddlehorse Drive in Evansville. Or does he?". Courier and Press. https://www.courierpress.com/story/news/crime/2019/05/16/john-beasley-lives-saddlehorse-drive-evansville-does-he/3700111002/.
- ↑ Targett, Ed (May 16, 2019). "California moves closer to making deepfake pornography illegal". Computer Business Review.
- ↑ Mihalcik, Carrie (2019-10-04). "California laws seek to crack down on deepfakes in politics and porn". CNET. https://www.cnet.com/news/california-laws-seek-to-crack-down-on-deepfakes-in-politics-and-porn/.
- ↑ Knight, Will (Aug 7, 2018). "The Defense Department has produced the first tools for catching deepfakes". MIT Technology Review. https://www.technologyreview.com/s/611726/the-defense-department-has-produced-the-first-tools-for-catching-deepfakes/.
- ↑ Li, Bonnie; François-Lavet, Vincent; Doan, Thang; Pineau, Joelle (2021-02-14). "Domain Adversarial Reinforcement Learning". arXiv:2102.07097 [cs.LG].
- ↑ Bisneto, Tomaz Ribeiro Viana; de Carvalho Filho, Antonio Oseas; Magalhães, Deborah Maria Vieira (February 2020). "Generative adversarial network and texture features applied to automatic glaucoma detection". Applied Soft Computing 90: 106165. doi:10.1016/j.asoc.2020.106165.
- ↑ Wei, Jerry (2019-07-03). "Generating Shoe Designs with Machine Learning" (in en). https://towardsdatascience.com/generating-shoe-designs-with-deep-learning-5dde432a23b8.
- ↑ Greenemeier, Larry (June 20, 2016). "When Will Computers Have Common Sense? Ask Facebook". https://www.scientificamerican.com/article/when-will-computers-have-common-sense-ask-facebook/.
- ↑ (in en) Reconstruction of the Roman Emperors: Interview with Daniel Voshart, https://www.youtube.com/watch?v=5mr6-JbuLrQ, retrieved 2022-06-03
- ↑ "3D Generative Adversarial Network". http://3dgan.csail.mit.edu/.
- ↑ Achlioptas, Panos; Diamanti, Olga; Mitliagkas, Ioannis; Guibas, Leonidas (2018). "Learning Representations and Generative Models for 3D Point Clouds". arXiv:1707.02392 [cs.CV].
- ↑ Vondrick, Carl; Pirsiavash, Hamed; Torralba, Antonio (2016). "Generating Videos with Scene Dynamics". https://www.cs.columbia.edu/~vondrick/tinyvideo/.
- ↑ Antipov, Grigory; Baccouche, Moez; Dugelay, Jean-Luc (2017). "Face Aging With Conditional Generative Adversarial Networks". arXiv:1702.01983 [cs.CV].
- ↑ Kang, Yuhao; Gao, Song; Roth, Rob (2019). "Transferring Multiscale Map Styles Using Generative Adversarial Networks". International Journal of Cartography 5 (2–3): 115–141. doi:10.1080/23729333.2019.1615729. Bibcode: 2019arXiv190502200K. https://geods.geography.wisc.edu/archives/1192.
- ↑ Wijnands, Jasper; Nice, Kerry; Thompson, Jason; Zhao, Haifeng; Stevenson, Mark (2019). "Streetscape augmentation using generative adversarial networks: Insights related to health and wellbeing". Sustainable Cities and Society 49: 101602. doi:10.1016/j.scs.2019.101602. Bibcode: 2019arXiv190506464W.
- ↑ Ukkonen, Antti; Joona, Pyry; Ruotsalo, Tuukka (2020). "Generating Images Instead of Retrieving Them". Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval. pp. 1329–1338. doi:10.1145/3397271.3401129. ISBN 9781450380164. https://doi.org/10.1145/3397271.3401129.
- ↑ Padhi, Radhakant; Unnikrishnan, Nishant (2006). "A single network adaptive critic (SNAC) architecture for optimal control synthesis for a class of nonlinear systems". Neural Networks 19 (10): 1648–1660. doi:10.1016/j.neunet.2006.08.010. PMID 17045458.
- ↑ "AI can show us the ravages of climate change". MIT Technology Review. May 16, 2019. https://www.technologyreview.com/f/613547/ai-can-show-us-the-ravages-of-climate-change/.
- ↑ Christian, Jon (May 28, 2019). "ASTOUNDING AI GUESSES WHAT YOU LOOK LIKE BASED ON YOUR VOICE". Futurism. https://futurism.com/the-byte/ai-guesses-appearance-voice.
- ↑ Zhavoronkov, Alex (2019). "Deep learning enables rapid identification of potent DDR1 kinase inhibitors". Nature Biotechnology 37 (9): 1038–1040. doi:10.1038/s41587-019-0224-x. PMID 31477924.
- ↑ Barber, Gregory. "A Molecule Designed By AI Exhibits "Druglike" Qualities". Wired. https://www.wired.com/story/molecule-designed-ai-exhibits-druglike-qualities/.
- ↑ Mohammad Navid Fekri; Ananda Mohon Ghosh; Katarina Grolinger (2020). "Generating Energy Data for Machine Learning with Recurrent Generative Adversarial Networks". Energies 13 (1): 130. doi:10.3390/en13010130.
- ↑ Schmidhuber, Jürgen (1991). "A possibility for implementing curiosity and boredom in model-building neural controllers". MIT Press/Bradford Books. pp. 222–227.
- ↑ Schmidhuber, Jürgen (2010). "Formal Theory of Creativity, Fun, and Intrinsic Motivation (1990-2010)". IEEE Transactions on Autonomous Mental Development 2 (3): 230–247. doi:10.1109/TAMD.2010.2056368.
- ↑ 104.0 104.1 Schmidhuber, Jürgen (2020). "Generative Adversarial Networks are Special Cases of Artificial Curiosity (1990) and also Closely Related to Predictability Minimization (1991)" (in en). Neural Networks 127: 58–66. doi:10.1016/j.neunet.2020.04.008. PMID 32334341.
- ↑ Niemitalo, Olli (February 24, 2010). "A method for training artificial neural networks to generate missing data within a variable context". http://yehar.com:80/blog/?p=167.
- ↑ "GANs were invented in 2010?" (in en-US). 2019. https://www.reddit.com/r/MachineLearning/comments/bnqm0p/d_gans_were_invented_in_2010/.
- ↑ Li, Wei; Gauci, Melvin; Gross, Roderich (July 6, 2013). "Proceeding of the fifteenth annual conference on Genetic and evolutionary computation conference - GECCO '13". Amsterdam, the Netherlands: ACM. pp. 223–230. doi:10.1145/2463372.2465801. ISBN 9781450319638.
- ↑ Gutmann, Michael; Hyvärinen, Aapo. "Noise-Contrastive Estimation". International Conference on AI and Statistics. http://proceedings.mlr.press/v9/gutmann10a/gutmann10a.pdf.
- ↑ Abu-Khalaf, Murad; Lewis, Frank L.; Huang, Jie (July 1, 2008). "Neurodynamic Programming and Zero-Sum Games for Constrained Control Systems". IEEE Transactions on Neural Networks 19 (7): 1243–1252. doi:10.1109/TNN.2008.2000204.
- ↑ Abu-Khalaf, Murad; Lewis, Frank L.; Huang, Jie (December 1, 2006). "Policy Iterations on the Hamilton–Jacobi–Isaacs Equation for H∞ State Feedback Control With Input Saturation". IEEE Transactions on Automatic Control. doi:10.1109/TAC.2006.884959.
- ↑ Sajjadi, Mehdi S. M.; Schölkopf, Bernhard; Hirsch, Michael (2016-12-23). "EnhanceNet: Single Image Super-Resolution Through Automated Texture Synthesis". arXiv:1612.07919 [cs.CV].
- ↑ "This Person Does Not Exist: Neither Will Anything Eventually with AI". March 20, 2019. https://medium.com/@alagraphy/this-person-does-not-exist-neither-will-anything-if-artificial-intelligence-keeps-learning-1a9fcba728f.
- ↑ "ARTificial Intelligence enters the History of Art". December 28, 2018. https://www.issuewire.com/artificial-intelligence-enters-the-history-of-art-1620667772563815.
- ↑ Tom Février (2019-02-17). "Le scandale de l'intelligence ARTificielle". https://link.medium.com/MYqBrGHIKV.
- ↑ "StyleGAN: Official TensorFlow Implementation". March 2, 2019. https://github.com/NVlabs/stylegan.
- ↑ Paez, Danny (2019-02-13). "This Person Does Not Exist Is the Best One-Off Website of 2019". https://www.inverse.com/article/53280-this-person-does-not-exist-gans-website=website=Inverse.
- ↑ Beschizza, Rob (2019-02-15). "This Person Does Not Exist". https://boingboing.net/2019/02/15/this-person-does-not-exist.html.
- ↑ Horev, Rani (2018-12-26). "Style-based GANs – Generating and Tuning Realistic Artificial Faces". https://www.lyrn.ai/2018/12/26/a-style-based-generator-architecture-for-generative-adversarial-networks/.
- ↑ Elgammal, Ahmed; Liu, Bingchen; Elhoseiny, Mohamed; Mazzone, Marian (2017). "CAN: Creative Adversarial Networks, Generating "Art" by Learning About Styles and Deviating from Style Norms". arXiv:1706.07068 [cs.AI].
- ↑ Cohn, Gabe (2018-10-25). "AI Art at Christie's Sells for $432,500". The New York Times. https://www.nytimes.com/2018/10/25/arts/design/ai-art-sold-christies.html.
- ↑ Mazzone, Marian; Ahmed Elgammal (21 February 2019). "Art, Creativity, and the Potential of Artificial Intelligence". Arts 8: 26. doi:10.3390/arts8010026.
- ↑ Kulp, Patrick (May 23, 2019). "Samsung's AI Lab Can Create Fake Video Footage From a Single Headshot". AdWeek. https://www.adweek.com/digital/samsungs-ai-lab-can-create-fake-video-footage-from-a-single-headshot/.
- ↑ Yu, Yi; Canales, Simon (2021). "Conditional LSTM-GAN for Melody Generation from Lyrics". ACM Transactions on Multimedia Computing, Communications, and Applications 17: 1–20. doi:10.1145/3424116. ISSN 1551-6857.
- ↑ "Nvidia's AI recreates Pac-Man from scratch just by watching it being played". The Verge. 2020-05-22. https://www.theverge.com/2020/5/22/21266251/nvidia-ai-gamegan-recreate-pac-man-virutal-environment.
- ↑ Seung Wook Kim; Zhou, Yuhao; Philion, Jonah; Torralba, Antonio; Fidler, Sanja (2020). "Learning to Simulate Dynamic Environments with GameGAN". arXiv:2005.12126 [cs.CV].
External links
- Knight, Will. "5 Big Predictions for Artificial Intelligence in 2017". MIT Technology Review. https://www.technologyreview.com/s/603216/5-big-predictions-for-artificial-intelligence-in-2017/.
- Karras, Tero; Laine, Samuli; Aila, Timo (2018). "A Style-Based Generator Architecture for Generative Adversarial Networks". arXiv:1812.04948 [cs.NE].
- This Person Does Not Exist – photorealistic images of people who do not exist, generated by StyleGAN
- This Cat Does Not Exist – photorealistic images of cats who do not exist, generated by StyleGAN
- Wang, Zhengwei; She, Qi; Ward, Tomas E. (2019). "Generative Adversarial Networks in Computer Vision: A Survey and Taxonomy". arXiv:1906.01529 [cs.LG].
Original source: https://en.wikipedia.org/wiki/Generative adversarial network.
Read more |