NTH

Early Signatures of Memorization in Diffusion Models via Basin Geometry and Cyclic Denoising

AuthorsNikhil Verma, Siddharthan Dileep, Anoop Singh, Srikanth Sastry, Ramya Hebbalaguppe, Sayan Ranu, N. M. Anoop Krishnan

AffiliationsYardi School of Artificial Intelligence, Indian Institute of Technology Delhi · Department of Computer Science and Engineering, Indian Institute of Technology Delhi · Jawaharlal Nehru Centre for Advanced Scientific Research · TCS Research Labs · Department of Civil and Environmental Engineering, Indian Institute of Technology Delhi**Equal contribution

October 16, 2026 3 min read
Watch on YouTube
The one-line take

A new cyclic-denoising test can expose what a diffusion model has memorized before its usual outputs show any copies.

Key results

0.1%
CelebA one-shot memorized fraction

At the checkpoint where cyclic denoising increased the detected memorized fraction.

30%
CelebA cyclic memorized fraction

Cycling raised the fraction to more than this level.

500
Cyclic denoising iterations

Cycles used for the CelebA result.

0.944
Stable Diffusion v1.4 detection AUC

Conditional–unconditional score-divergence gap after cycling.

0.866
Stable Diffusion v1.4 TPR at 1% FPR

Prompt-detection performance after cycling.

What the paper found

Diffusion models can encode training images before ordinary generation produces recognizable copies. This paper detects that latent memorization through the geometry of the learned score: localized energy basins form around training examples, visible as changes in score divergence and recovery-based basin volume, with their onset scaling as O(n), like the time to visible memorization. Repeated partial noising and denoising—cyclic denoising—can reach these otherwise hidden basins. On CelebA, a checkpoint with just 0.1% one-shot memorized outputs yielded more than 30% after 500 cycles. The authors also find that stable cycling does not always mean memorization: degenerate attractors that match no individual training image are common early in training and fade later. On off-the-shelf Stable Diffusion v1.4, a conditional–unconditional score-divergence gap after cycling distinguished memorized prompts with an AUC of 0.944 and a true-positive rate of 0.866 at 1% false-positive rate. The result offers an earlier way to audit diffusion models than counting copies in one-shot outputs, while showing that the same probing method can expose training images.

Original abstract

Diffusion models generalize early in training and later reproduce individual training samples. Standard tests detect memorization only once one-shot generation produces near-copies, leaving a released model unaudited until its outputs fail. We show that memorization is encoded in the geometry of the learned energy landscape before it appears in generated samples, a state we call latent memorization. Using score divergence and basin volume, we find that localized basins form around training samples and separate them from held-out samples before the first memorized sample appears, with an onset that follows the same $O(n)$ scaling as the memorization time. We probe these basins with cyclic denoising, which repeatedly applies partial noising and denoising. Under the exact empirical score, we prove that cycling started near an isolated training sample recovers it and returns to it over any finite number of cycles with high probability. In trained models, cycling recovers training images from CelebA and CIFAR-10 checkpoints whose one-shot samples contain no copies, and at a CelebA checkpoint with 0.1% one-shot copies, 500 cycles raise the memorized fraction above 30%. Cycling also reveals degenerate attractors that match no single training image and fade as training proceeds, so residence in a basin does not by itself imply memorization. These findings hold on a Gaussian mixture, CelebA, and CIFAR-10 across optimizers, architectures, noise schedules, and training-set sizes, and extend to off-the-shelf Stable Diffusion v1.4, where the cycled conditional-unconditional divergence gap separates memorized from non-memorized prompts with an AUC of 0.944 and a TPR of 0.866 at 1% FPR. More broadly, what a diffusion model has memorized is a property of the geometry and stability of its learned distribution, and assessing it requires examining this structure rather than generated outputs alone.

Read the original paper

More in Diffusion Models

Browse all 67 papers →
02Diffusion

Large Language Continuous Diffusion Models

Zhihan Yang, Wei Guo, Jean-Marie Lemercier, Simon Welker, Yonggan Fu, Mohammad Mahdi Kamani, Sajad Norouzi, Julius Berner, Tomas Geffner, Karsten Kreis, Yongxin Chen, Molei Tao, John Thickstun, Pavlo Molchanov, Ante Jukić, Arash Vahdat, Morteza Mardani

Sigma brings continuous, steerable diffusion trajectories to large language models, aiming to make parallel generation faster and more controllable without sacrificing reasoning or coding ability.

Read analysis