Generative Model Comparison

Chapter 16 Mathematics for AI

Chapter 16: Variational Inference and Latent Variables — Generative Model Comparison

From the book

Chapter 16: Variational Inference and Latent Variables. In the chapter mind map this icon labels Generative Model Comparison. The discussion below is excerpted and lightly edited from § Generative Model Comparison in Mathematics for AI and Machine Learning.

Variational inference is not the only route to a generative model with latent variables. Generative adversarial networks replace the likelihood by a game solved with minimax optimization (Chapter the referenced section, Section the referenced section), and normalizing flows use invertible maps and the change of variables formula (Chapter the referenced section, Section the referenced section), either as generative models in their own right or as richer variational families inside variational inference. A diffusion model is itself a latent variable model trained on an ELBO: its latents are the noisy copies $\mathbf x_1, \ldots, \mathbf x_T$ of the data, its encoder $q(\mathbf x_{1:T} \mid \mathbf x_0)$ is fixed and adds Gaussian noise step by step, and since every conditional is Gaussian the negative ELBO is, apart from a reconstruction term, a sum of closed-form KL divergences between Gaussians, one per denoising step of the decoder (Chapter the referenced section).

Variational inference trains end to end with a neural network by gradient methods and scales by stochastic optimization; MCMC is exact in the limit of a long chain and represents uncertainty by samples, at a higher cost per posterior. The two combine: a variational approximation can initialize a chain or serve as its proposal. Stein Variational Gradient Descent (SVGD) moves a set of particles by gradient steps instead of fitting a parametric distribution, and normalizing flows (the matrix chapter, Section the referenced section) give variational families flexible enough to approach the exact posterior.

What this drawing shows

What you see. GAN, normalizing-flow, and diffusion columns highlight in turn, contrasting adversarial, invertible, and score-based generation.

In the mind map. Chapter 16 — Generative Model Comparison. See From the book above for definitions, figures, and worked examples.

Where to read next

Open Chapter 16 companion →

Read the full definitions, figures, and worked examples in Chapter 16: Variational Inference and Latent Variables — see the mind-map node Generative Model Comparison.

PNG Icons

Textless (256×256 px)
PNG 256×256 px Copy PNG URL
Textless (64×64 px)
PNG 64×64 px Copy PNG URL
Textless (32×32 px)
PNG 32×32 px Copy PNG URL

Animated GIFs

Animated GIF (256×256 px)
GIF 256×256 px Copy GIF URL
Animated GIF (128×128 px)
GIF 128×128 px Copy GIF URL
Animated GIF (64×64 px)
GIF 64×64 px Copy GIF URL