{"course":{"slug":"making-things-with-ai","title":"Making Things with AI","url":"https://addaly.com/learn/making-things-with-ai","level":"beginner","track":"create"},"lesson":{"slug":"guidance-and-its-cost","title":"Guidance: the dial that makes it obey","url":"https://addaly.com/learn/making-things-with-ai/guidance-and-its-cost","position":5,"of":84,"minutes":8,"answer":"Classifier-free guidance runs the model twice per step and extrapolates away from the unprompted prediction, so raising it increases obedience and saturation together, and past a point it destroys the image.","keyIdea":"Classifier-free guidance runs the model twice per step and extrapolates away from the unprompted prediction, so raising it increases obedience and saturation together, and past a point it destroys the image."},"body":{"format":"markdown","text":"## Two predictions, one exaggerated difference\n\nLeft alone, a diffusion model trained on captioned images follows a prompt loosely. The prompt is one influence among many, and early systems produced images that were plausible but only vaguely on topic.\n\nThe fix, **classifier-free guidance**, is a trick of arithmetic rather than training. At each step the model is run twice: once with your prompt, and once with an empty prompt. That gives two noise predictions: where the model would go with your words, and where it would go without them. The direction from the second to the first is \"what your prompt is doing\". Guidance amplifies that direction and follows it past where either prediction actually pointed.\n\n```\nguided = unconditional + scale * (conditional - unconditional)\n```\n\nAt scale 1 the guided prediction equals the conditional one and the prompt is a gentle influence. At scale 7 you travel seven times the difference. At scale 20 you are far outside the range the model was trained to produce anything sensible in.\n\nTwo facts follow immediately, and they explain most of what people notice. First, guidance is why generation costs roughly twice the compute of a single forward pass: the model runs twice per step. Second, the \"negative prompt\" box in most interfaces is not a special feature. It replaces the empty prompt in that second run. You are not telling the model to avoid something; you are moving the point it is being pushed away from.\n\n## What each end of the dial looks like\n\nTypical defaults sit at 6 to 8 for the Stable Diffusion family. Walking the range on a fixed seed teaches it in one minute:\n\n- **1 to 3.** Loose, painterly, often ignores half the prompt. Colours are muted and natural. Occasionally the most photographic-looking result, because real photographs are not saturated.\n- **6 to 9.** The usable band for most checkpoints. Prompt followed, contrast normal.\n- **12 to 16.** Prompt followed hard. Colours push toward the edges of the range, skin goes waxy, highlights clip to flat white.\n- **20 and above.** Burnt. Posterised colour, hard black outlines, sometimes a rainbow shimmer in flat areas.\n\nThe burning is a direct consequence of the arithmetic. Extrapolation drives the predicted latent outside the distribution the VAE was trained to decode, so the decoder is asked to render values it has never seen. Clipped, over-saturated output is what an autoencoder does when handed impossible inputs.\n\n> Figure: Walking the guidance dial on one fixed seed. Line chart of Score out of 100 against Guidance scale: How much of the prompt appears (1, 24) (3, 52) (6, 80) (9, 89) (12, 92) (16, 94) (20, 95); Highlights clipped to flat white (1, 2) (3, 5) (6, 10) (9, 19) (12, 39) (16, 63) (20, 82). Obedience is nearly all bought by nine and the burning is only starting. That is the whole trade, and it is why the usable band on this family is six to nine. Distilled and flow-matching models have moved the numbers, and on several of them the same burnt look arrives at seven.\n\n## The models where the dial has moved\n\nDistilled and flow-matching models have changed the numbers, and advice written for one family is actively wrong for another. Several current models bake guidance in during training and expose a differently scaled parameter, where the useful band is 1 to 5 and setting it to 7 produces the burnt look that 15 produces elsewhere. Turbo and Lightning variants are trained to run at guidance 1 with three or four steps, and raising it destroys them.\n\nThere is no way to read the right number off the interface. It is on the model card, in one line, and reading that line is the difference between a model that seems broken and a model that works. This is a good habit to build early: before blaming a checkpoint, check the three numbers its author published: native resolution, step count, guidance scale.\n\nThere is also a scheduling trick worth knowing, because several free tools expose it. Guidance does not have to be constant across the run. Applying it strongly in the early steps, where composition is decided, and weakly in the late steps, where texture is laid down, gives prompt obedience without the burnt surfaces. Tools call this **guidance rescaling**, **dynamic thresholding** or **CFG scheduling** depending on who wrote them; ComfyUI ships several nodes for it and the WebUI has it behind an extension. If you find yourself stuck choosing between a picture that ignores you and a picture that looks like melted plastic, this is the setting that resolves the trade-off, and it is free.\n\n## When lowering it is the answer\n\nMost people only ever raise guidance, because raising it makes the model obey. It is worth knowing the failure that lowering it fixes.\n\nIf your images look like stock illustration (plastic skin, impossible contrast, every surface glossy) the cause is usually guidance, not the prompt or the model. Photographs contain dull greys and blown-out corners. High guidance drives every region toward the most prototypical version of what it is, and the most prototypical mug is glossier than any real mug. Dropping from 9 to 4 and adding two steps often produces the image people were trying to reach with another twenty words of \"photorealistic, 8k, award-winning\". Those words are doing far less than the dial."},"check":{"question":"Images from a checkpoint look plastic and over-saturated, with clipped white highlights, no matter how the prompt is rewritten. Which single change is most likely to fix it, and why?","options":[{"text":"Increase the step count, because more denoising steps recover the detail that saturation is hiding.","correct":false,"tempting":"Steps refine an already-converged path; they do not pull latent values back inside the range the decoder can render."},{"text":"Add \"natural lighting, muted colours\" to the prompt, because the text conditioning is what sets tonal range.","correct":false,"tempting":"Text nudges content, but the clipping comes from extrapolation in the guidance arithmetic, which prompt words cannot undo."},{"text":"Lower the guidance scale, because extrapolation is pushing latents outside the range the decoder was trained on.","correct":true},{"text":"Switch to a larger output resolution, because saturation artefacts are a symptom of generating below native size.","correct":false,"tempting":"Generating below native size causes composition problems and softness, not clipped highlights and waxy skin."}]},"prev":{"slug":"words-into-steering","title":"How your words become a steering signal","url":"https://addaly.com/learn/making-things-with-ai/words-into-steering"},"next":{"slug":"seeds-and-samplers","title":"Seeds, samplers and reproducibility","url":"https://addaly.com/learn/making-things-with-ai/seeds-and-samplers"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'Guidance: the dial that makes it obey', in Making Things with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/making-things-with-ai/guidance-and-its-cost (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"Guidance: the dial that makes it obey","courseTitle":"Making Things with AI","module":{"index":1,"slug":"how-the-picture-gets-made","title":"How the picture gets made"},"answer":null,"keyIdea":"Classifier-free guidance runs the model twice per step and extrapolates away from the unprompted prediction, so raising it increases obedience and saturation together, and past a point it destroys the image.","hero":{"kind":"figure","figure":{"t":"figure","label":"Figure","figure":{"caption":"Obedience is nearly all bought by nine and the burning is only starting. That is the whole trade, and it is why the usable band on this family is six to nine. Distilled and flow-matching models have moved the numbers, and on several of them the same burnt look arrives at seven.","series":[{"label":"How much of the prompt appears","points":[[1,24],[3,52],[6,80],[9,89],[12,92],[16,94],[20,95]]},{"label":"Highlights clipped to flat white","points":[[1,2],[3,5],[6,10],[9,19],[12,39],[16,63],[20,82]]}],"title":"Walking the guidance dial on one fixed seed","type":"line","xLabel":"Guidance scale","yLabel":"Score out of 100"},"alt":"Figure: Walking the guidance dial on one fixed seed. Line chart of Score out of 100 against Guidance scale: How much of the prompt appears (1, 24) (3, 52) (6, 80) (9, 89) (12, 92) (16, 94) (20, 95); Highlights clipped to flat white (1, 2) (3, 5) (6, 10) (9, 19) (12, 39) (16, 63) (20, 82). Obedience is nearly all bought by nine and the burning is only starting. That is the whole trade, and it is why the usable band on this family is six to nine. Distilled and flow-matching models have moved the numbers, and on several of them the same burnt look arrives at seven."}},"blocks":[{"t":"h2","id":"two-predictions-one-exaggerated-difference","runs":[{"text":"Two predictions, one exaggerated difference"}]},{"t":"p","runs":[{"text":"Left alone, a diffusion model trained on captioned images follows a prompt loosely. The prompt is one influence among many, and early systems produced images that were plausible but only vaguely on topic."}]},{"t":"p","runs":[{"text":"The fix, "},{"text":"classifier-free guidance","b":true},{"text":", is a trick of arithmetic rather than training. At each step the model is run twice: once with your prompt, and once with an empty prompt. That gives two noise predictions: where the model would go with your words, and where it would go without them. The direction from the second to the first is “what your prompt is doing”. Guidance amplifies that direction and follows it past where either prediction actually pointed."}]},{"t":"code","lang":"","label":"Text","text":"guided = unconditional + scale * (conditional - unconditional)"},{"t":"p","runs":[{"text":"At scale 1 the guided prediction equals the conditional one and the prompt is a gentle influence. At scale 7 you travel seven times the difference. At scale 20 you are far outside the range the model was trained to produce anything sensible in."}]},{"t":"p","runs":[{"text":"Two facts follow immediately, and they explain most of what people notice. First, guidance is why generation costs roughly twice the compute of a single forward pass: the model runs twice per step. Second, the “negative prompt” box in most interfaces is not a special feature. It replaces the empty prompt in that second run. You are not telling the model to avoid something; you are moving the point it is being pushed away from."}]},{"t":"h2","id":"what-each-end-of-the-dial-looks-like","runs":[{"text":"What each end of the dial looks like"}]},{"t":"p","runs":[{"text":"Typical defaults sit at 6 to 8 for the Stable Diffusion family. Walking the range on a fixed seed teaches it in one minute:"}]},{"t":"ul","items":[[{"text":"1 to 3.","b":true},{"text":" Loose, painterly, often ignores half the prompt. Colours are muted and natural. Occasionally the most photographic-looking result, because real photographs are not saturated."}],[{"text":"6 to 9.","b":true},{"text":" The usable band for most checkpoints. Prompt followed, contrast normal."}],[{"text":"12 to 16.","b":true},{"text":" Prompt followed hard. Colours push toward the edges of the range, skin goes waxy, highlights clip to flat white."}],[{"text":"20 and above.","b":true},{"text":" Burnt. Posterised colour, hard black outlines, sometimes a rainbow shimmer in flat areas."}]]},{"t":"p","runs":[{"text":"The burning is a direct consequence of the arithmetic. Extrapolation drives the predicted latent outside the distribution the VAE was trained to decode, so the decoder is asked to render values it has never seen. Clipped, over-saturated output is what an autoencoder does when handed impossible inputs."}]},{"t":"h2","id":"the-models-where-the-dial-has-moved","runs":[{"text":"The models where the dial has moved"}]},{"t":"p","runs":[{"text":"Distilled and flow-matching models have changed the numbers, and advice written for one family is actively wrong for another. Several current models bake guidance in during training and expose a differently scaled parameter, where the useful band is 1 to 5 and setting it to 7 produces the burnt look that 15 produces elsewhere. Turbo and Lightning variants are trained to run at guidance 1 with three or four steps, and raising it destroys them."}]},{"t":"p","runs":[{"text":"There is no way to read the right number off the interface. It is on the model card, in one line, and reading that line is the difference between a model that seems broken and a model that works. This is a good habit to build early: before blaming a checkpoint, check the three numbers its author published: native resolution, step count, guidance scale."}]},{"t":"p","runs":[{"text":"There is also a scheduling trick worth knowing, because several free tools expose it. Guidance does not have to be constant across the run. Applying it strongly in the early steps, where composition is decided, and weakly in the late steps, where texture is laid down, gives prompt obedience without the burnt surfaces. Tools call this "},{"text":"guidance rescaling","b":true},{"text":", "},{"text":"dynamic thresholding","b":true},{"text":" or "},{"text":"CFG scheduling","b":true},{"text":" depending on who wrote them; ComfyUI ships several nodes for it and the WebUI has it behind an extension. If you find yourself stuck choosing between a picture that ignores you and a picture that looks like melted plastic, this is the setting that resolves the trade-off, and it is free."}]},{"t":"h2","id":"when-lowering-it-is-the-answer","runs":[{"text":"When lowering it is the answer"}]},{"t":"p","runs":[{"text":"Most people only ever raise guidance, because raising it makes the model obey. It is worth knowing the failure that lowering it fixes."}]},{"t":"p","runs":[{"text":"If your images look like stock illustration (plastic skin, impossible contrast, every surface glossy) the cause is usually guidance, not the prompt or the model. Photographs contain dull greys and blown-out corners. High guidance drives every region toward the most prototypical version of what it is, and the most prototypical mug is glossier than any real mug. Dropping from 9 to 4 and adding two steps often produces the image people were trying to reach with another twenty words of “photorealistic, 8k, award-winning”. Those words are doing far less than the dial."}]}],"check":{"question":[{"text":"Images from a checkpoint look plastic and over-saturated, with clipped white highlights, no matter how the prompt is rewritten. Which single change is most likely to fix it, and why?"}],"options":[{"text":[{"text":"Increase the step count, because more denoising steps recover the detail that saturation is hiding."}],"correct":false,"tempting":[{"text":"Steps refine an already-converged path; they do not pull latent values back inside the range the decoder can render."}]},{"text":[{"text":"Add “natural lighting, muted colours” to the prompt, because the text conditioning is what sets tonal range."}],"correct":false,"tempting":[{"text":"Text nudges content, but the clipping comes from extrapolation in the guidance arithmetic, which prompt words cannot undo."}]},{"text":[{"text":"Lower the guidance scale, because extrapolation is pushing latents outside the range the decoder was trained on."}],"correct":true,"tempting":null},{"text":[{"text":"Switch to a larger output resolution, because saturation artefacts are a symptom of generating below native size."}],"correct":false,"tempting":[{"text":"Generating below native size causes composition problems and softness, not clipped highlights and waxy skin."}]}],"order":[3,2,1,0],"why":null},"prev":{"slug":"words-into-steering","title":"How your words become a steering signal","minutes":9},"next":{"slug":"seeds-and-samplers","title":"Seeds, samplers and reproducibility","minutes":8}}}