Generative Models: VAE, GAN, Diffusion
Q: Compare VAEs, GANs and diffusion models.
| Idea | Pros | Cons | |
|---|---|---|---|
| VAE | encoder → latent distribution, decoder reconstructs; loss = reconstruction + KL to prior (ELBO); reparameterization trick | stable, smooth latent space | blurry samples |
| GAN | generator vs discriminator minimax game | sharp samples, fast sampling | unstable training, mode collapse |
| Diffusion | learn to reverse a gradual noising process (predict the noise at step t) | best quality & diversity, stable training | slow sampling (mitigated by DDIM, distillation, latent diffusion) |
| Autoregressive | model each token given all previous ones (chain rule of probability) | exact likelihood, scales great (LLMs) | sequential generation |