Skip to content
Hi, Bot

Hi, Bot · First Principles · Phase 6: Build it

Lesson 47 of 48

Diffusion

Adding noise on purpose, then learning to remove it.

Destroying structure is easy and exactly describable; the model only has to learn the reverse of a process you defined. That asymmetry is the whole trick behind image generation.

Do this

Take a mixture of two well-separated Gaussians. Implement the forward noising process, watch the structure disappear, then learn the reverse and sample from it.

The question that unlocks the next lesson

Why is the forward (noising) process in diffusion not learned?

  • AIt is too expensive to learn
  • BIt is defined by you in closed form — only the reverse, denoising step needs learning
  • CIt is learned, just before the reverse process
  • DBecause noise cannot be modelled

Start at lesson 1 and work up to this one

48 lessons, one a day. Answer each lesson's question correctly and the next one opens immediately — nothing here is unlocked by waiting.

By submitting, you agree to our Terms and Privacy Policy.