Quiz 5 - Module 4 Flashcards
GANs involve __ density modeling
implicit
- generate samples from the model p(x)
GAN input
- Generator
- Vector of random numbers, normal (mu, sigma)
- Discriminator
- minibatch
- p(x) fake image
- real image
- minibatch
Gan output
- Discriminator
- real or fake
- Generator
- p(x)
Generator role
- update weights to improve realism of generated images
Discriminator role
- update weights to better discrimate
Game theory problem for GANs
- Mini-max Two Player Game
GAN Objective
GAN Generator Objective
GAN Discriminator Objective
The ___ part of the GAN objective does not have good gradient properties
Generator
- High gradient when D(G(z)) is high (ie. discriminator is wrong)
- We want to improve when samples are bad
Alternate Objective for GAN Max-Max Game
GAN Drawbacks
- No explicit model for distribution
- training can be unstable
- High-fidelity generation heavy to train
VAE involve __ density modeling
explicit
VAE input
- Encoder
- Input is image X
- Decoder
- sample Z from simple distribution
VAE Output
- Encoder
- Parameters of a probability distribution (Z)
- mu and sigma
- Parameters of a probability distribution (Z)
- Decoder
- Parameters of a probability distribution
- Mu and sigma of Gaussian
- For multi-dimensional version, output diagonal covariance
- Parameters of a probability distribution
VAE Optimization
- Two parts
- KL Divergence
- Variational lower bound (elbo)
- Reconstruction Loss
- KL Divergence
T/F: Variational AutoEncoders are differential
True - with caveat
- Sampling action is not differentiable (stochastic)
- Need to use reparameterization trick to put stochastic sampling into a separate variable (epsilon) that is not in backprop.
VAE Reconstruction Loss
VAE Distribution Loss
The loss associated with the VAE Distribution diverging from the normal distribution (mu = 0, sigma = 1)
Gan Discriminator wants ___ (minimize/maximize)
E[log D(x)] + E[log (1 - D(G(z)))]
maximize
- Discriminator wants to output a 0 for D(G(z)) to indicate that the generated image is fake (0) not real (1)
Gan Generator wants _____ (minimize/maximize)
E[log D(x)] + E[log (1 - D(G(z)))]
minimize
- The generator wants the discriminator to be wrong
- Ie. wants the discriminator to classify D(G(z)) as 1
The ___ part of the objective for GAN does not have good
Generator
- High gradient when D(G(z)) is high (discriminator, wrong)
- We want it to improve when samples are bad (discriminator is right)