4.5.10 · D3Generative Models

Worked examples — Diffusion models forward - reverse process

3,044 words14 min readBack to topic

Two quantities do all the work on this page, so pin them down before we start:

the signal-energy fraction plus the noise-energy fraction always equal the whole. This is why the variance stays .
— the empty product; before any step, all of survives.

The scenario matrix

Every worked example below is a cell in this table. Together they touch every corner of the topic.

Cell Scenario class What breaks / what to watch Example
A Early forward step ( small, ) Almost no noise; check "nearly identity" Ex 1
B Late forward step (, ) Signal gone; Ex 2
C Building from a -schedule Cumulative product, not sum Ex 3
D One reverse denoising step, generic Mean formula + injected noise Ex 4
E Degenerate reverse step No noise added (); uses ; final output Ex 5
F Perfect model () Reverse exactly inverts forward Ex 6
G Broken / zero model () What the mean does with no denoising Ex 7
H Signal-to-noise reasoning (word problem) "At which is the digit half-gone?" Ex 8
I Exam twist: solve for from data Invert relation Ex 9

A — Early forward step: barely any noise

This is the limit: the forward map is almost the identity.


B — Late forward step: signal destroyed

Figure — Diffusion models forward - reverse process

Figure s01 — the two forward scales versus . The horizontal axis is the timestep from to ; the vertical axis is a pure scale between and . The red curve is the signal scale : it starts at (full signal) and sinks toward . The black curve is the noise scale : it starts at and climbs toward . They cross where signal and noise carry equal scale. Ex 1 lives at the far left edge (red near 1, black near 0 — barely noised); Ex 2 lives at the far right edge (red near 0, black near 1 — signal destroyed). The whole forward process is a journey from left to right along this picture.


C — Building from a schedule (the cumulative product)

This schedule is our house schedule; Examples 3, 4, 5 and 7 all use it so the numbers stay comparable.


D — One generic reverse step

Recall the reverse mean (parent note):

Notice needs . At this is (our convention above), which makes — the reverse step at is deterministic. We hit exactly that in Ex 5.


E — Degenerate case : no noise injected


F — Perfect model: reverse exactly inverts forward


G — Broken / zero model: what happens with no denoising?


H — Word problem: at which is the digit "half gone"?

Figure — Diffusion models forward - reverse process

Figure s02 — the half-gone crossover. Horizontal axis is timestep ; vertical axis is energy fraction (0 to 1). The red curve is signal energy falling from 1; the black curve is noise energy rising from 0. The dashed vertical line marks where the two curves cross at height — the "half-gone" point of Ex 8, where SNR . Left of the line the digit is signal-dominated (recognisable); right of the line it is noise-dominated.


I — Exam twist: recover a single from cumulative products


Recall

Recall Cover check

Signal energy fraction after steps ::: What is ? ::: the noise-injection fraction — the share of variance thrown away and replaced by fresh Gaussian noise at step Value of and why it matters ::: (empty product); it makes so the last reverse step adds no noise Why is no noise added at reverse step ? ::: it is the final output; automatically because A zero-output network's reverse mean does what to the sample? ::: multiplies it by — amplifies, never denoises from ? ::: multiply by one new : "Half-gone" condition ::: , i.e. , SNR Why does perfect noise prediction invert forward exactly at ? ::: because , so the mean formula is the algebraic inverse of the forward law

See also: Langevin dynamics (the reverse step as noisy gradient ascent), Variational autoencoders (the loss's variational roots), and Classifier-free guidance (steering the reverse mean). Parent: Diffusion models forward - reverse process.