1. Home
  2. 3Blue1Brown

Jul 25, 2025

AI creates images from random noise

Welch Labs

37 min → 2:30

Overview

Welch Labs explains how modern AI image and video generation works by combining CLIP text understanding with diffusion models that turn random noise into guided visuals.

3 things to know

Welch Labs: AI creates images by clearing random noise

Welch Labs explains that diffusion models generate new images by repeatedly removing random noise from a starting field, similar to running particle motion backward.

▶ Watch at 0:16

Welch Labs says CLIP links words to matching pictures

According to Welch Labs, the CLIP model maps both text and images into a shared space so the system understands how closely a phrase matches a picture.

▶ Watch at 4:18

Welch Labs: Models train by guessing all added noise

Welch Labs notes that instead of undoing noise one small step at a time, the model is trained to predict the total noise added to an image for faster, steadier learning.

▶ Watch at 11:00

Also in this episode

Welch Labs says blank runs help AI follow prompts

Welch Labs says classifier-free guidance makes AI follow text prompts better by finding and boosting the difference between what the model produces with a prompt and without one.

▶ Watch at 32:12

Skipping random steps speeds up AI, Welch Labs says

Welch Labs points out that the DDIM sampling method removes random steps from the standard process while getting similar results, which makes generating an image much faster.

Welch Labs says learned guides point toward cleaner images

Welch Labs describes the score function as a learned guide inside a diffusion model that always points from noisy data toward a clearer, more likely image.

▶ Watch at 16:05

Welch Labs says time settings shift AI to details

Welch Labs explains that feeding a time variable into the model lets it adjust to the current noise level, building rough shapes when noise is high and fine details as the image clears.

Negative Prompts

An extension of classifier-free guidance where the model is actively steered away from user-specified undesirable features or concepts.

Quotes

“This generation of image and video models works using a process known as diffusion, which is remarkably equivalent to the Brownian motion we see as particles diffuse, but with time run backwards and in high dimensional space.”

▶ Watch at 0:16

“This is also known as a score function. And the intuition here is that the score function points us towards more likely, less noisy data.”

▶ Watch at 16:05

“The central idea is that the vectors for a given image and its caption should be similar.”

▶ Watch at 4:18

2 more quotes

“...the team instead trained the model to predict the total noise that was added to the original image.”

▶ Watch at 11:00

“This approach is called classifier-free guidance.”

▶ Watch at 32:12

Full summary

Episode Overview

  • The podcast explains how modern AI image and video generation works, centered around the core technology of diffusion models.
  • It details the two-part system that powers this technology: CLIP, a model that understands the relationship between text and images, and diffusion models, which generate visuals from random noise.
  • The discussion covers key technical breakthroughs, including the specific training objective (predicting total noise) and DDIM, a method for significantly speeding up the generation process.
  • It breaks down how models are steered to accurately follow text prompts using techniques like classifier-free guidance and negative prompts to control the final output.

Key Concepts

  • Diffusion Models: A generative process that creates images by iteratively denoising an initial field of random noise, conceptually similar to reversing a physics process like Brownian motion.
  • CLIP (Contrastive Language-Image Pre-training): A model with text and image encoders that maps concepts into a shared "embedding space," allowing it to understand the relationship and similarity between a piece of text and an image.
  • DDPM Training Objective: Instead of naively reversing the noising process step-by-step, the model is trained to predict the total noise added to an image, which is a more stable and efficient training goal.
  • Score Function: The learned vector field within a diffusion model that, at any point in the noisy data space, points toward a more likely, less-noisy version of the data.
  • Time Conditioning: The model is conditioned on a "time" variable t to adjust its predictions based on the current noise level, handling coarse features at high noise levels and fine details as the image becomes clearer.
  • DDIM (Denoising Diffusion Implicit Models): A deterministic sampling method that achieves similar results to the standard stochastic process but without random steps, enabling significantly faster image generation.
  • Classifier-Free Guidance: A critical technique for improving prompt adherence by calculating and amplifying the difference between a model's output with a prompt (conditional) and without it (unconditional).
  • Negative Prompts: An extension of classifier-free guidance where the model is actively steered away from user-specified undesirable features or concepts.

Quotes

  • At 0:16 - "This generation of image and video models works using a process known as diffusion, which is remarkably equivalent to the Brownian motion we see as particles diffuse, but with time run backwards and in high dimensional space." - The speaker introduces the fundamental connection between diffusion models and a core concept in physics.
  • At 4:18 - "The central idea is that the vectors for a given image and its caption should be similar." - This is the foundational principle behind the CLIP model, which learns to associate text and images by aligning them in a shared vector space.
  • At 11:00 - "...the team instead trained the model to predict the total noise that was added to the original image." - This reveals the actual, more successful training objective used by modern diffusion models, which involves a much more challenging prediction task than simply reversing one step of noise.
  • At 16:05 - "This is also known as a score function. And the intuition here is that the score function points us towards more likely, less noisy data." - This provides a clear, intuitive definition of the vector field the diffusion model learns.
  • At 32:12 - "This approach is called classifier-free guidance." - This names the crucial technique used by models like Stable Diffusion to better follow text prompts by comparing conditional and unconditional outputs.

Takeaways

  • AI image generation is a two-part system: a model like CLIP first understands the prompt's meaning, and a diffusion model then generates the image by progressively refining random noise based on that understanding.
  • The success of diffusion models lies in a clever training objective where they learn to predict the total noise in an image, which is a more stable and effective approach than simply trying to reverse the noising process one step at a time.
  • Achieving precise control over generated images relies on active steering techniques like classifier-free guidance, which amplifies the prompt's influence to ensure the final output closely matches the user's intent.
  • Innovations like DDIM, which makes the generation process deterministic, are crucial for making this technology practical by dramatically reducing the time it takes to create an image.

Watch the full episode 37 min

Read along with the audio summary

The speaker reveals that modern artificial intelligence image and video generation is remarkably equivalent to the physics of diffusing particles, just with time run backwards. In this podcast episode, which came out on July 25, 2025, the speaker breaks down the core technology behind these visual models. By the end, you will learn how a two part system turns pure static and a text prompt into a detailed picture.

How running physics in reverse creates images from pure static. Instead of painting an image from scratch, diffusion models begin with an initial field of purely random noise. The speaker explains that the system iteratively removes this noise, which is conceptually similar to reversing Brownian motion as particles diffuse in high dimensional space.

How a machine learns to match words with pictures. That is the job of CLIP, which stands for Contrastive Language Image Pretraining. It uses text and image encoders to map concepts into a shared embedding space, which is a mathematical map where the vectors for a given image and its caption are placed close together because they are similar.

Why predicting the whole mess beats fixing one step at a time. The speaker notes that for the DDPM training objective, the team trained the model on a much more challenging task: predicting the total noise that was added to the original image. This approach provides a more stable and efficient training goal.

The internal compass that guides static back into a clear picture. Once trained to spot the noise, the model relies on what the speaker calls a score function. At any given point, the score function points the model toward a more likely, less noisy version of the data.

How the model knows when to sketch broad shapes and when to add fine details. By conditioning the model on a time variable, called t, it adjusts its predictions based on the current noise level. It handles coarse features when noise levels are high, and shifts to fine details as the image becomes clearer.

Cutting out the randomness to generate images much faster. A method called DDIM, or Denoising Diffusion Implicit Models, offers a deterministic sampling method. By removing the random steps, it achieves similar results to the standard process while enabling significantly faster image generation.

The steering trick that forces the model to actually follow your prompt. The speaker highlights a critical technique used by models like Stable Diffusion called classifier free guidance. It improves prompt adherence by calculating the difference between the model's output with your prompt and its output without a prompt, and then amplifying that difference.

Telling the model what to avoid is just as powerful as telling it what to create. Building directly on classifier free guidance, negative prompts give users even tighter control over the final image. This extension actively steers the generation process away from undesirable features or concepts that the user specifies.

Modern image generation relies on a two part system: a model like CLIP translates your prompt's meaning, and a diffusion model refines random noise into a picture using active steering like classifier free guidance. This generation of image and video models works using a process known as diffusion, which is remarkably equivalent to the Brownian motion we see as particles diffuse, but with time run backwards and in high dimensional space.

More from 3Blue1Brown

Related Episodes