Back to Deep Learning Mind Map
中文·English
🧠 Deep LearningID: gan

GAN Adversarial Training

GAN 对抗训练
🎯Core Definition
GANs pit a generator GG against a discriminator DD in a zero-sum min-max game: minGmaxDV(D,G)=Expdata[logD(x)]+Ezpz[log(1D(G(z)))]\min_G\max_D V(D,G) = \mathbb{E}_{x \sim p_{data}}[\log D(x)] + \mathbb{E}_{z \sim p_z}[\log(1 - D(G(z)))]. For fixed GG, differentiating w.r.t. DD yields the optimal discriminator as a likelihood ratio D(x)=pdata(x)pdata(x)+pg(x)D^*(x) = \frac{p_{data}(x)}{p_{data}(x) + p_g(x)}; plugging it back gives V(D,G)=log4+2JSD(pdatapg)V(D^*, G) = -\log 4 + 2 \cdot JSD(p_{data} \Vert p_g), i.e. GAN minimizes the Jensen-Shannon divergence between the data and generated distributions, reaching the global optimum log4-\log 4 iff pdata=pgp_{data} = p_g.
💡Use Cases
image generation (DCGAN/ProGAN/StyleGAN), super-resolution, image-to-image translation; interviews drill the min-max objective, the DD^* derivation, and instability/mode-collapse mechanisms.
Key Problems Solved
unlike VAEs with explicit density approximation and pixel-wise reconstruction losses, GANs make no distributional assumption and produce sharper samples; the cost is that alternating D/G training approximates a Nash equilibrium rather than minimizing a loss — with a too-strong DD the JSD saturates and generator gradients vanish, with a too-weak DD the signal is noisy, leading to mode collapse and oscillation.
🎯5 High-Frequency Exam Points
1
Write GAN's min-max objective and derive the optimal discriminator D(x)D^*(x)?
2
Why does substituting DD^* reduce GAN to minimizing JSD(pdatapg)JSD(p_{data} \Vert p_g)?
3
Why is GAN training unstable? Mechanisms behind vanishing gradients and mode collapse?
4
Why do GANs suffer mode collapse while VAEs do not? How do their sample qualities differ?
5
Common techniques to stabilize GAN training (label smoothing / TTUR / spectral norm)?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "GAN Adversarial Training"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardGraph Attention NetworkNext CardWGAN & Wasserstein

🔗 More Deep Learning Knowledge Cards

Activation FunctionsAdam & AdamWAutograd Compute GraphBatch Normalization