Unit 7 of 7 · about 3 hours · explain

Evaluating and comparing generative model families

Every family optimizes a different proxy, and every metric rewards a different slice. Choosing or trusting a model without this map repeats the section checkpoint failure.

You'll be able to

  • State what likelihood, ELBO, reconstructions and samples each prove and what each hides.
  • Compute Inception Score limits, FID behavior and precision-recall splits for a stated failure.
  • Contrast flows, VAEs, GANs and diffusion by likelihood, sampling, coverage, stability and evaluation at recognition depth.

Covers

Reconstruction, likelihood and sample-quality limitsAutoregressive, latent, adversarial and diffusion comparisonsNormalizing-flow likelihood contrast
1

Read

In this order, only the parts listed

0 of 2 done

  1. What makes a good model and how to quantify itUnderstanding Deep Learning - generative models

    Sections 14.2 and 14.3 with Figure 14.3, Equations 14.1 to 14.3, and the test likelihood, inception, FID and precision-recall paragraphs (pp. 270 to 275)

  2. Flow likelihood contrast at recognition depthUnderstanding Deep Learning - generative models

    Sections 16.1 to 16.2 with Equations 16.1 to 16.3, and Section 16.3.3 coupling Equations 16.13 and 16.14 (pp. 304 to 312)

    Read flows only far enough to state the change-of-variables likelihood and why coupling keeps the Jacobian triangular. Leave residual, autoregressive and multiscale flow details for later.

2

Focus on

  • Test likelihood needs a density: flows give it exactly (Eqs 16.1 to 16.3), VAE and diffusion give a lower bound, and GANs give nothing because they only sample. Training likelihood is not a generalization claim.
  • Inception Score (Eqs 14.2 and 14.3) rewards one realistic example per ImageNet class under one classifier. FID fits Gaussians to Inception features of real and fake sets, so it sees within-class spread but only through retained features. Precision-recall splits the two: realism versus coverage via -nearest hyperspheres.
  • Figure 14.3 summarizes the trade: no family has efficient sampling, top quality, full coverage, a good latent space and exact likelihood at once. Quote the row, not a slogan.
  • Coupling (Eqs 16.13 and 16.14) leaves half the variables fixed and applies an invertible elementwise map to the rest with params from the fixed half. The Jacobian is triangular, so the determinant is the diagonal product and both directions stay cheap.
Common mistakes · 3
  • Comparing likelihood numbers across families or preprocessings. VAE and diffusion report bounds, flows report exact values, and any dequantization or resolution change breaks comparability.
  • Reporting one FID from few samples or mismatched Inception weights. FID is a distribution distance under a Gaussian fit; small sample counts and different feature layers move it without any model change.
  • Treating low FID as proof of coverage. A mode-dropped GAN can score well; only the recall side or a duplicate test like the Notes 400-sample argument addresses support size.
3

Try it yourself

Closed-book, before checking anything

Closed-book, derive the Problem 16.1 density and check its integral equals 1, then fill one Figure 14.3 row per family from memory.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Which families give exact likelihood, a lower bound, or nothing?Answer

    Flows give exact likelihood by change of variables. VAE and diffusion give a lower bound through the ELBO. GANs give no density; they sample without evaluating probabilities.

  2. 2.State the 1D flow density for uniform through .Answer

    on . The CDF is ; differentiate to get the density, which integrates to 1.

  3. 3.Why is Inception Score insufficient, and what do FID and precision-recall add?Answer

    IS needs ImageNet classes and one classifier and rewards a single good example per class. FID compares Gaussian-fitted Inception features of both sets, capturing within-class spread through retained features. Precision-recall splits realism (fakes inside the real manifold) from coverage (real data inside the fake manifold).

  4. 4.How does coupling keep flows tractable?Answer

    Half the variables pass through unchanged while the rest get an elementwise invertible map with parameters from the fixed half. The Jacobian is triangular, so its determinant is the product of diagonal terms and both directions stay cheap.

5

Practice

  • UDL Problems 16.1 and 16.2: 1D flow densities

    Problems 16.1 and 16.2 (p. 325): uniform through and standard normal through the sigmoid

    Derive both densities by CDF differentiation and verify each integrates to 1. These are the smallest exact-likelihood claims in the section.

You're done when

You can place any two families on likelihood, sampling cost, coverage and evaluation without notes and name the metric that would catch a mode-dropped winner.

Only when you can do this without notes.

Leads to

Notes

Resources · 1 for this unit, 4 more in the section
  • Understanding Deep Learning - generative modelsSimon J. D. Prince · primary

    Read Chapter 14 for evaluation limits, 15 for GANs, 17 for VAE and ELBO, and 18 for diffusion. Read Chapter 16 only for flow recognition. Use notebooks 17.1-17.3 and 18.1-18.4 as mathematical and visual practice.

Also in this section

  • D2L - GAN and DCGAND2L authors · support

    Use gan.md and dcgan.md for one bounded adversarial exposure. The required implementation remains a small VAE with separate reconstruction and KL terms on a two-dimensional mixture or binarized MNIST subset.

  • Deep-ML candidate - VAE, GAN and diffusion problemsDeep-ML · optional

    After the platform admission check, use at most one of 393 VAE Loss, 1384 Reparameterization, 174 1D GAN or 303 Forward Diffusion as a changed-prompt drill.

  • Stanford CS231n - diffusion assignment sliceStanford University · optional

    Use the Assignment 3 diffusion component only after the VAE gate if diffusion mechanics remain weak. It is not a second required generative implementation.

  • Progressive Distillation for Fast Sampling of Diffusion ModelsarXiv · reference

    Read Section 4 only for the velocity parameterization and why it stays stable at zero signal-to-noise ratio. Leave Algorithms 1 and 2 and the distillation results for later.