Compute desk

How do AI image generators work? Diffusion, explained

Bolt NewsReviewed 2026-11-06

A graphics card with a large cooling fan, photographed in black and white at an angle.

Diffusion models learned to draw by watching captioned images dissolve into static. The mechanism is well documented; the data behind it is still contested.

How do AI image generators work? Most current ones use diffusion models, trained on huge sets of captioned images to remove noise from a picture step by step. A text encoder turns your prompt into numbers that steer each step. Because every image starts as random noise, the same prompt gives a new result unless the seed is fixed.

Key takeaways

  • Diffusion models learn to reverse added noise, then generate by cleaning up fresh static.
  • A text encoder turns the prompt into vectors that steer each denoising step.
  • A fixed seed makes results repeatable, but many tools do not expose it.
  • Training sets such as LAION-5B pair web-scraped images with captions, and artists and researchers dispute that use.
  • The US Copyright Office says prompts alone do not make a user the author of the output.

How do AI image generators work? The short answer is that they learned to clean up static. We walk through the mechanism one step at a time, so you can weigh the claims made for and against these tools yourself.

An old television in a dark room showing a screen of black and white static.
Every new image starts as random noise, like static on an untuned TV.

What are AI image generators?

AI image generators are text-to-image models. You type a description, and the system returns a picture. The University of Toronto Libraries guide names Midjourney, Stable Diffusion and DALL-E as examples, and says these models "are trained on billions of images" [1]. MIT News reports that a diffusion model sits at the heart of Stable Diffusion [2].

The machine never sees a picture the way you do. A library guide from the College of Saint Benedict and Saint John's University puts it plainly: "the machine does not see images, but instead sees a set of numbers" [3]. An image is broken into pixels, and the pixels into numbers [3]. We track the wider field on our AI rail, from image models to AI writing tools.

How does diffusion turn noise into a picture?

Training runs the process forward. The model takes a clear image and alters its pixels in small steps until it "gradually becomes TV static" [1]. The model then learns a reverse process that "restores structure in data" [8].

The essential idea, inspired by non-equilibrium statistical physics, is to systematically and slowly destroy structure in a data distribution through an iterative forward diffusion process.

Jascha Sohl-Dickstein and colleagues, Abstract of the 2015 paper that introduced diffusion models. Sohl-Dickstein et al.: Deep Unsupervised Learning using Nonequilibrium Thermodynamics

Generation runs the process backward. The system draws fresh random static and applies the learned clean-up again and again. In the Toronto guide's words, "it is easy for computers to generate TV static, and use the randomness of that generated static to create new images each time" [1].

Words steer the clean-up. A text encoder maps your prompt to vectors, lists of numbers that carry the meaning of the text and "point the model in the right direction" [1]. The 2021 latent diffusion paper by Robin Rombach and colleagues added cross-attention layers so that text could guide the model, and moved the work from raw pixels into a compressed "latent space" to cut computing costs [10].

The seed controls the dice. It is "a numerical input that initializes the random number generator" [1]. Keep the prompt and the seed the same, and you can get the same image back.

How are AI image generators trained?

They learn from pictures paired with words. The Saint Benedict and Saint John's guide says current models "are trained on hundreds of millions of images and each is paired with a descriptive text caption" [3]. Many of those pictures were scraped from the web. The same guide notes that ImageNet, a widely used image collection, "contains over 14 million URLs of images, but does not own the copyright for the images" [3].

The biggest open collection is LAION-5B. Its authors describe it as "5.85 billion CLIP-filtered image-text pairs, of which 2.32B contain English language" [11]. They say they released it to "democratize research on large-scale multi-modal models" [11].

Diffusion was not the first approach. MIT News reports that researchers at the University of Montreal proposed the generative adversarial network, or GAN, in 2014, and that diffusion models came a year later from researchers at Stanford University and the University of California at Berkeley [2]. A GAN pits a generator against a discriminator: "The generator tries to fool the discriminator, and in the process learns to make more realistic outputs" [2]. Diffusion matched GANs on one benchmark by 2020, when Jonathan Ho and colleagues reported sample quality "similar to ProgressiveGAN" [9]. It is hungry for hardware. The latent diffusion paper says training powerful pixel-space diffusion models "often consumes hundreds of GPU days" [10].

A graphics card with two fans standing on a yellow surface.

From GANs to the copyright fight

  1. 2014

    GANs proposed

    University of Montreal researchers propose GANs.

  2. 2015-03-12

    Diffusion introduced

    Sohl-Dickstein and colleagues describe forward and reverse diffusion.

  3. 2021-12-20

    Latent diffusion

    Rombach and colleagues add text conditioning in a compressed space.

  4. 2022-10-16

    LAION-5B released

    An open web dataset of image-text pairs is posted.

  5. 2025-01-29

    Part 2 released

    Copyright Office report on AI outputs.

  6. 2025-05-09

    Part 3 pre-publication

    Copyright Office report on AI training.

Who disputes how these models were trained?

The companies that build these tools say training is lawful. The US Copyright Office summarizes their side: "Some warn that requiring AI companies to license copyrighted works would throttle a transformative technology, because it is not practically possible to obtain licenses for the volume and diversity of content necessary to power cutting-edge systems" [7]. Adobe told the Office that fair use precedent makes "clear that use of copyrighted works for purposes like training AI models is transformative," as quoted in the Office's report [7].

Many artists see it differently. The Glaze team at the University of Chicago writes that "Many artists have discovered significant numbers of their art pieces in training data such as LAION-5B, without their knowledge, consent, credit or compensation" [14]. Their peer-reviewed paper argues that text-to-image models "threaten to displace many in the professional artist community" [13]. Their tool, Glaze, adds "barely perceptible perturbations" to artwork so that models trained on it fail to copy the artist's style [13].

An open letter from the Center for Artistic Inquiry and Reporting, whose signers include the artist and journalist Molly Crabapple, goes further. It says AI art generators are trained on "millions upon millions of copyrighted images, harvested without their creator’s knowledge, let alone compensation or consent," and calls this "effectively the greatest art heist in history" [15].

Researchers have tested the copying question directly. A team led by Nicholas Carlini wrote that "diffusion models memorize individual images from their training data and emit them at generation time" [12]. They pulled more than a thousand training examples out of leading models [12]. MIT News adds that the models "can generate content that looks like it was produced by a specific human creator, raising potential copyright issues" [2].

The Copyright Office's own view sits between the camps. Its pre-publication Part 3 says "Various uses of copyrighted works in AI training are likely to be transformative" [7]. It also says that "making commercial use of vast troves of copyrighted works to produce expressive content that competes with them in existing markets, especially where this is accomplished through illegal access, goes beyond established fair use boundaries" [7].

Not from a prompt alone, according to the US Copyright Office. Part 2 of its report, published January 29, 2025, concludes that "prompts alone do not provide sufficient human control to make users of an AI system the authors of the output" [6]. The Office says AI output can be protected only where a human author has determined sufficient expressive elements, such as creative arrangement or changes to the output [5]. Register of Copyrights Shira Perlmutter said the conclusions "turn on the centrality of human creativity to copyright" [5].

What can AI image generators not do well?

They rarely repeat themselves on request. Because diffusion "is still stochastic," the same prompt yields different images [1]. A fixed seed solves that, but the Toronto guide notes that "As of February 2025, many AI tools do not provide direct access to the seed value" [1].

They also inherit their training data. MIT News warns that generative AI "can inherit and proliferate biases that exist in training data" [2]. And as the memorization study shows, they can hand back pieces of that data [12].

More explainers are on the blog, and how we handle sources is on our about page.

Frequently asked questions

Is diffusion the only way AI makes images?

No. Generative adversarial networks, or GANs, came first and still power tools such as StyleGAN. GANs are faster, but they often struggle to produce a wide range of images. Diffusion trades speed for variety.

What does a text encoder do?

It converts your words into vectors, lists of numbers that capture meaning. The diffusion model uses those numbers at each clean-up step to pull the image toward the prompt.

Can artists keep their work out of training data?

Some try. The Glaze tool from the University of Chicago adds small changes to artwork that confuse models trying to copy a style. It does not remove images already collected, and its makers test it against countermeasures.

Why do image models need so much computing power?

Each image takes many denoising steps in sequence, and training repeats that work across huge datasets. That cost is why latent diffusion moved the work into a smaller compressed space.

Sources

  1. University of Toronto Libraries: How Generative AI Models Work
  2. MIT News: Explained: Generative AI
  3. CSB/SJU Libraries: How AI creates images
  4. US Copyright Office: Copyright and Artificial Intelligence
  5. US Copyright Office: Part 2 release, NewsNet 1060
  6. US Copyright Office: Report Part 2, Copyrightability
  7. US Copyright Office: Report Part 3, Generative AI Training (pre-publication)
  8. Sohl-Dickstein et al.: Deep Unsupervised Learning using Nonequilibrium Thermodynamics
  9. Ho, Jain and Abbeel: Denoising Diffusion Probabilistic Models
  10. Rombach et al.: High-Resolution Image Synthesis with Latent Diffusion Models
  11. Schuhmann et al.: LAION-5B
  12. Carlini et al.: Extracting Training Data from Diffusion Models
  13. Shan et al.: Glaze (USENIX Security 2023)
  14. University of Chicago Glaze project: What Is Glaze?
  15. Center for Artistic Inquiry and Reporting: Restrict AI Illustration from Publishing