1. Home
  2. Explore
  3. Computer Science
  4. Diffusion Models and Brownian Motion

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Diffusion Models and Brownian Motion

  • 53Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Diffusion Foundations

How is the diffusion process used in image and video generation related to Brownian motion?

53 questions

  1. 1

    How is the diffusion process used in image and video generation related to Brownian motion?

    Model answer

    Adding noise to an image resembles Brownian motion: the data point takes random steps through a high-dimensional space. Generation runs this process in reverse, moving from noise toward structured data.

    Explanation

    Each image can be treated as a point whose coordinates are pixel values, so random changes to pixels correspond to random motion in that space.

  2. 2

    How does video generation with the WAN 2.1 model begin, and what does its first video contain?

    Model answer

    The process begins with a random number generator that creates a video whose pixel intensities are random, producing pure noise.

    Explanation

    The initial video is not drawn from the prompt; it is a noise-filled starting point that the model progressively transforms.

  3. 3

    What role does the transformer play in WAN's iterative video-generation process?

    Model answer

    The transformer repeatedly transforms the current noisy video into a somewhat more structured video. Its output is combined with the current video and fed back into the model for another iteration.

    Explanation

    After many iterations, the initially noisy video can develop into a realistic one.

  4. 4

    How does changing a text prompt affect the video generated by WAN?

    Model answer

    Adding or changing prompt details can steer the generated video toward those details, such as an astronaut holding a flag, a laptop, or a meeting.

    Explanation

    The prompt provides information that guides the generation process toward the requested content.

  5. 5

    What does the example of WAN generating a video when given no prompt demonstrate?

    Model answer

    The model can still generate a video without text input; in the example, it generated a video of a woman.

    Explanation

    The observation shows that text is not required for the model to produce an output, although it can guide what the output depicts.

  6. 6

    How can an image be represented as a point in a high-dimensional space?

    Model answer

    Treat each pixel intensity as a coordinate, or dimension, of a point. An image with many pixels therefore corresponds to a point in a space with many dimensions.

    Explanation

    Changing pixel values changes the point's coordinates.

  7. 7

    In the two-pixel example, how are images placed on a scatterplot?

    Model answer

    The first pixel's intensity gives the horizontal coordinate, and the second pixel's intensity gives the vertical coordinate. For example, a black first pixel and a white second pixel are plotted at coordinates (0,1)(0,1)(0,1).

    Explanation

    The example uses one coordinate per pixel, making a two-pixel image a point in two-dimensional space.

  8. 8

    What does adding random noise to an image correspond to in the two-dimensional toy dataset?

    Model answer

    It changes each pixel value by a random amount, which corresponds to moving the image's point by a random step in the two-dimensional space.

    Explanation

    The point's coordinates represent the pixel values, so random pixel changes become random spatial motion.

  9. 9

    Why can progressively adding noise to data be described as a random walk?

    Model answer

    Each noise addition moves the data point in a randomly chosen direction, and repeated random steps create a random walk.

    Explanation

    This random-walk view connects the forward noising process to Brownian motion.

  10. 10

    What does a diffusion model learn to do at a high level?

    Model answer

    It learns to reverse the process that progressively adds noise to training images or videos, allowing it to transform noise into structured data.

    Explanation

    The model applies its learned transformation repeatedly during generation.

  11. 11

    What were the two main components of CLIP, and what did each process?

    Model answer

    CLIP contains a text model that processes language and an image model that processes pictures. Each maps its input into a vector in a shared representation space.

    Explanation

    The shared space makes it possible to compare text and image representations.

  12. 12

    What training data and vector size were used for the CLIP model described in the content?

    Model answer

    CLIP was trained on 400 million image-caption pairs, and each encoder produced a vector of length 512.

    Explanation

    The image and text encoders produced same-sized vectors that could be compared.

  13. 13

    What relationship did CLIP's training objective encourage between image and caption vectors?

    Model answer

    It encouraged vectors from a matching image and caption to be similar, while encouraging vectors from non-matching pairs to be dissimilar.

    Explanation

    The objective uses both matching and non-matching pairs in a batch to shape the shared representation.

  14. 14

    Why is CLIP's training approach called contrastive?

    Model answer

    It contrasts matching image-caption pairs with non-matching pairs by increasing the similarity of the former and decreasing the similarity of the latter.

    Explanation

    The name refers to learning from the difference between corresponding and unrelated examples.

  15. 15

    How does CLIP use a batch of image-caption pairs to train its encoders?

    Model answer

    It compares every image vector with every caption vector in the batch, treating corresponding pairs as matches and off-diagonal pairs as non-matches.

    Explanation

    Using all pairings supplies more contrastive comparisons than training only on each image's corresponding caption.

  16. 16

    What does cosine similarity measure between CLIP vectors?

    Model answer

    It measures the cosine of the angle between two vectors, so vectors pointing in the same direction receive a similarity score of 1.

    Explanation

    The measure compares vector directions in the shared high-dimensional space.

  17. 17

    What is another name for CLIP's shared vector space, and what does it represent?

    Model answer

    It is called a latent space or embedding space, and it represents images and text as vectors whose geometry captures relationships between their content.

    Explanation

    The location and direction of a vector can encode semantic information about the corresponding image or text.

  18. 18

    How does the hat-vector example illustrate the geometry of CLIP's embedding space?

    Model answer

    Subtracting the vector for a person without a hat from the vector for the same person wearing a hat produced a difference vector most similar to the text vector for “hat.”

    Explanation

    The example shows that a difference in image content can correspond to a direction representing a concept in the shared space.

  19. 19

    How can CLIP classify an image without training a separate classifier for each label?

    Model answer

    It encodes the image, compares its vector with text vectors for candidate label captions, and assigns the label with the highest cosine similarity.

    Explanation

    The candidate captions provide text representations that can be compared directly with the image representation.

  20. 20

    What is a limitation of CLIP as a generative system?

    Model answer

    CLIP maps text and images into an embedding space, but it does not itself generate text or images from those vectors.

    Explanation

    Its encoders provide representations, not a mechanism for decoding those representations into new media.

  21. 21

    What was the central result of the DDPM paper described in the content?

    Model answer

    It demonstrated that a diffusion process could generate high-quality images by transforming pure noise step by step into realistic images.

    Explanation

    This result established diffusion as a viable approach to image generation.

  22. 22

    How does the forward noising process used to train diffusion models work?

    Model answer

    It starts with clean training images and adds noise progressively until the original image is destroyed.

    Explanation

    The model is trained using examples from this progression so it can learn to reverse the corruption.

  23. 23

    Why is the simple strategy of training a model to remove noise one step at a time not representative of most modern diffusion models?

    Model answer

    The naive single-step denoising approach does not work well in practice, and virtually no modern models use it in that simple form.

    Explanation

    The DDPM approach instead uses a different training target and adds noise during generation.

  24. 24

    What does the DDPM training objective ask the model to predict?

    Model answer

    It asks the model to predict the total random noise added to an original clean image, rather than simply predicting the image from the immediately preceding noise step.

    Explanation

    The model receives a noisy version of the original image and learns to estimate the noise that produced it.

  25. 25

    How does the DDPM training objective differ from predicting the previous step in a noising sequence?

    Model answer

    Instead of predicting an image from one step earlier, the model predicts the total noise added between the clean image and the noisy input.

    Explanation

    This objective asks the model to make a prediction about the original image's corruption across the whole process.

  26. 26

    In the random-walk interpretation, what is the total noise prediction vector?

    Model answer

    It is the vector from the point at the end of the random walk back to the walk's original starting point.

    Explanation

    The vector summarizes the net displacement caused by the accumulated noise.

  27. 27

    Why can predicting total noise make learning more efficient than predicting only the last noise step?

    Model answer

    Predicting total noise reduces the variance of the training examples while remaining mathematically equivalent, after scaling by the number of steps, to predicting the final-step noise.

    Explanation

    The lower-variance target allows the model to learn more efficiently without changing the underlying learning objective.

  28. 28

    What is a score function in the vector-field view of diffusion models?

    Model answer

    It is the learned direction at a point that indicates how to move toward the original data distribution, or toward more likely, less noisy data.

    Explanation

    The model learns these directions from noisy examples at different stages of the diffusion process.

  29. 29

    Why does the vector field learned by a diffusion model depend on the amount of noise?

    Model answer

    Different noise levels reveal different structures: heavily noised points tend to be directed toward the data's general region, while lightly noised points can reveal finer structure.

    Explanation

    The vector field for a point far from the data distribution can be less detailed than the field near the original data.

  30. 30

    Why is it important to give a diffusion model information about the time or noise level?

    Model answer

    Time conditioning lets the model learn different vector fields for different stages: coarse directions at high noise levels and more refined structure as the data approaches its original form.

    Explanation

    The same coordinates can require different denoising directions depending on how far the process has progressed.

  31. 31

    In the spiral example, how did the learned vector field change as diffusion time approached zero?

    Model answer

    It shifted from pointing toward the center of the spiral to pointing toward the spiral's structure itself.

    Explanation

    This illustrates how time conditioning can let the model move from coarse guidance to finer detail.

  32. 32

    Why does a DDPM add random noise after the model predicts a less noisy image during generation?

    Model answer

    The model predicts the mean of a distribution of possible less-noisy outcomes; adding zero-mean Gaussian noise allows generation to sample from that distribution rather than always choosing its mean.

    Explanation

    The added noise helps generated samples retain variation instead of collapsing toward an average.

  33. 33

    What can happen when random noise is removed from the DDPM generation process without changing the rest of the method?

    Model answer

    Generated points can collapse toward the center or average of the data distribution, producing less diverse outputs and, for images, potentially blurry results.

    Explanation

    The tree example produced a small blurry tree when noise was removed from the DDPM sampling procedure.

  34. 34

    Why can predicting the average of possible images lead to a blurry result?

    Model answer

    An average can combine different image features rather than representing one coherent example, so it may look blurry or unrealistic.

    Explanation

    In the spiral analogy, removing random steps causes samples to gather near an average instead of representing the full distribution.

  35. 35

    How does the Gaussian assumption help explain the DDPM reverse process?

    Model answer

    With Gaussian noise added in the forward process and sufficiently small steps, the reverse process also follows a Gaussian distribution, whose mean the model learns to predict.

    Explanation

    Sampling from that reverse distribution requires adding zero-mean Gaussian noise to the predicted mean.

  36. 36

    What is the difference between the two terms in the stochastic differential equation used to describe DDPM generation?

    Model answer

    One term represents motion driven by the model's learned vector field, and the other represents random motion.

    Explanation

    Together they describe the overall motion of a point during stochastic generation.

  37. 37

    What did the Fokker–Planck result enable researchers to derive for diffusion generation?

    Model answer

    It enabled them to derive an ordinary differential equation without a random component that produces the same final distribution as the stochastic differential equation.

    Explanation

    The result offers a deterministic alternative for evolving the distribution of generated points.

  38. 38

    What is DDIM, and how does its sampling procedure differ from DDPM sampling?

    Model answer

    DDIM is a generation approach that uses a deterministic update without adding random noise at each step, with a different scaling of step sizes.

    Explanation

    The changed step scaling helps its trajectories follow the learned vector field and reach the data distribution.

  39. 39

    How does DDIM affect model training and the number of generation steps required?

    Model answer

    It does not require changes to model training and can generate high-quality images in significantly fewer steps.

    Explanation

    The approach changes the sampling procedure rather than the trained model.

  40. 40

    What does the theory claim is the same between DDPM and DDIM sampling, and what need not be the same?

    Model answer

    The final distribution of generated points or images can be the same, but the individual samples need not be identical.

    Explanation

    One method is stochastic and the other deterministic, yet they can produce the same overall distribution.

  41. 41

    What is the relationship between flow matching and DDIM in the WAN model described?

    Model answer

    WAN uses flow matching, which is described as a generalization of DDIM.

    Explanation

    Flow matching is a related approach to guiding generation through learned vector fields.

  42. 42

    How can a text embedding guide a diffusion model toward an image or video described by a prompt?

    Model answer

    The text encoder maps the prompt to an embedding, which is supplied to the diffusion model to steer its generation toward the prompt's content.

    Explanation

    The shared representation connects prompt information with the image or video generation process.

  43. 43

    What is conditioning in diffusion models?

    Model answer

    Conditioning is providing additional information, such as a text embedding, as input to the diffusion model so that it can use that context while denoising.

    Explanation

    Training on image-caption pairs can teach the model to use the caption information when predicting how to remove noise.

  44. 44

    How does conditioning a model on diffusion time illustrate the general idea of conditioning?

    Model answer

    The model receives the time step as additional input, allowing it to produce appropriate denoising directions for different stages of the process.

    Explanation

    Time is another type of context, just as a text embedding can provide context about desired content.

  45. 45

    Name two ways of providing text information to a diffusion model.

    Model answer

    Text can be coupled with image information using cross-attention, or its embedding can be added or appended to the model's input. Some methods use multiple ways at once.

    Explanation

    Different architectures provide different mechanisms for combining text and image information.

  46. 46

    What is unCLIP, and what is its better-known commercial name?

    Model answer

    UnCLIP trains a diffusion model to invert the CLIP image encoder using image-caption pairs; the resulting model is better known as DALL·E 2.

    Explanation

    The approach combined text-image representations with diffusion to achieve strong prompt adherence.

  47. 47

    Why might conditioning alone fail to fully satisfy a text prompt?

    Model answer

    The model may use the text context but still fail to generate some requested details; in the example, conditioning produced a desert and a shadow but omitted the requested tree.

    Explanation

    The example shows that providing prompt information is not always enough for strong prompt adherence.

  48. 48

    How does classifier-free guidance obtain both conditioned and unconditioned model outputs without training two separate models?

    Model answer

    During training, the model receives no class or text information for a subset of examples, so it can produce an unconditioned output as well as a conditioned one.

    Explanation

    The unconditioned output points toward the data in general, while the conditioned output also reflects the requested class or text.

  49. 49

    How does classifier-free guidance use the conditioned and unconditioned directions?

    Model answer

    It subtracts the unconditioned direction from the conditioned direction, scales the difference, and uses the result to steer generation more strongly toward the requested condition.

    Explanation

    Subtracting removes the direction generally pointing toward the data, emphasizing the direction associated with the requested class or prompt.

  50. 50

    Why can the conditioned and unconditioned vector fields be similar at high noise levels but different near the data?

    Model answer

    At high noise, both fields tend to point toward the overall average of the data; near the data, the conditioned field can point toward the requested class or content.

    Explanation

    The difference between the fields becomes useful for steering as the model resolves more specific structure.

  51. 51

    What effect can increasing the classifier-free guidance scale have on generated images?

    Model answer

    It can strengthen the influence of the prompt; in the tree example, a tree began to appear at a guidance scale around 2, and its size and detail increased as the scale rose.

    Explanation

    A larger scale amplifies the direction associated with the requested content.

  52. 52

    How does WAN use negative prompts to guide video generation?

    Model answer

    It encodes a negative prompt describing unwanted features, subtracts the resulting vector from the conditioned output, and amplifies the result to steer generation away from those features.

    Explanation

    The method applies the guidance idea to explicitly discourage content the prompt author does not want.

  53. 53

    What examples of unwanted features appeared in WAN's standard negative prompt, and in what language was it passed to the text encoder?

    Model answer

    It included features such as extra fingers and walking backwards, and it was passed to the text encoder in Chinese.

    Explanation

    The negative prompt provides information about visual or motion features to avoid.

1 of 53
Question 1 of 53

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent