A diffusion model learns to clean up pictures by seeing them buried in noise, at every level from none to all. Write blend(picture, noise, noise_weight): mix a 16-pixel picture with noise, putting the noise in at exactly noise_weight (from 0 to 1). How much of the picture to keep is up to you. The picture and the noise each have a spread of 1 (“How spread out?”) and have nothing to do with each other; the blend must keep a spread of 1 at every step, so the model always sees inputs of the same size.
A picture and a patch of noise, each with a spread of 1. The obvious blend, half of each added together, comes out smaller than either: the model would see shrinking inputs step after step. Your blend puts the noise in at noise_weight and keeps a spread of 1.
blend(picture, noise, noise_weight)| picture | 16 pixels each, both spread 1, unrelated | e.g. [1, −1, −1, 1, −1, 1, 1, −1, −1, 1, 1, −1,… |
| noise | 16 pixels each, both spread 1, unrelated | e.g. [0.5, −0.5, 1.5, −1.5, 0.5, 1.5, −0.5, −0.… |
| noise_weight | 0 = all picture, 1 = all noise; the noise goes in times this | e.g. 0 |
| returns | the 16 blended pixels, still spread 1 | |