Diffusion Models and Brownian Motion
- 61Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What physical process is closely related to the forward noising process in diffusion models?
Brownian motion: repeated random changes make particles, or data points, diffuse over time.
Or swipe the card
61 cards
What physical process is closely related to the forward noising process in diffusion models?
Brownian motion: repeated random changes make particles, or data points, diffuse over time.
How can image or video generation by diffusion be understood in relation to physical diffusion?
It approximately reverses diffusion: starting from noise, the model moves through high-dimensional space toward structured data.
What happens to training images during the forward diffusion process?
Noise is added step by step until the original image is effectively destroyed.
What is the basic goal of training a diffusion model?
Learn how to reverse the noising process so that noise can be transformed into realistic images or videos.
How does a typical iterative text-to-video generation process begin?
It begins with a video whose pixel values are randomly generated, producing pure noise.
How does a transformer contribute to iterative video generation?
It repeatedly transforms the current noisy video into a version with slightly more structure, gradually shaping noise into a video.
Why can a diffusion model still produce an image or video when given no prompt?
It can generate from its learned data distribution without text guidance, though the result is not directed toward a specific prompt.
Why can an image be represented as a point in a high-dimensional space?
Each pixel intensity supplies a coordinate, so an image with many pixels corresponds to a point with many dimensions.
How does CLIP connect images and text?
It learns a shared embedding space in which related images and captions have similar vectors.
What two components make up CLIP, and what does each process?
An image encoder processes images, and a text encoder processes text.
What was the scale and composition of the dataset used to train the original CLIP model?
It contained 400 million image-caption pairs collected from the internet.
What is the size of each image or text vector produced by CLIP?
Each encoder produces a vector of length 512.
How does CLIP use a batch of image-caption pairs during training?
It compares every image with every caption in the batch, not just each image with its matching caption.
In CLIP's batch similarity matrix, what do the diagonal and off-diagonal pairs represent?
Diagonal pairs are matching image-caption pairs; off-diagonal pairs are non-matching pairs.
What does CLIP's contrastive training objective encourage?
It maximizes similarity for matching image-caption pairs while minimizing similarity for non-matching pairs.
Why is CLIP called contrastive?
Its training contrasts matching image-caption pairs with non-matching pairs.
What does cosine similarity measure between two vectors?
The cosine of the angle between their directions; aligned vectors have a score of 1.
What is another name for CLIP's shared vector space?
A latent space or embedding space.
How can vector arithmetic in CLIP reveal a visual concept such as 'hat'?
Subtract the embedding of a person without a hat from the embedding of the same person wearing a hat, then compare the difference vector with text embeddings. Words such as 'hat' can rank highly.
How can CLIP classify an image without training a separate classifier for each label?
Encode the image and candidate label captions, compute cosine similarities, and choose the label with the highest similarity.
What is a limitation of CLIP's image and text encoders when used alone?
They map images and text into an embedding space but do not generate images or text from those vectors.
What did the 2020 Denoising Diffusion Probabilistic Models (DDPM) paper demonstrate?
It showed that a diffusion process could generate high-quality images by transforming pure noise into realistic images step by step.
What is the naive approach to training and sampling a diffusion model?
Train the model to reverse one noising step at a time, then repeatedly apply it to noise to produce an image.
Why is the naive single-step denoising approach not an accurate description of most modern diffusion models?
Landmark methods such as DDPM do not simply train the model to predict the immediately preceding image at every step.
What noise-prediction target does DDPM training use?
Starting from a clean image, the model is trained to predict the total scaled random noise added to it.
How does DDPM sampling use the model's prediction at each generation step?
The model predicts a less noisy image, and scaled random noise is added before that result is passed back into the model.
What can happen if random noise is removed from the original DDPM sampling procedure?
Generation can collapse toward averages and produce blurry, low-quality results; for example, a generated desert tree may become tiny and blurry.
What does adding noise during training and generation have in common?
Both are part of the diffusion process: training teaches the model about noisy data, while sampling uses noise to generate varied outputs.
What does adding noise to a two-dimensional toy dataset represent?
It moves each point by a random amount in a random direction, producing a random walk.
How does the random-walk view explain the name 'diffusion model'?
Adding noise makes data points undergo a process analogous to Brownian motion and physical diffusion.
In the toy-data interpretation, what does reversing a diffusion path mean?
Starting from a noisy point and moving it back toward the original data structure, such as a spiral.
Why can a model learn a direction back toward the data from noisy examples?
Many diffusion paths pass through similar regions, and their average motion tends to point away from the original data, providing a signal for the model to reverse.
What vector does DDPM's noise-prediction target correspond to in the toy random-walk picture?
The vector from the noisy endpoint back toward the walk's original starting point.
How is predicting total noise related to predicting noise from the final step of a walk?
Under the described setup, predicting final-step noise is mathematically equivalent to predicting total noise divided by the number of steps.
Why can predicting total added noise make training more efficient than predicting one reverse step?
It reduces the variance of training examples while preserving the underlying learning objective.
What is a score function in the diffusion-model perspective?
A learned direction field that points toward more likely, less noisy data.
Why does a diffusion model need to know the time or noise level?
The useful denoising direction depends on how much noise has been added; time lets the model learn different directions at different noise levels.
What does time conditioning allow a diffusion model to learn?
Coarse directions when noise is high and more refined data structure as the noise level approaches zero.
How does the learned vector field typically behave at high noise levels?
It tends to point toward the broad average or center of the data distribution.
Why does a model without suitable sampling noise tend to produce blurry averages?
The model often predicts a conditional mean. Without random sampling, generated points can converge toward average outcomes instead of representing the full data distribution.
Why does DDPM add random Gaussian noise after predicting a denoising step?
The model predicts the mean of a Gaussian reverse-step distribution, and added zero-mean Gaussian noise allows sampling from that distribution.
What assumption helps explain the Gaussian form of the reverse process in DDPM?
When the forward noise is Gaussian and step sizes are sufficiently small, the reverse process can also be modeled with a Gaussian distribution.
What is a stochastic differential equation (SDE) in the DDPM interpretation?
An equation describing motion that combines a model-driven vector-field term with a random-noise term.
What did the Fokker–Planck result enable researchers to derive for diffusion sampling?
An ordinary differential equation with no random component that produces the same final distribution as the stochastic process.
What is DDIM?
A deterministic diffusion sampling approach that changes the sampling trajectory and step scaling without requiring changes to model training.
Why can DDIM generate high-quality images in fewer steps than DDPM?
Its step sizes are scaled so trajectories can follow the learned vector field effectively without adding random noise at every step.
What does theory say is shared between DDPM and DDIM sampling?
They can produce the same final distribution, though individual generated samples or trajectories need not be identical.
How does flow matching relate to diffusion models?
It is a more general approach related to the time-varying vector-field perspective; the WAN video model uses a generalization of DDIM called flow matching.
How can a text embedding guide a diffusion model toward a prompt?
The text encoder produces an embedding that the diffusion model uses as context while denoising.
What is conditioning in a diffusion model?
Providing extra information, such as a text embedding or diffusion time, as input so the model can use that context during denoising.
What are some ways to supply text information to a diffusion model?
Text embeddings can be coupled to image features with cross-attention, added or appended to the model input, or supplied through multiple mechanisms.
How does unCLIP use a text encoder and a diffusion model?
It trains a diffusion model to invert the CLIP image encoder, while the CLIP text embedding helps guide generation toward the prompt.
What is the commercial name of OpenAI's unCLIP model?
DALL·E 2.
Why might ordinary text conditioning fail to fully follow a prompt?
Conditioning alone may not give the model enough influence to reliably include every requested feature.
What training strategy makes classifier-free guidance possible?
Leave out class or text information for a subset of training examples, allowing the model to produce both conditioned and unconditioned predictions.
What is the difference between a conditioned and an unconditioned model prediction?
An unconditioned prediction points toward the data distribution generally; a conditioned prediction also reflects the requested class or text.
How does classifier-free guidance strengthen a requested class or prompt?
Subtract the unconditioned prediction from the conditioned prediction, amplify that difference by a guidance scale, and use the result to steer generation.
In classifier-free guidance, what does increasing the guidance scale do?
It amplifies the direction that distinguishes the conditioned prediction from the unconditioned one, strengthening the influence of the prompt.
How did classifier-free guidance affect the example of generating a tree in a desert?
At a guidance scale around 2, a small tree began to appear; increasing the scale improved the tree's size and detail.
How does a negative prompt guide video generation?
The model encodes features to avoid, then subtracts the resulting prediction from the conditioned output and amplifies the difference to steer generation away from those features.
What kinds of features might a video model's negative prompt specify?
Unwanted visual or motion features, such as extra fingers or walking backward.

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