Image Diffusion Models

Established

Diffusion models conceptualize generation as a gradual denoising process. A model is trained to reverse a forward process that slowly destroys data by adding Gaussian noise.

Pixel vs. Latent Diffusion

Early models (like DDPM) operated in Pixel Space, predicting noise for every single RGB pixel. This was computationally prohibitive for high resolutions. Latent Diffusion Models (LDMs) use a pre-trained VAE to compress the image into a smaller latent grid (e.g., 8x downsampling). The diffusion process happens entirely in this cheaper latent space, and the result is decoded back to pixels at the very end.

Backbones: U-Net vs. DiT

Historically, the neural network predicting the noise was a U-Net (using convolutional layers to downsample and upsample spatial features). Modern architectures are shifting to the Diffusion Transformer (DiT), replacing convolutions with attention across patch tokens, yielding better scaling laws.

Classifier-Free Guidance (CFG)

Interpretive intuition

CFG is the mathematical lever for "prompt adherence." The model runs twice per step: once with the text prompt, once unconditionally. It then extrapolates away from the unconditional prediction towards the conditioned one. High CFG forces strict alignment but causes "deep-fried" over-saturation.

Interactive: Scrubbing the noise step reveals the latent signal. High guidance pushes contrast to extremes.

References