A diffusion image model never draws anything. It starts with a grid of random noise and repeatedly answers one question: which part of this is noise? Each pass removes a little, the grid gets slightly cleaner, and after a few dozen passes what is left is a picture that matches the prompt. The entire system is a noise-removal function trained on one narrow task, run in a loop.
That framing explains the impressive parts and the embarrassing ones. Three mechanisms are worth following in order: how the model learned to recognise noise, how running that skill backwards produces images, and how a sentence of text manages to steer the process. The same three mechanisms also explain why hands merge, why lettering comes out as convincing gibberish, and why asking for five of something often gives you six.
Training teaches exactly one skill
The training data is a large collection of images with captions. During training, an image is deliberately damaged: random noise is added in small increments, and after enough increments the picture is indistinguishable from static. The model is shown a partly destroyed image together with a number saying how far along the damage schedule it is, and asked to predict the noise that was added.
The prediction is compared with the noise that was actually added, and the weights are adjusted to reduce the difference. That is the whole training signal. No human labels the eyes, no one draws bounding boxes around objects, no one tells the model that a cat has four legs. It learns only the statistics of noise in natural images, which turns out to be a surprisingly rich thing to learn, because the shape of that noise is the shape of the pictures.
Why bother with the step number? Because “remove the noise” means something different at each stage. At heavy noise the model is essentially being asked what large shapes could plausibly have produced this mess. At light noise it is being asked to clean up a nearly finished picture. Feeding in the step lets one network cover the entire range instead of training a separate model for each level.
Some systems are trained to predict the noise, some to predict the clean image directly, and some to predict a mixture of the two. The differences matter to engineers and not much to anyone else. What matters here is that all of them are trained to answer the same question in reverse: given a damaged image, what was removed?
Generation is that skill played backwards
To make an image, the process starts at the far end of the schedule with pure noise. The model looks at it, predicts the noise it thinks is present, and subtracts a portion of that prediction. The result is slightly less noisy. Then the model looks again, at a slightly earlier step, and repeats.
The reason this converges on a picture rather than a grey blur is that the model is not removing noise at random. It is removing the noise that is inconsistent with the training distribution. In effect, each pass pushes the grid a little toward the nearest plausible image. Coarse structure settles first: the arrangement of light and dark masses, the approximate layout, the dominant colours. Fine detail settles last: edges, texture, the separate strands of hair.
A photograph developing in a tray is the closest everyday analogy, though the direction is reversed — a print emerges from blank paper as chemistry does its work, while here a picture emerges from static as the model repeatedly commits to structure.
Two consequences follow. First, the process is genuinely iterative, so anything that requires a global decision — consistent lighting across the whole frame, a hand with five fingers in the right places — must survive many local revisions, and small inconsistencies get locked in early. Second, the starting noise is random, so the same prompt and the same settings can produce different images. Fixing the random seed fixes the output, which is why reproducibility in image generation usually means recording the seed rather than the prompt alone.
The prompt does not describe the picture — it steers each step
Text enters through a separate encoder that turns the prompt into a sequence of vectors, one per token. Inside the image network, layers of cross-attention let each region of the emerging image ask the prompt what it should be looking at. This is the same attention idea that powers language models, applied across two modalities at once: image features form the queries, prompt tokens supply the keys and values. A general account of that mechanism is in what a transformer model is.
Training pairs each image with its caption, so the network learns which visual features tend to accompany which words. But a caption is a thin description of a picture: “a dog on a beach” says nothing about the dog’s fur direction, the number of people in the background, or whether the horizon is level. The model fills all of that from its prior over images, not from your sentence — the same sampling arrangement described in what generative AI is, with pixels in place of words.
Most systems also use a trick called guidance. At each step the model makes two predictions: one conditioned on your prompt, and one with the prompt removed. The difference between them is the direction “toward your prompt,” and the final step exaggerates that difference by a scale factor. Turn the scale up and the image obeys the words more literally, at the cost of looking oversaturated, over-sharpened, or strange in the corners. Turn it down and you get a pleasant image that ignores half of what you asked for. Every image generator has this dial somewhere, and most of the complaints about “it won’t follow my prompt” are really complaints about where the dial sits.
Most of the work happens in a compressed space
Running a diffusion loop directly on millions of pixels would be enormously expensive, so most systems compress first. An encoder squashes the image into a smaller grid of feature values — a latent — and the diffusion loop runs there. A decoder expands the result back to pixels at the end.
The compression is lossy, and that loss is not evenly distributed. Broad shapes and colours survive comfortably. Exact letterforms, fine hatching, and the precise contour of a fingernail do not. This is the single most useful fact for reading a generated image critically, and it is also why the hardware matters so much: the repeated passes are large matrix multiplications, which is exactly the workload a GPU is built for. If you want the underlying idea of layered feature extraction, what a neural network is covers it without the diffusion specifics.
The failures come from missing structure, not from carelessness
Three failures get blamed on the model being sloppy: hands, lettering, counting. None of them is sloppiness. Each is something the model has no way to represent, and each shows up in a different place.
Why hands come out wrong
Hands are hard for reasons that have nothing to do with the model being careless.
- They are usually small and partly hidden. In a typical photograph a hand occupies a modest patch of the frame, often at an angle, with fingers overlapping each other and the object being held.
- They vary enormously. Finger length, curl, and spread differ from pose to pose far more than eyes or ears do, so there is no single averaged hand for the model to fall back on.
- They demand exact counting. Five fingers is not a texture; it is a discrete fact about a local arrangement. Getting it right requires the model to place separate, occluding objects in a consistent order, which is a structural problem, not a shading problem.
- Captions rarely mention them. Training pairs mostly describe the subject of the photo, so the text signal that would reinforce “hand, five fingers, thumb on the left” is missing.
The result is a shape that has the statistics of a hand — skin tone, knuckle-like bumps, a plausible silhouette — assembled without a count. At a glance it reads correctly. On inspection, fingers merge, split, or arrive in the wrong number.
Why text inside images turns to gibberish
Lettering fails for a related but sharper reason. A letter is a precise shape with a small tolerance: change the curve of an “e” slightly and it becomes an “a”, an “o”, or nothing at all. The model has no dictionary and no spelling step. It has learned that signs, book covers, and labels are covered in letter-shaped marks, and it produces marks with exactly that character — correct stroke weight, plausible spacing, wrong words.
Compression makes it worse, because the latent grid is too coarse to preserve letter boundaries reliably. Systems that render text well usually do something extra: a dedicated text renderer, a second pass, or a stronger condition on a font. None of that is the default behaviour of a plain diffusion model.
Why counting and spatial relations fail
Ask for three red cubes to the left of a blue sphere. The words are easy to condition on individually; the constraint is relational, and it must hold across the whole frame at once. Diffusion decides globally consistent structure only gradually and locally, and a small error in one region is not necessarily corrected by another region that knows better. There is no symbolic workspace where the model can count objects and check “is that the third one.”
So “three” behaves less like a quantity and more like a mood. The model has seen many captions with numbers and many images with objects, and the association is statistical. Counting is one of the tasks where a person with a five-second glance often beats a very large model, and it tends to stay that way when the architecture has no explicit object representation.
What to check when you look at a generated image
An image model is never wrong on purpose. It produces the most plausible picture given the noise and the prompt — the visual equivalent of the fluent, confident, occasionally invented sentence described in why AI models make things up. That is why the checks below are visual rather than conceptual: you are looking for the places where plausibility and fact come apart.
- Zoom into hands, ears, and glasses. Zoom to full size and look at the places where several parts meet. Merged fingers, extra knuckles, and ear rims that dissolve into hair are the classic failures.
- Read every piece of text. Signs, labels, shirt prints, book spines. If the letters are individually plausible and collectively meaningless, that is the latent compression showing through.
- Count what was requested. Two people, four chairs, six windows. Do not trust the overall impression; count.
- Trace continuous lines. Railings, straps, cables, architectural edges. Generated images often break a line that should run unbroken behind an object.
- Ask what the picture is for. A decorative background tolerates artefacts. A diagram in a science report does not, because a wrong number of legs or a misspelt axis label becomes a wrong claim.
Keep exploring
Related: how machine learning works for how the noise-removal skill is learned in the first place, and the AI section for the rest of this series.



