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

  • 71Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Diffusion Basics
Modern image and video generation models often transform random noise into realistic content through a process called
.

71 questions

  1. 1
    Modern image and video generation models often transform random noise into realistic content through a process called
    _____
    .
    Hint

    It is named after a physical process involving particles spreading out.

    Answer

    diffusion

    Explanation

    Diffusion models begin with noise and iteratively transform it into an image or video that resembles the data on which the model was trained.

  2. 2
    The process used by diffusion models is closely related to Brownian motion, but it runs
    _____
    in time.
    Hint

    The model reverses the direction of the physical process.

    Answer

    backwards

    Explanation

    Forward diffusion adds noise, while generation uses a learned process that moves from noisy states toward less noisy data.

  3. 3
    Diffusion models can be understood as reversing Brownian motion in a
    _____
    -dimensional space.
    Hint

    Image data has many pixel values, so its representation has many dimensions.

    Answer

    high

    Explanation

    An image can be treated as a point in a space with one dimension for each pixel intensity value; realistic images therefore occupy a high-dimensional space.

  4. 4
    In the described video-generation procedure, a random number generator first creates a video of pure
    _____
    .
    Hint

    At this initial stage, pixel values are chosen randomly.

    Answer

    noise

    Explanation

    The generation process begins by randomly selecting pixel intensity values, producing a pure-noise video.

  5. 5
    After initialization, a
    _____
    processes the noisy video and outputs a new video with slightly more structure.
    Hint

    It is the same broad type of AI model used in large language models.

    Answer

    transformer

    Explanation

    The transformer repeatedly processes the current video and produces a version that is intended to be less noisy.

  6. 6
    In iterative video generation, each newly produced video is fed back into the model, gradually shaping noise into a realistic
    _____
    .
    Hint

    The repeated outputs are the same media type as the desired result.

    Answer

    video

    Explanation

    The model applies the denoising process repeatedly; over many iterations, structure emerges and the result becomes a realistic video.

  7. 7
    A text prompt guides a diffusion model toward the content described by the
    _____
    .
    Hint

    It is the language input that specifies what the user wants generated.

    Answer

    prompt

    Explanation

    Text guidance connects the words in a prompt to the image or video content the diffusion process should produce.

  8. 8
    The DDPM paper demonstrated that a diffusion process could generate high-quality images by transforming pure noise step by step into
    _____
    images.
    Hint

    The generated images should resemble plausible examples from the training data.

    Answer

    realistic

    Explanation

    The DDPM result established diffusion as a viable method for producing realistic, high-quality images from noise.

  9. 9
    Reducing an image to two pixels lets researchers visualize it as a point in a
    _____
    -dimensional space.
    Hint

    Each pixel intensity supplies one coordinate.

    Answer

    two

    Explanation

    With two pixel values, an image can be represented by two coordinates and plotted in a two-dimensional plane.

  10. 10
    In the two-pixel visualization, an image with a black first pixel and a white second pixel is located at coordinates
    _____
    and one.
    Hint

    Black is represented by the lowest intensity value in the example.

    Answer

    zero

    Explanation

    The example assigns intensity zero to the black first pixel and intensity one to the white second pixel, placing the point at zero and one.

  11. 11
    A model trained on image-caption pairs can learn a shared representation that maps both kinds of input into a common
    _____
    .
    Hint

    It is a vector space in which related image and text representations can be compared.

    Answer

    embedding space

    Explanation

    CLIP maps text and images into a shared embedding space so that corresponding captions and images have similar vectors.

  12. 12
    CLIP consists of a model that processes text and a separate model that processes
    _____
    .
    Hint

    The two encoders handle the two modalities in image-caption pairs.

    Answer

    images

    Explanation

    CLIP is composed of a text model and an image model, each of which produces a vector representation.

  13. 13
    The output vector from each of CLIP's two models has length
    _____
    .
    Hint

    This is the dimensionality specified for both encoder outputs.

    Answer

    512

    Explanation

    The text and image models each produce a vector of length 512.

  14. 14
    The CLIP model was trained on a dataset of 400 million image and
    _____
    pairs.
    Hint

    Each image was associated with a textual description.

    Answer

    caption

    Explanation

    The OpenAI CLIP model was trained on 400 million image-caption pairs collected from the internet.

  15. 15
    CLIP's training objective encourages vectors for matching image-caption pairs to be
    _____
    while pushing non-matching pairs apart.
    Hint

    Think about the desired relationship between representations of related content.

    Answer

    similar

    Explanation

    CLIP learns to maximize similarity for corresponding pairs and minimize similarity for non-corresponding pairs in a batch.

  16. 16
    CLIP is described as
    _____
    because its training contrasts matching pairs with non-matching pairs.
    Hint

    The name emphasizes comparing positive and negative examples against one another.

    Answer

    contrastive

    Explanation

    The C in CLIP stands for contrastive: the learning objective contrasts matching image-caption pairs with mismatched pairs.

  17. 17
    CLIP measures the alignment between vectors using a metric called
    _____
    similarity.
    Hint

    Geometrically, this metric depends on the angle between vectors.

    Answer

    cosine

    Explanation

    Cosine similarity measures the cosine of the angle between two vectors and is used in CLIP to compare image and text representations.

  18. 18
    When an image vector and its matching text vector point in the same direction, their cosine similarity is
    _____
    .
    Hint

    This is the maximum possible score for the described alignment.

    Answer

    1

    Explanation

    Vectors pointing in the same direction have an angle of zero, giving a cosine similarity of one.

  19. 19
    In CLIP's batch training setup, pairs on the matrix
    _____
    correspond to matching images and captions.
    Hint

    Matching pairs occupy the main line running across the arranged similarity matrix.

    Answer

    diagonal

    Explanation

    When image vectors are arranged as columns and text vectors as rows, matching pairs lie on the diagonal; off-diagonal pairs are mismatches.

  20. 20
    Subtracting the CLIP vector for a person without a hat from the vector for the same person wearing a hat produces a vector associated most strongly with the concept of a
    _____
    .
    Hint

    The difference isolates what changed between the two images.

    Answer

    hat

    Explanation

    In the described example, searching text vectors by cosine similarity ranked “hat” highest for the difference vector, followed by cap and helmet.

  21. 21
    CLIP can classify an image by comparing its image vector with candidate caption vectors and selecting the label with the highest
    _____
    similarity.
    Hint

    The classification rule uses the same vector-comparison metric as CLIP training.

    Answer

    cosine

    Explanation

    The image is assigned the label whose candidate caption has the greatest cosine similarity to the image vector.

  22. 22
    CLIP can map text and images into an embedding space, but its encoders do not themselves generate images or text back from those
    _____
    .
    Hint

    The limitation concerns reversing the encoder's representation output.

    Answer

    vectors

    Explanation

    CLIP's text and image models map inputs into a shared embedding space; they do not provide a way to generate text or images from those vectors.

  23. 23
    The forward part of a diffusion model gradually adds noise to training images until the original image is completely
    _____
    .
    Hint

    The image's recognizable structure is eventually lost.

    Answer

    destroyed

    Explanation

    The forward process adds noise step by step until the image is overwhelmed and no longer recognizable.

  24. 24
    A diffusion model is trained to reverse the process that adds
    _____
    to images.
    Hint

    The network learns to undo the corruption introduced during the forward process.

    Answer

    noise

    Explanation

    The model learns to recover image structure from noisy inputs, reversing the forward noising process.

  25. 25
    A naive diffusion approach would train a model to predict the image at one step from the image at the next, noisier
    _____
    .
    Hint

    The proposed method removes corruption incrementally rather than all at once.

    Answer

    step

    Explanation

    The naive approach trains the model to reverse a single step of noise addition at a time, but this is not how virtually all modern diffusion models operate.

  26. 26
    In DDPM image generation, random noise is added after the model predicts a less noisy image at each
    _____
    .
    Hint

    The added randomness occurs repeatedly during generation, not just during training.

    Answer

    step

    Explanation

    DDPM sampling adds random noise to the predicted image before passing it back into the model, and this noise is important for image quality.

  27. 27
    Removing the random noise additions from the described DDPM generation process produced a small, blurry
    _____
    .
    Hint

    This was the subject in the example of a prompt about a desert.

    Answer

    tree

    Explanation

    In the tree-in-the-desert example, removing the noise addition at each step resulted in a tiny, blurry tree rather than the sharper result.

  28. 28
    Rather than predicting each intermediate image, DDPM training asks the model to predict the total noise added to the original image, called
    _____
    .
    Hint

    The source uses a Greek-letter name for the added random noise.

    Answer

    epsilon

    Explanation

    The training procedure adds scaled random noise, called epsilon, to a clean image and trains the model to predict that total noise.

  29. 29
    The clean starting image in the DDPM description is denoted by
    _____
    .
    Hint

    It is the original image before noise is added.

    Answer

    X0

    Explanation

    The source denotes the initial clean image as X0 and the added scaled random noise as epsilon.

  30. 30
    Predicting total noise instead of learning every intermediate denoising step reduces the variance of training examples, helping the model learn more
    _____
    .
    Hint

    The benefit is that the learning task becomes less variable and easier to optimize.

    Answer

    efficiently

    Explanation

    The total-noise prediction target is mathematically equivalent to a scaled final-step noise target, but has lower variance and supports more efficient learning.

  31. 31
    Even when trained to predict total noise, the model's learned direction ultimately points back toward the original data, denoted by
    _____
    .
    Hint

    This symbol identifies the starting clean example in the forward process.

    Answer

    x0

    Explanation

    The noise-prediction objective is equivalent to learning a direction that points back toward the original clean image, x0.

  32. 32
    The learned direction that points toward more likely, less noisy data is also called a
    _____
    function.
    Hint

    Its name describes a function that indicates where data is more probable.

    Answer

    score

    Explanation

    The score function points toward regions of higher likelihood and less noise in the data distribution.

  33. 33
    Because the reverse process is modeled as a Gaussian distribution, the diffusion model learns its
    _____
    .
    Hint

    This is the central value of a probability distribution.

    Answer

    mean

    Explanation

    For sufficiently small forward-process steps, the reverse distribution is Gaussian, and the model learns the mean of that distribution.

  34. 34
    To sample from the learned reverse Gaussian distribution, DDPM adds zero-mean
    _____
    noise to the model's predicted value.
    Hint

    The added random variable follows the same distribution family as the reverse process.

    Answer

    Gaussian

    Explanation

    The model predicts the Gaussian mean, so random zero-mean Gaussian noise is added to sample from the distribution rather than always returning its average.

  35. 35
    In a two-pixel toy dataset, adding random noise changes each coordinate by a random amount, which is equivalent to taking a step in a randomly chosen
    _____
    .
    Hint

    The point moves through the plane as its pixel intensities change.

    Answer

    direction

    Explanation

    Each coordinate corresponds to a pixel intensity, so random changes to the pixels move the point in a random direction in the toy space.

  36. 36
    Repeatedly adding noise to a point produces a random walk that corresponds to
    _____
    motion in physics.
    Hint

    This is the motion of particles undergoing random fluctuations in a fluid.

    Answer

    Brownian

    Explanation

    The sequence of random steps is equivalent to Brownian motion, the physical process that motivates the name diffusion models.

  37. 37
    In the toy example, diffusion learning asks a model to reverse the random walk and recover the original structure of the
    _____
    .
    Hint

    The model should reconstruct the organized point distribution from noisy locations.

    Answer

    dataset

    Explanation

    The model sees noisy trajectories from starting points in the data and learns to reverse them toward the dataset's original structure.

  38. 38
    A point at the end of a 100-step random walk in the naive training formulation is used to predict the point at step
    _____
    .
    Hint

    The naive method reverses only the most recent step.

    Answer

    99

    Explanation

    Single-step denoising would use the 100th point to predict the preceding, 99th point.

  39. 39
    Although an individual final random step has an arbitrary direction, many diffusion paths pass through the same neighborhood, allowing the model to learn an average direction back toward the
    _____
    .
    Hint

    It is the organized shape used as the toy data distribution.

    Answer

    spiral

    Explanation

    Across many paths, points tend overall to diffuse away from the starting spiral, providing a learnable signal that points back toward it.

  40. 40
    In the toy dataset, the learned vector field gives each point a direction that leads back toward the original data
    _____
    .
    Hint

    It describes the overall arrangement of likely data points.

    Answer

    distribution

    Explanation

    The model learns directions that move noisy points toward the original distribution, rather than merely toward a specific individual training point.

  41. 41
    A diffusion model can be conditioned on the number of steps taken in the random walk by supplying a time
    _____
    .
    Hint

    This extra input tells the model how far along the diffusion process it is.

    Answer

    variable

    Explanation

    Adding a time variable lets the model distinguish examples with different amounts of added noise and learn time-dependent directions.

  42. 42
    In the example where the 100th step corresponds to time one, the 99th step corresponds to time
    _____
    .
    Hint

    The time value changes by one hundredth for each step in this example.

    Answer

    0.99

    Explanation

    If time is one at step 100, it is 0.99 at step 99 and decreases as the walk is traced backward.

  43. 43
    Conditioning on time lets a model learn coarse vector fields at large time values and more refined structures as time approaches
    _____
    .
    Hint

    This is the endpoint associated with the original, less-noisy data.

    Answer

    0

    Explanation

    Large time values correspond to heavily diffused points, while times close to zero allow the model to represent finer data structure.

  44. 44
    In the spiral example, the learned vector field changes from pointing toward the center to pointing toward the spiral as time approaches approximately
    _____
    .
    Hint

    The source describes this transition as feeling like a phase change.

    Answer

    0.4

    Explanation

    Around time 0.4, the model's vector field shifts from the average center toward the more detailed spiral structure.

  45. 45
    For large diffusion times, when points are far from the data spiral, the learned vector field tends to point toward the dataset's center or
    _____
    .
    Hint

    It is the central representative value of the distribution.

    Answer

    average

    Explanation

    Far from the spiral, the model's predictions tend toward the center or average of the data distribution; finer structure appears closer to time zero.

  46. 46
    When a model predicts only the mean of the reverse distribution, generated samples can collapse toward an average, which in image space often appears
    _____
    .
    Hint

    Averaging different sharp images can obscure their details.

    Answer

    blurry

    Explanation

    Averaging different plausible images can combine their features into an indistinct result, explaining why generation without suitable random sampling can look blurry.

  47. 47
    The DDPM generation process can be expressed as a stochastic differential equation, whose random component represents the point's random
    _____
    .
    Hint

    It describes the component that moves the point unpredictably.

    Answer

    motion

    Explanation

    The stochastic differential equation combines motion driven by the learned vector field with random motion.

  48. 48
    The DDPM equation's model-driven component describes motion along the learned vector
    _____
    .
    Hint

    It assigns a direction of motion at each point in the data space.

    Answer

    field

    Explanation

    One term in the stochastic differential equation moves points according to the model's learned vector field; another term accounts for randomness.

  49. 49
    The Fokker-Planck equation was used to show that a stochastic process has a corresponding ordinary differential equation with the same final point
    _____
    .
    Hint

    The result concerns the overall arrangement of samples, not necessarily each individual path.

    Answer

    distribution

    Explanation

    The ordinary differential equation can produce the same final distribution as the stochastic differential equation, despite containing no random component.

  50. 50
    The deterministic image-generation method derived from this ordinary differential equation is generally called
    _____
    .
    Hint

    It is the name of the sampling approach contrasted with DDPM.

    Answer

    DDIM

    Explanation

    DDIM uses a deterministic process with appropriately scaled step sizes to generate images without random noise additions at every step.

  51. 51
    Unlike DDPM sampling, DDIM does not require adding random
    _____
    at every generation step.
    Hint

    The missing component is the source of random motion in the DDPM process.

    Answer

    noise

    Explanation

    DDIM follows a deterministic trajectory and does not add the random noise used by DDPM at each step.

  52. 52
    DDIM can generate high-quality images in significantly fewer steps without changing the model's
    _____
    .
    Hint

    The improvement is achieved during generation rather than by retraining the network.

    Answer

    training

    Explanation

    DDIM changes the sampling procedure, not the training procedure, and can generate high-quality images with fewer model evaluations.

  53. 53
    The scaling of DDIM step sizes matters because suitable steps help trajectories follow the contour lines of the learned vector field and reach the correct
    _____
    .
    Hint

    The goal is to reproduce the structure of the full data population.

    Answer

    distribution

    Explanation

    Unlike simply removing DDPM's random steps, DDIM uses a different scaling of step sizes that can guide samples to the correct data distribution.

  54. 54
    The WAN video model uses a generalization of DDIM called
    _____
    .
    Hint

    This approach is related to learning and following time-varying vector fields.

    Answer

    flow matching

    Explanation

    The described WAN model uses flow matching, a generalization of the DDIM approach.

  55. 55
    Diffusion models can be trained to learn a time-varying vector field, a perspective that also motivates the broader family of
    _____
    -based models.
    Hint

    The model family is named for following a learned field of motion.

    Answer

    flow

    Explanation

    Viewing diffusion as learning time-dependent motion leads to flow-based models, which are another approach to generative modeling.

  56. 56
    A text vector supplied as an additional input to a diffusion model to influence its denoising process is an example of
    _____
    .
    Hint

    The model's output depends on extra information provided with its input.

    Answer

    conditioning

    Explanation

    Conditioning gives the diffusion model context, such as text, so it can denoise toward content matching that information.

  57. 57
    In the described unCLIP approach, a diffusion model is trained to invert the CLIP
    _____
    encoder.
    Hint

    This encoder maps pictures into CLIP's shared representation space.

    Answer

    image

    Explanation

    OpenAI's unCLIP method, commercially known as DALL-E 2, trained a diffusion model to invert the CLIP image encoder and generate images from representations.

  58. 58
    The unCLIP method is better known by its commercial name,
    _____
    .
    Hint

    It is OpenAI's image-generation model described in the content.

    Answer

    DALL-E 2

    Explanation

    The OpenAI team called its approach unCLIP; the resulting model is better known by its commercial name, DALL-E 2.

  59. 59
    When text and image-caption pairs are used to train a diffusion model, the text information can help the model remove noise by providing extra
    _____
    about the image.
    Hint

    The text tells the model more about what the image should contain.

    Answer

    context

    Explanation

    A caption supplies contextual information that can help the model denoise an image in a way that matches its description.

  60. 60
    One method for coupling image and text information inside a diffusion model is called
    _____
    -attention.
    Hint

    The mechanism connects information from different modalities.

    Answer

    cross

    Explanation

    Some conditioning methods use cross-attention to couple image and text information within the diffusion model.

  61. 61
    A diffusion model can also receive embedded text by adding or appending the text vector to its
    _____
    .
    Hint

    This is the data the model processes to make its prediction.

    Answer

    input

    Explanation

    Besides cross-attention, some approaches add or append the embedded text vector to the diffusion model's input.

  62. 62
    Classifier-free guidance can be trained efficiently by omitting class or text information for a subset of training
    _____
    .
    Hint

    The model sees some training cases without their conditioning signal.

    Answer

    examples

    Explanation

    Rather than training two separate models, classifier-free guidance commonly leaves out class information for some examples so one model can provide both conditioned and unconditioned outputs.

  63. 63
    A diffusion model run without class or text information provides an
    _____
    vector field that points toward the data in general.
    Hint

    This output lacks a specific class or prompt signal.

    Answer

    unconditioned

    Explanation

    The unconditioned model represents the general direction toward the data distribution, rather than toward a particular class.

  64. 64
    Classifier-free guidance creates a class-specific direction by subtracting the unconditioned vector from the
    _____
    vector.
    Hint

    This vector field includes the class or prompt information.

    Answer

    conditioned

    Explanation

    Subtracting the unconditioned output from the conditioned output isolates a direction associated more specifically with the requested condition.

  65. 65
    In classifier-free guidance, the difference between conditioned and unconditioned vectors is amplified using a scaling factor called
    _____
    .
    Hint

    The source uses a Greek-letter name for the guidance strength.

    Answer

    alpha

    Explanation

    Multiplying the difference direction by alpha increases how strongly generation is steered toward the desired class or prompt.

  66. 66
    At large diffusion times, conditioned and unconditioned vector fields often point in roughly the same direction toward the data's
    _____
    .
    Hint

    At this stage, fine-grained class structure has not yet become prominent.

    Answer

    average

    Explanation

    When points are far from the data spiral, both vector fields tend to point generally toward its center or average; they diverge as time approaches zero.

  67. 67
    In the toy spiral example, classifier-free guidance helps a point reach the
    _____
    part of the spiral when the requested class is cat.
    Hint

    The toy example assigns cats to the portion farthest from the center.

    Answer

    outer

    Explanation

    The toy classes are assigned to different spiral regions: people to the inner part, dogs to the middle, and cats to the outer part. Guidance amplifies the cat-specific direction.

  68. 68
    In the tree-in-the-desert example, a guidance scale of around two begins to produce a tiny
    _____
    .
    Hint

    It is the object requested in the prompt but missing with conditioning alone.

    Answer

    tree

    Explanation

    Conditioning alone produced a desert and shadow without a tree; adding classifier-free guidance at a scale around two made a small tree appear.

  69. 69
    Increasing the classifier-free guidance scale can increase the size and detail of the requested tree in the generated
    _____
    .
    Hint

    The stronger guidance changes the generated visual output.

    Answer

    images

    Explanation

    As the guidance scale increases, the model is steered more strongly toward the prompt, and the tree becomes larger and more detailed.

  70. 70
    The WAN model's negative prompt specifies features the user does not want, and its vector is subtracted from the model's
    _____
    output.
    Hint

    This output reflects the positive text prompt and desired content.

    Answer

    conditioned

    Explanation

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

  71. 71
    In the described WAN implementation, the standard negative prompt is passed into the text encoder in
    _____
    .
    Hint

    This is the language used for the negative-prompt text in the example.

    Answer

    Chinese

    Explanation

    The content notes that WAN's standard negative prompt, which includes features such as extra fingers and walking backwards, is passed to its text encoder in Chinese.

1 of 71
Question 1 of 71

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent