Multimodal / Generation
verifiedClassifier-Free Guidance
A conditioned diffusion model follows its prompt loosely. Guidance sharpens it: run the model twice, once with the prompt and once without, and step further in the direction the prompt added. Turn it up and the image matches the words more closely while losing variety — the knob everyone actually turns.
Train one network with the condition randomly dropped, so it learns conditional and unconditional prediction at once — no separate classifier, which is what the name refers to. Sampling costs two forward passes per step instead of one. Push the scale too high and outputs saturate and lose detail, so it trades diversity for prompt adherence rather than improving both.
ε̂ = ε sub θ (x sub t , ∅) + w·(ε sub θ (x sub t , c) − ε sub θ (x sub t , ∅)). At w = 1 this is the plain conditional model; above it the sample is pushed away from the unconditional prediction. It is an extrapolation, not an interpolation, which is why large w leaves the region the model was trained on.
beyond-conditional holds 67% of the budget; rest holds the remaining 33%.
The move a guided sample makes, split between the plain conditional step and the extrapolation past it. Drag the guidance scale to watch the extrapolation become most of it.
Reviewed by opendroid · 2026-08-04
- arXiv:2207.12598 — Classifier-Free Diffusion Guidance