The trick — run the model twice, once deaf
At every denoising step the model actually runs twice: once seeing your prompt ("a red fox"), once with the prompt blanked out. Two predictions of where the image should head. The difference between them is a pure, distilled arrow meaning "this is what the prompt specifically wants." Step through a denoise below and watch the two predictions and their difference — the whole of CFG is that gold arrow.
Vectors shown are 2D stand-ins for the real high-dimensional noise predictions; their measured angle-gap drives everything downstream, exactly as in the real algorithm: guided = unconditional + scale × (conditional − unconditional).
The arrow — extrapolate past the prompt
Guidance scale is just how far you slide along that arrow. Scale 1 = trust the conditional prediction as-is. Scale 7 = go seven times farther in the prompt's direction than the model itself predicted — deliberate exaggeration, past the data, into caricature country. Drag the dial and watch the output point slide along the line, off the manifold of images the model was trained on.
The grey cloud is the data manifold (where real training images live); the readout measures the guided point's distance from it. CFG is literally linear extrapolation — nothing stops it from leaving the map.
Burn one yourself — from mush to poster to charcoal
The famous sweep, live. The canvas generates an abstract "image" via actual guided denoising of a 2D color field — the same math at toy scale. Drag from 0 to 30 and watch the three regimes: mush (low: pretty but ignores the prompt's palette/structure), the sweet spot (5-9), and deep-fry (20+: colors clip to maximum saturation, contrast crushes, detail dies). The saturation-clipping meter counts the actual burned pixels.
Real guided denoising on a 48×32 color field: conditional prediction pulls toward the "prompt" (a warm structured pattern), unconditional toward generic smoothness; clipping percentage is counted from the actual pixel values.
The 2× tax — and the distillation heist
That "run twice, once deaf" trick has a price: every denoising step costs double. 50 steps become 100 forward passes. The meter below does the honest accounting for your settings — then shows the heist that modern fast models pulled: guidance distillation, where a student model is trained to directly output the guided prediction in one pass, baking the dial's effect into the weights.
Pass counts are exact; the throughput panel assumes a fixed per-pass cost. Distillation's catch, shown honestly: the dial is frozen at training time — you lose the knob to gain the speed.
One number is too crude — schedule the dial
The frontier refinement: constant guidance is wrong at both ends. Early steps decide composition (guidance helps a lot); late steps polish texture (guidance mostly burns). So schedule it: high early, low late. Design your own curve below and read the two measured meters — prompt adherence and burn damage. The constant-7 baseline is marked; beat it.
Adherence is dominated by early-step guidance, burn by late-step guidance — the interpolated schedule's scores are computed from that (empirically observed) split, with the constant-7 reference measured the same way.