Write the vanilla GAN's minimax objective.
hardAnswer
- .
- D tries to output 1 for real, 0 for fake; G tries to make D output 1 on its fakes.
- In practice, G is trained with the 'non-saturating' (stronger gradients when D is confident).
- WGAN replaces this with a Wasserstein-distance-based loss for better stability.
Check yourself — multiple choice
- MSE between real and fake
- E[log D(x)] + E[log(1 - D(G(z)))] — real vs fake classification game; G uses non-saturating variant
- Same as cross-entropy on labels
- GAN has no loss
Vanilla GAN: log D + log(1-D(G(z))) minimax; G uses non-saturating -log D(G(z)).
#losses#gan#generative
Practise Deep Learning
214 interview questions in this topic.
Related questions
- What does WGAN + gradient penalty change vs vanilla GAN?
- What is the standard reconstruction loss for autoencoders?
- What is perceptual loss and why is it better than pixel-wise for image quality?
- What is mode collapse in GANs and how do you mitigate it?
- What are the main ideas of StyleGAN?
- Write the VAE ELBO and explain each term.