alanjiach@gmail.com

← all writing

Study notes: Generative Visual Computing

study notesgenerative models

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

  1. Images, filters, and visual representations.
  2. Likelihood, latent variables, and the ELBO.
  3. GANs and perceptual objectives.
  4. Autoregressive models, autoencoders, and flows.
  5. Diffusion and score estimation.
  6. Sampling, conditioning, and evaluation.
  7. Score distillation and 3D generation.

Notation

The observed example is xx, and zz denotes a latent variable. Model parameters are written as θ\theta. An inference network usually has parameters ϕ\phi. In the score-distillation note, θ\theta 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.