Making Things with AILesson 5 of 84

Module 1 · How the picture gets made

Guidance: the dial that makes it obey

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 5 of 9 in this chapter

This chapter’s goalTrace one generated image from random noise to a saved file (naming the latent space, the text encoder, the denoising loop, the guidance term, the sampler and the seed) and say, with the published evidence, what a diffusion model does and does not retain from its training set.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Walking the guidance dial on one fixed seed050100120Guidance scaleScore out of 100—— How much of the prompt appears– – Highlights clipped to flat whiteObedience is nearly all bought by nine and the burning is only starting. That is the whole trade, andit is why the usable band on this family is six to nine. Distilled and flow-matching models have movedthe numbers, and on several of them the same burnt look arrives at seven.
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.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

Two predictions, one exaggerated difference

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.

The 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.

Text
guided = unconditional + scale * (conditional - unconditional)

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Yetunde, your AI tutor

How to 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).