Generative Models / Diffusion Models
Diffusion Models
Forward noising, reverse denoising and the learning objective behind diffusion models.
Probability · Gaussian distributions · Neural networks
Diffusion models define an easy forward process that gradually corrupts data and learn a reverse process that reconstructs samples from noise.
Forward process
With a variance schedule and , the Markov transition is
The useful closed form is
where . It lets us sample any noisy level directly without simulating every earlier step.
Learning to denoise
A common objective trains a network to predict the injected noise:
At generation time, repeated reverse updates transform Gaussian noise into a sample. Faster samplers reduce the number of evaluations by changing the numerical path while retaining the learned field.
Evaluation is multi-dimensional
No single metric fully describes a generative model. Fidelity, diversity, prompt adherence, memorization, failure severity and human preference answer different questions. Hallucination analysis should therefore make its definition of “error” explicit before choosing a statistic.