Generative Adversarial Networks Sahin Olut Department of Computer - - PowerPoint PPT Presentation

generative adversarial networks
SMART_READER_LITE
LIVE PREVIEW

Generative Adversarial Networks Sahin Olut Department of Computer - - PowerPoint PPT Presentation

Generative Adversarial Networks Sahin Olut Department of Computer Engineering Istanbul Technical University November 4, 2017 Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 1 / 23 Outline Motivation 1 Why


slide-1
SLIDE 1

Generative Adversarial Networks

Sahin Olut

Department of Computer Engineering Istanbul Technical University

November 4, 2017

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 1 / 23

slide-2
SLIDE 2

Outline

1

Motivation Why should we study generative models? Some results from recent GAN works

2

How does GAN work? GAN Architecture Formutalation of GAN Training procedure of GANs

3

Applications of GANs Computer Vision Reinforcement Learning

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 2 / 23

slide-3
SLIDE 3

Motivation Why should we study generative models?

Outline

1

Motivation Why should we study generative models? Some results from recent GAN works

2

How does GAN work? GAN Architecture Formutalation of GAN Training procedure of GANs

3

Applications of GANs Computer Vision Reinforcement Learning

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 3 / 23

slide-4
SLIDE 4

Motivation Why should we study generative models?

Motivation

We can restore the missing data by generative models. (Image inpaiting, super-resolution)

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 4 / 23

slide-5
SLIDE 5

Motivation Why should we study generative models?

Motivation

We can restore the missing data by generative models. (Image inpaiting, super-resolution) We can generate new examples to enhance our classifier networks. (Data augmentation strategy)

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 4 / 23

slide-6
SLIDE 6

Motivation Why should we study generative models?

Motivation

We can restore the missing data by generative models. (Image inpaiting, super-resolution) We can generate new examples to enhance our classifier networks. (Data augmentation strategy) If we want our computers to understand, we have to teach them to

  • create. (I do not understand what I cannot create. – Richard

Feynman)

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 4 / 23

slide-7
SLIDE 7

Motivation Some results from recent GAN works

Outline

1

Motivation Why should we study generative models? Some results from recent GAN works

2

How does GAN work? GAN Architecture Formutalation of GAN Training procedure of GANs

3

Applications of GANs Computer Vision Reinforcement Learning

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 5 / 23

slide-8
SLIDE 8

Motivation Some results from recent GAN works

Recent works

Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network [Ledig et al., 2016]

Figure: Work by Ledig et al., 2016

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 6 / 23

slide-9
SLIDE 9

Motivation Some results from recent GAN works

Recent works

Plug & Play Generative Networks: Conditional Iterative Generation of Images in Latent Space [Nguyen et al., 2017]

Figure: Synthetic images generated from ImageNet classes.

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 7 / 23

slide-10
SLIDE 10

How does GAN work? GAN Architecture

Outline

1

Motivation Why should we study generative models? Some results from recent GAN works

2

How does GAN work? GAN Architecture Formutalation of GAN Training procedure of GANs

3

Applications of GANs Computer Vision Reinforcement Learning

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 8 / 23

slide-11
SLIDE 11

How does GAN work? GAN Architecture

Discriminator and Generator Networks

What is a generative model?

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 9 / 23

slide-12
SLIDE 12

How does GAN work? GAN Architecture

Discriminator and Generator Networks

What is a generative model? Discriminator’s role in GAN is to predict whether the input is generated or sampled from training data. The aim of generator is to capture the distribution of the training data. According to Goodfellow et al., it is a minimax game between generator and discriminator where generator tries to fool discriminator.(There are some debates about it.)

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 9 / 23

slide-13
SLIDE 13

How does GAN work? Formutalation of GAN

Outline

1

Motivation Why should we study generative models? Some results from recent GAN works

2

How does GAN work? GAN Architecture Formutalation of GAN Training procedure of GANs

3

Applications of GANs Computer Vision Reinforcement Learning

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 10 / 23

slide-14
SLIDE 14

How does GAN work? Formutalation of GAN

The description of GANs leads us to formulation for loss: min

G max D V (D, G) = Ex∼pdata(x)[log D(x)]+Ez∼pz(z)[log(1−D(G(z)))]

(1) Where both networks rely on gradients flowing through discriminator.

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 11 / 23

slide-15
SLIDE 15

How does GAN work? Training procedure of GANs

Outline

1

Motivation Why should we study generative models? Some results from recent GAN works

2

How does GAN work? GAN Architecture Formutalation of GAN Training procedure of GANs

3

Applications of GANs Computer Vision Reinforcement Learning

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 12 / 23

slide-16
SLIDE 16

How does GAN work? Training procedure of GANs Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 13 / 23

slide-17
SLIDE 17

How does GAN work? Training procedure of GANs

GAN Framework

From now and on, we have a basic grasp of GAN, therefore we can code

  • ur own GAN! The starter code can be found in my GitHub Repository:

github.com/norveclibalikci/InzvaGanStarter

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 14 / 23

slide-18
SLIDE 18

Applications of GANs Computer Vision

Outline

1

Motivation Why should we study generative models? Some results from recent GAN works

2

How does GAN work? GAN Architecture Formutalation of GAN Training procedure of GANs

3

Applications of GANs Computer Vision Reinforcement Learning

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 15 / 23

slide-19
SLIDE 19

Applications of GANs Computer Vision

Computer Vision Applications

Image generation(Plug and Play GAN) Style transfer(CycleGAN) Image inpainting, super-resolution(SRGAN) Image to text (Image captioning - Generative Adversarial Text to Image Synthesis)

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 16 / 23

slide-20
SLIDE 20

Applications of GANs Computer Vision

Computer Vision Applications

Image generation(Plug and Play GAN) Style transfer(CycleGAN) Image inpainting, super-resolution(SRGAN) Image to text (Image captioning - Generative Adversarial Text to Image Synthesis) There are many applications which are not covered above.

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 16 / 23

slide-21
SLIDE 21

Applications of GANs Reinforcement Learning

Outline

1

Motivation Why should we study generative models? Some results from recent GAN works

2

How does GAN work? GAN Architecture Formutalation of GAN Training procedure of GANs

3

Applications of GANs Computer Vision Reinforcement Learning

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 17 / 23

slide-22
SLIDE 22

Applications of GANs Reinforcement Learning

Applications to real life

Discriminator can be rewarded for labeling correctly and a new loss can be defined by that way. (Still on research) Generating environment and test for reinforcement learning applications. Simulating particle experiments like they do in CERN.

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 18 / 23

slide-23
SLIDE 23

Limitations of GAN

Many things can be done with GANs however, GANs have limitations as well.

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 19 / 23

slide-24
SLIDE 24

Limitations of GAN

There is no training procedure that has been proven to be successful.

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 20 / 23

slide-25
SLIDE 25

Limitations of GAN

There is no training procedure that has been proven to be successful. Sometimes discriminator learns faster than generator(predicts everything correctly), which leads a gradient problem to generator. In some cases, it is vice-versa as well.

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 20 / 23

slide-26
SLIDE 26

Limitations of GAN

There is no training procedure that has been proven to be successful. Sometimes discriminator learns faster than generator(predicts everything correctly), which leads a gradient problem to generator. In some cases, it is vice-versa as well. After from some point, generator keeps generating similar examples.

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 20 / 23

slide-27
SLIDE 27

Limitations of GAN

There is no training procedure that has been proven to be successful. Sometimes discriminator learns faster than generator(predicts everything correctly), which leads a gradient problem to generator. In some cases, it is vice-versa as well. After from some point, generator keeps generating similar examples. Losses of models are not meaningful as classifier’s. It just keep

  • scillating back and forth.

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 20 / 23

slide-28
SLIDE 28

Limitations of GAN

Loss graphic of a GAN

Figure: Taken from http://www.rricard.me

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 21 / 23

slide-29
SLIDE 29

Summary

Summary

GANs are very powerful tools for generating new samples from data yet it has serious issues. GAN uses semi-supervised approach therefore, there is no need for data-labeling. Unsupervised learning is the cake of true AI. (Yann LeCun, Head of Facebook Research)

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 22 / 23

slide-30
SLIDE 30

Appendix For Further Reading

For Further Reading I

Chintala et al. GAN Hacks github.com/soumith/ganhacks Goodfellow et al. Generative Adversarial Networks arXiv: 1406.2661, 2014.

Sahin Olut (ITU Vision Lab) Generative Adversarial Networks November 4, 2017 23 / 23