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

  • 39Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: CLIP Representations

How is CLIP organized to create a shared representation of images and text?

39 questions

  1. 1

    How is CLIP organized to create a shared representation of images and text?

    1. A

      It uses a text generator followed by a separate image classifier

    2. B

      It uses separate image and text encoders that each output a vector in the same embedding space

    3. C

      It combines image and text inputs into one encoder that outputs a label directly

    4. D

      It uses one image encoder that converts captions into pixels

    Correct answer
    B

    It uses separate image and text encoders that each output a vector in the same embedding space

    Explanation

    CLIP has one model for processing text and another for processing images. Both map their inputs to vectors in a shared embedding space.

  2. 2

    What was the central training goal for CLIP’s image and text vectors?

    1. A

      Make image vectors more similar to other image vectors than to text vectors

    2. B

      Make every vector in a batch point in the same direction

    3. C

      Make each text vector encode the order of images in its batch

    4. D

      Make matching image-caption vectors more similar and nonmatching pairs less similar

    Correct answer
    D

    Make matching image-caption vectors more similar and nonmatching pairs less similar

    Explanation

    CLIP’s contrastive objective maximizes similarity for corresponding image-caption pairs while minimizing similarity for nonmatching pairs.

  3. 3

    Why does CLIP’s training compare image-caption pairs beyond the correctly matched pairs?

    1. A

      Nonmatching pairs ensure every caption has the same number of words

    2. B

      Nonmatching pairs allow the image encoder to generate additional training images

    3. C

      Nonmatching pairs teach the model to ignore image information

    4. D

      Nonmatching pairs provide contrasts that help the model distinguish correct matches from incorrect ones

    Correct answer
    D

    Nonmatching pairs provide contrasts that help the model distinguish correct matches from incorrect ones

    Explanation

    Using similarities across all pairs in a batch makes nonmatching image-caption pairs useful negative examples, strengthening the contrastive learning signal.

  4. 4

    What does cosine similarity measure between two CLIP embedding vectors?

    1. A

      The amount of text shared by the image and caption

    2. B

      The number of dimensions in which the vectors have nonzero values

    3. C

      The difference between the vectors’ pixel intensities

    4. D

      The cosine of the angle between the vectors in the shared space

    Correct answer
    D

    The cosine of the angle between the vectors in the shared space

    Explanation

    Cosine similarity compares vector directions by measuring the cosine of the angle between them. Vectors pointing in the same direction have a similarity of 1.

  5. 5

    A researcher subtracts the CLIP embedding of a person without a hat from the embedding of the same person wearing a hat. What does the resulting difference vector tend to represent?

    1. A

      The general visual identity of the person, with the hat information removed

    2. B

      The average of all images used to train CLIP

    3. C

      The concept of a hat, reflected in a direction associated with the change in image content

    4. D

      A vector that cannot be compared with text embeddings

    Correct answer
    C

    The concept of a hat, reflected in a direction associated with the change in image content

    Explanation

    The difference between the two image embeddings captures a change in content. In the example, comparing that difference vector with text embeddings gives “hat” as the top match.

  6. 6

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

    1. A

      Ask the text encoder to predict the image’s class from its pixel values

    2. B

      Generate an image from each candidate label and select the sharpest one

    3. C

      Average the candidate text vectors and compare the result with the image’s pixels

    4. D

      Compare the image vector with text vectors for candidate captions and select the label with the highest cosine similarity

    Correct answer
    D

    Compare the image vector with text vectors for candidate captions and select the label with the highest cosine similarity

    Explanation

    CLIP can encode an image and candidate label captions, then assign the label whose text vector has the highest cosine similarity to the image vector.

  7. 7

    What is a key limitation of CLIP’s shared embedding space when considered by itself?

    1. A

      It can compare captions only when they contain identical words

    2. B

      It cannot place related images and captions near each other

    3. C

      It can represent images but not text

    4. D

      It maps text and images into vectors but does not itself generate images or text from those vectors

    Correct answer
    D

    It maps text and images into vectors but does not itself generate images or text from those vectors

    Explanation

    CLIP’s encoders map images and text into the shared space. They do not provide a mechanism for generating images or text from an embedding vector.

  8. 8

    Why is CLIP’s shared embedding space useful even though CLIP does not generate images?

    1. A

      It stores all image-caption pairs as identical vectors

    2. B

      It gives image and language concepts a common vector representation that other models can use

    3. C

      It eliminates the need to train image-generation models

    4. D

      It guarantees that any image vector can be converted back into its exact caption

    Correct answer
    B

    It gives image and language concepts a common vector representation that other models can use

    Explanation

    The shared representation makes it possible to compare image and language concepts geometrically, and its text embeddings can help guide other models such as diffusion models.

  9. 9

    In a video diffusion model such as WAN, what is the generation process described in the content?

    1. A

      The model selects a finished video from a stored library and edits its colors

    2. B

      A complete video is generated in one pass from the prompt

    3. C

      A transformer first writes a caption, which is converted directly into video frames

    4. D

      Random pixel values are repeatedly processed by a transformer to produce progressively more structured video

    Correct answer
    D

    Random pixel values are repeatedly processed by a transformer to produce progressively more structured video

    Explanation

    The described process begins with random video pixel intensities. A transformer repeatedly processes the video, adding structure over successive iterations.

  10. 10

    What is the role of a diffusion model’s forward process during training?

    1. A

      It adds detail to clean images until they resemble the training labels

    2. B

      It directly generates clean images from text embeddings

    3. C

      It converts images into captions and removes the captions afterward

    4. D

      It adds noise to training images progressively until their original structure is obscured

    Correct answer
    D

    It adds noise to training images progressively until their original structure is obscured

    Explanation

    The forward process progressively adds noise to training data. The model is trained to learn how to reverse the resulting corruption.

  11. 11

    Why is it useful to view an image as a point in a high-dimensional space?

    1. A

      It means the image’s caption becomes one of its pixel coordinates

    2. B

      It makes images independent of their pixel values

    3. C

      Each pixel intensity can be treated as a coordinate, so changing pixels moves the point in that space

    4. D

      It allows every image to be represented using only two coordinates

    Correct answer
    C

    Each pixel intensity can be treated as a coordinate, so changing pixels moves the point in that space

    Explanation

    An image can be represented as a point whose coordinates correspond to pixel intensities. In a two-pixel toy example, the two intensities form the two coordinates.

  12. 12

    In the two-pixel example, what does adding random noise to an image correspond to geometrically?

    1. A

      Moving its point by a random amount in a randomly chosen direction

    2. B

      Rotating the point around the origin without changing its coordinates

    3. C

      Moving the point toward the nearest labeled class

    4. D

      Moving every point directly to the center of the dataset

    Correct answer
    A

    Moving its point by a random amount in a randomly chosen direction

    Explanation

    Randomly changing pixel values corresponds to taking a step in a random direction in the toy space. Repeated noise additions create a random walk.

  13. 13

    What is the connection between diffusion models and Brownian motion?

    1. A

      Both require all particles to move toward a fixed center at every step

    2. B

      Both involve random walks; diffusion models learn to reverse the noise-driven process in high-dimensional data space

    3. C

      Diffusion models use Brownian motion only to label training images

    4. D

      Brownian motion describes the deterministic transformer output in a diffusion model

    Correct answer
    B

    Both involve random walks; diffusion models learn to reverse the noise-driven process in high-dimensional data space

    Explanation

    Adding noise creates random walks analogous to Brownian motion. A diffusion model learns to move from noisy states back toward the data distribution.

  14. 14

    Why does the model need to know the diffusion time or noise level as well as the current point?

    1. A

      Time information converts the image into a caption before denoising

    2. B

      The model cannot process pixel values unless they are accompanied by class labels

    3. C

      The time variable ensures that every reverse step is random

    4. D

      The appropriate direction can differ between heavily noisy examples and examples close to the data structure

    Correct answer
    D

    The appropriate direction can differ between heavily noisy examples and examples close to the data structure

    Explanation

    The learned vector field depends on how much noise has been added. Time conditioning lets the model learn coarse directions at high noise and finer structure near the original data.

  15. 15

    What does it mean to say a diffusion model learns a time-varying vector field?

    1. A

      The model predicts a single direction shared by all points at every noise level

    2. B

      The model changes the number of pixels in an image as time passes

    3. C

      The model assigns each image a fixed class label that never depends on noise

    4. D

      At each noise level, the model predicts directions that guide points toward more likely, less noisy data

    Correct answer
    D

    At each noise level, the model predicts directions that guide points toward more likely, less noisy data

    Explanation

    The model’s predicted directions depend on both the current point and the diffusion time. These directions guide noisy data toward likely regions of the data distribution.

  16. 16

    How does the content characterize the relationship between DDPM training and predicting the total added noise?

    1. A

      Predicting the total noise requires the model to reconstruct every intermediate image exactly

    2. B

      Predicting the total noise is equivalent, under the described relation, to predicting the final-step noise divided by the number of steps

    3. C

      Predicting the total noise is unrelated to predicting any individual noise step

    4. D

      Predicting the total noise is equivalent only if no noise was added during the forward process

    Correct answer
    B

    Predicting the total noise is equivalent, under the described relation, to predicting the final-step noise divided by the number of steps

    Explanation

    The content states that predicting the noise from the final step is mathematically equivalent to predicting the total noise divided by the number of steps, allowing the model to learn a direction back toward the original data.

  17. 17

    What is the purpose of training a diffusion model to predict the total noise added to the original image rather than merely undoing one step?

    1. A

      It makes every generated image identical to the training image

    2. B

      It removes the need for noise in the forward process

    3. C

      It prevents the model from learning anything about the original image

    4. D

      It reduces the variance of training examples and can make learning more efficient without changing the underlying learning objective

    Correct answer
    D

    It reduces the variance of training examples and can make learning more efficient without changing the underlying learning objective

    Explanation

    Directly predicting the vector back toward the original point reduces the variance of training examples. The content describes this as improving learning efficiency without changing the underlying objective.

  18. 18

    Why is the model’s predicted direction called a score function in the explanation?

    1. A

      It points toward regions associated with more likely, less noisy data

    2. B

      It ranks captions by their number of matching words

    3. C

      It records how many steps remain in the generation process

    4. D

      It measures the visual quality of each generated frame on a fixed scale

    Correct answer
    A

    It points toward regions associated with more likely, less noisy data

    Explanation

    The score function is described as pointing toward more likely, less noisy data in the space of possible images.

  19. 19

    What can happen to the learned vector field when training examples have undergone a large amount of diffusion noise?

    1. A

      It tends to point back toward the broad center or general structure of the data distribution

    2. B

      It points randomly because the model receives no training signal

    3. C

      It points only toward the nearest class label, regardless of the data

    4. D

      It becomes a precise map of every fine detail in the original image

    Correct answer
    A

    It tends to point back toward the broad center or general structure of the data distribution

    Explanation

    At high noise levels, points are far from their starting data. The model learns broader directions, such as pointing back toward the general center of the distribution.

  20. 20

    How does the vector field differ when the model is trained on examples with little added noise?

    1. A

      It points only toward the average and loses all local structure

    2. B

      It becomes independent of the current point

    3. C

      It can reflect finer structure in the data, such as the detailed contour of the toy spiral

    4. D

      It no longer depends on the diffusion time

    Correct answer
    C

    It can reflect finer structure in the data, such as the detailed contour of the toy spiral

    Explanation

    With only a small amount of noise, the learned vector field can capture more nuanced, fine-grained structure, such as the spiral’s shape.

  21. 21

    In the spiral example, why can a model without time conditioning struggle to represent the desired directions?

    1. A

      The appropriate directions vary with noise level, from broad guidance toward the distribution to fine guidance toward its structure

    2. B

      Time conditioning is needed to convert the spiral into a set of image captions

    3. C

      The spiral contains no points that can be represented as coordinates

    4. D

      The model can only learn directions when all points have the same class

    Correct answer
    A

    The appropriate directions vary with noise level, from broad guidance toward the distribution to fine guidance toward its structure

    Explanation

    The best direction depends on the noise level. Supplying time allows the model to represent coarse vector fields at high noise and more refined ones near the data distribution.

  22. 22

    What is the conditional mean behavior described for a diffusion model’s prediction?

    1. A

      The model predicts the exact random noise that will be added in the next generation step

    2. B

      For every noisy point, the model predicts the same global mean regardless of time

    3. C

      The model predicts the most distant training example from the noisy point

    4. D

      For a given noisy point and diffusion time, the model learns the mean of the corresponding reverse-step distribution

    Correct answer
    D

    For a given noisy point and diffusion time, the model learns the mean of the corresponding reverse-step distribution

    Explanation

    The content describes the model as learning the mean of a Gaussian reverse distribution conditioned on the input point and diffusion time.

  23. 23

    Why can omitting random noise from the DDPM generation procedure lead to blurry images?

    1. A

      The predictions force all pixels to become black

    2. B

      The absence of noise makes the text encoder return an empty vector

    3. C

      The predictions can pull outputs toward averages of possible data, which may not correspond to sharp realistic images

    4. D

      The model receives too much randomness and cannot settle on a class

    Correct answer
    C

    The predictions can pull outputs toward averages of possible data, which may not correspond to sharp realistic images

    Explanation

    The model predicts a mean or average conditioned on its input. Without sampling variation, generated results can converge toward averages, which appear blurry in image space.

  24. 24

    In the toy spiral example, what happens when random noise steps are removed from the DDPM procedure without changing its step scaling?

    1. A

      Points spread uniformly across the entire plane

    2. B

      Points follow the complete spiral more accurately than with noise

    3. C

      Points remain fixed at their initial random locations

    4. D

      Points tend to move toward the center and then toward one part of the spiral rather than representing its full distribution

    Correct answer
    D

    Points tend to move toward the center and then toward one part of the spiral rather than representing its full distribution

    Explanation

    Without the random steps, the toy points move toward the center or average and then toward a limited region, rather than capturing the full spread of the spiral.

  25. 25

    Why does DDPM add zero-mean Gaussian noise after using the model’s prediction during generation?

    1. A

      The model predicts a random sample already, so the added noise cancels its output

    2. B

      The noise ensures that each generation step exactly reverses one forward step

    3. C

      The model predicts the mean of a Gaussian reverse distribution, and noise is needed to sample from that distribution

    4. D

      The noise converts an unconditional vector into a text embedding

    Correct answer
    C

    The model predicts the mean of a Gaussian reverse distribution, and noise is needed to sample from that distribution

    Explanation

    Because the model predicts the mean rather than a complete random sample from the reverse distribution, adding zero-mean Gaussian noise allows the process to sample from that distribution.

  26. 26

    What is the key difference between DDPM sampling and DDIM sampling as described?

    1. A

      DDPM works only for videos, while DDIM works only for images

    2. B

      DDPM predicts total noise, while DDIM requires retraining to predict single-step noise

    3. C

      DDPM uses text conditioning, while DDIM cannot use text conditioning

    4. D

      DDPM adds random noise during generation, while DDIM uses a deterministic process with different step scaling

    Correct answer
    D

    DDPM adds random noise during generation, while DDIM uses a deterministic process with different step scaling

    Explanation

    DDIM removes random noise additions during generation and adjusts step sizes. It can generate high-quality results deterministically without changing model training.

  27. 27

    What does the Fokker-Planck result contribute to understanding image generation?

    1. A

      It replaces the diffusion model with a text encoder

    2. B

      It shows that an ordinary differential equation without a random component can produce the same evolving distribution as the stochastic process

    3. C

      It proves that a deterministic process must produce the same individual sample as a stochastic process

    4. D

      It shows that adding random noise during training is unnecessary

    Correct answer
    B

    It shows that an ordinary differential equation without a random component can produce the same evolving distribution as the stochastic process

    Explanation

    The cited result provides an ordinary differential equation whose evolution yields the same distribution of points as the stochastic differential equation, enabling deterministic sampling.

  28. 28

    When comparing DDPM and DDIM, what does the claim of matching final distributions mean?

    1. A

      The methods use identical trajectories and differ only in their names

    2. B

      Each method produces only the average image of the training data

    3. C

      The two methods can yield the same distribution of outputs even though individual generated samples need not match

    4. D

      Both methods must produce identical images from every starting point

    Correct answer
    C

    The two methods can yield the same distribution of outputs even though individual generated samples need not match

    Explanation

    The theory concerns the final distribution of generated points or images, not identity of individual trajectories or samples.

  29. 29

    Why can DDIM generate images in fewer steps than the original DDPM approach?

    1. A

      It skips the use of the trained model entirely

    2. B

      It replaces the diffusion process with CLIP classification

    3. C

      Its deterministic formulation and adjusted step sizes allow high-quality sampling with fewer model evaluations

    4. D

      It generates all intermediate images in parallel from the prompt

    Correct answer
    C

    Its deterministic formulation and adjusted step sizes allow high-quality sampling with fewer model evaluations

    Explanation

    DDPM’s many sequential steps are computationally demanding. DDIM can use fewer steps and still produce high-quality images without requiring changes to model training.

  30. 30

    What is flow matching in relation to the video model WAN, according to the content?

    1. A

      A generalization of DDIM used by the WAN video generation model

    2. B

      A contrastive objective used to train CLIP’s text encoder

    3. C

      A name for the random-noise initialization step in DDPM

    4. D

      A method for adding labels to individual video frames

    Correct answer
    A

    A generalization of DDIM used by the WAN video generation model

    Explanation

    The content identifies the WAN model’s guidance approach as using flow matching, described as a generalization of DDIM.

  31. 31

    How does text conditioning help a diffusion model generate an image related to a prompt?

    1. A

      The model receives a text embedding as additional information and learns to use it while denoising

    2. B

      The text embedding replaces the noisy image at every generation step

    3. C

      The text encoder directly outputs the finished image

    4. D

      The model ignores the image input and classifies the prompt

    Correct answer
    A

    The model receives a text embedding as additional information and learns to use it while denoising

    Explanation

    With conditioning, a text vector is supplied to the diffusion model so it can use prompt information as context while predicting how to denoise.

  32. 32

    Why might text conditioning alone fail to include every requested object in a generated image?

    1. A

      The denoising model may not use the text signal strongly enough to ensure full prompt adherence

    2. B

      Text embeddings cannot be supplied to diffusion models

    3. C

      The image encoder removes all details from the text vector

    4. D

      Conditioning forces the model to reproduce its training images exactly

    Correct answer
    A

    The denoising model may not use the text signal strongly enough to ensure full prompt adherence

    Explanation

    The content gives an example where conditioning produces a desert and shadow but omits the requested tree, showing that conditioning alone may provide insufficient prompt adherence.

  33. 33

    What was the main idea behind unCLIP, also known by its commercial name DALL·E 2?

    1. A

      Train a diffusion model to invert the CLIP image encoder and use text embeddings to guide image generation

    2. B

      Use CLIP to classify generated images and discard every image that receives a low score

    3. C

      Replace the diffusion model with a text-only language model

    4. D

      Train an image encoder to output captions without generating images

    Correct answer
    A

    Train a diffusion model to invert the CLIP image encoder and use text embeddings to guide image generation

    Explanation

    The described unCLIP approach trained a diffusion model to invert the CLIP image encoder, while text-encoder embeddings could guide generation toward the prompt.

  34. 34

    Which of these is described as one possible way to inject text information into a diffusion model?

    1. A

      Convert the text vector into random pixel noise and discard the prompt

    2. B

      Replace all diffusion-time information with the caption length

    3. C

      Use the text only after image generation is complete

    4. D

      Use cross-attention to couple image and text information

    Correct answer
    D

    Use cross-attention to couple image and text information

    Explanation

    The content describes several ways to provide text information, including cross-attention, adding or appending embeddings, or using text in multiple ways.

  35. 35

    How is classifier-free guidance trained to provide both unconditional and class-conditioned predictions efficiently?

    1. A

      The class information is omitted for a subset of training examples

    2. B

      A separate classifier is trained for every individual image

    3. C

      The model is trained only on examples with no class labels

    4. D

      The class label is randomly replaced with a pixel value at every step

    Correct answer
    A

    The class information is omitted for a subset of training examples

    Explanation

    The method leaves out class information for some training examples, enabling one model to provide both unconditioned and conditioned predictions.

  36. 36

    How does classifier-free guidance use the unconditional and class-conditioned vector fields?

    1. A

      It subtracts the unconditional prediction from the conditioned prediction, scales the difference, and uses the result to strengthen the desired direction

    2. B

      It subtracts the conditioned prediction from the unconditional prediction to move away from the desired class

    3. C

      It uses the unconditional prediction for training and discards it during generation

    4. D

      It averages the two predictions and ignores their difference

    Correct answer
    A

    It subtracts the unconditional prediction from the conditioned prediction, scales the difference, and uses the result to strengthen the desired direction

    Explanation

    Classifier-free guidance uses the difference between the conditioned and unconditional outputs, amplifies that difference by a scale factor, and uses it to steer generation toward the requested class.

  37. 37

    Why can classifier-free guidance improve class-specific generation compared with class conditioning alone?

    1. A

      It forces all classes to use the same region of the data space

    2. B

      It prevents the model from using any class information at early diffusion times

    3. C

      It separates the general direction toward the data distribution from the additional direction toward the requested class

    4. D

      It removes the need for a model to learn the overall data distribution

    Correct answer
    C

    It separates the general direction toward the data distribution from the additional direction toward the requested class

    Explanation

    The unconditional field captures a general direction toward the data, while the difference between conditioned and unconditional fields highlights the class-specific direction.

  38. 38

    In the prompt-guidance example, what happens as the guidance scale is increased?

    1. A

      The tree becomes less likely because the unconditional prediction dominates

    2. B

      The output becomes a text caption instead of an image

    3. C

      The requested tree becomes more visible and gains size and detail

    4. D

      The model progressively removes the desert from the image

    Correct answer
    C

    The requested tree becomes more visible and gains size and detail

    Explanation

    As the guidance scale increases, the example begins to show a tree, and the tree’s size and detail improve.

  39. 39

    How does the WAN negative-prompt approach steer generation?

    1. A

      It adds the negative prompt to the video after generation as a watermark

    2. B

      It subtracts the model output associated with unwanted features from the conditioned output and amplifies the result

    3. C

      It uses the negative prompt to train the model to produce the unwanted features

    4. D

      It replaces the positive prompt with an unconditional prediction

    Correct answer
    B

    It subtracts the model output associated with unwanted features from the conditioned output and amplifies the result

    Explanation

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

Question 1 of 39
Question 1 of 39

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent