arXiv:2610.11670cs.LGOct 2026

Manuscript Offprint

arXiv:2610.11670

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Diffusion models generalize early in training and later reproduce individual training samples. Standard tests detect memorization only once one-shot generation already produces near-copies, which leaves 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 individual training samples and separate them from held-out samples before the first memorized sample appears, with an onset that follows the same O(n)O(n) scaling as the memorization time. We probe these basins with cyclic denoising, the repeated application of partial noising followed by 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, with a bound controlled by the cycling noise and the separation from competing samples. 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. They are prevalent early in training 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. They also 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. Altogether, probing the learned landscape uncovers memorization that eludes one-shot generation. 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.

1 INTRODUCTION

Diffusion models (DMs) generate high-quality and diverse samples by learning to reverse a gradual noising process (Sohl-Dickstein et al., 2015; Ho et al., 2020; Song et al., 2020b). The noising process is a stochastic differential equation (SDE) that transforms data into Gaussian noise, and its time reversal requires the score, the gradient of the log-density of the noised data. A neural network trained to approximate this score acts as a force field that guides samples from noise back to data. The training objective that enables generalization also admits memorization. For a finite training set, the loss-minimizing score is the score of the training data convolved with Gaussian noise, and exact

A

B

Figure

C

Noise level (y)

Figure 1: Memorization forms sharp, localized basins in the learned score field. (A,B) Normalized score divergence A^1\widehat{A}_{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). (A) In the generalized regime, the field is smooth, with no prominent structure around training samples. (B) As memorization emerges, strongly negative regions form around training samples. (C) Schematic of cyclic denoising: at low noise, trajectories remain within a basin, whereas at sufficiently large noise they jump to neighbouring basins.

sampling with this score drives every trajectory onto a training point as the noise vanishes (Gu et al., 2023). At this optimum, the model reproduces only its training data. Practical DMs do not reach this optimum immediately. They first generate novel samples and begin to reproduce individual training examples only after further training (Bonnaire et al., 2025). Such reproduction has been documented in large image DMs (Somepalli et al., 2023a;b), and generate-and-filter attacks extract training images from deployed models (Carlini et al., 2023). Memorization therefore has direct consequences for privacy, copyright, and the protection of sensitive data.

Detecting memorization in a released model is therefore a central problem for auditing DMs. A released model is a single checkpoint, usually without its training curves and often without its training set. The standard test generates samples and counts near-copies of training images, and this test registers memorization only once one-shot generation already reproduces the training set. A model may, however, encode individual training samples before any of them appears in its outputs. We call this state latent memorization: the model has formed structure specific to individual training samples, yet one-shot generation produces no copies. Detecting it early, in the auditing sense, means detecting it from the model in hand, before copies appear in generated samples and without access to the training curve.

Related Work. The generalization-to-memorization transition is well-characterized along two axes, model capacity and training-time, for models whose training is analyzed. Along the first, DMs generate novel samples when their effective capacity is insufficient to reproduce the training set (Yoon et al., 2023). Along the second, Bonnaire et al. (2025) and Favero et al. (2025) identify a generalization time τgen\tau_{gen}, at which high-quality novel samples appear, and a memorization time τmem\tau_{mem}, beyond which samples reproduce training examples. Since τmem\tau_{mem} grows linearly with the number of training samples n, a generalization window [τgen,τmem][\tau_{gen}, \tau_{mem}] widens with n. Training and test losses separate before τmem\tau_{mem}, but this signal requires the training curve. Energy-based analyses connect DMs to dense associative memories and show that, as the dataset grows, the learned landscape passes from attractors centred on individual training examples, through spurious attractors, to generalized states with vanishing basin volume (Ambrogioni, 2023; Pham et al., 2025). Memorization is also local. Isolated examples in sparse regions of data space are memorized first (Merger & Goldt, 2026), and generated samples drift towards the training set while the held-out loss still improves (Garnier-Brun et al., 2026).

For trained models, geometric detectors measure the learned score through conditional-unconditional score differences, Hessian-based sharpness, directional anisotropy, or p-Laplacian estimates (Wen et al., 2024; Jeon et al., 2025; Asthana & Belagiannis, 2026; Brokman et al., 2025b;a). These detectors are validated on models and prompts whose memorization is already visible in generated samples. Cyclic denoising (CD), the repeated application of partial noising followed by denoising, offers a dynamical probe of the same landscape. Kang et al. (2026) characterize how such chains mix across the data manifold at fixed noise, and Sharma & Martiniani (2026) use CD to extract training images from fixed trained models (see App. B for further related work). Together, these works characterize memorization once it is visible in generated samples, or along axes that require access to training. There is limited understanding on how the geometry underlying memorization develops before copies appear in generated samples, and about what CD reveals in that regime. We ask whether memorization leaves geometric and dynamical signatures in the learned score before one-shot generation reproduces the training set, and to what extent these signatures can be read from the model alone.

Contributions. In this work, we show that memorization is encoded in the geometry of the learned score before it is expressed by single-shot generation. We study this through the time-dependent energy landscape Et(x)=−log⁡pt(x)E_t(x) = -\log p_t(x) learned by the model (Fig. 1). As training proceeds, this landscape develops localized basins around individual training samples. Within the generalization window, these basins capture little of the probability mass reached from pure noise, so one-shot sampling rarely lands in them. CD changes this picture. Each cycle perturbs a sample within a neighborhood set by the noise amplitude γ\gamma and denoises it back, effectively leading to stable regions of the landscape characterized by local minima, for instance, a training-sample basin. Thus, repeated cycling exposes basins that a single draw may miss. Our contributions are as follows.

• Geometric signatures of memorization. Using score divergence and a recovery-based basin volume, evaluated on training, held-out, and generated samples across training, we show that training-sample basins form before one-shot generation reproduces those samples. The onset of these signatures scales with τ/n\tau/n, as does τmem\tau_{mem}.

• Latent memorization. Applying CD across checkpoints and noise amplitudes, we expose latent memorization inside the generalization window. CD raises the memorized fraction from at most 0.1% to over 30%. CD also reveals degenerate attractors, stable states that match no single training image, which are prevalent near τgen\tau_{gen} and vanish as training proceeds.

• Theoretical proof. Under exact stochastic reversal with the empirical score, we derive a lower bound on the probability that CD repeatedly returns to a training point, controlled by the cycling noise and by the separation of that point from competing training points.

• Empirical evaluation. We establish these signatures on a Gaussian mixture model (GMM), CelebA, and CIFAR-10 across two optimizers, three architectures, two noise schedules, and a range of training-set sizes, and show that CD detects memorized prompts in off-the-shelf Stable Diffusion v1.4 (Rombach et al., 2022) without retraining.

References (31)