How AI creates images: from noise to picture, without the maths
What diffusion models are, how they learn by removing noise, how they follow what you type and why not every generator works the same way.

You type “an astronaut cat on a beach” and seconds later there it is. It does not look the photo up online or cut and paste pieces: it generates it. The most widely used technique of recent years is called diffusion, and the idea is surprisingly simple.
Step 1: learning by ruining pictures
To train the model, you take an image and keep adding noise (random dots, like static on an old TV) until nothing is recognisable.
The model practises the opposite: looking at a noisy image and guessing which noise to take away. It does this with a huge number of pictures.
Step 2: creating from nothing
Once it can clean up, you hand it pure noise. It cleans a little, looks at the result, cleans a little more, and so on. You end up with a new image that resembles the things it saw in training.
Step 3: following your words
In training, many images come with a text describing them, often gathered from the web. Your sentence is turned into a list of numbers that steers every clean-up step.
| Part | What it does |
|---|---|
| Text encoder | Turns your sentence into numbers |
| Noise remover | Builds up the image step by step |
| Decoder | Turns it into pixels you can see |
The trick that saves time
Many generators do not work on every pixel but on a compressed version of the image, then unpack it at the end. This is latent diffusion, used for example by Stable Diffusion, released in August 2022.
Not all of them work alike
- Before diffusion, generative adversarial networks (GANs), which appeared in 2014, were very popular.
- The first DALL-E (2021) did not use diffusion: it built the image piece by piece, one after another.
- Some newer models mix techniques, and companies do not always explain how theirs work in detail.
A few dates
| Year | What happened |
|---|---|
| 2015 | Diffusion models are first proposed |
| 2020 | A key improvement (called DDPM) makes them far better |
| 2021 | The first DALL-E |
| 2022 | DALL-E 2, Midjourney and Stable Diffusion reach the public |
What it means for you
- It is not a photo, even if it looks like one. Learn to spot AI-made images.
- Because it starts from randomness, the same prompt gives different results. Try several times.
- Be specific: subject, place, light, style and framing.
- Training on pictures from the web is hotly debated. We cover it in AI and copyright.

