Give me the intuition for how diffusion models generate images.
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Two processes. The forward process is fixed and destructive: take a real image and add a small amount of Gaussian noise repeatedly - hundreds to a thousand steps, per a noise schedule that controls how much noise per step - until nothing but noise remains. The reverse process is learned: train a network that, given a noisy image and the timestep, predicts the noise that was added (equivalently, a cleaner version of the image). That's the whole training objective - regression on noise, sampled at random timesteps across the dataset (DDPM, 2020).
Full worked answer with diagram
Two processes. The forward process is fixed and destructive: take a real image and add a small amount of Gaussian noise repeatedly - hundreds to a thousand steps, per a noise schedule that controls how much noise per step - until nothing but noise remains. The reverse process is learned: train a network that, given a noisy image and the timestep, predicts the noise that was added (equivalently, a cleaner version of the image). That's the whole training objective - regression on noise, sampled at random timesteps across the dataset (DDPM, 2020).
Generation runs the reverse chain: start from pure Gaussian noise, repeatedly apply the network to remove a bit of predicted noise, and after enough steps a coherent image emerges. The reason this works where "generate an image in one shot" is hard: each step is a small, well-conditioned correction. Early (high-noise) steps commit to global structure and composition; late steps refine texture and detail. The model never has to solve the whole problem at once - it learns a field of "which direction is more image-like from here" (the score), and sampling follows it.
Numbers worth knowing: training uses ~1000 discrete noise levels; sampling doesn't need to retrace all of them - modern samplers (DDIM and successors) produce good images in 20-50 steps, and distilled models (latent consistency models, adversarially distilled turbo variants) get to 1-4 steps, which is what makes real-time generation possible. Text conditioning enters through cross-attention onto text-encoder embeddings, and classifier-free guidance amplifies its effect at sampling time. Also say the phrase "latent diffusion" - production systems don't diffuse pixels, they diffuse a VAE-compressed latent - because it's the single biggest practical efficiency win in this stack.
Worth sketching. Drawing the loop makes the point that generation is one small correction repeated, not a single leap from noise to image.
flowchart LR
A["Clean image"] -->|"forward: add noise, ~1000 steps"| B["Pure Gaussian noise"]
B --> C["Network predicts the noise at step t"]
C --> D["Subtract a little,<br/>move t to t-1"]
D -->|"t > 0"| C
D -->|"t = 0"| E["Generated image"]
What a good answer covers
- The forward process is fixed and destructive
- The reverse process is learned
- That's the whole training objective - regression on noise, sampled at random timesteps across the…
- Generation runs the reverse chain
- The reason this works where "generate an image in one shot" is hard
Key terms: forward process · noise schedule · reverse process · Generation · distilled
In the glossary: Latent diffusion · Diffusion
Interviewer follow-ups to expect
What exactly does the network predict - noise, the clean image, or something else, and does it matter?
Why can samplers skip most of the 1000 training steps?
What does the noise schedule trade off?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep