In a denoising diffusion model, what does the U-Net learn to do at each step?
- Exam domain
- Software Development15% of the exam
- Difficulty
- Hard
- In this mock
- 6 questions on this domainPractise this domain
Why the exam asks this
Software Development (15% of the exam)
Objective in the exam guide: Build a U-Net to generate images from pure noise and as a type of autoencoder.
NVIDIA lists building a U-Net that generates images from noise.
Why A is the answer
Predict the noise in a noisy image so it can be removed
The U-Net is trained to predict the noise added at a given step. Generation starts from pure noise and repeatedly subtracts the predicted noise until an image appears.
Remember: The U-Net predicts noise; sampling removes it step by step.
How it works
A U-Net is an encoder-decoder with skip connections. In diffusion it predicts the noise added at each step.
Clues in the question
The words that point to the answer, and what each one tells you.
- at each step
- Diffusion is iterative; the network acts once per step.
In detail
- Trained to predict noise.
- Generation reverses the noising steps.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Predict the noise in a noisy image so it can be removedRight
The U-Net predicts noise; sampling removes it step by step.
B. Classify the image into one of a thousand labelsWrongMost tempting
Classification is not denoising.
Why it tempts: U-Nets come from segmentation, so a vision task like classification seems close.
C. Compress the image into a single numberWrong
A single number cannot hold an image.
D. Translate English captions into FrenchWrong
Translation is a text task.
Use case
An illustrative scenario, not a real incident.
Illustrative: a small U-Net trained on clothing images generates new clothing pictures from pure noise.
See it in different ways
stateDiagram-v2 state "Pure noise" as s0 state "Less noisy" as s1 state "Nearly clean" as s2 state "Image" as s3 [*] --> s0 s0 --> s1: U-Net predicts noise s1 --> s2: repeat many steps s2 --> s3 s3 --> [*]
How to read this chart
- It starts at "Pure noise".
- From "Pure noise", "U-Net predicts noise" moves it to "Less noisy".
- From "Less noisy", "repeat many steps" moves it to "Nearly clean".
- From "Nearly clean", it moves to "Image".
- It ends at "Image".
sequenceDiagram participant P0 as Data participant P1 as Noise schedule participant P2 as U-Net P0->>P1: clean image P1->>P2: noisy image and step t P2-->>P1: predicted noise P1-->>P0: loss against true noise
How to read this chart
- 1. Data sends "clean image" to Noise schedule.
- 2. Noise schedule sends "noisy image and step t" to U-Net.
- 3. Noise schedule gets a reply from U-Net: "predicted noise".
- 4. Data gets a reply from Noise schedule: "loss against true noise".
Related questions
Learn more
- Our lesson: Generating images: U-Net, diffusion and CLIP
- Practise Software Development questions in the mock exam
- Source: U-Net: Convolutional Networks for Biomedical Image Segmentation (arXiv)
- Source: Denoising Diffusion Probabilistic Models (arXiv)
- U-Net: Convolutional Networks for Biomedical Image Segmentation (arXiv)
- Denoising Diffusion Probabilistic Models (arXiv)
- Learning Transferable Visual Models From Natural Language Supervision, CLIP (arXiv)
- Git documentation