Diffusion Models Overview
- 21Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Which research paper brought diffusion models into widespread use for image generation?
Which research paper brought diffusion models into widespread use for image generation?
21 questions
- 1
Which research paper brought diffusion models into widespread use for image generation?
- A
"Generative Adversarial Nets" (2014)
- B
"Variational Auto-Encoders" (2013)
- C
"Denoising Diffusion Probabilistic Models" (2020)
- D
"Deep Unsupervised Learning using Nonequilibrium Thermodynamics" (2015)
Correct answer
C"Denoising Diffusion Probabilistic Models" (2020)
Explanation
The 2020 DDPM paper by Ho et al. made diffusion models practical for image generation and is the most cited work in the field. The 2015 paper introduced diffusion models but did not achieve state-of-the-art results.
- A
- 2
What was the state of the art in image generation before the 2020 DDPM paper?
- A
Autoregressive models
- B
Variational autoencoders
- C
Generative adversarial networks (GANs)
- D
Normalizing flows
Correct answer
CGenerative adversarial networks (GANs)
Explanation
In 2015, GANs were considered state-of-the-art for image generation, while diffusion models received little attention until the 2020 DDPM paper.
- A
- 3
What is the main contribution of the DDPM paper over the 2015 diffusion model work?
- A
Introducing a much simpler training objective and achieving state-of-the-art image generation
- B
Introducing the concept of diffusion models for data generation
- C
Proving that diffusion models are theoretically equivalent to GANs
- D
Showing that diffusion models could be applied to toy datasets only
Correct answer
AIntroducing a much simpler training objective and achieving state-of-the-art image generation
Explanation
The DDPM paper simplified the training objective, making diffusion models accessible and effective for high-quality image generation on complex datasets.
- A
- 4
In a variance-exploding diffusion process, what happens to the distribution as t increases?
- A
The mean grows linearly and variance remains constant
- B
The mean converges to zero and variance to one
- C
The mean remains constant and variance grows without bound
- D
Both mean and variance converge to zero
Correct answer
CThe mean remains constant and variance grows without bound
Explanation
In variance-exploding diffusion, the mean stays fixed at the original data point, and the variance increases indefinitely, so it does not converge to a standard normal distribution.
- A
- 5
How does the DDPM paper ensure the forward diffusion process converges to a standard normal distribution?
- A
By adding a scaling factor of 1−βt to the mean at each step
- B
By applying a non-linear transformation after each noise addition
- C
By using a fixed mean and a decreasing variance schedule
- D
By using a different noise distribution at each step
Correct answer
ABy adding a scaling factor of 1−βt to the mean at each step
Explanation
The DDPM uses a variance-preserving formulation where the mean is scaled by 1−βt, causing the mean to decay to zero and the variance to approach one.
- A
- 6
In the DDPM forward process, what is the expression for αt?
- A
αt=1−βt
- B
αt=βt
- C
αt=1−βt
- D
αt=∏i=1t(1−βi)
Correct answer
Dαt=∏i=1t(1−βi)
Explanation
The cumulative product αˉt is defined as ∏i=1t(1−βi). The notation αt typically refers to 1−βt, but the question asks for the expression used to directly compute xt from x0.
- A
- 7
What is the closed-form expression for the conditional distribution q(xt∣x0) in the variance-preserving diffusion process?
- A
N(xt;0,I)
- B
N(xt;1−αˉtx0,αˉtI)
- C
N(xt;αˉtx0,(1−αˉt)I)
- D
N(xt;x0,tβI)
Correct answer
CN(xt;αˉtx0,(1−αˉt)I)
Explanation
The variance-preserving formulation gives q(xt∣x0)=N(xt;αˉtx0,(1−αˉt)I), where αˉt=∏i=1t(1−βi).
- A
- 8
Why is the negative log-likelihood logpθ(x0) intractable for diffusion models?
- A
Because the forward process is not invertible
- B
Because the neural network is too large
- C
Because it requires summing over all possible sequences of latent variables
- D
Because the reverse process is not Markovian
Correct answer
CBecause it requires summing over all possible sequences of latent variables
Explanation
Computing pθ(x0) involves integrating over all possible paths from noise to data, which is exponentially many, making it intractable.
- A
- 9
What is the role of the evidence lower bound (ELBO) in training diffusion models?
- A
It provides a tractable upper bound on the negative log-likelihood
- B
It is used to sample from the posterior
- C
It directly computes the exact log-likelihood
- D
It lower bounds the forward process
Correct answer
AIt provides a tractable upper bound on the negative log-likelihood
Explanation
The ELBO is a lower bound on the log-likelihood (or an upper bound on the negative log-likelihood) that can be optimized tractably.
- A
- 10
What is the "true posterior" in the context of diffusion models?
- A
q(xt−1∣xt)
- B
q(xt∣xt−1)
- C
q(xt−1∣xt,x0)
- D
pθ(xt−1∣xt)
Correct answer
Cq(xt−1∣xt,x0)
Explanation
The true posterior is the reverse conditional distribution given both xt and the original image x0, which has a closed-form Gaussian expression.
- A
- 11
Why can't the true posterior be used directly for generating new samples?
- A
Because it is intractable to compute
- B
Because it is not Gaussian
- C
Because it requires the forward process to be deterministic
- D
Because it requires knowing the noise-free image x0, which is unavailable during generation
Correct answer
DBecause it requires knowing the noise-free image x0, which is unavailable during generation
Explanation
The true posterior q(xt−1∣xt,x0) conditions on x0, which is unknown when generating from pure noise. It is only used during training when x0 is available.
- A
- 12
How is the approximate posterior pθ(xt−1∣xt) parameterized in DDPM?
- A
As a Gaussian with both mean and variance learned by the network
- B
As a Gaussian with learned mean and fixed variance, where the mean is predicted by a neural network
- C
As a Laplace distribution with learned parameters
- D
As a discrete distribution over pixel values
Correct answer
BAs a Gaussian with learned mean and fixed variance, where the mean is predicted by a neural network
Explanation
In DDPM, the variance σt is fixed to a constant (not learned), and only the mean μθ(xt,t) is predicted by the network.
- A
- 13
When the true posterior and approximate posterior are both Gaussian with the same fixed variance, what does the KL divergence simplify to?
- A
The absolute difference in their means
- B
The difference in their variances
- C
The cross-entropy between the distributions
- D
The squared Euclidean distance between their means
Correct answer
DThe squared Euclidean distance between their means
Explanation
For two Gaussians with identical covariance matrices, the KL divergence simplifies to 21∣∣μ1−μ2∣∣2 up to a constant factor.
- A
- 14
Using the reparameterization trick, the final training objective in DDPM is equivalent to:
- A
Predicting the added noise ϵ from xt
- B
Predicting the timestep t from xt
- C
Predicting the original image x0 from xt
- D
Predicting the mean of the true posterior directly
Correct answer
APredicting the added noise ϵ from xt
Explanation
By reparameterizing the loss, the objective becomes a simple mean squared error between the actual noise ϵ and the network's prediction ϵθ.
- A
- 15
In the training loop of DDPM, how are timesteps sampled?
- A
According to a learned distribution
- B
Uniformly from a fixed set of steps
- C
Sequentially from 1 to T for each mini-batch
- D
Randomly for each sample in the batch
Correct answer
DRandomly for each sample in the batch
Explanation
To reduce computational cost, a random timestep t is sampled for each sample, and the loss is computed only at that timestep.
- A
- 16
What loss function is typically used for training the noise prediction network in DDPM?
- A
Mean squared error (MSE) between predicted and actual noise
- B
Binary cross-entropy
- C
KL divergence between true and predicted posteriors
- D
Cross-entropy loss
Correct answer
AMean squared error (MSE) between predicted and actual noise
Explanation
The final simplified objective is L=Et,x0,ϵ[∣∣ϵ−ϵθ(αˉtx0+1−αˉtϵ,t)∣∣2].
- A
- 17
What neural network architecture is commonly used as the denoising function in DDPM?
- A
ResNet
- B
U-Net
- C
Transformer
- D
VAE encoder
Correct answer
BU-Net
Explanation
The DDPM paper and subsequent works use a U-Net architecture for the noise prediction network, which is well-suited for image-to-image tasks.
- A
- 18
During inference, how is an image sampled from pure noise?
- A
By running the forward process backwards in one step
- B
By iteratively applying the learned denoising step from xT to x0
- C
By directly predicting x0 from xT using the network
- D
By sampling from the true posterior without conditioning
Correct answer
BBy iteratively applying the learned denoising step from xT to x0
Explanation
Inference starts from pure Gaussian noise xT and repeatedly applies the reverse step xt−1∼pθ(xt−1∣xt) for t=T,T−1,...,1.
- A
- 19
What is the typical number of inference steps in DDPM?
- A
10000
- B
1000
- C
100
- D
10
Correct answer
B1000
Explanation
The original DDPM uses 1000 steps for generating high-quality samples, though later works have reduced this number.
- A
- 20
Compared to VAEs, what is the main advantage and disadvantage of diffusion models?
- A
Lower sample quality and slower generation
- B
Higher sample quality but slower generation
- C
Higher sample quality and faster generation
- D
Lower sample quality but faster generation
Correct answer
BHigher sample quality but slower generation
Explanation
Diffusion models produce higher quality images than VAEs but require many more network evaluations (typically 1000), making generation slower.
- A
- 21
What extension of diffusion models replaces discrete Markov chains with continuous-time stochastic differential equations?
- A
Latent diffusion models
- B
Score-based diffusion models
- C
Denoising diffusion implicit models
- D
Variational diffusion models
Correct answer
BScore-based diffusion models
Explanation
Score-based diffusion models formulate the process in continuous time using SDEs, providing a more general framework.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.