Docsity

Generative Adversarial Networks: An Introduction, Lecture notes of Computer science

Toggle sidebar
bg1
Generative Adversarial Networks:
What is a Generative Adversarial Network?
A generative adversarial network, or GAN, is a deepneural
networkframework which is able to learn from a set of training
data and generate new data with the same characteristics as the
training data. For example, a generative adversarial network trained
on photographs of human faces can generate realistic-looking faces
which are entirely fictitious.
Generative adversarial networks consist of two neural
networks, the generator and the discriminator, which
compete against each other.
The generator is trained to produce fake data, and the
discriminator is trained to distinguish the generator’s fake data
from real examples.
If the generator produces fake data that the discriminator can
easily recognize as implausible, such as an image that is
clearly not a face, the generator is penalized. Over time, the
generator learns to generate more plausible examples.
Generative Adversarial Network Architecture
A generative adversarial network is made up of two neural
networks:
The generator, which learns to produce realistic fake data from a
random seed. The fake examples produced by the generator are used
as negative examples for training the discriminator.
The discriminator, which learns to distinguish the fake data from
realistic data. If the generator produces implausible results, the
discriminator penalizes the generator.
The generator’s fake examples, and the training set of real
examples, are both fed randomly into the discriminator network. The
discriminator does not know whether a particular input originated
from the generator or from the training .
Initially, before training has begun, the generator’s fake output is
very easy for the discriminator to recognize.
pf3

Partial preview of the text

Download Generative Adversarial Networks: An Introduction and more Lecture notes Computer science in PDF only on Docsity!

Generative Adversarial Networks:

What is a Generative Adversarial Network?

A generative adversarial network, or GAN, is a deep neural network framework which is able to learn from a set of training data and generate new data with the same characteristics as the training data. For example, a generative adversarial network trained on photographs of human faces can generate realistic-looking faces which are entirely fictitious.  Generative adversarial networks consist of two neural networks, the generator and the discriminator , which compete against each other.  The generator is trained to produce fake data, and the discriminator is trained to distinguish the generator’s fake data from real examples.  If the generator produces fake data that the discriminator can easily recognize as implausible, such as an image that is clearly not a face, the generator is penalized. Over time, the generator learns to generate more plausible examples.

Generative Adversarial Network Architecture

A generative adversarial network is made up of two neural networks: The generator , which learns to produce realistic fake data from a random seed. The fake examples produced by the generator are used as negative examples for training the discriminator. The discriminator , which learns to distinguish the fake data from realistic data. If the generator produces implausible results, the discriminator penalizes the generator. The generator’s fake examples, and the training set of real examples, are both fed randomly into the discriminator network. The discriminator does not know whether a particular input originated from the generator or from the training. Initially, before training has begun, the generator’s fake output is very easy for the discriminator to recognize.

Since the output of the generator is fed directly into the discriminator as input, this means that when the discriminator classifies an output of the generator, we can apply the back propagation algorithm through the whole system and update the generator’s weights. Over time, the generator’s output becomes more realistic and the generator gets better at fooling the discriminator. Eventually, the generator’s outputs are so realistic, that the discriminator is unable to distinguish them from the real examples. The Discriminator in a Generative Adversarial Network The discriminator is simply a binary classifier, ending with a suitable function such as the softmax function. The discriminator outputs an array such as where the two numbers indicate the discriminator’s estimate of the probability of the input example being real or fake. The discriminator’s input may come from two sources: the training set, such as real photos of faces, or real audio recordings. the generator, such as generated synthetic faces, or fake audio recordings. While we are training the discriminator, we do not train the generator, but hold the generator’s weights constant and use it to produce negative examples for the discriminator. The process for training the discriminator in a GAN