Why do gradients of the original minimax GAN objective vanish when pdata and pg have disjoint supports, what is mode collapse, and how does the Wasserstein-1 distance in WGAN fix both?

Deep learning, Generative adversarial networks
Level L4 Advanced. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you understand the geometric failure of Jensen–Shannon divergence on low-dimensional manifolds and how Kantorovich–Rubinstein duality yields usable gradients everywhere.

Key idea

Real images and generated images typically lie on low-dimensional manifolds that do not overlap early in training. On disjoint supports, DJS(pdata∥pg)=log⁡2 identically, giving zero gradient to the generator; the Wasserstein-1 distance W1(pdata,pg)=sup⁡∥f∥L≤1(Epdata[f(x)]−Epg[f(x)]) remains continuous and gives non-zero linear slopes even when supports do not overlap.

Steps

  1. Show why minimax gradients vanish: if supp⁡(pdata)∩supp⁡(pg)=∅, an optimal discriminator outputs D∗(x)=1 on real data and D∗(x)=0 on generated data, so DJS(pdata∥pg)=log⁡2 (constant) regardless of how close the two manifolds are. The generator’s gradient ∇θlog⁡(1−D(Gθ(z))) vanishes (and even the non-saturating heuristic −log⁡D(Gθ(z)) suffers from high variance or instability if D is trained to optimality).
  2. Define mode collapse: the generator maps many different noise vectors z to just a few high-scoring data modes (e.g. generating only one or two digits) to fool the current discriminator, sacrificing sample diversity.
  3. Introduce WGAN: replace DJS with the Earth-Mover (Wasserstein-1) distance via Kantorovich–Rubinstein duality, max⁡w∈WEx∼pdata[fw(x)]−Ez∼pz[fw(Gθ(z))], where the critic fw is constrained to be 1-Lipschitz (∣fw(x)−fw(y)∣≤∥x−y∥).
  4. Explain why WGAN helps both issues: because fw has bounded slope rather than saturating sigmoid logits, you can train the critic fw to near-optimality without killing generator gradients, providing a meaningful distance metric everywhere and reducing mode collapse. In practice, 1-Lipschitzness is enforced via a gradient penalty (WGAN-GP: penalising (∥∇x^fw(x^)∥2−1)2 on interpolates x^) rather than brittle weight clipping.

Common mistakes

How long your answer should be

Half to three-quarters of a page; 4–5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Deep learning: Why can a deterministic autoencoder not generate realistic new images by sampling from its latent space, and how does the VAE’s KL term fix this? What is posterior collapse in VAEs, when does it happen, and how do β-VAE and KL annealing address it?
Next in Deep learning: In a denoising diffusion probabilistic model (DDPM), the forward process is q(xt∣xt−1)=N(xt;1−βt xt−1, βtI). How do you derive the closed-form marginal q(xt∣x0)=N(xt;αˉt x0, (1−αˉt)I) with αt=1−βt and αˉt=∏s=1tαs, and why does predicting the noise ε match predicting the score ∇xtlog⁡q(xt∣x0)?