Home Knowledge Base Diffusion Models

Diffusion Models are the generative AI architecture that creates images (and other data) by learning to reverse a gradual noise-addition process — training a neural network to iteratively denoise random Gaussian noise step-by-step until a coherent image emerges, achieving state-of-the-art image quality and diversity that surpassed GANs while providing stable training and controllable generation.

The Forward and Reverse Process

Training Objective

The loss is remarkably simple: L = E[||ε - ε_θ(x_t, t)||²] — just predict the noise. The model is trained on random timesteps t with random noise ε, learning to denoise at every noise level. No adversarial training, no mode collapse, no training instability.

Latent Diffusion (Stable Diffusion)

Running diffusion in pixel space at high resolution (512×512×3) is expensive. Latent Diffusion Models (LDMs) first compress images to a lower-dimensional latent space using a pretrained VAE encoder (512×512 → 64×64×4), run the diffusion process in latent space, then decode back to pixel space. This reduces computation by ~50x while maintaining visual quality.

Architecture

The denoiser ε_θ is typically a U-Net with:

Recent models (DiT, PixArt-α) replace U-Net with a plain Vision Transformer backbone with equivalent or superior quality.

Conditioning and Control

Diffusion Models are the generative architecture that achieved photorealistic image synthesis by embracing noise — learning that the path from noise to image, taken one small denoising step at a time, is far easier to learn than trying to generate the image in a single shot.

diffusion model image generationdenoising diffusionddpmstable diffusion architecturelatent diffusion

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.