Manuscript Offprint
arXiv:2610.11670Early Signatures of Memorization in Diffusion Models via Basin Geometry and Cyclic Denoising
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 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

C
Noise level (y)
Figure 1: Memorization forms sharp, localized basins in the learned score field. (A,B) Normalized score divergence 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 , at which high-quality novel samples appear, and a memorization time , beyond which samples reproduce training examples. Since grows linearly with the number of training samples n, a generalization window widens with n. Training and test losses separate before , 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 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 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 , as does .
• 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 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.

Figure 2: Geometric signatures across training on CelebA. (A) Training loss (solid), held-out loss (dashed), and FID (dotted, right axis) for . (B) at and (dotted, right axis) for (orange), 1024 (blue), and 2048 (green); training (solid), held-out (dashed), and generated (dash-dot) samples. Inset: divergence against . (C) Mean log basin volume for over all training samples and an equal number of generated and held-out samples, with line styles as in (B); bands show one standard deviation across samples. Refer Appendix G for equivalent results on Adam Optimizer
2.1 GEOMETRIC SIGNATURES OF THE ENERGY LANDSCAPE
We characterize the learned landscape by two basin-level signatures, evaluated on training, held-out, and generated samples: score divergence and basin volume. The score divergence measures how sharply the landscape contracts around a point, and the basin volume measures the size of the neighborhood from which denoising returns to it. Evaluating them on training samples requires the training set, whereas evaluating them on generated and held-out samples requires only the model and reference data from the same distribution.
Score divergence and its estimation. Near a locally convex energy minimum, the learned score can draw nearby points toward the basin centre. We characterize this net local contraction by the divergence . For an exact score, this divergence equals , the negative sum of the local energy curvatures. A more negative value near a basin centre therefore indicates stronger local concentration. If training forms localized basins around individual examples, the divergence near training samples should therefore fall below that near held-out samples before one-shot generation reproduces the training set. For the reported measurements we use the boundary Monte Carlo method of Brokman et al. (2025b). It computes the unscaled mean outward score flux on a ball of radius around the forward-perturbed sample . We denote this reported estimate by and call it score divergence for convenience. It estimates the divergence averaged over the ball up to the known positive factor , as detailed in App. G.3.4. Because this estimate depends on both the magnitude and the direction of the boundary scores, we isolate direction through the normalized score divergence , the mean outward alignment of the unit-normalized boundary scores. We use this name for convenience. lies in when the sampled score norms are nonzero, and negative values indicate predominantly inward-pointing scores. Unless stated otherwise, we evaluate both statistics at the final denoising step ( ) and denote them by and .
Basin volume. We estimate the basin volume with the DDIM recovery sweep of Pham et al. (2025). For a target sample , let be the critical noise amplitude (see Section 2.2) from which deterministic DDIM denoising recovers within a tolerance , and let be the perturbed input at that amplitude. The distance defines a recovery radius, and the basin volume is the volume of a -dimensional ball with this radius, . is thus an isotropic proxy for the recovery volume and does not equal the exact basin volume.
2.2 CYCLIC DENOISING AS AN ENERGY LANDSCAPE PROBE
The signatures above describe the landscape at individual points; CD probes how samples move through it. At cycle , we noise the current sample to timestep with the forward marginal and denoise it back, , where is the distribution induced by running the learned reverse process from to 0. We parametrize each cycle by the normalized timestep , which we call the cycling amplitude. Because noise schedules vary in how they allocate noise over time, evaluating them at the same normalized timestep () results in differing noise standard deviations () (see App. E.2).
The cycling amplitude sets the scale of landscape exploration. Small produces predominantly local motion, while large produces stronger perturbations that make transitions between basins more likely. A trajectory therefore tends to remain in its current basin while each perturbation stays within the region from which denoising returns it to that basin, and it escapes more often as perturbations grow (Fig. 1C). To follow these dynamics, we track four quantities across cycles. The consecutive-cycle similarity , where denotes the LPIPS feature representation (Zhang et al., 2018), measures whether a trajectory has settled. We say that a trajectory resides in a basin from its residence onset, the first sustained crossing of 95% of the rise in from its early-cycle level to its late-cycle level, and we refer to the canonical image of that basin as its attractor. Beyond residence, we make this identification through the memorized fraction , which under CD is the fraction of trajectories whose state at cycle k satisfies the same nearest-neighbour criterion used for one-shot generation. When a trajectory resides in a basin whose attractor matches no single training image under this criterion, we call the attractor degenerate. Finally, we track and along each trajectory to relate these dynamics to the local geometry of the basins it visits.
2.3 THEORETICAL ANALYSIS OF BASIN RESIDENCE UNDER CYCLIC DENOISING
Our experiments suggest that once a cycling trajectory reaches the basin of a memorized training image, subsequent cycles can repeatedly recover that image. To isolate this mechanism, we analyze CD under exact stochastic reversal of the empirical training distribution, following the exact empirical-score idealization(Biroli et al., 2024).
Assumption 1 (Exact empirical reversal). The clean distribution is for distinct training points , with . Each cycle noises its current state to , where and the cycling variance is fixed, then samples a clean endpoint using the exact stochastic reverse process. Forward and reverse randomness are independent across cycles.
The additive-noise form of Assumption 1 is a rescaling of the variance-preserving forward process used in our experiments. Noising to timestep gives , and the rescaled state equals with . The cycling variance is therefore set by the cycling amplitude through , and it increases with . Throughout, residence refers to the clean cycle endpoints; intermediate noisy states and reverse trajectories need not remain near the target.
Theorem 1 (Recovery and cyclic residence). Under Assumption 1, fix a training point , let , and choose . For , define
Let be the probability that one cycle starting at ends at . If , then . Consequently, for with and any integer ,
Implications. The theorem separates initial recovery from subsequent residence. Let . A cycle that starts within distance of returns to with high probability when the cycling variance is small relative to the separation margin . Once recovered, each subsequent cycle starts at itself, and since , the return bound after recovery is at least as strong as the initial recovery bound. For any fixed number of cycles, the residence lower bound therefore approaches one as , which in the experiments corresponds to small cycling amplitude . The same bound shows how geometry controls residence. A larger neighbourhood radius or greater cycling noise weakens it, whereas greater separation from competing training points strengthens it. At the opposite extreme, as , the endpoint distribution from any fixed starting state approaches the uniform distribution over the training points, and the probability of consecutive endpoints at approaches . The theorem thus provides an idealized mechanism for persistent residence. Once a trajectory reaches a suitable neighbourhood, cycling repeatedly recovers the same training image. This mechanism has a defined scope. The analysis assumes an exactly memorized score, and it describes residence after a trajectory reaches the neighbourhood of a training point, not how the trajectory first reaches that neighbourhood from a distant initialization (see App. F for background, the complete proof, and empirical checks).
3 EXPERIMENTS
In this section, we evaluate the geometric signatures and cyclic-denoising dynamics across training regimes defined relative to and , on three datasets with several training configurations and on an off-the-shelf Stable Diffusion model, and establish the following.
• Geometric signatures of memorization ( 3.2). Score divergence and basin volume separate training and generated samples from held-out samples before one-shot generation reproduces any training sample. The onset of this separation scales with , as does .
• Latent memorization ( 3.3). Within the generalization window, CD increases the memorized fraction from at most 0.1% to over 30%. CD also reveals degenerate attractors, which are prevalent near and vanish as training proceeds.
• Stable Diffusion ( 3.4). Without retraining, CD recovers training images from initial generations that are not copies, and it increases the detection power of at strict false-positive rates.
3.1 EXPERIMENTAL SETUP
Datasets. We train from scratch on three datasets (synthetic, CelebA, and CIFAR-10) and evaluate a pretrained model (Stable Diffusion) on a prompt collection. The synthetic dataset is an eight-dimensional, equally weighted GMM, , whose population score is available analytically, with training sets of size . For CelebA (Liu et al., 2015), we centre-crop and resize images to grayscale and use subsets of size . For CIFAR-10 (Krizhevsky, 2009), we use images at their native colour resolution and subsets of size . For Stable Diffusion, we select memorized, partially memorized, non-memorized and plain english prompts from Webster (2023), Wen et al. (2024) and Hong et al. (2024).
Models and training. For the GMM, we train residual multilayer perceptrons (MLPs) with full-batch stochastic gradient descent (SGD). For CelebA, we train attention-based U-Nets with SGD or Adam. The GMM and CelebA models use a linear noise schedule from to over diffusion timesteps. For CIFAR-10, we train unconditional pixel-space diffusion transformers (DiT-S/2) (Peebles & Xie, 2022) with Adam, using a cosine noise schedule (Nichol & Dhariwal, 2021) with offset over diffusion timesteps. We continue training until is high, so that the saved checkpoints span pre-generalization, generalization, and memorization. We evaluate Stable Diffusion v1.4 off the shelf, without retraining or fine-tuning (see App. H for full training and evaluation details).
Cyclic-denoising protocol. We apply CD at three representative checkpoints: the checkpoint with the best generation quality before overfitting, a checkpoint after overfitting but before , and a checkpoint after . At each, we freeze the model and initialize trajectories either from its training images or from n fresh DDIM generations, matching the training-set size. For a cycling amplitude , we set , noise each image to , and denoise it back to with the DDPM ancestral sampler, drawing fresh forward noise at every cycle. Each output initializes the next cycle, and the initial images form cycle zero. Trajectories are independent; batching serves only computation. For Stable Diffusion, we apply CD in latent space.
Evaluation metrics. Geometry. At each checkpoint, we generate samples with DDIM (Song et al., 2020a) and evaluate , , and basin volume on training, generated, and held-out samples (Section 2.1). We also report the training and held-out losses at the fixed low-noise level .
Memorization and sample quality. Following Yoon et al. (2023); Gu et al. (2023), we classify a generated sample as memorized when the ratio of its Euclidean distances to its nearest and second-nearest training neighbours is below , and is the percentage of generated samples so classified. Error bars denote one bootstrap standard deviation of the mean over 1,000 resamples of the generated set. Sample quality is measured by the Fréchet inception distance (FID) (Heusel et al., 2017) against disjoint held-out sets for CelebA and CIFAR-10, and by a Monte Carlo estimate of from 10,000 generated samples for the GMM.
Cyclic dynamics. We track , , , and as functions of the cycle index and the cycling amplitude ( 2.2).
Stable Diffusion. We use two copy-detection quantities built on the -normalized SSCD descriptor (Pizzi et al., 2022). The similarity to training data, , compares a sample with the set of training images matched to prompt . The seed agreement, , is the mean pairwise similarity of the generations of under different seeds and measures basin collapse without reference to any training image. We also track the conditional-unconditional gap , where is the CLIP text embedding of and that of the empty prompt, which forms the unconditional branch of classifier-free guidance. Subtracting the unconditional branch removes the curvature the model has at independently of any prompt (see App. G.3 for definitions and implementations of all metrics).
3.2 EVOLUTION OF GEOMETRIC SIGNATURES ACROSS TRAINING
Figure 2 shows the losses, the mean normalized score divergence on training, held-out, and generated samples, the mean log basin volume, and across training on CelebA at .
Divergence separates before one-shot memorization. The held-out loss reaches its minimum at and then rises while the training loss continues to fall, which marks the overfitting transition (Fig. 2A). The divergence of training and held-out samples coincides until and separates at (Fig. 2B). The first non-zero appears only at , 25,000 steps after , and exceeds 1% only at . Between and , the model is in the latent-memorization regime: the score field contracts around training samples, yet one-shot generation reproduces none of them.
Dependence on noise level and dataset size. The separation appears at small noise levels. Across the sweep at every checkpoint (Fig. 20), the divergence stays in a narrow band near zero in the generalized regime, whereas in the memorized regime it is strongly negative at small and returns toward zero as grows. Small resolves structure on the scale of individual basins and large averages over many, so we report . The timing depends on the dataset size. Both the separation and the rise in occur later for larger , and replotting against collapses the onsets for (Fig. 2B, inset). The geometric signature thus follows the scaling established for (Bonnaire et al., 2025).
Basin volume and generated samples. Basin volume separates in the same direction (Fig. 2C). Its mean grows for training and generated samples and decreases for held-out samples. Its standard deviation decreases for training and generated samples and stays roughly constant for held-out samples, which indicates that basins form increasingly uniformly around training examples. From onward, the divergence of generated samples follows that of training samples with a mean absolute difference of 0.015, and the two distributions are almost identical across training configurations (App. G). Generated samples can therefore replace the training set in the contrast with held-out samples, which makes the signature readable from the model and held-out reference data alone. Appendix G.4 uses this property for membership inference from score divergence.
3.3 CYCLIC DENOISING DYNAMICS
We now test whether the basins that form in the latent-memorization regime are reachable through CD, on CelebA (n = 4096, Adam) and CIFAR-10 (n = 8192) (Fig. 3).
CD recovers training images that one-shot generation misses. At CelebA and CIFAR-10 , one-shot samples exhibit , yet rises with cycling (Fig. 3B,E). At CelebA , where one-shot is 0.1%, cycling at raises above 30% by cycle 500. Continued exploration brings more trajectories into basins of individual training samples, although only a subset of training samples form such basins.
The outcome depends on the cycling amplitude and the training stage. In several CelebA settings, plateaus within 500 cycles (Fig. 3B). At that , few additional trajectories find detectable training-sample basins within the observed horizon, although exploration need not have stopped. At CIFAR-10 and , instead keeps rising through cycle 500 (Fig. 3E). At CelebA , neither nor rises appreciably, even at (Fig. 3B,C). Perturbations at this amplitude exceed the range over which the accessible basins remain stable, and no residence occurs. This trend matches Thm. 1, where larger cycling variance weakens the residence bound.
Geometry changes before identification. Individual trajectories follow the same order of events observed across training (App. Fig. 14). Their images approach particular training examples over hundreds of cycles (A,D). The drop in often begins before the trajectory is persistently classified


Figure 3: Cyclic denoising exposes latent memorization inside the generalization window. CelebA (n = 4096, Adam; A–C) and CIFAR-10 (n = 8192; D–F) at checkpoints from to . (A,D) Generated samples at and ( ) with their nearest training images. (B,E) and (C,F) across cycles for several .
as memorized (B,E), and then reaches a high plateau (C,F), consistent with continued residence. Score divergence also decreases across cycles at the population level (App. G). Within a trajectory, as within training, the geometry changes first and identification with a training sample follows.
Residence alone does not establish memorization. At the earlier CelebA and CIFAR-10 checkpoints, approaches 0.9 at some amplitudes while stays near zero (Fig. 3B,C,E,F). These trajectories reside in degenerate attractors. On CIFAR-10 at , degenerate attractors hold 50.9% of trajectories at , 16.0% at the generalization-window checkpoint , and 0.98% by . Their appearance changes with training (Fig. 4). The states include stripes, nearly monochromatic images, and mixed-colour patterns, whereas some states at contain recognizable objects while matching no single training image. In both cases, rises above 0.9 and saturates, often alongside a decrease in . Sharma & Martiniani (2026) also observe such regions in the landscape and refer to these images as trivial points. Residence in these attractors is sensitive to the cycling amplitude: at , no trajectory passes the residence screen at or 0.30. Appendix G reports further results on the same.
These results separate two properties that CD measures. and detect residence in a basin and require only the model, whereas identifying that basin with a training sample requires the test and the training set. Inside the generalization window, the share of degenerate attractors falls while under cycling rises, so residence increasingly occurs in training-sample basins that one-shot generation does not reach. How degenerate basins arise and lose accessibility as training proceeds remains an open question.
3.4 EXPERIMENTS ON STABLE DIFFUSION
We next test whether these observations extend to off-the-shelf Stable Diffusion v1.4, using prompts from Webster (2023), Wen et al. (2024) and Hong et al. (2024).
Individual chains. The six chains in App. Fig. 21A each isolate one factor. The hippo chain reaches its training image at and stays there through . The two laura chains share a prompt, a seed, and a image with SSCD 0.203 to the training image; the chain at never arrives, whereas the chain at settles from . The two air-con chains share a prompt and and differ only in seed: one enters its basin early, leaves it near , and returns, whereas the other arrives only at . The label tape chain arrives at from a image that bears no resemblance to its training image. Arrival thus depends on the cycling amplitude and the seed, can occur long after
A

D
Figure 4: Cyclic denoising reveals degenerate attractors. CIFAR-10 ( , ) at (A–C) and (D–F). (A,D) Three trajectories from to with the nearest training image to the final state; no attractor matches a single training image. (B,E) and (C,F) across cycles. Markers show the residence onset, which does not indicate memorization.
cycling begins, can be transient, and does not require the initial image to resemble the training image. The laura and label tape chains show latent memorization in a large-scale model: the initial generation is not a copy, and cycling recovers the training image. In all six chains, SSCD(x, p) and change together at arrival and departure (App. Fig. 21B,C).
Population behaviour. Memorized prompts show rising SA(p) and increasingly negative under cycling, whereas non-memorized prompts change little in either (App. Fig. 21E). After 200 cycles, is graded by the degree of memorization and stays near zero for non-memorized and plain-English controls (App. Fig. 21D).
Detection. On 500 memorized and 2,000 non-memorized prompts from (Wen et al., 2024), cycling at raises the AUC of from 0.811 at to 0.944 at , and its TPR at 1% FPR from 0.526 to 0.866 (App. I). The conditional–unconditional subtraction matters at strict false-positive rates: the conditional divergence alone reaches a similar AUC of 0.948 but a TPR at 1% FPR of only 0.194. On the same prompts and seeds, the single-shot detector of Wen et al. (2024) achieves a higher AUC of 0.990 and a comparable TPR at 1% FPR of 0.838. The comparison depends on the negative source. Against LAION negatives, which match the training distribution, reaches a TPR at 1% FPR of 0.820 against 0.740 for the single-shot detector, whereas the single-shot detector remains stronger against COCO, Lexica, and random-token negatives (App. I). CD thus transfers to a model trained at scale without retraining. It reveals when and how a trajectory reaches a memorized image, and it adds detection power at strict false-positive rates on in-distribution negatives.
4 CONCLUSION
We studied how memorization develops in diffusion models through the geometry of the learned energy landscape. Localized basins form around individual training examples before one-shot generation produces copies. Score divergence and basin volume separate training from held-out samples in this latent-memorization regime, and their onset follows the same scaling as . Cyclic denoising reaches the training-sample basins that one-shot sampling misses and recovers training images from models whose one-shot samples contain none. Residence under cycling alone does not imply memorization: degenerate attractors are prevalent near and fade as training proceeds. Under the exact empirical score, a well-separated training point retains cycling trajectories with a probability controlled by the cycling noise and its separation from competing points. These behaviours hold across a Gaussian mixture, CelebA, CIFAR-10, and off-the-shelf Stable Diffusion v1.4. Memorization is encoded in the landscape geometry before it is expressed in generated samples, and probing this geometry offers a route to auditing models whose outputs appear free of copies. Limitations and future works arising from the present work are discussed in App. C.
AI Use STATEMENT
All AI-assisted suggestions, analyses, and manuscript changes were reviewed by the authors. The authors independently verified the reported experimental results and mathematical claims and take full responsibility for the final technical content, analyses, and conclusions of the paper. We used the Stanford Agentic Reviewer (https://paperreview.ai) as author-side review tools to obtain preliminary feedback and identify points requiring further clarification or validation.
ETHICS STATEMENT
This work studies the emergence of memorization in diffusion models through the geometry of the learned energy landscape and the dynamics of cyclic denoising. Understanding these dynamics can inform future work on privacy auditing, training data protection, and mitigating unintended memorization in generative models. Our experiments use publicly available datasets and models in controlled research settings. The analysis is intended to improve understanding of memorization, thereby supporting the development of safer and more privacy-preserving generative models.
REPRODUCIBILITY STATEMENT
The code will be made publicly available upon acceptance of the paper. The appendix details the full experimental protocol, including hyperparameters, model and training details, sampling configurations, data preprocessing and splits, and metric definitions and computation, together with the implementation details needed to reproduce the principal results.
REFERENCES
Luca Ambrogioni. In search of dispersed memories: Generative diffusion models are associative memory networks, 2023.
Rohan Asthana and Vasileios Belagiannis. Detecting and Mitigating Memorization in Diffusion Models through Anisotropy of the Log-Probability, 2026.
Vaibhav Bihani, Srikanth Sastry, Sayan Ranu, and N M Anoop Krishnan. Low-dimensional projections for visualizing energy landscapes of atomic systems. In AI for Accelerated Materials Design - Vienna 2024, 2024. URL https://openreview.net/forum?id=x3ryxZgHgu.
Giulio Biroli, Tony Bonnaire, Valentin De Bortoli, and Marc Mézard. Dynamical regimes of diffusion models. Nature Communications, 15(1):9957, November 2024. ISSN 2041-1723. doi:10.1038/s41467-024-54281-3.
Tony Bonnaire, Raphaël Urfin, Giulio Biroli, and Marc Mézard. Why Diffusion Models Don’t Memorize: The Role of Implicit Dynamical Regularization in Training. 2025. doi: 10.48550/ARXIV.2505.17638.
Jonathan Brokman, Itay Gershon, Omer Hofman, Guy Gilboa, and Roman Vainshtein. Tracking memorization geometry throughout the diffusion model generative process. In NeurIPS 2025 Workshop on Symmetry and Geometry in Neural Representations, 2025a.
Jonathan Brokman, Amit Giloni, Omer Hofman, Roman Vainshtein, Hisashi Kojima, and Guy Gilboa. Identifying Memorization of Diffusion Models Through p-Laplace Analysis. In Tatiana A. Bubba, Romina Gaburro, Silvia Gazzola, Kostas Papafitsoros, Marcelo Pereyra, and Carola-Bibiane Schönlieb (eds.), Scale Space and Variational Methods in Computer Vision, volume 15667, pp. 295–307. Springer Nature Switzerland, Cham, 2025b. ISBN 978-3-031-92365-4 978-3-031-92366-1. doi: 10.1007/978-3-031-92366-1_23.
Nicholas Carlini, Jamie Hayes, Milad Nasr, Matthew Jagielski, Vikash Sehwag, Florian Tramèr, Borja Balle, Daphne Ippolito, and Eric Wallace. Extracting training data from diffusion models. In Proceedings of the 32nd USENIX Conference on Security Symposium, Sec '23, USA, 2023. USENIX Association. ISBN 978-1-939133-37-3.
Alessandro Favero, Antonio Sclocchi, and Matthieu Wyart. Bigger Isn’t Always Memorizing: Early Stopping Overparameterized Diffusion Models, 2025.
Jerome Garnier-Brun, Luca Biggio, Davide Beltrame, Marc Mézard, and Luca Saglietti. Biased Generalization in Diffusion Models, 2026.
Xiangming Gu, Chao Du, Tianyu Pang, Chongxuan Li, Min Lin, and Ye Wang. On Memorization in Diffusion Models, 2023.
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a local nash equilibrium. In Neural Information Processing Systems, 2017.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising Diffusion Probabilistic Models, 2020.
Chunsan Hong, Tae-Hyun Oh, and Minhyuk Sung. MemBench: Memorized Image Trigger Prompt Dataset for Diffusion Models, 2024.
Dongjae Jeon, Dueun Kim, and Albert No. Understanding and Mitigating Memorization in Generative Models via Sharpness of Probability Landscapes. In Proceedings of the 42nd International Conference on Machine Learning, pp. 27091–27112. PMLR, 2025.
Hyunmo Kang, Noam Itzhak Levi, Corinna Elena Wegner, Daniel J. Korchinski, and Matthieu Wyart. Sampling Data with Chains of Forward-Backward Diffusion Steps, 2026.
Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In 2015 IEEE International Conference on Computer Vision (ICCV), pp. 3730–3738, December 2015. doi: 10.1109/ICCV.2015.425.
Claudia Merger and Sebastian Goldt. Local Coverage Governs Memorization in Diffusion Models, 2026.
Alex Nichol and Prafulla Dhariwal. Improved Denoising Diffusion Probabilistic Models, 2021.
William S. Peebles and Saining Xie. Scalable diffusion models with transformers. 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 4172–4182, 2022.
Bao Pham, Gabriel Raya, Matteo Negri, Mohammed J. Zaki, Luca Ambrogioni, and Dmitry Krotov. Memorization to Generalization: Emergence of Diffusion Models from Associative Memory, 2025.
Ed Pizzi, Sreya Dutta Roy, Sugosh Nagavara Ravindra, Priya Goyal, and Matthijs Douze. A self-supervised descriptor for image copy detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14532–14542, June 2022.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 10674–10685, 2022. doi: 10.1109/CVPR52688.2022.01042.
Rishabh Sharma and Stefano Martiniani. Cyclic Denoising Reveals Ultrastable Memories in Diffusion Models, 2026.
Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 2256–2265, Lille, France, July 2015. PMLR.
Gowthami Somepalli, Vasu Singla, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Diffusion art or digital forgery? Investigating data replication in diffusion models. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6048–6058, 2023a. doi:10.1109/CVPR52729.2023.00586.
Gowthami Somepalli, Vasu Singla, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Understanding and Mitigating Copying in Diffusion Models. In Advances in Neural Information Processing Systems 36, pp. 47783–47803, New Orleans, Louisiana, USA, 2023b. Neural Information Processing Systems Foundation, Inc. (NeurIPS). ISBN 978-1-7138-9911-2. doi:10.52202/075280-2071.
Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising Diffusion Implicit Models, 2020a.
Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-Based Generative Modeling through Stochastic Differential Equations, 2020b.
Ryan Webster. A reproducible extraction of training images from diffusion models, 2023. URL https://arxiv.org/abs/2305.08694.
Yuxin Wen, Yuchen Liu, Chen Chen, and Lingjuan Lyu. Detecting, Explaining, and Mitigating Memorization in Diffusion Models, 2024.
TaeHo Yoon, Joo Young Choi, Sehyun Kwon, and Ernest K. Ryu. Diffusion probabilistic models generalize when they fail to memorize. In ICML 2023 Workshop on Structured Probabilistic Inference & Generative Modeling, 2023.
Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
APPENDIX CONTENTS
A Notation 13
B Extended Related Works 13
C Limitations and future works 15
D Broader Impact 15
E Some Preliminaries 16
E.1 Diffusion Models 16
E.2 to 16
F Theoretical Insight 17
F.1 Background 17
F.2 Proof of Theorem 1 18
F.3 Experimental Verification 19
G Additional Results 20
G.1 Results on the GMM 20
G.2 Cyclic Denoising 23
G.3 Metrics 30
G.4 Membership Inference from Score Divergence 33
G.5 Other Train Results 35
G.6 Visualizing the Score-Divergence Landscape 36
G.7 How the Score Function Evolves Across Training Regimes 36
H Finer Experiment Details 38
I Detection on Stable Diffusion 40
I.1 Data 40
I.2 Uncertainty 40
I.3 Results by cycle 41
I.4 Comparison 41
I.5 Raw divergence 42
I.6 By negative source 42
A NOTATION
Table 1 summarizes the notation used throughout the paper.
B EXTENDED RELATED WORKS
Memorisation in Diffusion Models. Bonnaire et al. (2025) distinguish a generalization time , when high-quality novel samples first appear, from a later memorization time , when generated samples begin reproducing the training set. They find that both loss-level overfitting and visible memorization occur on training timescales, where n is the number of training samples. These events do not coincide: training and test losses separate while the memorization fraction remains near zero. Favero et al. (2025) report similar memorization-time scaling across image and language diffusion models and describe generalization and memorization as competing training timescales. Both works motivate early stopping.
Connecting diffusion models with dense associative memories, Pham et al. (2025) vary dataset size while holding the model and training procedure fixed. Small datasets yield attractors associated with individual training examples; intermediate sizes yield spurious attractors; and larger datasets yield generalized states on flatter manifolds. Their geometric measurements distinguish these regimes: memorized states have the largest measured basin volumes, spurious states have smaller but nonzero
Table 1: Notation used throughout the paper.
| Notation | Meaning | Notation | Meaning |
|---|---|---|---|
| Diffusion model | |||
| Clean data sample. | Noisy sample at diffusion timestep . | ||
| Diffusion timestep. | Total number of diffusion timesteps. | ||
| Forward-process variance schedule. | Signal-retention coefficient. | ||
| = Cumulative signal-retention coefficient. | Gaussian noise in the forward process. | ||
| Network prediction of injected noise. | Forward diffusion distribution. | ||
| Learned reverse transition. | Data density at diffusion time . | ||
| = Exact score function. | Learned score approximation. | ||
| = Time-dependent energy. | Dimensionality of the data space. | ||
| Geometric quantities | |||
| Score divergence: reported unscaled mean outward learned-score flux. | |||
| Normalized score divergence: mean outward alignment of unit-normalized boundary scores. | Physical radius of the score-probing sphere. | ||
| Random outward unit probe direction. | Number of boundary probes (). | ||
| Effective basin/recovery volume. | Radius of the theoretical neighborhood . | ||
| Training and memorization | |||
| Training/optimization step. | Onset of the generalization regime. | ||
| Onset of visible memorization. | Fraction of generated samples classified as memorized. | ||
| Training-set size. | Threshold in the nearest-neighbor memorization criterion. | ||
| Cyclic denoising | |||
| Normalized cyclic-denoising noise amplitude. | Sample after cycle . | ||
| One-cycle transition kernel. | Cyclic-denoising iteration index. | ||
| Theoretical analysis | |||
| Individual training samples. | Number of samples in the empirical distribution. | ||
| Noise variance in . | Gaussian noise in the theoretical analysis. | ||
| Noisy observation of a training sample. | |||
| = Distance between training samples . | Posterior probability associated with . | ||
| Radius- neighborhood around . | |||
| Upper-bound term for failure to recover . | Probability that one cycle returns to . | ||
| Number of cycles in the persistence bound. | Distance/radius around training sample . | ||
| Evaluation metrics | |||
| FID | Fréchet Inception Distance. | KL divergence used for GMM evaluation. | |
| SSCD | Copy-detection similarity. | Conditional-unconditional geometric-statistic difference. | |
basins, and generalized states have nearly vanishing basin volume. Their comparison varies the data regime, whereas our analysis follows basin geometry along the optimization axis of a fixed model and dataset.
Geometric detection of memorization. Several methods detect memorization through the geometry of trained diffusion models. For conditional text-to-image models, Wen et al. (2024) use the norm of the difference between conditional and unconditional scores to identify memorized prompts, including at the first denoising step. Building on this measure, Jeon et al. (2025) relate the score difference to sharpness of the log-probability density and introduce a Hessian-based measure of sharpness at the start of generation. Asthana & Belagiannis (2026) show that the low-noise landscape becomes anisotropic, so a scalar score-difference norm can miss directional structure. They combine the norm with the angular alignment between the classifier-free guidance vector and the unconditional score. Brokman et al. (2025b;a) construct Monte Carlo estimators of the -Laplacian from the learned score to identify memorized samples. These methods evaluate trained models; our analysis asks how geometric signatures develop during training.
Cyclic Denoising. Geometric measurements describe the local structure of the learned landscape, but not how trajectories move within or between its regions. Repeated partial noising and denoising probes this dynamical structure directly. Kang et al. (2026) iterate forward–backward diffusion steps to form a U-Turn Markov chain (UTMC) and study its dynamics across cycles at fixed U-Turn noise levels. In their synthetic hierarchical model, low-noise UTMCs restrict exploration and cannot connect disconnected components of the data manifold, leading to non-ergodic dynamics. Larger noise levels enable transitions between components and restore ergodicity. At low noise, high-level features retain memory of the initial sample longer than low-level features; this ordering reverses at larger noise levels. They observe the same qualitative behavior in natural-language and image experiments. Sharma & Martiniani (2026) study repeated forward–reverse steps as cyclic denoising (CD), using it as an unconditional extraction attack and a probe of the learned landscape. At low corruption, trajectories can enter trivial fixed points or short periodic cycles. At larger corruption, they rearrange, cross between basins, and become trapped in long-lived structured attractors, many of which reproduce training images. They use high similarity between successive cycle outputs as an indication of basin residence and uncover images close to potential training examples. They demonstrate this behavior and the resulting extraction on Stable Diffusion v1.4 and on a denoising diffusion probabilistic model (DDPM) trained on CIFAR. Together, these works offer distinct views of CD: Kang et al. (2026) study landscape exploration and derive theoretical results on ergodicity and feature relaxation in a synthetic hierarchical model, while Sharma & Martiniani (2026) demonstrate its utility in training data extraction from fixed trained models. What remains missing is an account of how CD behavior changes as memorization develops during training, when it can extract memorized images, and the dynamics underlying its behavior. We investigate these questions across training and provide idealized theoretical analysis for CD.
C LIMITATIONS AND FUTURE WORKS
Some of the major limitations of the work are discussed below. These could be addressed as part of future works.
• Our study of how memorization develops during training covers small datasets at resolution with models trained from scratch. Stable Diffusion, although studied, is only evaluated as a single released checkpoint. Whether latent memorization forms on the same timescales, and remains detectable, in large conditional models trained on web-scale data is untested.
• Similarly, residence under cyclic denoising identifies basins but not their origin. Linking a basin to a training sample still requires the training set or a set of candidate images, and degenerate attractors show that residence alone can be misleading.
• The geometric probes carry their own constraints. In high dimensions, score divergence is estimated from finite boundary samples at a chosen probe scale and noise level, and the signal fades at larger noise. The estimates therefore depend on these choices.
• CD needs tens to hundreds of cycles per trajectory, which makes it far more expensive than single-shot detectors. Its benefit on Stable Diffusion is limited to strict false-positive rates on in-distribution negatives.
• The theory assumes the exact empirical score, the fully memorized limit. It explains why trajectories stay near a training point once they arrive, but not how they arrive from distant starts, and not how residence behaves under the learned score in the latent regime.
• Finally, the same probe that audits a model can extract training data from it, as our Stable Diffusion experiments show. Deploying cyclic denoising for auditing therefore requires the access controls discussed in Appendix D.
D BROADER IMPACT
Understanding how memorization emerges in diffusion models has implications for both trustworthy generative modeling and responsible model deployment. Our results suggest that memorization can leave detectable geometric and dynamical signatures before it becomes obvious through ordinary generation, creating opportunities for earlier auditing of models for privacy leakage, training-data reproduction, and copyright-sensitive behavior. The proposed landscape-based diagnostics and cyclic-denoising probes may therefore help practitioners compare training configurations, identify models or checkpoints that are beginning to encode sample-specific memories, and motivate memorization-aware stopping or mitigation strategies. At the same time, because cyclic denoising can expose training-associated samples that standard generation may not readily reveal, the same techniques could potentially be used for model extraction or privacy attacks. We therefore view these methods primarily as diagnostic tools for understanding and auditing diffusion models, and encourage their use alongside appropriate access controls and responsible evaluation practices. The broader message is that model reliability should be assessed not only from generated outputs, but also from the hidden geometric structure and dynamical stability of memories encoded in the learned distribution.
E SOME PRELIMINARIES
E.1 DIFFUSION MODELS
Diffusion models (DMs) are generative models that learn to transform a simple noise distribution into a complex data distribution by reversing a fixed, progressive corruption process (Song et al., 2020a). Given a clean data sample and a predefined variance schedule , the forward process injects Gaussian noise over discrete timesteps. Defining and , the forward marginal is
This lets a noisy sample at any timestep t be written in closed form as
To generate new samples, DMs learn a reverse process that gradually denoises a sample initialized from the prior . A network with parameters is trained to predict the injected noise via the simplified denoising objective (Ho et al., 2020):
This objective is mathematically equivalent to denoising score matching (Song et al., 2020b): the score of the perturbed distribution, , is recovered directly from the model's noise prediction,
Sampling from a diffusion model can therefore be understood as simulating a probability-flow or Langevin dynamics governed by the learned score field .
E.2 TO

Figure 5: Comparison of the noise standard deviation ( ) versus the normalized timestep ( ) for linear and cosine noise schedulers. The cosine scheduler maintains lower noise magnitude for a significantly broader range of timesteps.
F THEORETICAL INSIGHT
F.1 BACKGROUND
Why should cyclic denoising reveal memorized samples? Our experiments suggest that, as memorization develops, individual training examples become increasingly stable under repeated noise–denoise cycles. This raises a natural theoretical question: when does a training sample exhibit prolonged residence under cyclic denoising, and how does this residence depend on the noise level and separation from other training examples? To isolate this mechanism, we analyze the exact empirical-score limit (Biroli et al., 2024), in which the clean distribution is the empirical training distribution and denoising performs exact stochastic reversal.
Exact empirical-score limit. Let consist of distinct training points, with , and let
Fix a cycling noise variance . In additive-noise coordinates, a cycle starting from first produces
We assume that denoising uses the exact empirical score and samples from the corresponding exact reverse endpoint distribution. Bayes' rule gives
Each cycle uses fresh independent forward noise and reverse-sampling randomness. Starting from any initial state, the first complete cycle produces a training point; subsequent clean endpoints form a time-homogeneous Markov chain on D.
Isolation controls recovery and residence. Recovery depends on the noisy observation's relative compatibility with the target and all competing training points. The relevant quantities are the inter-sample distances , the cycling variance , and the initial distance from the target. Starting sufficiently close to , small noise relative to its separation from competitors makes recovery reliable. The theorem quantifies this through a sum over all competitors, accounting for both their distances and their number. Increasing the noise weakens the resulting recovery and residence bounds.
What the theorem establishes. For an initialization within a sufficiently small neighborhood of , the theorem lower-bounds the probability of recovering in one complete cycle. Conditional on recovery, subsequent cycles start at itself, allowing a bound on repeated return to the same training point. For a fixed dataset and a neighborhood satisfying the theorem's separation condition, sufficiently small noise yields high-probability residence over any prescribed finite horizon. Residence concerns clean endpoints; intermediate noisy states and reverse trajectories need not remain in the neighborhood. The theorem does not establish permanent trapping or discovery of the neighborhood from distant initializations. The empirical validation in this appendix evaluates the theorem's quantitative prediction and lower bound using exact empirical posterior sampling on a GMM dataset, then examines approximate recovery and residence near training images using fully memorized and low-memorization checkpoints of a U-Net diffusion model trained on CelebA. The learned-model evaluation assesses the practical relevance of the mechanism using a reconstruction-distance tolerance; the exact guarantee applies under the assumptions stated above.
Formally, define
the probability that one complete cycle starting from x recovers . We now bound this probability and the resulting finite-cycle residence.
F.2 PROOF OF THEOREM 1
Forward process. The variance-preserving forward SDE
where is standard Brownian motion, has transition law
For , setting and gives
Thus the additive-noise formulation is a rescaling of this forward process. We fix across cycles.
Assumption 1. The clean law is , with distinct and . Denoising is its exact stochastic reverse diffusion to time zero, using the exact empirical score. Each cycle uses fresh independent forward noise and reverse-sampling randomness.
For , define
Here is the scaled negative log-density, up to an additive constant, and
Bayes' rule gives . This endpoint law describes posterior sampling, rather than the posterior mean or an arbitrary finite-step reverse sampler.
Theorem 1 (restated). Fix , write , and choose
Let . For , define
Then whenever . Moreover, for and every integer ,
Proof. We first bound the probability of recovering a competing training point, then use the Markov property to obtain the residence bound.
(i) A two-point bound. Fix and write
The denominator of contains the two distinct positive terms and , so
Writing and using gives
(ii) Recovery after Gaussian noising. Expanding the squared norms yields
Consequently, for ,
The Gaussian identity therefore gives
If , Cauchy–Schwarz implies , hence
Combining this with equation 7 and summing over gives
Since also , we conclude that
This proves the one-cycle recovery bound.
(iii) Cyclic residence. Fresh independent randomness in each cycle gives the transition law
Although may lie outside the training set, every with belongs to . By the Markov property,
where the product is empty when M = 1. Applying part (ii) at radius R to the first factor and at radius 0 to the subsequent factors gives
For M = 1, the second factor is interpreted as 1.
F.3 EXPERIMENTAL VERIFICATION
We check whether the quantitative prediction of Theorem 1 matches exact empirical cycling, and whether a learned model exhibits corresponding recovery and residence near training images. Defining, . Nearby initializations are displaced by toward the target's nearest training neighbor, satisfying the theorem's condition with . The experimental cycling level specifies a fraction of the forward schedule; its corresponding additive variance is .
Testing the quantitative prediction. We use an eight-dimensional bimodal GMM dataset containing 2048 training points and select 20 targets spanning nearest-neighbor separations. Each exact cycle adds Gaussian noise and samples a training point from the posterior weights defined above. For each target and noise level, we estimate one-cycle return probabilities using 20,000 trials. Separately, for each target and noise level, we simulate 2048 independent trajectories from nearby initializations for up to 500 cycles, counting residence only when every clean endpoint equals the original target.
This allows an independent comparison between measured residence, the theorem's product prediction estimated from one-cycle trials, and its lower bound . At , measured 500-cycle residence averages 66.48%, closely matching the product estimate of 66.01%, while the mean lower bound is 45.25%. At , these values are 9.72%, 9.57%, and 3.06%, respectively. All averages are taken over target-wise probabilities. Thus, the experiment supports the quantitative prediction and shows that the bound gives a nontrivial guarantee of residence in the tested low-noise regime.
Recovery and residence in a learned model. We next compare two checkpoints of the same U-Net(Adam Optimizer) trained on 512 CelebA images: an early checkpoint at and a late checkpoint at , with logged memorization fractions of 0.69% and 100.00%, respectively. We report the comparison at , using the same 20 separation-ranked targets at both checkpoints and 16 trajectories per target from nearby initializations. Outputs are passed directly into subsequent cycles without projection onto the training set.
For the late checkpoint, mean relative reconstruction distance falls from 0.20 initially to 0.069 after one cycle and remains approximately 0.070 after 100 cycles. For the early checkpoint, it instead increases to 0.314 after one cycle and 1.468 after 100 cycles. Thus, on average over the tested initializations, the late checkpoint rapidly recovers proximity to the target and maintains a small reconstruction error, whereas the early checkpoint's error grows. To distinguish accurate reconstruction from merely retaining the same nearest training image, we measure uninterrupted residence within a specified reconstruction tolerance. At the prespecified sensitivity tolerance of , 86.88% of late-checkpoint trajectories remain within the target neighborhood at every endpoint through 100 cycles, compared with no observed survivors for the early checkpoint. At the stricter primary tolerance of , late-checkpoint residence is 2.81%. The contrast between these tolerances also highlights the remaining reconstruction error where the late checkpoint's mean distance from the target is approximately after both one and 100 cycles.
Together, the experiments support the recovery and residence mechanism of Theorem 1. Exact empirical sampling corroborates its quantitative prediction. Under the same perturbations and cycling noise, the fully memorized checkpoint recovers proximity to training targets and sustains it, whereas the checkpoint with low memorization moves away. This contrast supports the interpretation of memorized training images as locally stable basins under cyclic denoising. The dependence on reconstruction tolerance reflects approximate recovery in the learned model, while the theorem provides a quantitative guarantee under exact empirical reversal.
G ADDITIONAL RESULTS
G.1 RESULTS ON THE GMM
The GMM has a known population score and low dimension (d = 8), so every quantity in the paper can be computed on it cheaply and, for the landscape plots, exactly. We use it to check that the signatures observed on CelebA and CIFAR-10 also appear in this controlled setting. All models are residual MLPs trained with full-batch SGD (App. H).
Geometric signatures across training. Figure 6 repeats the analysis of Fig. 2 on the GMM. The held-out loss and locate the overfitting transition (Fig. 6A). The normalized score divergence is close to zero and identical for training, held-out, and generated samples in the generalized regime, and the training and generated curves then fall well below the held-out curve (Fig. 6B). On the GMM, the lag between this separation and the rise in is smaller than on CelebA. As on CelebA, both occur later for larger , and replotting against aligns the onsets
(inset). Basin volume separates in the same direction: it grows by several orders of magnitude for training and generated samples and does not grow for held-out samples (Fig. 6C). The generated curves follow the training curves in both signatures.



Figure 6: Geometric signatures across training on the GMM. (A) Train loss (solid) and test loss (dashed) at on the left axis, and (dotted, log scale) on the right axis, versus training step , for . (B) Mean normalized score divergence on the left axis and (dotted) on the right axis, versus . Line style denotes the sample group: train (solid), test (dashed), generated (dash-dot). Colour denotes the training-set size: (orange), (blue), (green). Inset: the same divergence curves against . (C) Mean log basin volume versus for , with the line styles of (B); bands show one standard deviation across samples.
Cyclic denoising from generated and training samples. Figure 7 applies CD to the model at four checkpoints, from the generalized regime ( , one-shot ) to the memorized regime ( , 85.47%). We start 512 trajectories from fresh generations and 512 from the training points, and cycle them at eleven amplitudes between and .
Cycling exposes memorization that one-shot sampling misses. At , one-shot is 4.3%, and 100 cycles at raise it to about 20% (Fig. 7A). At , cycling at raises it from 45% to 94%. At large amplitudes ( ) stays near its one-shot value, so, as on CelebA, basins become accessible only when the perturbation is small enough. In the generalized regime no basin is reached at any amplitude, and even trajectories started exactly on training points leave them: their falls from 100% to 0% within ten cycles at every (Fig. 7C). Training points are therefore not stable states of this model. At later checkpoints, the trajectories started from training points first lose some memorized states and then return to the same level as those started from generated samples, so both kinds of starting points reach the same set of basins.
The cosine similarity to the starting sample shows how far trajectories travel (Fig. 7B, D). At every checkpoint it decays faster at larger , as expected from stronger perturbations. With training, trajectories at small stay closer to their start: after 100 cycles at , the similarity is 0.75 at and 1.00 at . This matches the residence predicted by Theorem 1 for small cycling variance. At the similarity falls to about zero at every checkpoint, yet in the memorized regime remains near 85%. The trajectories therefore keep landing on training points but no longer on the one they started from. This is the large-q limit of Theorem 1, in which each cycle ends at an essentially random training point.
Trajectories on the score-divergence landscape. Figure 8 follows a single trajectory on the landscape. Because the GMM score network is cheap to differentiate, we compute exactly as the trace of the Jacobian of the learned score at , on a two-dimensional slice built as in App. G.6: a grid . Here the origin is the midpoint of the two GMM components, is the direction joining the two component means, and is the leading principal direction of the training data orthogonal to . This fixes the plane so that it contains both components at every checkpoint and is the same across rows. Each cycle state is projected onto the plane. The landscape changes in both scale and shape during training. In the generalized regime, is smooth and small in magnitude, with a ridge between the two GMM components. After memorization sets in, its magnitude grows by two orders of magnitude and it breaks into many small regions of strongly negative divergence, the localized basins around individual training points. The

Figure 7: Cyclic denoising on the GMM across training. GMM, n = 512. Columns are checkpoints of increasing , with their one-shot . Each panel shows 512 trajectories per amplitude, coloured by ( ). (A) versus cycle for trajectories started from generated samples. (B) Mean cosine similarity between each state and its starting sample, computed on the raw 8-dimensional vectors, for the same trajectories. (C, D) The same quantities for trajectories started from the training points. Cycling raises above its one-shot value at small once basins have formed, while at even training points are not retained.
trajectories follow the behaviour of Fig. 7. At small they stay near their start, and at with the trajectory moves into one such region and stays there. At large they jump between distant regions of the plane.

Figure 8: Cyclic-denoising trajectories on the GMM score-divergence landscape. GMM, n = 512. Rows are checkpoints of increasing , with their one-shot ; columns are cycling amplitudes . The background is the exact score divergence of the learned score on a two-dimensional plane spanned by the direction joining the two component means and the leading orthogonal principal direction of the training data; red marks negative (contracting) values. Each row has its own colour scale, since the range grows from about to during training. The magenta path joins the projected states of one trajectory every 5 cycles over 200 cycles, from the start (green dot) to the end (yellow triangle). Because states are projected onto the plane, the path shows direction of motion rather than exact position on the background.
G.2 CYCLIC DENOISING
Here, we provide further results of CD dynamics.
Degenerate attractors Figures 9–12 illustrate saturated colour blocks, stripe-like textures, nearly monochromatic fields, and loss of facial detail. We refer to these as degenerate attractor candidates. We identify non-memorized residence by thresholding high consecutive similarity, together with the absence of memorization at every logged cycle. Consistent with the population analysis in Fig. 3, residence alone does not establish memorization. On CIFAR-10 at , the fraction satisfying this screen decreases from 50.87% at to 16.00% at the generalization-window checkpoint , and to 0.98% at . This corresponds to a decrease of 49.89 percentage points, or approximately a 98.1% relative reduction. At , the fraction of CIFAR-10 trajectories passing the same residence and non-memorization screen falls from 50.87% at to 2.54% at , with none passing at or 0.30. Alongside increasing under cycling, this is consistent with residence shifting towards training-sample basins as training progresses. Qualitatively similar degeneration is visible on CelebA, where selected trajectories darken or become washed out, losing facial detail under repeated CD (Fig. 12).
Their appearance ranges from stripes and nearly monochromatic fields to configurations retaining recognizable objects. The CelebA examples similarly illustrate that residence can accompany substantial loss of facial detail without satisfying the memorization criterion; they do not establish a monotonic decline across training.
Throughout, measures memorization rather than residence. Where both are reported, we distinguish for one-shot generation from after 500 CD cycles. These are population measurements, separate from the displayed non-memorized trajectories. Together, the results distin-guish residence, characterized by and , from identification with a training sample through . The declining share of degenerate attractors on CIFAR-10 accompanies increasing memorization under cycling, while the mechanism by which these basins arise and lose accessibility remains open. For clarity, we distinguish the logged ordinary-generation checkpoint estimate, , from the logged full-generated-cohort estimate after 500 cycles, . The percentages below are the recorded bootstrap mean estimates; they are not prevalence estimates for the visually selected examples.
Saturated geometric configurations. At , CIFAR-10 trajectories evolve from recognizable images into saturated colour blocks and simplified geometric configurations (Figure 9). Here, and . Thus, substantial visual degeneration occurs without triggering the pixel-distance memorization criterion. These six examples were selected by their highest late similarity among qualifying trajectories.

Figure 9: Saturated geometric degeneration on CIFAR-10. , ; and full-cohort . Repeated CD replaces recognizable content with saturated bands and colour blocks. The final column shows the nearest training image to c500.
Fading structure and nearly monochromatic endpoints. At , the selected CIFAR-10 trajectories lose object detail and end in low-contrast blue fields (Figure 10). The checkpoint has , while the full generated cohort reaches . The displayed trajectories remain outside the memorization criterion. With high late cycles mean similarity should not be interpreted as proof that the final appearance has stabilized.
Stripe-like textures and colour fields. Additional trajectories at develop repeated stripes, colour bands, or nearly uniform fields (Figure 11). Both and are 0%. The intermediate states reveal the emergence of these patterns and subsequent changes in colour and contrast.

Figure 10: Fading structure on CIFAR-10. , ; and full-cohort . Six appearance-selected trajectories lose semantic structure and approach nearly monochromatic blue configurations.

Figure 11: Stripe-like and monochromatic degeneration on CIFAR-10. , ; and full-cohort . Trajectories develop repeated spatial bands or nearly monochromatic fields.
CelebA across training checkpoints. Figure 12 combines two examples from each of three checkpoints at . At (top pair), faces darken and lose detail; both memorization estimates are 0%. At (middle pair), the selected faces become bright and washed out, with and full-cohort . At (bottom pair), the selected outputs retain coherent facial structure, while the corresponding estimates are 0.1308% and 21.1202%. All six displayed trajectories remain non-memorized under the stated rule at the logged cycles.

Figure 12: CelebA CD trajectories across training checkpoints, . Top, middle and bottom pairs correspond to , 10,000 and 20,000, respectively. Their logged values are 0%, 0% and 0.1308%; full-cohort values are 0%, 9.8% and 21.12%. At the images move towards mere monochromatic darkness and remain stable there. For and more facial structure emerges for these non memorized basins.

cycle
Figure 13: Cyclic denoising from training samples. Memorization fraction across 500 cycles for trajectories initialized from training images in (A) CelebA ( , Adam, linear noise schedule) and (B) CIFAR-10 ( , Adam, cosine noise schedule). Although starts at 100%, it drops sharply under cycling. At , it remains near zero, whereas later checkpoints retain or recover a larger fraction, depending on . Classification is against the full training set and does not require returning to the initial training image. Shaded bands combine the reported bootstrap standard errors with variation within each cycle bin. The memory of the initial train samples can be lost under cycling, basin residence only remains in a subset of train samples that become attractors (subject to cycling amplitude). Cycling moves trajectories to other stronger attractor basins.
A

B
C
D
E
F
(4)
cycle
Figure 14: Trajectories discover and reside in basins corresponding to training samples. (A) CelebA trajectories ( , Adam, ) from to , with the nearest training image to each final state. The marked onset is the first cycle at which a trajectory satisfies the criterion and remains classified as memorized for the rest of the run. (B) Score divergence decreases as the trajectories approach these states; the decline can begin before the marked onset. (C) Consecutive-state LPIPS cosine similarity increases and reaches a high plateau, consistent with residence after the approach. (D–F) The corresponding CIFAR-10 trajectories ( , Adam, ) and measurements. Colors identify trajectories across panels. Dotted lines and markers show their onsets. Divergence and similarity are displayed with a centered 50-cycle moving average. Annotations above A and D give the training step , one-shot , and FID.

Figure 15: Basin residence and jumping under repeated cycling at (run: CelebA32, UNet, n = 4096, Adam). Both sets begin in the basin associated with the same memorised training example. At (top), trajectories remain in this basin. At (bottom), stronger perturbations induce basin jumping, followed by sustained residence in another attractor, consistent with greater stability under cycling.
G.3 METRICS
G.3.1 MEMORIZATION FRACTION
Following Yoon et al. (2023); Gu et al. (2023); Bonnaire et al. (2025), we classify a sample as memorized using its relative proximity to its two nearest training neighbours. For a sample x, let and denote its nearest and second-nearest training neighbours under Euclidean distance. Define
For an evaluated collection of M samples, the memorization fraction is the percentage satisfying this criterion:
A small ratio indicates that a sample is substantially closer to one training example than to its nearest competitor. The criterion does not require exact equality with a training example.
For one-shot generation, we evaluate generated samples. During cyclic denoising, we evaluate the trajectory states at each cycle. For trajectories initialized from training samples, memorization is measured against the full training set, not only the starting image. An increase in therefore indicates that more trajectories reach states satisfying the training-sample memorization criterion; it does not measure the number of distinct training samples reached.
We estimate uncertainty using 1,000 bootstrap resamples of the evaluated collection, each containing M samples drawn with replacement. The standard deviation of the bootstrap fractions provides one standard error on .
G.3.2 CYCLIC SIMILARITY
We measure perceptual similarity between consecutive saved trajectory states using the VGG backbone of LPIPS. Images undergo the LPIPS input preprocessing before feature extraction. Let denote the feature map at layer . We normalize its feature vectors across channels at each spatial location, then flatten and concatenate the normalized maps:
where ensures numerical stability. For trajectory , let denote its state at the th saved observation. We define
This statistic is cosine similarity in the normalized LPIPS-VGG feature space. Values close to one indicate small perceptual changes between saved states. An increase followed by a sustained high plateau is consistent with trajectories settling into basins that remain stable under the cycling amplitude. This alone does not establish residence in a training-sample basin, since degenerate attractors can also produce high similarity. We therefore interpret together with and score divergence. For visualizations, we apply a centered moving average.
G.3.3 BASIN VOLUME
We estimate the basin volume of a target sample using a deterministic DDIM recovery sweep adapted from Pham et al. (2025). The sweep identifies the largest tested noise amplitude at which forward-perturbed copies of recover with sufficiently high probability.
Let denote the noise scheduler's forward perturbation of at amplitude , using an independent draw . Let denote deterministic DDIM denoising of from that amplitude. We test in increasing order. At each amplitude, we independently perturb copies of , drawing fresh noise for every copy and every amplitude.
Algorithm 1: Recovery-based basin-volume estimate
Input: Target ; forward noising operation ; DDIM denoiser ; recovery distance ; tolerance
Output: , ,
1 ; 2 ; 3 ; 4 for do 5 for to do 6 Sample ; 7 ; 8 ; 9 ; 10 ; 11 if then 12 break; 13 ; 14 if then 15 ; 16 else 17 Sample fresh ; 18 ; 19 ; 20 ; 21 return , , ;
For copy , write
Its recovery indicator and the empirical recovery probability are
For CelebA and CIFAR, is LPIPS with a VGG backbone and . Before evaluating LPIPS, we invert the dataset normalization, clip pixel values to , and map them to . The grayscale CelebA images, centre-cropped to , are replicated across three channels for LPIPS; CIFAR images are already RGB. For the GMM experiments, is Euclidean distance and .
The sweep stops at the first amplitude for which . We define the critical noise amplitude as the last preceding tested amplitude for which . Thus, at least nine of the ten copies must recover for an amplitude to pass. We set if the first tested amplitude fails, and if every tested amplitude passes.
Once is determined, we draw fresh noise and form a new perturbation , with . The ten copies in the recovery sweep determine ; they are not used to calculate the radius. We define
Here, is the Euler gamma function. The fresh perturbation is used to measure displacement and is not separately tested for recovery. is an isotropic proxy of basin volume based on this estimated recovery amplitude.
G.3.4 SCORE DIVERGENCE AND ITS ESTIMATION
The pointwise divergence of the learned score field, where defined, is . We obtain the learned score from the model's noise prediction as
where is the cumulative signal-retention coefficient of the forward noise schedule. All quantities below are evaluated in the data coordinates used by the diffusion model.
Evaluation point and boundary radius. For each original sample , whether training, held-out, or generated, we draw one forward perturbation
The probing sphere is centred at . Unless stated otherwise, we use , the final denoising timestep. We calibrate the physical probing radius from all training samples:
The nearest-neighbour distances are computed between unperturbed training samples in the model's data coordinates. Thus the sphere probes the score field at 7.5% of the median training nearest-neighbour distance. The implementation passes a radius parameter equal to and multiplies it by when forming boundary points; their physical distance from is . The median nearest-neighbour distance provides a data-dependent measure of typical training-sample separation in the model's data coordinates. Setting to 7.5% of this distance probes the score field at a smaller spatial scale than typical sample separation. A finite radius also retains a measurable outward-flux signal: under local smoothness, the mean flux is as . We use the same calibrated radius for training, held-out, and generated samples throughout an experiment, so their fluxes are compared at a common spatial scale.
Reported score divergence. Following the boundary method of Brokman et al. (2025b), we draw independent Gaussian vectors and construct
Each is uniformly distributed on the unit sphere and is the outward unit normal at . We report the unscaled mean outward learned-score flux
We call this reported statistic score divergence for convenience and write . The argument identifies the original sample; the score evaluations are made on a sphere around its forward-perturbed version .
The relationship to mathematical divergence follows when the score field satisfies the conditions for the divergence theorem. Let be the ball of radius centred at . The sphere-area-to-ball-volume ratio is , giving
(21)
Conditional on , Eq. equation 20 is a Monte Carlo estimate of the expectation on the right. Multiplying it by would give a Monte Carlo estimate of the divergence averaged over the ball. We report the unscaled value. Because this factor is positive and fixed within an experiment, omitting it preserves the signs and ordering of samples compared within that experiment. Numerical magnitudes from experiments with different dimensions or radii do not have the same scaling.
Algorithm 2: Monte Carlo computation of the reported score statistics
Input: Sample ; noise predictor ; schedule coefficient ; calibrated radius ; timestep
Output: and
1 ; 2 Sample ; 3 ; 4 ; ; 5 for to do 6 Sample ; 7 ; 8 ; 9 ; 10 ; 11 ; 12 ; 13 ; 14 return , ;
Normalized score divergence. Where , the unit-normalized learned score is
We report its mean outward alignment,
We call this statistic normalized score divergence for convenience and write . Each summand lies in where defined. Negative values indicate that the boundary scores point predominantly toward the centre of the sphere.
For , the physical probing radii are for GMM, 0.406240 for CelebA, and 0.769862 for CIFAR-10.
G.4 MEMBERSHIP INFERENCE FROM SCORE DIVERGENCE
In Section 3.2 we saw that, as a model memorizes, the normalized score divergence around training samples becomes markedly more negative than around held-out test samples, while generated samples behave almost exactly like training samples. This difference is large enough to decide, for a new point, whether it belonged to the training set. Here we describe how we turn this geometric signal into a simple membership inference test and report its performance across training.
The membership score. For each candidate point we use the normalized score divergence , evaluated at a single small noise amplitude at the final denoising step. Recall that is the mean outward alignment of the unit-normalized score over a small sphere around (a mean of cosines, bounded in ); it is strongly negative where the score field points inward, i.e. in the sharp basins that form around memorized training samples. We use the same boundary estimator for both datasets: we draw directions on a small sphere around , evaluate the learned score at those boundary points, normalize each score to unit length, and average its alignment with the outward normal. For the GMM the score is the exact learned score at ; for CelebA it is the learned UNet score at . We flip the sign so that a higher score means “more likely a member” and use this value directly as the membership score.
No training labels required. The key property we exploit is that generated samples are statistically indistinguishable from training samples under this score (Figure 16). Generated samples can therefore stand in for members whenever a reference distribution is needed, so the procedure never requires access to the training set or its labels.
How we evaluate. We score an equal number of training samples (true members) and held-out test samples (true non-members). We report the area under the ROC curve (AUC), which is threshold-free and measures how well the score separates the two groups on its own. We additionally report the true positive rate (TPR) and false positive rate (FPR) at a moderate 5% false-positive budget, and the TPR at a strict 1% false-positive budget (TPR@1%FPR); all operating points are read directly off the ROC curve, so no threshold needs to be chosen.
Results. Figure 16 shows the distribution of the membership score for training, test, and generated samples at increasing training steps, for both GMM (top) and CelebA (bottom). Early in training the three distributions overlap almost completely and no rule can separate members from non-members. As training enters the memorized regime, the training and generated distributions shift together toward higher scores while the test distribution stays in place, opening a clear margin. Tables 2 and 3 quantify this: the AUC rises from close to chance in the generalized regime to 1.0 in the memorized regime, and the TPR at 1% FPR follows the same trend. The attack becomes effective at the same training step at which the geometric signatures of Section 3.2 first separate—well before reflects memorization in the generated output.

Figure 16: Distribution of the membership score (the sign-flipped normalized score divergence ) for training (blue), held-out test (red), and generated (green) samples, at increasing training steps (left to right), for GMM (top row) and CelebA (bottom row). The three distributions overlap in the generalized regime and separate—with training and generated moving together, away from test—as the model memorizes.
Table 2: Membership inference from the normalized score divergence at a single noise level, on CelebA, without any access to training labels. AUC is threshold-free. TPR and FPR are reported at a moderate false-positive budget; TPR@1%FPR is the true-positive rate at a strict budget. All operating points are read directly off the ROC curve.
| τ | AUC | TPR | FPR | TPR@1%FPR |
|---|---|---|---|---|
| 60,000 | 0.522 | 0.875 | 0.835 | 0.035 |
| 115,000 | 0.887 | 0.910 | 0.325 | 0.315 |
| 200,000 | 1.000 | 0.925 | 0.000 | 0.995 |
| 430,000 | 1.000 | 0.980 | 0.000 | 1.000 |
Table 3: Membership inference from the normalized score divergence at a single noise level, on the GMM. Conventions are identical to Table 2.
| AUC | TPR | FPR | TPR@1%FPR | |
|---|---|---|---|---|
| 4,750 | 0.531 | 0.066 | 0.047 | 0.012 |
| 42,107 | 0.510 | 0.047 | 0.045 | 0.012 |
| 97,466 | 0.909 | 0.607 | 0.049 | 0.490 |
| 315,604 | 1.000 | 1.000 | 0.000 | 1.000 |
G.5 OTHER TRAIN RESULTS

Figure 17: CelebA width-64 U-Net trained with Adam, number of training samples - . A: FID and memorization fraction, , versus training step . B: The normalized score divergence for train and held-out test samples versus ; bands show standard deviation across samples. Consistent lag between train-test split and onset of C: The same curves and versus normalized training steps . D: For the run, mean log basin-volume proxy for training and test images versus , with standard deviation.

Figure 18: FID and memorization ratio of CIFAR-10 DiT-S runs with Adam optimizer and Cosine Noise Scheduler with n=2048, 4096,8192.
G.6 VISUALIZING THE SCORE-DIVERGENCE LANDSCAPE
Figure 1(a–b) visualizes the score-divergence landscape on a two-dimensional slice through the high-dimensional sample space. Because the score field lives in dimensions ( for the GMM, for CelebA), it cannot be plotted directly, so we follow the low-dimensional projection approach of Bihani et al. (2024), originally developed for visualizing the energy landscapes of atomic systems.
The idea is to pick two informative directions in the sample space and evaluate the landscape on a grid spanned by them. We choose these directions by principal component analysis, so that the plane we plot captures as much of the relevant variation as possible rather than an arbitrary slice. Concretely, we proceed in four steps:
-
Sample points. We collect a set of points from the region of interest—training samples together with samples along their denoising trajectories—which trace out the part of the landscape we want to see.
-
Choose an origin and two directions. We pick one point as the origin , form the displacement of every other sampled point from , and stack these displacements into a matrix. Its top two principal components and (the directions of largest variance) define the plane we plot.
-
Build a grid. We form a grid of points by varying the two interpolating coefficients and over a fixed range.
-
Evaluate the landscape. At every grid point we evaluate the score divergence and plot it as the height of the surface. Negative values (sharp, inward-pointing score) appear as wells, and near-zero values appear as flat regions.
Choosing the plane by principal components ensures that the slice reflects genuine structure in the landscape rather than an uninformative random cut: the top two components account for most of the variation among the sampled points, so the plotted plane passes through the directions along which the landscape actually changes. The resulting surface makes the difference between regimes directly visible—broad and featureless in the generalized regime, and punctuated by sharp wells around individual training samples in the memorized regime.
G.7 HOW THE SCORE FUNCTION EVOLVES ACROSS TRAINING REGIMES
Energy-landscape geometry vs. cyclic-denoising noise amplitude across training regimes

Figure 19: Visualised for the GMM dataset - As decreases from left to right, the two-basin structure sharpens from a single merged attractor into two well-separated basins. The generalization window (row 2) already shows some sign of attractor formation, but this sharpening becomes more pronounced and localized only in the memorized regime (row 3), compared to the generalized regime (row 1) – directly quantifying its effect on the cyclic denoising dynamics.

Figure 20: Normalized score divergence versus noise amplitude across all training checkpoints, for CelebA (a) and the GMM (b). Each curve is one checkpoint, coloured by training regime: blue for the generalized regime and orange for the memorized regime, with lighter to darker shades as the training step increases within each regime. Line style distinguishes train, test, and generated samples. In the generalized regime (blue) the curves are shallow and cluster together across all . In the memorized regime (orange) the normalized divergence is strongly negative at small and rises toward zero as increases, with the effect deepening as grows.
H FINER EXPERIMENT DETAILS
We train models from scratch on a synthetic Gaussian mixture, CelebA, and CIFAR-10, continuing training until the memorization fraction is high. We evaluate checkpoints spanning pre-generalization, generalization, and memorization. For all three datasets, checkpoint sample generation uses denoising diffusion implicit model (DDIM) sampling.
Synthetic data. We use an equally weighted two-component Gaussian mixture in dimensions, , with . The population score is available analytically.
The score network is a residual multilayer perceptron (MLP) with three residual blocks and sinusoidal time embeddings. The standard model we used has 102,024 parameters. Training-set sizes are . Models are trained using full-batch stochastic gradient descent (SGD) with learning rate and momentum 0.95, for up to optimization steps. We use a linear noise schedule from to over diffusion timesteps. Generation uses DDIM with 200 denoising steps.
CelebA. We centre-crop and downsample CelebA (Liu et al., 2015) to grayscale images, giving . We apply no data augmentation. The score network is a denoising diffusion probabilistic model (DDPM) U-Net with three resolution levels, channel multipliers , and attention at the two coarsest resolutions. The standard model we used has 16 million parameters.
We train separate SGD and Adam models on subsets of size . The SGD models use learning rate 0.01, momentum 0.95, and batch size , with no exponential moving average (EMA) or learning-rate warm-up. They are trained for at least optimization steps. The Adam models use learning rate , , batch size 512, and no weight decay. They are trained for optimization steps.
All models use a linear noise schedule from to over diffusion timesteps. Evaluation uses the same disjoint held-out set of 10,000 images across all runs. At each checkpoint, generation uses DDIM with 500 denoising steps.
CIFAR-10. We use CIFAR-10 (Krizhevsky, 2009) at its native RGB resolution, giving . We apply no data augmentation. We train unconditional pixel-space diffusion transformers (DiT-S/2) (Peebles & Xie, 2022). The architecture uses patch size 2, hidden width 384, 12 transformer blocks, 6 attention heads, and an MLP ratio of 4, giving approximately 32.6 million parameters.
We train separate models on subsets of size . All models use Adam with learning rate , , batch size 512, and no weight decay. They are trained for optimization steps. We use a cosine noise schedule (Nichol & Dhariwal, 2021) with offset over diffusion timesteps.
Evaluation uses the same set of 7,952 CIFAR-10 test images across all runs. The remaining 2,048 test images are reserved for loss evaluation. At each checkpoint, we generate 10,000 samples using DDIM with 100 denoising steps.
Stable Diffusion v1.4. We evaluate off-the-shelf Stable Diffusion v1.4 (Rombach et al., 2022) without retraining or fine-tuning, in its latent space (), with the model's own scaled-linear noise schedule from to over timesteps. Each chain is initialized from a 50-step DDIM generation at guidance scale 7.5; every subsequent cycle perturbs the latent to noise amplitude and denoises it back with 10 DDIM steps. Chains run for 200 cycles with 4 seeds per prompt, and seeds are fixed across , so that rows differing only in share a image.
Prompts come from three sources. The individual chains of Fig. 21A–C use memorized prompts from (Hong et al., 2024), which pairs trigger prompts with the LAION images they reproduce; the six prompts used are listed verbatim in Table 4. The population panels Fig. 21D–E use additional plain english prompts from (Hong et al., 2024) and prompts from (Webster, 2023): In total 71 completely memorized (MV) and all 113 non-memorized (N) prompts, together with a fixed random subset of 150 of the 339 partially memorized (TV) prompts. Plain-English prompts, for which no training-image match exists, are the first 150 of the 499 non-memorized prompts of MemBench. Where a reference training image is available we measure SSCD; this replaces , which requires access to the training set. Seed agreement SA needs no reference image and is computed for every prompt.
| row | prompt | idx | γ | seed |
|---|---|---|---|---|
| hippo | Mothers influence on her young hippo | 1262 | 0.9 | 2 |
| laura | insights with laura unknown | 67 | 0.1 | 2 |
| laura | insights with laura unknown | 67 | 0.9 | 2 |
| air-con | air conditioners set for | 215 | 0.9 | 1 |
| air-con | air conditioners set for | 215 | 0.9 | 0 |
| label tape | set of nine brother tze 231 offlight white p-touch label | 662 | 0.9 | 2 |
Table 4: The six chains of Fig. 21A, verbatim. idx is the row index in the MemBench SD v1.4 prompt table (Hong et al., 2024), which also supplies the matched training image. The two laura rows share a prompt, and seed differing only in ; the two air-con rows share a prompt and and differ only in seed.
Trajectory-level measurements use a dense grid of 31 cycles between and , with both SSCD and evaluated at every one. Population measurements use 15 cycles for SSCD and SA and, because the divergence probe dominates the cost, the subgrid for ; the sweep covers 15 amplitudes from 0.005 to 0.9.
We estimate the unnormalized score divergence with the forward-pass boundary-flux estimator of Brokman et al. (2025b), probing at on a sphere of radius with 16 directions arranged as 8 antithetic pairs. We evaluate at and write . Conditional and unconditional branches use the same probe points and directions, and we report their difference .
For the detection benchmark of Appendix I we instead cycle at for 100 cycles with checkpoints at , over 500 memorized prompts from Wen et al. (2024) as positives and 2,000 negatives drawn evenly from LAION, COCO-2017 val, Lexica, and random CLIP-token strings, with 4 seeds each and the same probe settings.
Computational resources. Experiments were run on NVIDIA A100 GPUs, 80 GB GPU memory. UNet and DiT models were trained using data parallelism across two GPUs per run. Cyclic denoising used one GPU per run; trajectories evolved independently and were processed in batches. The cyclic experiments spanned multiple checkpoints and noise amplitudes on CelebA, CIFAR-10, and the GMM, with runs of up to 5,000 cycles.
I DETECTION ON STABLE DIFFUSION
A

Figure 21: Cyclic denoising on off-the-shelf Stable Diffusion v1.4. Each cycle noises to amplitude and denoises back; denotes the sample after cycles. (A) Six chains, one per row, with the matched LAION training image in the train column; each row label gives the prompt, the setting that varies, and the cycle at which the chain reaches its training image. The two laura rows share a prompt, a seed and a image and differ only in ; the air-con s1 row leaves its basin and re-enters it. (B,C) The same six chains per cycle: SSCD to the training image and , on a shared axis. (D) after 200 cycles against , over 71 completely memorised, 150 partially memorised and 113 non-memorised prompts (Webster, 2023) and 150 plain-English prompts (Hong et al., 2024). (E) Population means at over the 71 completely memorised and 113 non-memorised prompts, 4 seeds each: seed agreement (solid, left) and (dashed, right); bands are SEM over prompts.
I. 1 DATA
For below experiments and comparison with (Wen et al., 2024) we use the following prompts Positives: 500 memorised prompts from Wen et al. (2024) Negatives: 2000 prompts, 500 each from LAION, COCO-2017 val, Lexica, and random CLIP-token strings. Cycling at with 10 DDIM steps per cycle; checkpoints at .
I. 2 UNCERTAINTY
Intervals are from a stratified percentile bootstrap over prompts: positives and negatives resampled independently with replacement, preserving the 500/2000 split, resamples, 95% per-centile intervals. The same resample indices are reused across cycles and across statistics, so all differences quoted are paired.
I.3 RESULTS BY CYCLE
| cycle | AUC (95% CI) | TPR@1%FPR (95% CI) |
|---|---|---|
| 0 | 0.811 [0.787, 0.836] | 0.526 [0.482, 0.572] |
| 10 | 0.890 [0.864, 0.914] | 0.804 [0.766, 0.838] |
| 20 | 0.935 [0.916, 0.953] | 0.834 [0.804, 0.872] |
| 40 | 0.931 [0.910, 0.950] | 0.858 [0.824, 0.892] |
| 60 | 0.944 [0.926, 0.961] | 0.866 [0.830, 0.900] |
| 80 | 0.934 [0.914, 0.953] | 0.856 [0.820, 0.888] |
| 100 | 0.940 [0.922, 0.957] | 0.852 [0.812, 0.884] |
Table 5: at . Paired difference between and : +0.016, 95% CI [-0.010, +0.041].

Figure 22: AUC and TPR@1%FPR against cycle count, with bootstrap bands.
I.4 COMPARISON
All rows use the same prompts and the same seeds.
| statistic | AUC (95% CI) | TPR@1%FPR (95% CI) | AP |
|---|---|---|---|
| (ours) | 0.944 [0.926, 0.961] | 0.866 [0.830, 0.900] | 0.933 |
| alone | 0.948 [0.939, 0.957] | 0.194 [0.142, 0.246] | 0.782 |
| alone | 0.899 [0.884, 0.914] | 0.066 [0.030, 0.094] | 0.623 |
| Wen SDN (single shot) | 0.990 [0.986, 0.993] | 0.838 [0.786, 0.882] | 0.970 |
Table 6: At , . Paired differences, minus SDN: AUC -0.0456, 95% CI [-0.0633, -0.0287]; TPR@1%FPR +0.0265, 95% CI [-0.0260, +0.0841].

Figure 23: ROC (left) and precision–recall (right) at . Class balance is 1:4; the dotted line in the right panel marks the positive rate.
I.5 RAW DIVERGENCE

Figure 24: Raw against cycle, population means with 95% intervals. Memorised prompts move from at to at ; non-memorised prompts remain within of zero.
I.6 BY NEGATIVE SOURCE
| negatives | Wen SDN, single shot | ||||
|---|---|---|---|---|---|
| AUC | TPR@1%FPR | AUC | TPR@1%FPR | ||
| laion | 500 | 0.942 | 0.820 | 0.967 | 0.740 |
| coco | 500 | 0.945 | 0.884 | 0.996 | 0.950 |
| lexica | 500 | 0.945 | 0.892 | 0.997 | 0.976 |
| random | 500 | 0.944 | 0.876 | 1.000 | 0.998 |
Table 7: Each row scores the 500 positives against one negative source.