In training, noise is added to points on a knot, up to the point where nothing of the knot is left. A small network learns one thing: at any noise level, predict the noise that was added. Run it backwards, and 4,000 points of pure noise find their way into the knot.
Training takes a point on the knot and adds Gaussian noise at a random step t of T = 100. The cosine schedule sets how much: by t = T only 0.04 of the signal is left.
A small network, εθ(xt, t), sees a noisy point and its noise level and predicts the noise that was added. It has 3 hidden layers of 128 units, 42,627 parameters, and was trained from scratch to minimise the squared error between the true and the predicted noise.
Play runs the process backwards from pure noise with the deterministic DDIM sampler: at each step the network’s guess of the clean point, x0, sets the step to the noise level of t − 1. Guess draws those guesses. Add ?ddpm to the address for the stochastic DDPM sampler. Everything runs in your browser, in Web Workers.
after DDPM (Ho, Jain & Abbeel 2020), DDIM (Song, Meng & Ermon 2020) and the cosine schedule (Nichol & Dhariwal 2021)
How it was made: idea, direction and every taste call by Joe; code written by Claude Code under his review.