Applied AI Vol. 2

The Diffusion Forward Process: Turning Data Into Noise on Purpose

How a fixed noising schedule works, and the one-line formula that lets you jump to any noise level directly.

Applied AI Vol. 2 · 5 min read

Diffusion models generate images by learning to undo noise. To teach that, you first need a precise way to add it.

Adding noise in small steps

The forward process takes a clean data point x0 and, over T steps, mixes in a little Gaussian noise at each step according to a schedule. After enough steps, the result is nearly pure Gaussian noise, no matter what the data looked like.

The closed form

Because Gaussians compose neatly, you do not need to simulate every step. If you define a cumulative signal fraction α̅t, then x at step t is sqrt(α̅t) times x0 plus sqrt(1 − α̅t) times a standard Gaussian noise vector ε.

At small t, α̅t is close to one and the sample is mostly signal. At large t, α̅t is close to zero and it is mostly noise. This formula is what makes training efficient: pick a random t, jump straight to that noise level and train.

Why the schedule matters

  • Too little noise at the end leaves traces of the data, so sampling from pure noise at test time does not match what the model saw.
  • The spacing of noise levels affects which scales of detail the model learns most from.
  • Some schedules, such as cosine schedules, were designed to avoid wasting steps at levels that are nearly all noise.

What to remember

The forward process has no learned parameters. All the learning is in the reverse direction, which is the subject of the next guide.

More guides from this book