Manuscript Offprint
arXiv:2609.39648From Modes to Memories: Characterizing the Scale-Space Dynamics of Diffusion Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Diffusion models are typically viewed as stochastic processes that transform noise into data. We take a complementary perspective: a diffusion model defines a family of deterministic dynamical systems indexed by noise scale. At each fixed scale , we treat the denoiser as a self-map and study its dynamics. For an exact denoiser, fixed points correspond to critical points of the smoothed data density, while attractors correspond to its modes; as increases, sample-level modes merge into progressively coarser ones. This suggests a geometric view of memorization: examples that receive excess probability mass due to duplication or overfitting, as well as outliers, should remain distinguishable under stronger smoothing than ordinary examples. We quantify this persistence by the critical scale , the largest noise scale at which an example is retained by the fixed-scale dynamics. In conditional models, the same construction extends naturally to image–caption pairs. Experiments in controlled settings and on large-scale models show that tracks memorization arising from duplication, overfitting, and outliers, and identifies both memorized and partially memorized examples in Stable Diffusion. Moreover, yields interpretable measures of the image spatial distribution and caption dependence of memorization.
1 Introduction
Diffusion models are typically viewed as stochastic processes that transform noise into data [Ho et al., 2020, Song et al., 2021, Karras et al., 2022, Rombach et al., 2022]. They are trained with a local and static criterion, the prediction of a clean signal from a noisy one at each noise level, and are used through a global and dynamic procedure, a sampler that composes these denoisers along a decreasing schedule of noise levels. What a model has learned is then read off the process as a whole, from its samples or from its loss along the schedule.
We take a complementary view and interpret a diffusion model as a family of denoisers , one for each noise level . Fixing and iterating the denoiser on its own output, , turns a single trained network into a one-parameter family of deterministic dynamical systems, whose fixed points and basins are properties of the network alone (Figure 1, left). For an exact denoiser each of these maps is Gaussian mean shift on the smoothed data density [Fukunaga and Hostetler, 1975, Cheng, 1995, Comaniciu and Meer, 2002]: its fixed points are the critical points of and its attractors are the modes of . At small every training example is its own attractor, at large a single attractor remains, and in between the attractors merge into progressively coarser ones (Figures 2–3). Varying thus traces a scale space of the attractors of the model.
This scale space gives a geometric view of memorization mechanisms [Carlini et al., 2023, Bonnaire et al., 2025, Ross et al., 2025]: an example is retained under its dynamics when it carries excess
Equal contribution.
Corresponding authors: cristina.lopezamado@ist.ac.at, marco.fumero@ist.ac.at
Preprint.

Figure 1: A diffusion model as a family of dynamical systems. Fixing the noise level and feeding the denoiser its own output defines a self map (left). A memorized training image is a fixed point of this map: its orbit stays at the image, whereas the orbit of a control image drifts away and crosses the escape radius (bottom left). Repeating this retention test at every (right) yields the critical scale , the largest noise level at which the image is still returned; it is larger for the memorized image, effectively detecting it.
probability mass, as under duplication or overfitting, or when it is isolated from the remaining data, as outliers. We measure this persistence by the critical scale , the largest noise level at which iterating the fixed-scale denoiser from an example keeps the trajectory close to it (Figure 1). The critical scale requires no labels, applies to conditional models, where it becomes a property of a caption-image pair, and is interpretable. We test it with interventions that cause memorization: on CIFAR-10 we induce memorization by duplication, by overfitting and by planting outliers, and on Stable Diffusion we use image-caption pairs that are known to be memorized, fully or in part. Our contributions are as follows:
• We show that a diffusion model can be interpreted as a family of dynamical systems indexed by the noise level: for an exact denoiser the attractors are the modes of the data density smoothed at scale , and varying traces a scale space in which these attractors merge.
• In this framework, we define the critical scale as a memorization measure: the scale up to which a sample remains an attractor of the dynamics. It extends to conditional models, capturing the caption-image interaction. For the optimal case we prove that depends on the inter-samples distances and their multiplicity, reflecting memorization induced by data duplication and outliers.
• In controlled experiments we show that detects memorization induced by duplication, by overfitting and by planting outliers, transferring the mechanism from the theory to trained networks.
• We show that the critical scale is an effective detector on large-scale conditional models such as Stable Diffusion, for both fully and partially memorized examples and that the measures is interpretable: being able to characterize whether its retention comes from the caption, from the image, or their interaction and where in the image the memorized content localizes.
We study each denoiser by fixing its noise level and iterating it on its own output, so that each noise level defines a deterministic dynamical system on (Figure 1, left).



Figure 2: One model, a family of dynamical systems. Orbits of the exact map (Eq. 1) for samples from an 8-mode mixture of gaussians. Left: at small each datum carries its own attractor. Middle: at intermediate the attractors are the 8 population modes. Right: at large a single attractor remains, at the data mean.
Definition 1 (Denoising dynamics at scale ). Fix and let . The denoising dynamics at scale is the deterministic dynamical system on
For , the orbit of is the sequence , where denotes the times composition of . A point is a fixed point if . Its basin of attraction is
and is an attractor if contains an open neighbourhood of . Letting vary, a diffusion model defines the one-parameter family of dynamical systems .
Throughout the paper our goal will be to characterize the dynamics of as a function of the noise scale : see Figures 2 and 3, top row, for a 2D example of the map M at different and its dynamics. Figure 7 (Appendix A) shows the loop on Stable Diffusion.
When the denoiser is exact, i.e. it predicts the posterior mean , the dynamics of admit an explicit description:
Proposition 2 (formal: Proposition B.2). For the exact denoiser, one step of the dynamics is a gradient-ascent step on the smoothed density, . For a training set , M is Gaussian mean shift with bandwidth ,
Its fixed points are the critical points of , its attractors are the modes of , and every orbit increases and converges to a fixed point.
The first identity is Tweedie's formula [Robbins, 1956, Efron, 2011], and the iteration of equation 1 is mean shift [Fukunaga and Hostetler, 1975, Cheng, 1995, Comaniciu and Meer, 2002], the classical mode-seeking clustering algorithm, run at bandwidth . The attractors of the denoising dynamics are therefore the modes of the data blurred at scale . In the limit every training example is an attractor of its own, whereas once exceeds half the diameter of the data, a single attractor remains, close to the data mean (Proposition B.7); at intermediate scales the attractors merge progressively, nearby data into cluster modes and cluster modes into coarser ones. Figure 2 shows the three regimes, and Figure 3 traces the merging as a tree, in which the branch of an example terminates where the example ceases to be an attractor of its own.
2.1 Memorization and the critical scale
As increases, a training example is absorbed into a coarser attractor, and the model reproduces only its cluster. We regard an example as memorized to the extent that it resists this absorption:
(a)
(b)
(c)
(d)

Figure 3: Scale space of attractors. Exact map on a 2-D training set: three groups of three sub-clusters (black dots), plus one datum repeated 15 times (red star). Top: basins of attraction at four scales, coloured by the reached attractor ( ); arrows are the drift . Bottom left: merge tree of the attractors reached from the data (width = number of data collected). Single data lose their attractor at small ; the duplicated datum (red) keeps it until merging with the neighbouring sub-clusters. Bottom right: number of attractors. A denoiser trained on the same data reproduces this scale space, basins, merge tree and counts alike (Appendix C, Fig. 8).
in Figure 3, non-duplicated examples lose their branch at small , whereas the duplicated example retains it until merging with entire groups. To measure the scale of absorption without locating the attractors, we initialize the dynamics at the example and test whether the orbit remains close to it.
Definition 3 (Critical scale). Fix an escape radius and an iteration budget . The probe is retained at scale if for every . The critical scale of is the largest scale at which it is retained,
The critical scale is thus the largest noise level at which the model, iterated on its own output, still returns : below the example lies in a basin of its own, and above it the orbit is drawn towards an attractor possibly shared with other data. Figure 1 illustrates the definition on a memorized and a control image on Stable Diffusion model: the memorized image is returned over a range of scales an order of magnitude wider than the control, and marks the upper end of this range (the full grid of scales and iterations is in Figure 14, Appendix G). Being expressed in units of noise, is comparable across models and noise schedules.
What the critical scale captures. For the exact denoiser, the critical scale responds to the probability mass carried by an example and to its distance from the rest of the data.
Theorem 4 (formal: Theorem B.9). Increasing the probability mass on an example, for instance by duplicating it, reduces the displacement at the example at every noise level and can therefore only increase its critical scale.
The map is pulled away from the example only by the other data, and additional mass on the example dilutes this pull. The following theorem makes the rate explicit.
Theorem 5 (formal: Thm. B.11). Consider an example of mass whose only neighbour, carrying the remaining mass, lies at distance d. The example keeps an attractor of its own exactly below a critical scale, which increases with . For small this scale grows linearly in the distance and only logarithmically in the mass, as .
Doubling the distance to the neighbour therefore doubles , whereas doubling the copies raises it by a few percent. The critical scale thus captures both duplicated examples and outliers. At the attractor disappears in a saddle-node bifurcation, which the escape test detects (Proposition B.12).
Conditional models and the caption gap. A text-to-image model defines one family of dynamics for each caption , with the unconditional model. Memorization is then a property of a caption–image pair, and we measure the change that the caption induces in the of the image.
Definition 6 (Caption gap). With the critical scale computed with , the caption gap of the pair is .
Subtracting the unconditional value removes the retention that the image exhibits on its own. For the exact denoiser, the caption enters the mean shift equation 1 only through the prior weights of the training images, like a duplication count, and Theorem 4 gives the following.
Corollary 7 (formal: Corollary B.14). For a single iteration, and when the caption leaves the relative weights of the other examples unchanged, the caption gap of is positive if and only if the caption raises the model's mass on that example.
From the exact denoiser to trained networks. The results above concern the exact denoiser, of which a trained network is only an approximation, and we do not expect a trained network to reproduce their values. We expect the mechanism to carry over: an example retains a basin of its own when it carries mass or lies far from the rest of the data, and measures the width of that basin. The experiments of Section 3 verify if memorization from duplicated data and outliers transfers to real data scenarios. On the exact denoiser of a real training set the theory holds quantitatively (Appendix D), and Appendix D.2 examines how closely trained networks approach it.
3 Controlled experiments
We first evaluate the critical scale in a controlled setting, with DDPM [Ho et al., 2020] models on the CIFAR-10 dataset [Krizhevsky, 2009]. An example can be memorized for different reasons, but these mechanisms are confounded in pretrained models. We therefore isolate them through controlled training interventions and test whether critical scale detects the memorization induced by each. In all experiments is computed by bisection in on the escape event of Definition 3. Training and evaluation details, and additional results are given in Appendices F and E.
• Duplication ( 3.1). An example is repeated m times in the training set, so the empirical distribution places mass m/N on it.
• Rarity ( 3.2). An atypical example is added a few times. It has no training neighbours with which to share a basin, but it also receives almost no probability mass.
• Overfitting (Appendix E.2). The training set is reduced at fixed model capacity and training budget, moving the model from generalization to memorization. tracks this transition and detects memorization at training-set sizes where sampling no longer finds copies.
3.1 Memorization from data duplication
Setup. We study memorization induced by duplication, and ask whether detects it and how it depends on the number of copies. To isolate the effect of duplication from that of membership, we compare two models trained on the same images: one with duplicates and one without. We train the improved-diffusion CIFAR-10 model [Nichol and Dhariwal, 2021] (50M parameters, 500k steps) on the full training set, in which eight images are repeated at each multiplicity . As control we use the publicly released checkpoint of the same model, trained on the same data without duplicates. We evaluate on the 64 duplicated images, on 200 training images that appear once ( ), and on 200 held-out images. Duplication does induce copying: 16 605 of 50 000 generated samples are copies of a duplicated image.
Results. Figure 4a shows that responds to the intervention rather than to the images. In the model trained with duplicates, the median is 0.137 on held-out images and 0.142 at , against 1.04–1.43 for . In the control model the same images have between 0.12 and 0.27 at every multiplicity, and the rank correlation with drops from to 0.19. Used as a detector, separates from with Area Under the Curve (AUC) 1.000. The duplicated images are fixed points: at the median is the same for and iterations, while for held-out and images it decreases by more than two orders of magnitude over the same range.

Figure 4: Duplication on full CIFAR-10. (a) of each image, grouped by multiplicity, in the model trained with duplicates (circles) and in the released model trained on the same images without duplicates (triangles). (b) as a function of the iteration budget (median per group): constant for images with , which are fixed points, and decreasing as for held-out and images, which are transients. (c) Orbits of a memorized training image ( ) and of a training image seen once ( ), with fixed along each row and along the columns; the dashed line marks the of each image ( , ; 1.62 and 0.14). The memorized image is still reproduced after 50 iterations at , where the other one has already vanished.
(Figure 4b). Above , increases by only a factor 1.38 while increases a hundredfold, the saturation expected of a width in which mass enters logarithmically (Appendix E.1).
Takeaway. The critical scale captures memorization from data duplication, which turns transient states in the image orbits into stable fixed points. Additional copies increase only slightly.
3.2 Memorization of rare samples

Figure 5: Rarity: detection thresholds of and of sampling. Fraction of added images detected as a function of their multiplicity , for sources of increasing atypicality. Orange: the image appears at least once among samples; the threshold is for every source. Blue: exceeds the 95th percentile of the images of the same source not added to the model; the threshold decreases to as the images become more atypical. The shaded region is memorization detected by but not by sampling.
Setup. We study memorization of outliers, which Theorem 5 predicts to be retained with few copies because of their distance to the other samples. We train two models, A and B, on the same subset of CIFAR-10 images, to which we add images from 4 datasets of increasing atypicality: CIFAR-10 test images, CIFAR-100 classes with no CIFAR-10 counterpart, SVHN digits, and colourised MNIST digits. The added images statistics are matched to the CIFAR-10. From each source, 36 images are added to A, 36 other images to B, and 100 images to neither, with six images at each multiplicity . Each image is thus memorized in one model and not in the other, and the images added to neither model serve as a reference distribution. We draw samples from each model and count near-copies of the added images.
Results. Sampling and have different detection thresholds (Figure 5). Sampling detects added images only from , for every source; below this multiplicity no image is generated. We flag an image with when its value exceeds the 95th percentile non-added images from the same source, which gives a false-positive rate of 5% without using labels. The resulting threshold decreases with atypicality: for CIFAR-10 and CIFAR-100, for SVHN and for colour
Table 1: Memorization-detection on Stable Diffusion v1.4. AUC for distinguishing MV and TV examples from controls, caption-swapped pairs, and MV from TV. Our global scores use , and local uses . For both variants of Wen et al. [2024], we report its best-performing configuration (Appendix F).
| Score | MV vs. control | MV vs. swap | TV vs. control | TV vs. swap | MV vs. TV |
|---|---|---|---|---|---|
| Wen et al. [2024] | 0.999 | 0.606 | 0.999 | 0.184 | 0.902 |
| 0.999 | 0.887 | 0.996 | 0.696 | 0.868 | |
| 0.917 | 0.904 | 0.695 | 0.803 | 0.909 | |
| 0.8569 | 0.908 | 0.824 | 0.939 | 0.820 | |
| 0.984 | 0.860 | 0.879 | 0.354 | 0.905 | |
| local | 0.997 | 0.865 | 0.993 | 0.458 | 0.935 |
MNIST. The paired design confirms that the effect is due to training on the image and not to the image itself. Among the added images that were never sampled in the drawings, flags (MNIST), (SVHN), (CIFAR-10), and (CIFAR-100). Additional analysis on how depends on distance and on multiplicity in these models is in Appendix E.3.
Takeaway. The critical scale can detect memorized samples that are unlikely to be generated: depends also on distance, generation only on mass. An isolated example (outlier) can be memorized, since it has room for its own basin, yet not be sampled, since it carries little probability mass.
4 Detecting Memorization in Stable Diffusion
We evaluate Stable Diffusion v1.4 [Rombach et al., 2022] on memorized LAION training examples identified by Webster [2023]: matching verbatim (MV) examples, whose generations reproduce the paired training image, and template verbatim (TV) examples, whose generations preserve only part of its content or structure. After removing duplicates and mismatched image-caption pairs (Appendix F), we retain 70 MV and 24 TV examples. As controls we use 94 training images from LAION-MI [Dubiński et al., 2024], drawn from LAION Aesthetics v2 5+[Schuhmann et al., 2022], so that all images are training members and differ only in their degree of memorization. Each memorized image is evaluated with its own caption, a swap caption (captions randomly permuted across memorized images) and the empty caption; each control with its own and the empty caption.
Scores. From these runs we compute the critical scale under the own caption and the caption gap of Definition 6, which measures how much the caption increases the retention of that image (Figures 21–25 in Appendix G.5). Both are global and do not say where in the image memorization occurs. We therefore also apply the retention test separately at each latent location , which gives a local gap and the local score (see Appendix F). To separate the benefit of spatial resolution from that of discarding the sign, we also report the absolute global gap . We first evaluate critical-scale scores for detecting memorized examples (§4.1), then examine whether local gaps identify memorized regions (§4.2), and finally use mismatched captions to identify images memorized in the unconditional branch (§4.3).
4.1 Critical scale detects memorization
Setup. We report AUC for separating: (i) MV and TV examples from controls, (ii) caption-swapped pairs, and (iii) MV from TV. We compare our scores with the prompt-level memorization score of Wen et al. [2024]. Since this measure depends only on the caption, we also consider an image-dependent variant: is obtained by adding noise to the candidate image . This provides a stronger baseline for testing if a particular image-caption pair is memorized.
Results. Table 1 reports the detection results (see Appendix G.1 for an ablation on and ). All scores separate memorized examples from control, with local performing best among our variants. It achieves AUCs of 0.997 for MV and 0.993 for TV, nearly matching the prompt-level baseline (0.999). Its largest gain occurs for TV, where it raises the AUC from 0.879 to 0.993, consistent with partial memorization being localized. It also best separates MV from TV (0.935).
For caption swaps, the signed gap performs best because a mismatched caption can reduce conditional retention below unconditional retention, reversing the gap's sign (Figure 17, Appendix G.2).

Figure 6: Critical-scale gaps reveal spatial and image-driven memorization. Left: A TV example: the training image, generations from its training caption, and the local gap . The gap is large where all generations copy the training image (the room) and near zero where they vary (the curtain pattern). Right: A wrong caption exposes images already retained by the unconditional model. Center: wrong-caption gap against unconditional inpainting RMSE (top) and unconditional (bottom); bars include std deviation over 5 captions. Side: a negative-gap image is retained by unconditional dynamics but lost when conditioning on a wrong caption; unconditional inpainting restores the masked region.
Taking the absolute value discards this directional information. This advantage is most pronounced for TV, where achieves 0.939 AUC versus 0.696 for the image-dependent baseline.
Takeaway. Critical scale is an effective global measure of memorization at scale, and computing it per spatial location improves detection. Comparing unconditional retention with retention under a mismatched caption further reveals whether an image was memorized with a particular caption.
4.2 Local critical scale localizes memorized regions
Setup. We qualitatively assess if the local gap identifies memorized regions in TV examples. As a reference, we generate five samples from each training caption: consistently reproduced regions indicate memorized content, whereas variable regions indicate non-memorized content.
Results. Figure 6 (left) shows that large values of concentrate in regions reproduced consistently across generations. By contrast, regions that vary across samples generally have gaps close to zero. Thus, the spatial variation of the critical-scale gap aligns with the apparent boundary between memorized and non-memorized content. The trajectories in Figures 22 and 23 provide complementary evidence: in partially memorized images, non-memorized content disappears at smaller noise scales, whereas memorized regions persist longer. Additional qualitative examples are provided in Figure 18 in Appendix G.3.
Takeaway. The local critical-scale gap provides an interpretable spatial measure of where memorized content appears within an image.
4.3 Critical-Scale Gap Identifies Image-Driven Memorization
Setup. We aim to find images that the unconditional branch has memorized by itself, and not only through their captions. A strongly negative indicates stronger retention under unconditional than conditional dynamics. However, since unconditional memorization is rare, searching the full training set for such examples is computationally prohibitive. We therefore use the MV examples under five unrelated captions drawn from LAION-MI, and compute for each image-caption pair. This allows us to rank images by evidence of unconditional retention. Since finding an image through unconditional sampling is not feasible, we evaluate this ranking through inpainting. We mask each image quadrant in turn, reconstruct it from the remaining three, and report the mean latent RMSE to the ground-truth region. For each image, we generate 10 samples per quadrant. Low reconstruction error provides evidence that the image is retained independently of its caption.
Results. Figure 6 (right) shows an example with a strongly negative gap. Its unconditional dynamics retain the image more strongly than the mismatched-caption dynamics, and unconditional inpainting accurately reconstructs the missing content. This provides qualitative evidence that the image is memorized by the unconditional branch. This reconstruction is consistent with the mem-orized image acting as an attractor and the masked image lying within its basin of attraction (see Figure 7 in Appendix A). Across images, strongly negative gaps are associated with lower inpainting RMSE (top center) and larger unconditional (bottom center), supporting their use as evidence of unconditional retention. Gaps near zero are less informative because they can arise when either both dynamics retain the image or neither does. Figure 19 in Appendix G.4 illustrates both near-zero regimes, while Figure 20 provides additional examples with strongly negative gaps.
Takeaway. A strongly negative critical-scale gap provides evidence that an image is retained independently of its caption, identifying cases in which the image itself contributes to memorization and can be reconstructed by the unconditional branch.
5 Related work
Dynamical and multiscale views of diffusion models. Mean shift turns gradients of kernel density estimates into mode-seeking dynamics [Fukunaga and Hostetler, 1975, Cheng, 1995, Comaniciu and Meer, 2002]; with Gaussian kernels, it equals posterior-mean denoising of the empirical distribution, whose smoothed-density critical points are fixed points and modes are attractors. The link between denoising and the score, established for denoising autoencoders [Alain and Bengio, 2014], underlies score-based diffusion via reverse-time SDEs/ODEs [Song et al., 2021]. These dynamics reveal how structure emerges across noise scales: global high-variance features precede low-variance details [Wang and Vastola, 2023], a speciation transition marks the emergence of broad structure [Biroli et al., 2024], and high- and low-level features evolve differently, reflecting the data hierarchy [Sclocchi et al., 2025]. These works follow generation trajectories: instead, we fix the noise scale and iterate the denoiser, obtaining a family of dynamical systems whose attractors and persistence across scales describe the learned structure.
Memorization and generalization in diffusion models. The empirical optimum of denoising score matching reproduces the training data: Gu et al. [2025] study when learned models approach it, and Baptista et al. [2025] how explicit and implicit regularization in the reverse dynamics prevent it. Kadkhodaie et al. [2024] attribute generalization to geometry-adaptive inductive biases, Shah et al. [2025] tie memorization mainly to low-noise denoising, and Bonnaire et al. [2025] show that good generation precedes memorization during training. Closest to us, Fumero et al. [2026a] iterate an autoencoder's map, whose latent fixed points and attractors reflect memorization and generalization. A diffusion model instead induces a family of dynamical systems, so attractor persistence can be tracked along a scale axis. Pham et al. [2025] view diffusion models as associative memories, and Jain et al. [2025] argue that classifier-free guidance steers reverse trajectories into the basins of memorized images. Both study the reverse generation trajectory, while our fixed-scale dynamics measure how strongly a given image-caption pair is retained across noise scales.
Detecting memorization in diffusion models. Early work detected replication by matching generations to training data [Somepalli et al., 2023] or extracting training examples [Carlini et al., 2023, Webster, 2023]. Later methods avoid exhaustive generation. Wen et al. [2024] detect memorized prompts from the conditional–unconditional noise-prediction gap. Jeon et al. [2025] use probability-landscape sharpness and Ross et al. [2025] the local geometry of model generations to detect memorization. Jiang et al. [2025] address image-level detection without the paired prompt and Chen et al. [2025] localize memorized regions. Our score instead depends jointly on a candidate image–caption pair, testing whether that pair is memorized rather than whether the caption alone elicits memorization. Comparing conditional and empty-caption critical scales further detects memorization in the unconditional branch. Membership inference [Carlini et al., 2023, Hu and Pang, 2023, Zhai et al., 2024, Duan et al., 2023, Matsumoto et al., 2023] instead asks whether an example was used in training, not whether it is retained strongly enough to be reproduced.
6 Conclusions
In this paper we proposed to interpret a diffusion model as a family of dynamical systems indexed by the noise level, whose attractors form a scale space of the data. Memorization then becomes the persistence of an example as an attractor, measured by the critical scale . On Stable Diffusion, detects fully and partially memorized image-caption pairs and offers two forms of interpretation: comparing conditional and unconditional critical scales isolates the caption-image interaction in memorization, while local variants of can identify which regions within an image are memorized. Further analysis is needed to quantify the precision and generality of this localization, which in principle can be extended also to the caption parts. Our theory holds for the exact denoiser. While the mechanism transfers to trained networks (see Section 3), closing this gap formally—for instance via analytic models of the inductive biases of trained diffusion models Kamb and Ganguli [2024]—is a natural direction for future work. Beyond memorization, the orbits and basins of the denoising maps may reveal broader structure in what a model has learned Sclocchi et al. [2025], and locating where individual examples are retained in the weights Hintersdorf et al. [2024] suggests a route towards targeted unlearning.
Acknowledgements
M.F. was supported by the project “Building Energy Systems on causal reasoning (BOSS)”, funded within the “Technologies and Innovations for the Climate-Neutral City” (TIKS) Programme of the Austrian Research Promotion Agency (FFG).
AI use statement
We used generative AI tools as coding assistants when implementing and modifying the codebase, and for language editing. They were not used to produce research results on their own or to replace the authors' scientific judgment. The authors designed the methodology and experiments, and reviewed and validated all AI-assisted code and text.
Ethics statement
This work is primarily theoretical and methodological, focusing on the dynamics of denoising maps and on memorization in diffusion models. All datasets and models are publicly available (CIFAR-10, MNIST, SVHN, LAION-5B [Schuhmann et al., 2022] and Stable Diffusion [Rombach et al., 2022], and the memorized prompts we study were identified in prior work [Webster, 2023]. No human subjects are involved and no new data is collected. Our detectors probe which training images a model has memorized. In principle, such insights could be misused to recover training data from pretrained models. However, our experiments score images that are already public, we release no new private or copyrighted content, and the techniques should be applied responsibly, for instance to audit and reduce memorization. We hope our findings contribute to a better understanding of how diffusion models generalize and memorize.
Reproducibility statement
All formal statements and proofs are reported in Appendix B. We implement all experiments in PyTorch [Paszke et al., 2019] and the HuggingFace diffusers library [von Platen et al., 2022]. We use only publicly released checkpoints, and the CIFAR-10 models we train follow the public recipe of Nichol and Dhariwal [2021]. Models, datasets, training recipes, noise schedules, estimator hyperparameters and the filtering of the memorization set are listed in Appendix F. We will open-source our codebase for all experiments upon acceptance.
References
Guillaume Alain and Yoshua Bengio. What regularized auto-encoders learn from the data-generating distribution. Journal of Machine Learning Research, 15(110):3743–3773, 2014.
Ricardo Baptista, Agnimitra Dasgupta, Nikola B Kovachki, Assad Oberai, and Andrew M Stuart. Memorization and regularization in generative diffusion models. arXiv preprint arXiv:2501.15785, 2025.
Giulio Biroli, Tony Bonnaire, Valentin de Bortoli, and Marc Mézard. Dynamical regimes of diffusion models. Nature Communications, 15(1), 2024. 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. In Advances in Neural Information Processing Systems, 2025.
Nicolas Carlini, Jamie Hayes, Milad Nasr, Matthew Jagielski, Vikash Sehwag, Florian Tramer, Borja Balle, Daphne Ippolito, and Eric Wallace. Extracting training data from diffusion models. In 32nd USENIX security symposium (USENIX Security 23), pages 5253–5270, 2023.
Chen Chen, Daochang Liu, Mubarak Shah, and Chang Xu. Exploring local memorization in diffusion models via bright ending attention. In International Conference on Learning Representations, volume 2025, pages 29827–29841, 2025.
Yizong Cheng. Mean shift, mode seeking, and clustering. IEEE Transactions on Pattern Analysis and Machine Intelligence, 17(8):790–799, 1995. doi: 10.1109/34.400568.
Dorin Comaniciu and Peter Meer. Mean shift: a robust approach toward feature space analysis. IEEE Transactions on Pattern Analysis and Machine Intelligence, 24(5):603–619, 2002. doi:10.1109/34.1000236.
Jinhao Duan, Fei Kong, Shiqi Wang, Xiaoshuang Shi, and Kaidi Xu. Are diffusion models vulnerable to membership inference attacks? In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 8717–8730. PMLR, 2023.
Jan Dubiński, Antoni Kowalczuk, Stanisław Pawlak, Przemysław Rokita, Tomasz Trzciński, and Paweł Morawiecki. Towards more realistic membership inference attacks on large diffusion models. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 4860–4869, 2024.
Bradley Efron. Tweedie's formula and selection bias. Journal of the American Statistical Association, 106(496):1602–1614, 2011. doi: 10.1198/jasa.2011.tm11181.
Keinosuke Fukunaga and Larry Hostetler. The estimation of the gradient of a density function, with applications in pattern recognition. IEEE Transactions on Information Theory, 21(1):32–40, 1975. doi: 10.1109/TIT.1975.1055330.
Marco Fumero, Luca Moschella, Emanuele Rodolà, and Francesco Locatello. Navigating the latent space dynamics of neural models. In C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust, editors, International Conference on Learning Representations, volume 2026, pages 24765–24793, 2026a.
Marco Fumero, Luca Moschella, Emanuele Rodolà, and Francesco Locatello. Navigating the latent space dynamics of neural models. In International Conference on Learning Representations, 2026b.
Xiangming Gu, Chao Du, Tianyu Pang, Chongxuan Li, Min Lin, and Ye Wang. On memorization in diffusion models. Transactions on Machine Learning Research, 2025.
Dominik Hintersdorf, Lukas Struppek, Kristian Kersting, Adam Dziedzic, and Franziska Boenisch. Finding nemo: Localizing neurons responsible for memorization in diffusion models. In Advances in Neural Information Processing Systems, volume 37, 2024.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
Hailong Hu and Jun Pang. Loss and likelihood based membership inference of diffusion models. In Information Security – 26th International Conference, ISC 2023, volume 14411 of Lecture Notes in Computer Science, pages 121–141. Springer, 2023.
Anubhav Jain, Yuya Kobayashi, Takashi Shibuya, Yuhta Takida, Nasir Memon, Julian Togelius, and Yuki Mitsufuji. Classifier-free guidance inside the attraction basin may cause memorization. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 12871–12879. IEEE, 2025.
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, volume 267 of Proceedings of Machine Learning Research, pages 27091–27112. PMLR, 2025.
Yue Jiang, Haokun Lin, Yang Bai, Bo Peng, Zhili Liu, Yueming Lyu, Yong Yang, Xing Zheng, and Jing Dong. Image-level memorization detection via inversion-based inference perturbation. In International Conference on Learning Representations, 2025.
Zahra Kadkhodaie, Florentin Guth, Eero P. Simoncelli, and Stéphane Mallat. Generalization in diffusion models arises from geometry-adaptive harmonic representations. In International Conference on Learning Representations (ICLR), 2024.
Mason Kamb and Surya Ganguli. An analytic theory of creativity in convolutional diffusion models. arXiv preprint arXiv:2412.20292, 2024.
Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. In Advances in Neural Information Processing Systems (NeurIPS), 2022.
Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
Tomoya Matsumoto, Takayuki Miura, and Naoto Yanai. Membership inference attacks against diffusion models. In 2023 IEEE Security and Privacy Workshops. IEEE, 2023.
Alexander Quinn Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. In International conference on machine learning, pages 8162–8171. PmLR, 2021.
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, 2019.
Bao Pham, Gabriel Raya, Matteo Negri, Mohammed J Zaki, Luca Ambrogioni, and Dmitry Krotov. Memorization to generalization: Emergence of diffusion models from associative memory. arXiv preprint arXiv:2505.21777, 2025.
Herbert Robbins. An empirical Bayes approach to statistics. In Proceedings of the Third Berkeley Symposium on Mathematical Statistics and Probability, Volume 1: Contributions to the Theory of Statistics, pages 157–163. University of California Press, 1956.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022.
Brendan Leigh Ross, Hamidreza Kamkari, Tongzi Wu, Rasa Hosseinzadeh, Zhaoyan Liu, George Stein, Jesse C. Cresswell, and Gabriel Loaiza-Ganem. A geometric framework for understanding memorization in generative models. In International Conference on Learning Representations, 2025.
Christoph Schuhmann, Romain Beaumont, Richard Vencu, Cade Gordon, Ross Wightman, Mehdi Cherti, Theo Coombes, Aarush Katta, Clayton Mullis, Mitchell Wortsman, et al. Laion-5b: An open large-scale dataset for training next generation image-text models. Advances in neural information processing systems, 35:25278–25294, 2022.
Antonio Sclocchi, Alessandro Favero, and Matthieu Wyart. A phase transition in diffusion models reveals the hierarchical nature of data. Proceedings of the National Academy of Sciences, 122(1):e2408799121, 2025.
Kulin Shah, Alkis Kalavasis, Adam Klivans, and Giannis Daras. Does generation require memorization? creative diffusion models using ambient diffusion. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 54143–54166. PMLR, 2025.
Gowthami Somepalli, Vasu Singla, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Diffusion art or digital forgery? investigating data replication in diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6048–6058, 2023.
Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations (ICLR), 2021.
Patrick von Platen, Suraj Patil, Anton Lozhkov, Pedro Cuenca, Nathan Lambert, Kashif Rasul, Mishig Davaadorj, Dhruv Nair, Sayak Paul, William Berman, Yiyi Xu, Steven Liu, and Thomas Wolf. Diffusers: State-of-the-art diffusion models. https://github.com/huggingface/diffusers, 2022.
Binxu Wang and John J Vastola. Diffusion models generate images like painters: an analytical theory of outline first, details later. arXiv preprint arXiv:2303.02490, 2023.
Ryan Webster. A reproducible extraction of training images from diffusion models. arXiv preprint arXiv:2305.08694, 2023.
Yuxin Wen, Yuchen Liu, Chen Chen, and Lingjuan Lyu. Detecting, explaining, and mitigating memorization in diffusion models. In International Conference on Learning Representations, 2024.
Shengfang Zhai, Huanran Chen, Yinpeng Dong, Jiajun Li, Qingni Shen, Yansong Gao, Hang Su, and Yang Liu. Membership inference on text-to-image diffusion models via conditional likelihood discrepancy. In Advances in Neural Information Processing Systems, volume 37, 2024.
A Denoising dynamics in Stable Diffusion
Figure 7 shows Definition 1 on Stable Diffusion v1.4. The image is encoded once into the latent space, where the map is iterated; the decoder is used only to display the iterates.

the orbit does not move:
a fixed point
: the orbit returns to , an attractor
larger , another map:
, the orbit leaves
Figure 7: Definition 1 on Stable Diffusion. Top: the map . The image is encoded once into the latent ; the U-Net is evaluated with the caption at noise level , and its output is fed back as the next input. Bottom: each row is an orbit , decoded for display, of a memorized image under its own caption . First row: started at the image, the orbit does not move; the image is a fixed point . Second row: started with part of the image replaced by a grey square, the orbit restores it and converges to the same . The occluded image lies in the basin , so is an attractor. Third row: the same start at a larger , which defines a different map in the family . There the start is no longer in the basin, and the orbit leaves.
B Proofs
Setting and notation. Throughout, is a probability measure supported in a compact convex set of diameter . This covers image data in and, taking to be its convex hull, any finite training set. Write . The smoothed density is and strictly positive, and derivatives may be taken under the integral because is bounded. The posterior over clean signals given is . and denote its mean and covariance, so . A fixed point of is an attractor if every eigenvalue of has modulus less than 1. A mode is a local maximum of , and it is nondegenerate if is negative definite there. Two elementary facts are used throughout.
Lemma B.1. For every : (F1) ; (F2) .
Proof. (F1): is the mean of a probability measure on the convex set . (F2): for a unit vector , lies in an interval of length at most , and a random variable confined to an interval of length has variance at most .
B.1 The exact map (Section 2)
Intuition. The exact denoiser averages the training data, weighting each clean signal by how plausible it is as the source of x. Moving to that average moves x uphill on the smoothed density: the step is the score (Tweedie). How sharply the output reacts to the input is the spread of the plausible sources, i.e. the posterior covariance. So a point is held in place when the posterior at it is narrower than the noise, which is exactly a mode of .
Proposition B.2 (Exact denoisers are mean shift; formal version of Proposition 2). Let be the exact denoiser. Then is Gaussian mean shift with bandwidth on the smoothed density :
(i) , and for it is given by equation 1.
(ii) The fixed points of are the critical points of . A fixed point is an attractor iff , i.e. iff it is a nondegenerate mode of .
(iii) Every step increases . The map has no cycles, and every orbit converges to a fixed point when the fixed points are isolated.
Proposition B.2 combines four statements, which we prove in turn: Tweedie's identities (Proposition B.3), the fixed points and their stability (Proposition B.4), the ascent property (Lemma B.5) and its consequence for orbits (Corollary B.6).
Proposition B.3 (Tweedie). and .
Proof of Proposition B.3. This is Tweedie's formula [Robbins, 1956, Efron, 2011]. Since , integrating against gives , which is the first identity. For the second, note that . Differentiating under the integral therefore gives .
Combining the two identities of Proposition B.3,
For a finite , where and is the multiplicity of , the posterior is discrete and its mean is
This is equation 1 when all . The weighted form is the one used for .
Proposition B.4 (Fixed points and stability). is a fixed point of iff . The Jacobian is symmetric positive semidefinite everywhere, so the linearised map neither rotates nor oscillates. A fixed point is an attractor iff , equivalently iff is a nondegenerate mode of . Saddles of carry the basin boundaries.
Proof of Proposition B.4. Fixed points. By Proposition B.3, . Since , iff .
Jacobian. is symmetric positive semidefinite. Its eigenvalues are therefore real, so the linearised map has no rotation, and non-negative, so it has no sign-reversing (oscillating) direction.
Stability. Because the eigenvalues are non-negative, they all lie in iff . By equation 2 this holds iff . At a critical point, that is a nondegenerate local maximum.
Saddles. If has a positive eigenvalue, equation 2 gives an eigenvalue greater than 1, so repels along that direction. A saddle attracts along some directions and repels along others. By Corollary B.6 below, a point in no attractor's basin converges to such a non-maximal critical point. Generically this is a saddle, and the sets converging to saddles separate the basins.
The linearisation is local. The global behaviour comes from the classical ascent property of Gaussian mean shift [Comaniciu and Meer, 2002]: each step climbs by at least its own squared length.
Lemma B.5 (Ascent). For every x, .
Proof. For any . Jensen's inequality bounds its logarithm below by the posterior mean of the exponent. That mean equals , which at is .
Corollary B.6 (Orbits of the exact map). Let . Then (i) has no periodic orbit other than fixed points; (ii) every limit point of is a fixed point, and if the fixed points are isolated, converges; (iii) every attractor is a local maximum of .
Proof. (i) By Lemma B.5, strictly increases along any step that moves, so an orbit cannot return to its starting point. (ii) Summing Lemma B.5 over and using gives , so the steps tend to 0. By (F1) the orbit is bounded. If , then also , and continuity of gives . The limit set of a bounded sequence whose steps tend to 0 is connected, and a connected set of isolated points is a single point. (iii) If every orbit started in a neighbourhood of converges to , then for all , because increases along these orbits.
Proof of Proposition B.2. (i) is the first identity of Proposition B.3, and equation 1 is equation 3 with all . (ii) is Proposition B.4. (iii) is Lemma B.5 together with Corollary B.6(i)–(ii).
Both ends of the scale axis. At large every posterior is nearly the whole data distribution, so the map barely depends on x and collapses everything to one point. At small the posterior near a datum is almost entirely that datum, so the map is nearly constant on a small ball around it, which then holds one attractor. Both statements are contraction arguments.
Proposition B.7. (a) If , has exactly one fixed point, and every orbit converges to it. As this fixed point tends to . (b) Let with pairwise distances at least , let , and let . If and , which holds for all small enough , then contains exactly one fixed point. It is an attractor, and it lies within of .
Proof. (a) By (F2), everywhere, and by (F1) maps into itself. By Banach's fixed-point theorem, has a unique fixed point in . Every orbit enters after one step, so every orbit converges to it, and by (F1) there are no fixed points outside . As , uniformly in , so .
(b) Let and . Then and , so and
Two bounds follow, using for the second:
The first gives , so is a contraction of the convex set into itself, and Banach's theorem gives a unique fixed point there. Its Jacobian has norm below 1, so it is an attractor, and by the first bound it lies within of .
B.2 The critical scale and mass monotonicity (Sections 2.1–2.1)
Proposition B.8 (Critical scale at K = 1). For the exact denoiser, the critical scale with a single iteration is
Proof of Proposition B.8. At the probe is retained at iff , and by Proposition B.3 . Take the supremum over the retained scales.
Two direct consequences of Definition 3 are worth recording. is nonincreasing in K, since retention for steps implies retention for K. The retention set need not be an interval, which is why we verify it empirically (Appendix C).
Theorem B.9 (Mass monotonicity; formal version of Theorem 4). Let put mass on , with any distribution of bounded support. Then is strictly decreasing in , and is nondecreasing in .
Duplicating a datum m times among N others corresponds to .
Intuition for Theorem B.9. At the probe, the posterior splits its vote between the probe's own atom and the rest of the data. Only the rest pulls the probe away, and it pulls with the same force whatever the probe's mass. More mass on the probe only shrinks the share of the vote the rest receives. The proof makes this exact.
Proof of Theorem B.9. Let and be the exact denoiser and the posterior of , and set and . At the posterior of is a mixture of the atom and the posterior of :
Taking means,
The vector does not depend on , and is strictly decreasing in . Hence the displacement
is strictly decreasing in at every with , and zero at every other . For this gives , so the retention sets are nested,
and their suprema, by Proposition B.8, are nondecreasing in .
Lemma B.10 (Strict mass monotonicity). In Theorem B.9, suppose and under is finite. Then under any is strictly larger than .
Proof. Let . The retention set is closed because is continuous, and every escapes, so
In particular at , and equation 9 gives
By continuity on an interval above .
B.3 Two atoms (Theorem 5)
Theorem B.11 (Two atoms; formal version of Theorem 5). Let with and : the probe carries mass and its only neighbour sits at distance . The probe carries its own attractor iff , where is strictly increasing on , , and
Intuition. With two atoms the map lives on the line through them. There it is a sigmoid of the position, and the sigmoid's slope is the separation over the noise, , while its offset is the log-mass ratio . A steep sigmoid crosses the diagonal three times: one attractor at each atom and a saddle between them. As grows the sigmoid flattens, and the crossing near the lighter atom disappears by merging with the saddle. The lighter atom survives while the slope beats the offset, which is why separation (through ) enters linearly and mass (through ) only logarithmically.
Proof of Theorem B.11. Place the atoms at for a unit vector , with the probe at carrying mass .
Step 1 (reduction to a line). By (F1) all fixed points lie on the segment . Write with . Then
so the factor depending on cancels from the weights of equation 3, and
with
depends on only through , and vanishes orthogonally to . Fixed points and their stability are therefore those of the scalar map on .
Step 2 (fixed points). For ,
and as . If , is increasing and there is exactly one fixed point. If , let and
Then increases on up to , decreases on down to , and increases on .
Step 3 (stability). At a fixed point , so
Fixed points on the increasing branches of H are attractors, and a fixed point on the decreasing branch is repelling: it is the saddle between the two basins.
Step 4 (the probe’s attractor). On , takes every value in exactly once. Since , the probe carries its own attractor iff
Otherwise the unique fixed point has , on the neighbour's side or at the midpoint.
Step 5 (the critical scale). Using ,
So decreases strictly from at to 0 at , and equation 20 holds iff , where is the unique solution of
The right-hand side decreases strictly on , so increases strictly, and gives .
Step 6 (asymptotics). As ,
As , , so and equation 24 gives
Remarks. (i) For the atoms swap roles, and bistability ends at the same scale: . (ii) The term in equation 24 makes the exact smaller than the leading-order formula: solving Step 5 numerically gives 0.74, 0.83 and 0.87 of the formula's value at , , . So the formula of Theorem 5 gives how scales (linearly in , logarithmically in ), not its value. (iii) At the probe's attractor and the saddle merge at and both disappear: a saddle-node. The attractor is still at distance from the probe when this happens.
Theorem B.11 locates the scale at which an attractor ceases to exist, while Definition 3 thresholds a displacement. The next proposition says the two agree whenever the attractor is still within the escape radius when it vanishes.
Proposition B.12 (Escape test in the two-atom model). In the setting of Theorem B.11, let and let the escape radius satisfy . Then the probe is retained exactly for , with . Equality holds iff , where .
Proof. is increasing and , so the orbit started at decreases monotonically to the largest fixed point . Its largest displacement from the probe is its limit, so
For , is the probe's attractor, the root of on the rising branch. As grows, increases pointwise on , so this root moves continuously left, down to at . For , and the displacement is at least . So the retention set is
an interval, which reaches iff the displacement at is at most .
Since , the condition holds for any fixed radius once is small. The escape test then returns the saddle-node scale. This is a statement about the exact map, not about a trained network.
B.4 From two atoms to a training set
Intuition. Remark (ii) and equation 24 say that, at leading order, the lighter atom keeps its attractor while it wins the posterior vote at its own location, . For a whole training set the same criterion reads: the probe’s m copies must outweigh the kernel mass of all other rows at the probe,
the sum running over the other rows. Each term of increases with , so the balance holds on an interval . This criterion is a heuristic. It is leading-order, it looks only at the probe's own location, and it has no escape threshold. What can be proved is how the closed forms of Section 2.1 relate to it.
Proposition B.13. Let be the number of other rows, the distance to the nearest of them, and the solution of . Set . Then
with equality in both iff all other rows are at distance . Moreover, a single atom of n rows at distance has the same kernel mass as the actual rows at .
Proof. Every other row is at distance at least , so
with equality iff all of them are at distance . The three claims follow from this bound:
□
So equation 40, with , is a lower bound on the balance scale: lumping every row at the nearest distance overcounts the competition. Lumping them at instead gives , which is exact at and approximate otherwise. In words, is the distance at which one atom carrying all other rows would weigh as much as the actual neighbours do against a single copy. Because the balance itself is only a heuristic, the ceiling is not taken from either formula. It is computed by running equation 3 through the network’s own escape test (Appendix D).
B.5 Conditional models and guidance (Section 2.1)
No argument above uses that is a marginal distribution, so every result holds for . For , equation 3 with gives the caption-reweighted mean shift
The Gaussian kernel, which carries , is unchanged, and the caption enters only through the prior weights .
Corollary B.14 (Caption gap; formal version of Corollary 7). At , and when the caption changes the weight of but not the relative weights of the other examples, iff .
Intuition for Corollary B.14. A caption acts on the empirical mean shift only through the prior weights, exactly as a duplication count does. If it raises the weight of and leaves the rest of the data as it was, it is a duplication of , and Theorem B.9 applies.
Proof of Corollary B.14. By assumption, is the same for every , so the normalized remainder is the same under both conditions:
These are the family of Theorem B.9 at and at . By Lemma B.10, applied in whichever direction the weight moves,
when both are finite.
□
Without the assumption, equation 9 still describes the step, but the caption also changes the pull of the remainder .
Guidance. With the guided noise prediction , the map becomes
It climbs the tilted density , whose critical points for are not those of . Only describes the fixed points of the conditional model.
Lemma B.15 (Guided map). The guided map is equation 36, and its Jacobian is
For it is positive semidefinite; for it is a difference of positive semidefinite matrices and may be indefinite.
Proof of Lemma B.15. Both denoisers are affine in the noise prediction, and , so guidance with gives
Applying Proposition B.3 to each term gives the map and its Jacobian. For the Jacobian is a convex combination of positive semidefinite matrices; for the coefficient is negative.
The consequence for the dynamics: for everything in this appendix carries over to the tilted density . For a negative eigenvalue lets the map overshoot and oscillate, and a maximum of the tilted density is an attractor only if every eigenvalue of its Jacobian stays above -1.
C Remarks on the critical scale
Computing the critical scale. We compute by bisection in on the escape event of Definition 3. The definition is most natural when the set of retained scales is an interval, i.e. when the escape event is monotone in ; in that case bisection returns exactly. We do not assume monotonicity but verify it on the trained models, and observe no violation on either model (on Stable Diffusion, none for 16 images over the noise grid). For the escape event depends on the whole orbit, and has no closed form analogous to Proposition B.8.
(a)
(b)
(c)
(d)

training data
Figure 8: A trained denoiser reproduces the scale space of Fig. 3. Same training set and same panels as Fig. 3, with the exact map replaced by for an EDM-preconditioned MLP trained on the 141 points. Top: basins at the four scales of Fig. 3, coloured by the attractor ( ) reached from the data; grey marks the grid points that reach none of them, in the corners of the domain where the network saw no training data. Bottom left: merge tree of the trained map. Bottom right: its attractor count against that of the exact map. The two maps agree: the counts are equal at 80% of the 90 scales, the partitions of the training set they induce have adjusted Rand index 0.99 on average (0.76 at worst, at the smallest scales where single data split), and the duplicated datum keeps its attractor over the same range of scales in both.
Related iterations. The map of Definition 1 feeds the clean estimate back to the denoiser without adding noise, so that it is deterministic and noise cannot create spurious endpoints. Two related iterations have different fixed points and are not equivalent to . In the Renoising iteration the endpoints depend on the noise realisation, and the round trip is a generative operator.
D The exact denoiser and the retention coefficient
The theorems of Section 2.1 describe the exact denoiser of a fixed distribution. The exact denoiser of a training set, , is the multiplicity-weighted mean shift equation 3 over the number of samples: the map of a model that has stored its training set exactly. It costs one softmax over the training set per step, so it can be iterated from the same images and scored with the same escape test as the network (settings in Appendix F). We write
computed with in place of the network, at the same K and r.
(39)
Section D.1 checks the theory on this map; Section D.2 compares trained networks with it.
D.1 The theory on the exact denoiser
A bifurcation, not a threshold. For this map a training image is an exact fixed point at every scale below the transition, so its critical scale is the saddle-node of Theorem 5: on the duplication training set is unchanged between escape radii and and between and iterations (largest group-median difference 1%).
Distance and multiplicity. With the nearest training image as the only neighbour, Theorem 5 gives, for an example of multiplicity m among N rows,

Figure 9: The exact denoiser follows the law. of the added images of the rarity experiment against their kernel distance to the training set (Eq. 28), for images added once (grey) and 32 times (red), under the escape test with , . The lines are the law of Theorem 5, drawn without fitting. Doubling the distance doubles the critical scale, whereas 32 copies increase it by a factor 1.26.
refined by the balance equation 28 of Appendix B.4. The critical scale should thus grow linearly with distance and only logarithmically with multiplicity. The exact denoiser follows this law without fitting (Figure 9): doubling the kernel distance doubles , whereas 32 copies increase it by a factor 1.26. The log-log slope in distance is 1.03 [1.00, 1.05] for one copy and 0.88 [0.79, 0.93] for 32 copies, against the predicted 1, and a joint fit over all 288 images of the rarity experiment gives 1.95 per doubling of distance against 1.06 per doubling of multiplicity, where the law predicts 2 and 1.05.
Which distance the theory means. Solving the balance equation 28 image by image predicts at rank correlation 0.99–1.00 at every multiplicity of the rarity experiment, with an error of 7–10%, and on the duplication training set at with a constant factor 0.83. The nearest-neighbour formula equation 40 reaches with an error of 43%, and lies below the computed value, as Proposition B.13 requires. The gaussian kernel distance , is the notion of distance the theory uses.
D.2 Trained networks against the exact denoiser
The retention coefficient. A network should not hold an image longer than the memorizing solution does, which suggests reporting
the fraction of that solution’s retention the network reaches at : near 0 where the model generalizes through , approaching 1 where it has stored . Both terms are measured with the same test and the same threshold . A held-out image has no atom in the training set and leaves the exact map at the first step at every , so is defined for training images only.
The bound holds. We use the 1047 training images of Section 3: 264 from the duplication experiment, 495 from the overfitting experiment (five subsets of 100, excluding five images that escape at the lower end of the interval), and 288 from the rarity experiment. No image has . The largest values are 0.78 (duplication), 0.82 (overfitting) and 0.65 (rarity). The memorizing solution therefore bounds every trained model we measure, and can be read as a position between a model that generalizes through the image and one that has stored it.
What moves, and what does not. Across the three interventions the ceiling stays within a factor 4.2 per image and between 4.9 and 10.3 in group median, whereas varies by a factor 335 (Table 2). Each intervention raises , from 0.01–0.06 for images that are not memorized to 0.2–0.6 for images that are. The training set fixes the scale on which retention is measured, and training decides how far along it the model goes; this is why the overfitting sweep moves by two orders of magnitude while the exact denoiser of its subsets barely moves.
Table 2: The three interventions on a common scale. is the critical scale of the exact empirical denoiser of the training set of each model under the same escape test, equation 39; is the fraction of this solution that the network implements. Group medians, training images only: the ceiling varies little, and the effect is carried by .
| intervention | group | |||
|---|---|---|---|---|
| duplication | 4.99 | 0.142 | 0.028 | |
| 5.60 | 1.036 | 0.194 | ||
| 9.91 | 1.431 | 0.145 | ||
| 9.91 | 0.269 | 0.024 | ||
| overfitting | 4.93 | 0.056 | 0.012 | |
| 6.11 | 0.243 | 0.043 | ||
| 7.84 | 4.674 | 0.598 | ||
| rarity | model not trained on the image | 7.68 | 0.451 | 0.058 |
| CIFAR-10 added, | 7.28 | 0.447 | 0.076 | |
| colour MNIST added, | 6.85 | 1.459 | 0.182 | |
| colour MNIST added, | 10.30 | 4.024 | 0.432 |
The rarity rows use , and the others the settings of Appendix F, so is comparable within a block but not across blocks.
The two maps release an image for different reasons. On the exact denoiser a training image is a fixed point until the saddle-node, so its critical scale does not depend on the iteration budget. On a network it does, and the dependence itself separates the groups: at the median is 1.431 at both and , whereas for and held-out images it falls by factors of 165 and 193 over the same range. A memorized image is retained because it is a fixed point of the network's map; an ordinary image is retained only transiently, and a longer iteration releases it. Consequently compares two escape scales measured the same way, not two maps: at a fixed budget it is a conservative reading of how much of the memorizing solution the network implements, and for images without a basin it is an upper bound rather than an estimate.
E CIFAR-10: additional results
This appendix reports additional results for the experiments of Section 3. Training and evaluation details are given in Appendix F.
E.1 Memorization from data duplication (Section3.1)
Copying and sample quality. With the copy criterion of Carlini et al. [2023], 16 605 of 50 000 samples are copies. The FID increases from 3.90 of the control model to 4.70 for non duplicated samples (when this are counted in the FID computation FID goes to 26.46). Therefore aside for the planted memorized images the retained model still perform well on quality of generations.
Membership. separates training images that appear once from held-out (test set) images with AUC 0.528, i.e. it does not detect membership in this case: this is due to the fact that not accounting for the memorized content the models have similar FID and fit well the CIFAR data distribution therefore there is few difference between training and test distribution. This is consistent with a model that copies neither group, and agrees with the overfitting experiment at . Figure 10 illustrates this on one image per group.
Dependence on multiplicity. The median relative to its value at is:
| m | 8 | 25 | 50 | 100 | 200 | 400 | 800 |
|---|---|---|---|---|---|---|---|
| network | 1.00 | 1.12 | 1.18 | 1.34 | 1.24 | 1.26 | 1.38 |
| exact empirical denoiser | 1.00 | 1.11 | 1.08 | 1.23 | 1.19 | 1.29 | 1.77 |
A hundredfold increase in the number of copies changes the critical scale by less than a factor 1.4, and the memorizing solution of the same training set saturates in the same way: mass enters the

Figure 10: Orbits across scales, one image per group. Orbits of the model trained with duplicates, with fixed along each row and the iteration index along each column, for a memorized image ( ), a training image with and a held-out image, each chosen at the median of its group. The dashed line marks the of the image ( , ). The memorized image is unchanged after 64 iterations at , whereas the other two converge to a uniform colour at , with nearly identical critical scales (0.122 and 0.118).
width of a basin only logarithmically, so once an image has a basin, further copies cannot widen it much. Copies still change what the sampler does, as the copy rate shows. Accordingly does not order the duplicated images by multiplicity (0.028 at , 0.19 at , 0.15 at ; ), but it separates duplicated from non-duplicated images, and in the control model it lies between 0.014 and 0.037 at every .
E.2 From memorization to generalization: memorization from overfitting

Figure 11: Overfitting: the same images across training-set sizes. (a) of the 100 training images shared by all models (blue) and of 100 held-out images (orange): medians with interquartile range, individual images in the background. Images that escape at the lower end of the bisection interval are drawn at that end, so the held-out medians for are upper bounds. (b) Fraction of generated samples that are copies (orange, left axis; when no copy is found the point is drawn at the 95% upper bound) and AUC of between training and held-out images (blue, right axis). At sampling no longer detects memorization while still does.
Setup. We study memorization induced by training on a small dataset, and compare with memorization measured by sampling. We train five models with identical architecture, optimiser and training budget on nested subsets of CIFAR-10 of size inducing a transition from a memorization (overfitting) to generalization phase (Fumero et al. [2026b], Kadkhodaie et al. [2024], Pham et al. [2025]). Since only varies, a smaller means more passes over each image. The first 100 images of the permutation belong to every subset, so is evaluated on the same 100 training images in every model, together with 100 held-out test images. Independently of , we measure memorization as the fraction of generated samples that are near-copies of a training image. We also evaluate the public 50M improved-diffusion model on the same images.
Results. The median of the training images decreases by two orders of magnitude, from 4.67 at to 0.056 at , where it coincides with that of the held-out images (0.060; Figure 11a). The decrease is not a power law: is nearly constant up to , collapses between and , and is flat afterwards. At both ends agrees with sampling. For , 52–100% of the samples are copies and separates training from held-out images with AUC 1.00; for and for the public model, no sample is a copy and is at the held-out level. The two measures differ at : only 4 of samples are copies, yet separates training from held-out images with AUC 0.897 (Figure 11b).
Every image here appears once, so the training set alone changes little across the sweep: what changes by two orders of magnitude is how closely the trained model reproduces the memorizing solution at these images (Appendix D.2).
Summary. Retention is lost later than generation: a model can keep its training images as attractors after its sampler has stopped producing them. Since measures retention, it detects memorization in a regime in which the copy rate is already zero.
Comparison to full OpenAi checkpoint. The public model behaves like our models with (median 0.068 against 0.072, AUC 0.45). This is consistent with sampling: an exhaustive search finds no extractable training image, and the number of copies remains at the held-out level up to samples. The images that sampling does recover from this model belong to clusters of near-duplicates in CIFAR-10, for which is at the held-out level.
Exact denoiser. Every image has , so equation 20 depends on only through and predicts , against a measured ratio of 83. The exact empirical denoiser of each subset agrees with the formula: its critical scale decreases from 7.84 to 4.93, a factor of 1.6. Held-out images, which have no atom, leave the exact map immediately (91 to 100 of 100 at every ), so their retention by the network is due to generalization.
E.3 Memorization of rare samples (Section3.2)
Detection by sampling. No added image with is copied more than 0.25 times per samples for any source. At the number of copies per image is between 1.3 and 13.6, and for every added image is generated. For colour MNIST, flags 8 of 12 images with a single copy and all 12 with two.
Paired comparison. The median ratio between in the model trained on the image and in the other model increases from 1.02 (CIFAR-10, ) through 2.5 (SVHN, ) and 3.0 (MNIST, ) to between 3.4 and 8 for . For the two CIFAR sources with , the unpaired AUC against images of the same source is between 0.36 and 0.66: these images cannot be detected in a single model, but they are detected by the paired comparison. Figure 12 shows three added images that are never sampled, one per source, chosen at the median of their group.
Isolation. Within a source and multiplicity, the increase of caused by adding an image is correlated with its distance to the nearest training image (Spearman , , for ). An isolated image does not share its basin at low noise with any training image, so a single copy suffices to create it; a typical image is absorbed into the solution that the model generalizes from its neighbours unless is large. The probability that the sampler reaches the basin from pure noise, by contrast, grows with and not with isolation, which explains why the two detection thresholds differ.
Distance and multiplicity in the trained models. The design spans five doublings of multiplicity and less than one doubling of distance, since the sources were matched in norm and total variation, so the two factors are compared per doubling. A joint fit over the 288 added images gives a factor 4.25 [3.4, 5.3] per doubling of kernel distance against 1.49 [1.44, 1.54] per doubling of multiplicity: in the trained models, as in the memorizing solution (Appendix D.1), distance is the stronger factor. The network responds to multiplicity more than the exact denoiser does, which is expected, since each copy also adds training steps on the image. Pixel distances are correlated with (see Norm below),
Agreement with the exact denoiser. Within a source and multiplicity the network orders the images as the exact map does ( ). The ordering of the sources is not an effect of the norm: at equal , is larger than for CIFAR-100 by a factor 3.1 for colour MNIST and 2.2 for SVHN.
colour MNIST, planted copies in 100k samples 0.96 when trained on it vs 0.32 when not (3.0×)

SVHN, planted copies in 100k samples 2.33 when trained on it vs 0.99 when not (2.3×)

CIFAR-10 test, planted copies in 100k samples 0.48 when trained on it vs 0.18 when not (2.7×)

Figure 12: Paired comparison on three images that are never sampled. One added image per source, chosen at the median of its group. Each row shows , one denoising step applied to the clean image at noise level , in the model trained on the image (top, blue) and in the model not trained on it (bottom, grey), together with the relative displacement whose crossing of defines . The model not trained on the image moves it towards what it has learned (blur, generic texture) at a much smaller .
, and by a factor 1.13 for CIFAR-10 .
Escape radius. The radius selected in advance on the public model is not suitable for this noise schedule: the escape occurs at , below the informative range, and all AUCs except that of colour MNIST are close to 0.5. The results of Section 3.2 use , selected from a sweep over . The separation is stable for and . The paired design determines the direction of the effect independently of this choice, since the same image is evaluated with the same in two models.
F Experimental details
Noise-prediction models as denoisers. DDPM and Stable Diffusion corrupt the data as at discrete steps and train to predict . Dividing by gives with , and the denoiser is .
CIFAR-10 duplication (Section3.1). The model with duplicates is trained with the improved-diffusion CIFAR-10 configuration [Nichol and Dhariwal, 2021], using the model and diffusion definitions of the original implementation: 50M parameters, steps with a cosine schedule, learned variances, dropout 0.3, 128 channels at three resolutions, learning rate , batch size 128, EMA 0.9999, no horizontal flips, and 500k steps. The control is the released checkpoint cifar10_uncond_50M_500K.pt. Eight images are duplicated at each in addition to the 50000 training images, giving 62616 training examples. The multiplicities are chosen so that corresponds to a per-image mass of 1.28%. Images in the lowest 5% of nearest-neighbour distance within CIFAR-10, i.e. the near-duplicates already present in the dataset, are excluded from both the duplicated images and the images. is computed on the 64 duplicated images, 200 training images and 200 held-out images by bisection on [0.02, 12] with . Copies are counted with the criterion of Carlini et al. [2023] on 50000 DDIM samples with 100 steps, and FID is computed against the training set with 50 000 samples per model. The two models are not exactly matched: the held-out loss of the model with duplicates is 1–4.5% higher than that of the released checkpoint at every t, and its gap between training and held-out loss is about 5%, against 0.8% for the released model, although it sees each non-duplicated image 20% less often. The released checkpoint should therefore be regarded as a reference trained without duplicates rather than as an exactly matched control.
CIFAR-10 overfitting (SectionE.2). Each model is a 25.8M-parameter DDPM trained for 15k steps at batch size 128, so the number of passes over the data decreases from 19 200 at to 38 at . The subsets are nested prefixes of a single permutation, so the subset with is contained in all others. is computed by bisection on with 12 steps, and , on the first 100 images of the permutation and on 100 CIFAR-10 test images. For the copy rate we draw DDIM samples with 100 steps, per model for and otherwise. A sample is a copy when the ratio of its distances to the nearest and second-nearest training images is below 1/3; the same criterion applied to a held-out set of the same size finds no copies at any . The public model is the improved-diffusion checkpoint cifar10_uncond_50M_500K, evaluated on the same images with the same settings.
CIFAR-10 rarity (Section3.2). The base set consists of images from the same permutation, and the models use the same architecture and 15k training steps. The added images bring each training set to 11 512 examples. Since on CIFAR-10 depends strongly on and on typicality, unmatched images would obtain high values for trivial reasons; the added images are therefore matched to the base set in RMS norm and total variation, and images with a near-duplicate in the CIFAR-10 training set are excluded. Colour MNIST cannot be matched exactly (RMS 0.56 against 0.49, total variation 0.038 against 0.056) and should be regarded as the extreme of the atypicality range. We draw DDIM samples per model ( , 100 steps). A sample is a copy when its nearest image among the CIFAR-10 training set and all images of the four sources is at RMS distance below 0.07 on , and below 0.45 times the mean distance to the next 50 images; no image that was not added to a model was copied in samples. is computed with and by bisection on the range of the noise schedule up to , with 14 steps.
Filtering the memorization dataset. For the Stable Diffusion experiments, we use the matching-verbatim (MV) and template-verbatim (TV) examples released by Webster [2023]. The collection contains many duplicate or near-duplicate entries, particularly among the TV examples, where the same memorized template appears with different visual patterns. To prevent these repeated templates from being overrepresented in our evaluation, we manually deduplicate the collection, retaining one MV copy per image and one TV example per template. We additionally remove a small number of mismatched image-caption pairs. The released collection associates each memorized image with its training caption, but does not guarantee that sampling from that caption reproduces that particular image. In several cases, the stored caption instead reproduces a different memorized image. Because our method evaluates memorization at the level of image-caption pairs, we exclude these mismatches. Figure 13 shows representative examples removed by both filtering steps.
Comparison to Wen et al. [2024]. For the results reported in Table 1, we report the best-performing configuration for both variants of Wen et al. [2024]: samples with first and first 10 steps for and , respectively.
Local . In order to retain the image local information, we apply the retention test of Definition 3 separately to each 4-dimensional patch of the latent space, . We first apply the denoising map for iterations over a logarithmic grid of 24 noise levels. Then, we estimate the local as the geometric midpoint between the noise level that first escapes the radius and the previous value in the grid, and define local by averaging over locations. Unless otherwise stated, we use and for the local gap experiments.
G Stable Diffusion: additional experiments
Orbits across the grid. Figure 14 expands Figure 1: for the same memorized and control pairs, every row is an orbit at one noise scale, so both the orbit (a row) and the end of the orbit across scales (the last column) can be read off one grid. More qualitative examples are in Appendix G.5.

(a) Duplicate examples

(b) Mismatched image-caption pairs
Figure 13: Examples removed when filtering the memorization dataset. (a) Each row shows a group of duplicate examples, of which we retain only one. (b) The first image in each row is the stored training image, followed by three generations from its training caption. We remove cases in which the caption does not reproduce the stored image.
G.1 Ablation
Figures 15 and 16 assess sensitivity to the number of iterations K and escape radius r. Performance is stable around our primary choices: K = 16, with r = 0.25 for global scores and r = 0.1 for the local gap.
For , the global scores remain broadly stable through and deteriorate at larger values. With , their performance is lower and begins to decline earlier; this sensitivity is particularly pronounced for on TV examples. By contrast, the local gap performs similarly for both radii across most values of , with only a modest decline beyond . Noticeably, mean decreases with , reducing separation between memorized and control examples and causing the drop in detection performance at large .
The radius ablation shows a similar pattern: global scores are more sensitive to r, especially on TV examples, whereas the local gap maintains strong performance as r varies by an order of magnitude.
The main results and the K-ablation estimate by log-space bisection. To evaluate many radii efficiently, the radius ablation instead uses a logarithmic grid of 24 noise levels and takes the geometric midpoint between the last retained level and the first escaped level. Overall, these results show that the reported performance is not specific to the selected hyperparameters and that the local gap is particularly robust.
G.2 Further experimental results
Figure 17 shows the score distributions for the main detection tasks using the best critical-scale metric in each setting. For separating memorized examples from controls, we use the local with and . For distinguishing MV and TV pairs from their caption-swapped counterparts, we use the signed with and .
The caption-swap distributions illustrate why the sign of the gap matters. Most swapped pairs have a negative gap, indicating that an unrelated caption weakens retention relative to the unconditional branch; this behavior is especially frequent for TV examples. Taking the absolute value folds these negative scores onto the positive axis, obscuring the separation between original and swapped pairs.
G.3 Detecting memorized regions: additional qualitative examples
Figure 18 presents four additional TV examples. As in Figure 6 (left), large local gaps align with content reproduced consistently across generations, whereas regions that vary tend to have gaps near zero. These examples further show that the local critical-scale gap captures the spatial extent

Figure 14: The full grid behind Figure 1: the critical scale on Stable Diffusion v1.4, for the same memorized caption–image pair (left) and control pair (middle), each run with its own caption at guidance scale 1. Each row iterates from the image at one noise scale ; a framed iterate is still within of . At small the model keeps returning , which therefore sits in a basin of its own; at large the orbit drifts away towards content shared with other data. The critical scale (dashed line) separates the two regimes: the memorized image withstands far more noise than the control before it escapes. Right: the drift along the orbit, one curve per scale coloured by ; the thick curve is a scale above and the dot marks where it crosses . Here and .
of memorized content across different images.
G.4 Further analysis of mismatched caption gap
Ambiguity near zero. As shown in Figure 6 (right), the gap between mismatched-caption and unconditional critical scales is most informative when strongly negative. Values near zero, however, can represent two different regimes. Both branches may retain the image, indicating unconditional memorization and therefore yielding successful inpainting, or neither branch may retain it, indicating the absence of unconditional memorization. Because the gap measures relative retention, it cannot distinguish between these cases. Figure 19 (top) illustrates the first regime and Figure 19 (bottom) the second: despite having similar gaps, the examples have markedly different critical scales and inpainting performance.
Further examples with negative gap. Figure 20 provides two further examples with negative gaps. Both show evidence of unconditional memorization, but the example with the more negative gap yields more faithful reconstructions, consistent with stronger relative retention by the unconditional branch.
G.5 Further qualitative examples
Figures 21–23 provide additional comparisons of fixed-scale trajectories and critical scales for matching-verbatim (MV), template-verbatim (TV), and control training images. Overall, retention is strongest for MV examples, followed by TV examples and then randomly selected controls: MV images remain close to their initial states for more iterations and at larger noise scales than TV images, which in turn persist longer than controls.
The TV trajectories also reveal spatial differences in retention. In the bedroom example of Figures 23 and 25, the surrounding room remains stable after the bedsheet pattern has been smoothed, consistent with the memorized and variable regions identified in Figure 18. Similarly, in Figure 22, the non-memorized curtain pattern disappears first, whereas the memorized plant and chair persist longer. These examples provide qualitative evidence that fixed-scale dynamics retain memorized regions longer than non-memorized ones, further motivating a local measure for partially memorized images.
Figure 24 illustrates how the caption gap distinguishes memorized image–caption pairs from controls. For the MV example, conditioning on the training caption retains the image to larger noise scales than the unconditional branch, producing a large positive . For the control, the two

Figure 15: Ablation on the number of iterations K. Detection performance as a function of K for escape radii and . The first four columns report AUC for the different critical-scale scores; the final column reports the mean critical scale (solid line) one standard deviation (shaded region). Performance is stable around the primary choice , .
branches escape at similar scales, and the gap is close to zero.
Figure 25 further illustrates how retention varies across memorization types and image regions. In the upper comparison, the MV example has the largest , followed by the TV example and then the control. The lower comparison shows two TV examples: the image with memorized content occupying a larger region has the larger . Within both TV images, non-memorized content—the floor in the first and the bedsheet pattern in the second—disappears at smaller noise scales than the memorized regions.

Local
Figure 16: Ablation on the escape radius . Detection performance (AUC) as a function of using . For this ablation, is approximated over a logarithmic grid of 24 noise levels rather than estimated by log-space bisection. Performance is stable around the primary choice , (global measures), (local ).

Figure 17: Critical-scale score distributions across evaluation groups. Histograms of the scores used to separate the different groups. Left: Local for MV, TV, and control examples ( , ). Center-Right: Signed for MV and TV pairs with their original and swapped captions ( , ). Swapped pairs frequently have negative gaps.


Figure 18: Additional examples of localized memorization. Each panel shows a TV training image, generations from its caption, and the corresponding local map. Large gaps align with regions reproduced consistently across generations, whereas variable regions generally have gaps near zero.
Right caption Wrong caption Unconditional
avg.
trajectory
k=0
k=16
k=32
k=64
inpainting generations

masked
generation 1
generation 2

avg.
trajectory
k=0
k=16
k=32
k=64
inpainting generations
Unconditional

Wrong caption
Right caption
masked
generation 1
generation 2

Figure 19: Near-zero gaps are ambiguous. The two examples have similar mismatched-caption gaps but different absolute retention. Top: Both branches retain the image, and unconditional reconstruction succeeds. Bottom: Neither branch retains the image, and unconditional reconstruction fails.
avg.
trajectory
Right caption Wrong caption Unconditional
k=0
k=16
k=32
k=64
inpainting generations

masked
generation 1
generation 2
avg.

trajectory
Right caption Wrong caption Unconditional
k=0
k=16
k=32
k=64
inpainting generations

masked
generation 1
generation 2

Figure 20: Additional examples with negative mismatched-caption gaps. Both examples exhibit unconditional retention and successful inpainting. The more negative gap in the top example corresponds to more faithful reconstructions than the less negative gap in the bottom example.
totally memorized
"Sarah Silverman Will Star in HBO..."
control
"The best books on Memoirs of..."



Figure 21: Trajectory and critical scale MV vs control. Top: critical scale on for a totally memorized caption–image pair (left) and a control pair (right), each run with its own caption at guidance scale 1. Each row iterates from the image at one noise scale ; a framed iterate is still within of . At small the model keeps returning , which therefore sits in a basin of its own; at large the orbit drifts away towards content shared with other data. The critical scale (dashed colored line) separates the two regimes: the memorized image withstands far more noise than the control before it escapes. Bottom: the drift along the orbit, one curve per scale coloured by ; the thick curve is a scale above and the dot marks where it crosses .
partially memorized
"Plymouth Curtain Panel featuring..."
control
"Medium Of The Fairy Gardens"



Figure 22: Trajectory and critical scale TV vs control. Top: critical scale on for a partially memorized caption–image pair (left) and a control pair (right), each run with its own caption at guidance scale 1. Each row iterates from the image at one noise scale ; a framed iterate is still within of . At small the model keeps returning , which therefore sits in a basin of its own; at large the orbit drifts away towards content shared with other data. The critical scale (dashed colored line) separates the two regimes: the memorized image withstands far more noise than the control before it escapes. Bottom: the drift along the orbit, one curve per scale coloured by ; the thick curve is a scale above and the dot marks where it crosses .
totally memorized
"Watch the Trailer for NBC's..."
partially memorized
"Signature Purple Ombre Sugar..."



Figure 23: Trajectory and critical scale MV vs TV. Top: critical scale on for a totally memorized caption–image pair (left) and a partially memorized pair (right), each run with its own caption at guidance scale 1. Each row iterates from the image at one noise scale ; a framed iterate is still within of . At small the model keeps returning , which therefore sits in a basin of its own; at large the orbit drifts away towards content shared with other data. The critical scale (dashed colored line) separates the two regimes: the memorized image withstands far more noise than the control before it escapes. Bottom: the drift along the orbit, one curve per scale coloured by ; the thick curve is a scale above and the dot marks where it crosses .
training caption
"Donna Tartt's <i>The..."

unconditional

training caption
"Medium Of The Fairy Gardens"

unconditional
Figure 24: for MV and control images. The top row shows an MV image–caption pair and the bottom row a control. The left and center panels show fixed-scale trajectories across noise levels under training-caption and unconditional conditioning, respectively. The right panels plot for both branches. Their crossings with the dotted threshold define the conditional and unconditional critical scales, whose log difference is . The MV pair has a large gap because its caption substantially increases retention, whereas the control has nearly equal critical scales and a gap close to zero.

Figure 25: Fixed-scale trajectories across noise levels. Each comparison shows the iterate across noise scales (top) and the maximum normalized displacement as a function of (bottom). The dotted line marks the escape radius ; its crossing determines . The upper panel compares an MV, a TV, and a control image, ordered from longest to shortest retention. The lower panel compares two TV images with different amounts of memorized content. The image with more memorized content is retained longer.