Chiosa
Machine Learning

Diffusion models can reveal memorized images before copies

Early Signatures of Memorization in Diffusion Models via Basin Geometry and Cyclic Denoising · arXiv:2610.11670

3 min
Updated
Memorization forms sharp, localized basins in the learned score field. (A,B) Normalized score divergence 𝒜^1 for an eight-dimensional Gaussian mixture model (GMM), on a two-dimensional slice of the…
Memorization forms sharp, localized basins in the learned score field. (A,B) Normalized score divergence 𝒜^1 for an eight-dimensional Gaussian mixture model (GMM), on a two-dimensional slice of the sample space obtained with the projection of Bihani et al. (2024) (App. G.6).…Figure 1 · Early Signatures of Memorization in Diffusion Models via Basin Geometry and Cyclic Denoising · Nikhil Verma et al. · CC BY 4.0

In plain words

Diffusion models learn to turn noise into images, but they can also learn details tied to images in their training set. A usual check looks for copies in images made from scratch, so it may miss what the model has learned earlier.

This paper introduces a way to probe that hidden learning: add a little noise to an image, denoise it, and repeat. In one tested CelebA model, over 30% of states after 500 repetitions met the study’s training-image match rule, compared with 0.1% of images made in one step. A match meant the nearest training image was less than one-third as far away as the second-nearest.

The research

A released diffusion model may come without its training data or training history, and checking generated images for copies can miss training-specific structure that has not yet surfaced in those outputs.

Can the model itself provide an earlier signal that it has learned details tied to individual training images?

The authors pair local landscape measurements with repeated partial noising and denoising to detect training-image memorization in diffusion models.

In a CelebA model trained on 1,024 images, researchers compared training and held-out samples using normalized score divergence, a measure of whether nearby score directions point inward or outward. Their group means separated at about 65,000 optimization steps, after coinciding until about 45,000.

One-shot generation first produced a nonzero measured memorization fraction at 90,000 steps. A generated sample counted as memorized when its nearest training image was less than one-third as far away as its second-nearest training image.

Because the geometric difference appeared earlier, the result supports the idea that training-specific structure can form before generated samples meet the study’s match criterion.

These results come from small image datasets and one released Stable Diffusion checkpoint. The theory assumes an exact score for the training set and explains repeated recovery only after a trajectory is already near a training point.

What the evidence shows

  • The audit can miss early learning

    Diffusion models can encode details specific to training images before ordinary generation produces copies. A standard audit checks generated images for near-copies, so it detects memorization only once such copies appear.

    This paper asks whether the model’s learned structure can reveal training-specific patterns earlier, using the model checkpoint itself.

  • Probe structure through repeated cycles

    The authors introduce cyclic denoising, a method that repeatedly adds partial noise to an image and denoises it. They pair this probe with measures of local score geometry, which describe how the model’s denoising directions behave near a sample.

    Together, these measurements examine both the landscape around samples and how repeated cycles move through it.

  • A geometric signal came first

    In a CelebA model trained on 1,024 images, the researchers found that mean normalized score divergence for training and held-out images separated at about 65,000 optimization steps. The first nonzero one-shot memorization fraction appeared at 90,000 steps; a generated sample counted as memorized when its nearest training image was less than one-third as far away as the second-nearest.

    This ordering supports the claim that a geometric signal can precede measured matches in generated samples in that configuration.

  • Cycles reveal matches, not every basin

    In another CelebA setting, only 0.1% of one-shot generated samples met the study’s training-image match rule, while over 30% of evaluated states did after 500 cycles. A sample counted as a match when its nearest training image was less than one-third as far away as its second-nearest.

    The researchers also found stable CIFAR-10 trajectories that did not match a training image. That contrast matters: settling into a basin alone does not establish memorization.

  • Transfer and theory have bounds

    A test on off-the-shelf Stable Diffusion v1.4 showed that cyclic scoring could distinguish memorized prompts from some negative prompts, but its relative performance depended on which negatives were used. The paper’s theory gives a conditional explanation for repeated recovery near an isolated training point.

    Together, these findings support a probing method, with evidence bounded by the tested models and conditions.

Deep

Next paperA lattice method predicts better decoding schedules before generation