~/aixsci
weekly updates

learn/model families

Diffusion model

A diffusion model learns to create new data by starting from pure noise and cleaning it up in many small steps, until something that looks like real data remains.

What it is

Start with a real example, say a picture, and add a little random speckle to it. Add more, and more, and eventually nothing is left but noise. A diffusion model learns the reverse of that spoiling process. During training it is shown examples that have been noised by a known amount, and it is asked to guess the noise that was added. The guess is scored against the truth, and the model is nudged until its guesses are good. Doing this well means learning what the clean data tends to look like.

To make something new, the model is handed a fresh patch of noise and asked to remove a small part of it. The slightly cleaner result is fed back in, and the step repeats, often hundreds of times. The schedule, meaning how much noise is added at each stage and in what pattern, is chosen by the researchers. Because each step is small, the model never has to invent a finished object in one go. It only has to know which direction is less noisy, which is a much easier thing to learn.

Why scientists use it

Scientists often need plausible examples of something they do not have enough of: more images of a rare event, more candidate molecules, more arrangements of atoms. A diffusion model stands in for the unwritten rule that says which arrangements are realistic and which are nonsense. Nobody has to state that rule; it is absorbed from the training examples and then used to generate fresh ones.

The approach is also used for design, which means working backwards. Instead of asking what a given structure does, researchers ask for a structure that does something in particular. Because the denoising steps can be steered as they go, the process can be pushed towards examples with a wanted property. Diffusion models tend to produce varied output rather than endlessly repeating one safe answer, which matters when the point is to explore possibilities.

In the record

Limits

A diffusion model can only reproduce the kinds of patterns in its training examples, and it has no idea whether what it makes is physically possible. Output can look convincing and still be wrong in ways that only measurement or simulation will reveal, so generated examples are candidates, not findings. Generation is slow, because every sample needs many passes through the model. Rare cases are under-represented in training data and so come out badly, which is awkward when the rare cases are the interesting ones.

Written by AIxSci: the background from general knowledge, the examples from checked records.

By field

Named models

Every article

8articles
5structural-biology
1materials-chemistry
1astronomy
1climate-weather