AI basics
How do diffusion models work? How AI turns noise into images
Diffusion models create images by starting with random static and removing noise step by step, guided by your words. Here is the process in plain language.

Diffusion models are the technology behind most AI image generators. They create a picture by starting with pure random noise, like television static, and removing that noise a little at a time until an image appears that matches your text description.
This guide explains how diffusion models work: what the noise is for, how the model learns to clean it up, how your words steer the result, and why the method produces the strengths and odd mistakes you see in AI images.
What is a diffusion model?
A diffusion model is a type of generative AI that learns to reverse a process of gradually adding noise. The name comes from physics, where diffusion describes how a drop of ink spreads through water until it is evenly mixed.
In image terms, take a clear photo and add a little random speckle. Then add a bit more, and more again, until nothing is left but grey fuzz. A diffusion model is trained to run that film backwards: given a noisy image, predict what a slightly less noisy version would look like.
Repeat that denoising step many times, starting from pure noise, and a brand-new image emerges. It is not retrieved from anywhere. It is built from the patterns the model learned.
How does a diffusion model learn?
Training uses a large collection of images, each paired with a text description. For each image, the training process adds a random amount of noise and asks the model to predict the noise that was added. Because the right answer is known, the model can be corrected every time.
Over millions of examples, the model becomes very good at telling noise from structure. To do that, it has to learn what real images look like: how light falls, how faces are arranged, what grass, glass and fur look like up close.
It also learns how text descriptions relate to visual features, so that later the words in your prompt can push the denoising towards a particular scene.
A diffusion model starts with static and removes noise, step by step, until a picture that matches your words appears.
What happens when you type a prompt?
Behind the progress bar of an image generator, a sequence like this takes place.
Changing the starting noise, called the seed, gives a different image from the same prompt. That is why generators usually offer several variations, and why reusing a seed with a slightly edited prompt lets you make small changes while keeping the overall layout.
- Your text is turned into a numerical representation of its meaning by a text encoder.
- The generator creates a canvas of random noise.
- The model predicts which parts of the canvas are noise, guided by the meaning of your text.
- A portion of that noise is removed, leaving a slightly clearer image.
- Steps three and four repeat, often dozens of times, with broad shapes forming first and fine detail last.
- The final result is converted into a normal image file.
Why do many generators work in a compressed space?
Denoising a full-size image pixel by pixel takes a lot of computing power. Many popular systems are latent diffusion models: they first compress images into a smaller representation, called a latent space, do the denoising there, and then decode the result back into a full image.
This makes generation much faster and cheaper, which is part of why image generators became practical on ordinary hardware and in everyday apps. The same approach has been extended to video, where the model also has to keep frames consistent over time, and to audio.
Many tools also expose a setting often called guidance strength. Higher values make the model follow your prompt more literally; lower values give it more freedom. Very high values can make images look harsh or overcooked, so a middle setting is usually the safest starting point.
Why do AI images sometimes look wrong?
Diffusion models learn statistical patterns of appearance, not the rules of the physical world. They know what hands tend to look like but not that a hand has exactly five fingers. Errors in hands, teeth, jewellery and text are classic signs, although they have become less common as models improved.
Readable text used to be especially hard, because letters are small precise shapes that matter exactly. Counting is also tricky: ask for seven apples and you may get six or nine. Spatial instructions like “the red cup to the left of the blue one” can be swapped.
Biases in training images carry through too. If the model saw mostly one kind of person labelled as a doctor, it may default to that unless your prompt says otherwise.
How are diffusion models different from language models?
A language model builds its output one token at a time, left to right. A diffusion model refines the whole output at once, over many passes, going from rough to detailed. That is why images appear blurry and then sharpen when a generator shows progress.
The two are often combined. Many image tools use a language model to rewrite or expand your prompt before the diffusion model draws it, and some systems can generate images with other methods entirely. The core idea of diffusion, learning to clean up noise, remains one of the most widely used approaches for images.
Frequently asked questions
What is a diffusion model in simple terms?
+
It is an AI model that creates images by starting with random noise and removing it step by step. At each step it predicts what a slightly clearer image should look like, guided by your text prompt.
Do AI image generators copy existing images?
+
They generate new images from learned patterns rather than pasting stored pictures. However, models can sometimes reproduce close copies of images that appeared many times in training, which is one reason copyright questions around them are debated.
What is a seed in AI image generation?
+
The seed is a number that sets the starting random noise. The same prompt with the same seed and settings usually produces the same image, which helps when you want small, controlled changes.
Why can AI image generators not draw hands?
+
The model learns what hands generally look like but not their exact structure, and hands appear in countless poses that are partly hidden. That makes finger counts easy to get wrong. Models have improved at hands over time, but checks are still worthwhile.
What is latent diffusion?
+
Latent diffusion means doing the denoising in a compressed version of the image rather than on full-size pixels. It is much faster and is used by many common image generators.
What are diffusion steps?
+
Steps are the number of denoising passes the model makes. More steps can add detail but take longer, and after a point the improvement becomes small. Many tools choose a sensible number for you.
Diffusion models paint by subtraction: start with static, take away what does not belong, and let your words steer each pass. Knowing that explains both the beauty of AI images and their tell-tale slips.
How we research: Guides are written from established sources and checked for accuracy. They are general information, not professional advice.
Written by
Cortexpost Editorial Team
Artificial intelligence
Our writers work with AI tools every day and explain them plainly, without hype or doom.


