Skip to content
BIASED

GANs as a two-player game

Block 1 of 8~2 min

Drop the likelihood

The VAE learns by maximizing a bound on the likelihood, and with a Gaussian decoder that bound contains a squared error (see Latent variables and the ELBO). A squared error is minimized by an average. When one code fits many sharp images, the decoder outputs their mean — a blur. A weight on the KL or a discrete code (see β-VAE and VQ-VAE) changes the code, not this term.

A generative adversarial network, or GAN (Goodfellow et al., 2014), never writes a likelihood down. Its generator is a network that turns noise into a sample, the same noise-transforming idea as in What generative modeling is:

z∼p(z)=N(0,I),x=Gθ(z).z \sim p(z) = \mathcal N(0, I), \qquad x = G_\theta(z).

The samples Gθ(z)G_\theta(z) have some distribution QθQ_\theta, but nothing in the model computes its density. Such a model is implicit: we can sample from it, but we cannot ask how likely a given xx is.

Without a likelihood, the generator needs some other signal that its samples are wrong. A GAN gets that signal from a second network.

Answers are saved on the server and tied to this browser until you sign in.