These study notes cover visual representations and generative models. They are organized by topic, with derivations, worked examples, and links for further reading.
Reading order
- Images, filters, and visual representations.
- Likelihood, latent variables, and the ELBO.
- GANs and perceptual objectives.
- Autoregressive models, autoencoders, and flows.
- Diffusion and score estimation.
- Sampling, conditioning, and evaluation.
- Score distillation and 3D generation.
Notation
The observed example is , and denotes a latent variable. Model parameters are written as . An inference network usually has parameters . In the score-distillation note, instead denotes the scene parameters, and the frozen image model has its own parameters.
Logarithms are natural unless stated otherwise. Expectations describe population objectives. In an implementation, a minibatch and sampled noise usually replace those expectations.
Comparing the model families
For each model, write down three things before comparing it with another model: how it scores an observation, how it generates a new observation, and what objective is actually optimized.
An autoregressive model evaluates a product of normalized conditionals. A flow evaluates a base density and a change-of-variables correction. A VAE optimizes a lower bound involving an approximate posterior. A GAN learns through a discriminator rather than directly evaluating the generator’s density. A diffusion model learns a sequence of denoising conditionals, often using a simplified noise-prediction objective.
These distinctions explain many computational tradeoffs. Parallel training does not imply parallel generation. A tractable training objective does not necessarily equal exact likelihood. A visually convincing sample does not establish coverage of the data distribution.