r/learnmachinelearning • u/Mastbubbles • 18d ago
I drew a NeurIPS 2025 best paper, "Why Diffusion Models Don't Memorize", as an art student locked in a room with 1,024 photos
The whole thing, drawn with the paper's own faces, including the copy test and the train/test loss split: https://sheets.works/data-viz/why-diffusion-models-dont-memorize
I kept reading that the ideal diffusion model is a copier: the exact minimiser of the training loss (the empirical score) can only reproduce training images. So why do real ones generate new images? This paper (Bonnaire, Urfin, Biroli, Mézard) has the clearest answer I've seen, and I tried to explain it without any maths.
The way I ended up telling it: lock an art student in a room with 1,024 photos of faces and tell her to practise.
After a week she can draw a face, and none of her drawings match a photo. In the paper that is about 100,000 training steps. They generated 10,000 faces at that point and none was a copy.
Leave her in there for sixteen weeks (1.62 million steps) and 34 of every 100 faces she draws are photos from the wall.
So two things are learned at two speeds. The time to generalise (tau_gen) was about the same for every dataset size they tried, 128 to 32,768 images. The time to start memorising (tau_mem) grew linearly with the number of images, about 300 steps per image. Training stops in the gap between them.
The paper also varies model width (both timescales scale as 1/W), checks it isn't just "each image is seen less often" (full-batch training gives the same scaling), and proves the two timescales for a random-features model.