How Your Text Prompt Steers the Process
Everything covered so far explains how a diffusion model turns noise into some image. But that raises the obvious question this whole course has been building toward: how does typing "a golden retriever wearing a birthday hat, oil painting style" make the model produce specifically that, instead of a random cat, a random landscape, or literally anything else it could denoise its way toward?
This lesson connects your text prompt to the denoising process from the last three lessons. The short version: your prompt doesn't touch the image directly at all. It acts more like a compass the model checks at every single step, constantly nudging the denoising process back toward "does this look more like what was asked for?"
What You'll Learn
- How a text prompt gets turned into something a diffusion model can actually use
- What "guidance" means and how it steers each denoising step
- What a "guidance scale" or "CFG" setting actually does
- Why prompt wording and order genuinely change the result
Step One: Turning Words Into Numbers
Before your prompt can influence anything, it has to be converted into a format the model can work with. This is handled by a separate component, often called a text encoder, which was trained on a massive dataset of images paired with their captions.
Through that training, the text encoder learned to convert words and phrases into a compact set of numbers that captures their meaning in a way that lines up with visual concepts. Critically, this encoder learned that "dog," "puppy," and "golden retriever" all land in a related neighborhood of that meaning-space, while "dog" and "spreadsheet" land nowhere near each other. It has effectively learned a shared map connecting language to imagery, built from seeing millions of real examples of both together.
This matters because it's the same underlying idea as latent space from the previous lesson, just for text instead of images: a compressed representation that captures meaning rather than raw detail.
Step Two: Checking In With the Prompt at Every Step
Once your prompt has been converted into this numerical representation, the model uses it as a running reference throughout the entire denoising process you learned about two lessons ago. At every one of those dozens of steps, instead of just asking "what noise should I remove to make this look more like a plausible photo in general?", the model asks a more specific question: "what noise should I remove to make this look both more like a plausible photo and more consistent with this specific prompt?"
This is why the coarse-to-fine order from earlier matters so much for prompting. In the early steps, when only rough structure is being decided, the prompt mostly steers big compositional choices: what's the main subject, roughly where is it positioned, what's the general color palette or mood. In the later steps, once structure is locked in, the prompt mostly steers finer choices: what does the texture look like, what specific details show up, what style cues (like "oil painting") apply to the surface.
That's also a practical reason why the order of words in a prompt can affect results, and why some tools give earlier or more prominent words extra weight: the earliest-applied guidance tends to have the most influence over structural choices that later steps can't easily undo, echoing the "structural mistakes get locked in early" point from two lessons ago.
Guidance Scale: How Strongly to Listen to the Prompt
Most image generation tools expose a setting, often called "guidance scale" or "CFG scale" (short for classifier-free guidance), that controls exactly how strongly the model should favor the prompt at each step versus how strongly it should favor whatever looks most naturally photo-like or artistically coherent on its own.
You can think of it as a dial between two extremes:
- Low guidance scale: the model leans more toward what it would generate naturally, exploring more, matching the prompt more loosely, sometimes producing more surprising or creative results, sometimes producing results with only a passing resemblance to what you asked for.
- High guidance scale: the model leans hard toward matching every word of the prompt as literally as possible, which can produce very on-target results, but pushed too far can start to look over-processed, oversaturated, or strangely "shouty," since it's aggressively steering every single denoising step toward the prompt at the expense of natural coherence.
Most default settings sit in a comfortable middle range for exactly this reason: strong enough guidance to reliably reflect the prompt, without fighting so hard against the model's natural tendencies that quality suffers.
Why Wording Really Does Change the Output
Once you know the prompt is being consulted at every single one of dozens of steps, it makes sense why small wording changes can produce noticeably different results, and why vague prompts tend to produce vague, generic images. A word the text encoder maps confidently and specifically ("golden retriever") gives the model a clear target to steer toward at every step. A vague or unusual word or phrase maps to a fuzzier region of that meaning-space, giving the model less clear guidance to work with, which tends to show up as a less specific, more generic-looking result.
This is the mechanical reason behind advice you may already know from prompting-focused courses: be specific, put the most important concepts early, and describe what you want rather than what you don't want. Now you know why that advice works, it's not a magic incantation, it's a direct consequence of how guidance operates at every step of the denoising process.
Key Takeaways
- A text encoder converts your prompt into a numerical representation of its meaning, built from training on millions of image-caption pairs.
- The model checks that representation at every denoising step, nudging the image toward being consistent with the prompt as well as looking generally photo-like or coherent.
- Because structure is set early and detail is set late, prompt wording tends to steer composition and subject in early steps and texture and style in later steps.
- "Guidance scale" (or CFG) controls how strongly the model favors literal prompt-matching versus its own natural tendencies at each step; too high can cause an over-processed look.
- Specific, clearly-mapped wording gives the model a sharper target at every step, which is the real mechanism behind common prompting advice like "be specific."

