From Static to a Spacesuit Cat: How Diffusion Models Actually Generate Images
Type "a cat wearing a spacesuit, oil painting" into Midjourney or Stable Diffusion and a finished image appears in seconds. What's actually happening under the hood has nothing to do with brushes, layers, or anything a painter would recognize. It's closer to watching static resolve into a photograph — because that, almost literally, is the trick.
It starts with destroying images, not making them
The idea behind diffusion models came from an unlikely place: physics. In 2015, Stanford researcher Jascha Sohl-Dickstein and co-authors published a paper borrowing from the thermodynamics of gases slowly diffusing through a space — hence the name. Their insight was that if you take a photo and add a little random noise to it, then add more noise, then more, repeating hundreds or thousands of times, you eventually end up with pure static. Critically, each of those steps is small and simple enough that a neural network can be trained to run it backward — to look at a noisy image and guess what the slightly-less-noisy version one step earlier looked like.
Chain enough of those tiny reversals together, starting from random static and ending at a clean image, and you've generated a picture from nothing. The 2015 paper proved the concept worked but was largely ignored — the images it produced were blurry and the GAN-based generators of the era (the technology behind "this person does not exist"-style deepfakes) looked far better.
The turning point came in 2020, when Jonathan Ho, Ajay Jain, and Pieter Abbeel at UC Berkeley published "Denoising Diffusion Probabilistic Models" (DDPM). They simplified the math, fixed a key variance term in the reverse process, and showed that a stripped-down version of the approach could match or beat GANs on image quality — while avoiding the instability GANs are notorious for. GANs pit two networks against each other in an adversarial contest that can collapse or diverge during training; a diffusion model just learns to denoise, step by step, which turns out to be a far more stable thing to teach a network to do. That stability is the real reason diffusion models won out, not raw image quality alone.
The shortcut that made it fast enough to matter
DDPM-style models had a serious practical problem: running a full image through a neural network a thousand times, at full pixel resolution, to generate one picture, was punishingly slow and needed serious hardware. The fix came from Robin Rombach, Patrick Esser, and colleagues at the CompVis group at LMU Munich, working with the startup Runway. Their 2021 paper on "latent diffusion" proposed compressing the image into a much smaller mathematical representation first, using a type of neural network called a variational autoencoder, and running the entire noising-and-denoising process in that compressed space instead of on full-resolution pixels. Only at the very end does a decoder expand the result back into a full image.
That one change cut the compute cost dramatically — enough to make training and running these models feasible on a single high-end consumer GPU instead of a data-center cluster. It's the difference between diffusion models being a research curiosity and diffusion models running on a gaming laptop.
Teaching the noise to listen to text
A denoiser that just produces a random photo isn't especially useful on its own — the breakthrough that made products like DALL-E and Stable Diffusion possible was steering that denoising process with a text prompt. The model is trained alongside a separate text-understanding network (commonly based on OpenAI's CLIP, trained on image-caption pairs) so that at every denoising step, it isn't just asking "what does a slightly cleaner image look like," but "what does a slightly cleaner image that matches this caption look like." A technique called classifier-free guidance lets engineers dial up how strongly the output should hew to the prompt versus how much creative latitude the model keeps — it's the knob behind settings various tools label "prompt strength" or "guidance scale."
Why Stable Diffusion, specifically, changed the conversation
OpenAI's DALL-E 2 launched in April 2022 and showed the public what text-to-image generation could do, but it ran behind a paywall and a closed API. The moment that mattered more for the broader industry came on August 22, 2022, when Stability AI, together with the CompVis team and Runway, released Stable Diffusion — the latent diffusion model described above — as open-source weights anyone could download and run. Stability AI has said it trained the model on a cluster of around 4,000 Nvidia A100 GPUs over roughly a month, then gave the finished result away for free rather than locking it behind an API.
That decision is arguably more consequential to how the technology spread than any single architectural trick. Within months, an entire ecosystem sprang up around the open weights: tools like ControlNet for guiding composition, LoRA for cheaply fine-tuning the model on a specific style or character, and inpainting workflows for editing parts of an existing image. None of that would have been possible with a closed API. It also supercharged the arguments that still surround the technology — about whether training on scraped art without consent is fair use, and about how easily the same denoising trick that paints a spacesuit cat can paint a convincing fake photograph of a real person.
The pattern repeats
Nearly every major image generator since — Stable Diffusion XL, Google's Imagen, Midjourney's later versions, OpenAI's DALL-E 3 and Sora for video — builds on the same three-layer stack: a diffusion process for generation, a compressed latent space for efficiency, and a text encoder for steering it. The specific networks and training data have gotten larger and more refined, but the core idea is unchanged from that 2015 physics paper: start with noise, and teach a network to slowly, patiently, turn it into something that makes sense.
Read next
AI Images Aren't Painted, They're Un-Noised — Here's How Diffusion Models Actually Work
Every AI image or video tool today, from Midjourney to Google's Veo 3, runs on the same core trick: start with random static and gradually remove the noise until a picture emerges. Here's how diffusion models actually work, and why the economics of running them just forced OpenAI to shut down its video app, Sora.
Why AI Chatbots Lie With a Straight Face: Inside the Science of Hallucinations
AI hallucinations have already cost a law firm a five-figure court sanction and gotten an airline held liable for its own chatbot's promises. OpenAI's own researchers now say the problem isn't a bug to patch — it's baked into how these models are trained and graded.